@seanyeh77/ui 0.40.0 → 0.41.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 (96) hide show
  1. package/dist/bundle.js +19 -19
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/{format-entry-BJI8MU2K.d.ts → format-entry-CgMBtkni.d.ts} +4 -0
  4. package/dist/{format-entry-C7iBqN3J.js → format-entry-CyChe8bk.js} +24 -6
  5. package/dist/format-entry-CyChe8bk.js.map +1 -0
  6. package/dist/format.d.ts +1 -1
  7. package/dist/format.js +1 -1
  8. package/dist/index.d.ts +59 -24
  9. package/dist/index.js +1149 -516
  10. package/dist/index.js.map +1 -1
  11. package/dist/styles.css +892 -683
  12. package/dist/tokens.css +74 -19
  13. package/docs/AccentPicker.md +17 -2
  14. package/docs/ActionBar.md +6 -4
  15. package/docs/AiMark.md +12 -6
  16. package/docs/Alert.md +17 -5
  17. package/docs/AppShell.md +20 -11
  18. package/docs/Badge.md +20 -9
  19. package/docs/BarChart.md +21 -3
  20. package/docs/Breadcrumb.md +9 -4
  21. package/docs/Button.md +18 -8
  22. package/docs/Calendar.md +10 -5
  23. package/docs/Card.md +17 -9
  24. package/docs/Checkbox.md +15 -4
  25. package/docs/CodeView.md +16 -13
  26. package/docs/CommandPalette.md +18 -10
  27. package/docs/ConsoleLayout.md +24 -2
  28. package/docs/DangerZone.md +9 -3
  29. package/docs/DataColors.md +11 -4
  30. package/docs/DataTable.md +77 -28
  31. package/docs/DatePicker.md +16 -2
  32. package/docs/DateRangePicker.md +13 -1
  33. package/docs/DetailList.md +17 -12
  34. package/docs/Dialog.md +11 -6
  35. package/docs/Drawer.md +13 -7
  36. package/docs/EmptyState.md +13 -1
  37. package/docs/ErrorPage.md +6 -0
  38. package/docs/EventTimeline.md +11 -5
  39. package/docs/FileUpload.md +21 -5
  40. package/docs/FormGrid.md +11 -2
  41. package/docs/Format.md +19 -1
  42. package/docs/Graph.md +17 -2
  43. package/docs/Grid.md +13 -4
  44. package/docs/IconButton.md +16 -13
  45. package/docs/InlineCode.md +18 -8
  46. package/docs/KpiCard.md +21 -7
  47. package/docs/LayerGraph.md +36 -23
  48. package/docs/LineChart.md +22 -1
  49. package/docs/LoadingBar.md +7 -1
  50. package/docs/LoginCard.md +19 -3
  51. package/docs/Markdown.md +18 -2
  52. package/docs/Menu.md +13 -7
  53. package/docs/Meter.md +12 -5
  54. package/docs/MobileTabBar.md +18 -2
  55. package/docs/MultiSelect.md +13 -3
  56. package/docs/NotificationBell.md +13 -3
  57. package/docs/Popover.md +12 -2
  58. package/docs/ProgressBar.md +8 -2
  59. package/docs/ProgressRing.md +8 -2
  60. package/docs/ProjectSwitcher.md +15 -9
  61. package/docs/RadioGroup.md +21 -3
  62. package/docs/SearchField.md +8 -2
  63. package/docs/Section.md +16 -4
  64. package/docs/SegmentedControl.md +21 -19
  65. package/docs/Select.md +16 -1
  66. package/docs/SettingsLayout.md +19 -4
  67. package/docs/SideNav.md +20 -2
  68. package/docs/Skeleton.md +7 -1
  69. package/docs/SplitPane.md +7 -1
  70. package/docs/StatusBand.md +12 -6
  71. package/docs/Suggestion.md +12 -5
  72. package/docs/Switch.md +15 -2
  73. package/docs/Tabs.md +25 -6
  74. package/docs/Tag.md +16 -12
  75. package/docs/Term.md +18 -1
  76. package/docs/TextArea.md +12 -1
  77. package/docs/TextField.md +15 -5
  78. package/docs/ThemePicker.md +16 -4
  79. package/docs/TimeControl.md +10 -5
  80. package/docs/Toast.md +13 -3
  81. package/docs/Tooltip.md +17 -5
  82. package/docs/TopBar.md +16 -3
  83. package/docs/Tour.md +25 -1
  84. package/docs/TreeList.md +16 -9
  85. package/docs/Workbench.md +12 -6
  86. package/docs/ZoneMap.md +17 -10
  87. package/docs/code.md +28 -0
  88. package/docs/data.md +45 -0
  89. package/docs/forms.md +29 -0
  90. package/docs/guidelines.md +56 -307
  91. package/docs/layout.md +24 -4
  92. package/docs/monitoring.md +30 -0
  93. package/docs/motion.md +1 -1
  94. package/docs/theme.md +104 -0
  95. package/package.json +3 -3
  96. package/dist/format-entry-C7iBqN3J.js.map +0 -1
package/dist/styles.css CHANGED
@@ -1,7 +1,7 @@
1
1
  body {
2
2
  margin: 0;
3
3
  font-family: var(--font-sans);
4
- font-size: 16px;
4
+ font-size: var(--text-body);
5
5
  line-height: 1.65;
6
6
  background: var(--bg);
7
7
  color: var(--ink);
@@ -42,28 +42,19 @@ body {
42
42
  border-radius: var(--radius-md);
43
43
  border: 1px solid transparent;
44
44
  font: inherit;
45
- font-size: 15px;
45
+ font-size: var(--text-control);
46
46
  font-weight: 600;
47
47
  line-height: 1;
48
48
  cursor: pointer;
49
49
  white-space: nowrap;
50
50
  transition:
51
- background-color 0.15s ease,
52
- transform 0.15s ease,
53
- border-color 0.15s ease;
51
+ background-color var(--dur-hover) ease,
52
+ transform var(--dur-hover) ease,
53
+ border-color var(--dur-hover) ease;
54
54
  }
55
55
  .ui-btn:active:not(:disabled) {
56
56
  transform: translateY(1px);
57
57
  }
58
- .ui-btn:focus-visible,
59
- .ui-iconbtn:focus-visible,
60
- .ui-toast-action:focus-visible {
61
- outline: none;
62
- box-shadow:
63
- 0 0 0 2px var(--bg),
64
- 0 0 0 5px var(--focus-ring);
65
- border-color: var(--accent);
66
- }
67
58
  .ui-btn-primary {
68
59
  background: var(--accent);
69
60
  color: var(--on-accent);
@@ -82,13 +73,26 @@ body {
82
73
  .ui-btn-secondary:hover:not(:disabled) {
83
74
  background: var(--surface-sub);
84
75
  }
76
+ /* Quiet: low-emphasis and toolbar actions. Same height and focus ring; no border, muted text, a gray ground on hover. */
77
+ .ui-btn-quiet {
78
+ background: transparent;
79
+ color: var(--ink-muted);
80
+ }
81
+ .ui-btn-quiet:hover:not(:disabled) {
82
+ background: var(--surface-sub);
83
+ color: var(--ink);
84
+ }
85
85
  .ui-btn-danger {
86
86
  background: var(--danger);
87
- color: var(--on-solid);
87
+ color: var(--on-danger);
88
88
  }
89
89
  .ui-btn-danger:hover:not(:disabled) {
90
90
  filter: brightness(0.92);
91
91
  }
92
+ /* In dark the danger fill is light (ink text): hover goes lighter, so the fill keeps 3:1 on the page. */
93
+ [data-theme='dark'] .ui-btn-danger:hover:not(:disabled) {
94
+ filter: brightness(1.08);
95
+ }
92
96
  .ui-btn:disabled:not(.is-loading) {
93
97
  background: var(--surface-sub);
94
98
  color: var(--ink-muted);
@@ -111,7 +115,7 @@ body {
111
115
  background: transparent;
112
116
  color: var(--ink);
113
117
  cursor: pointer;
114
- transition: background-color 0.15s ease;
118
+ transition: background-color var(--dur-hover) ease;
115
119
  }
116
120
  .ui-iconbtn:hover {
117
121
  background: var(--surface-sub);
@@ -130,9 +134,6 @@ body {
130
134
  .ui-iconbtn.is-quiet[aria-pressed='true'] {
131
135
  color: var(--ink);
132
136
  }
133
- .ui-iconbtn.is-quiet:focus-visible {
134
- box-shadow: 0 0 0 3px var(--focus-ring);
135
- }
136
137
  /* First-use hint: an accent dot on the button (ringed in the background it sits on) and a dark bubble to its left,
137
138
  in the same row, its arrow pointing right at the button: it never covers what is under the bar (H3). Stays until
138
139
  開始 or ×. */
@@ -159,7 +160,7 @@ body {
159
160
  }
160
161
  .ui-hint {
161
162
  position: absolute;
162
- z-index: 30;
163
+ z-index: var(--z-hint);
163
164
  top: 50%;
164
165
  right: calc(100% + 12px);
165
166
  translate: 0 -50%;
@@ -174,11 +175,11 @@ body {
174
175
  background: var(--ink);
175
176
  color: var(--bg);
176
177
  box-shadow: var(--shadow-overlay);
177
- font-size: 13px;
178
+ font-size: var(--text-small);
178
179
  line-height: 20px;
179
180
  font-weight: 400;
180
181
  white-space: normal;
181
- animation: ui-pop-scale 220ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
182
+ animation: ui-pop-scale var(--dur-tooltip) var(--ease-spring) both;
182
183
  transform-origin: 100% 50%;
183
184
  }
184
185
  .ui-hint::before {
@@ -254,7 +255,7 @@ body {
254
255
  min-width: 220px;
255
256
  }
256
257
  .ui-field-label {
257
- font-size: 14px;
258
+ font-size: var(--text-compact);
258
259
  font-weight: 600;
259
260
  }
260
261
  .ui-field-box {
@@ -266,30 +267,23 @@ body {
266
267
  height: var(--control-height);
267
268
  padding: 0 var(--space-3);
268
269
  font: inherit;
269
- font-size: 15px;
270
+ font-size: var(--text-control);
270
271
  color: var(--ink);
271
272
  background: var(--surface-input);
272
273
  border: 1px solid var(--line-strong);
273
274
  border-radius: var(--radius-md);
274
275
  outline: none;
275
276
  transition:
276
- border-color 0.15s ease,
277
- box-shadow 0.15s ease;
277
+ border-color var(--dur-hover) ease,
278
+ box-shadow var(--dur-hover) ease;
278
279
  }
279
280
  .ui-input::placeholder {
280
281
  color: var(--ink-muted);
281
282
  }
282
- .ui-input:focus {
283
- border-color: var(--accent);
284
- box-shadow: 0 0 0 3px var(--focus-ring);
285
- }
286
283
  .has-error .ui-input {
287
284
  border: 1.5px solid var(--danger);
288
285
  padding-right: 40px;
289
286
  }
290
- .has-error .ui-input:focus {
291
- box-shadow: 0 0 0 3px var(--danger-ring);
292
- }
293
287
  .ui-field-icon {
294
288
  position: absolute;
295
289
  right: var(--space-3);
@@ -298,13 +292,35 @@ body {
298
292
  color: var(--danger);
299
293
  }
300
294
  .ui-field-hint {
301
- font-size: 13px;
295
+ font-size: var(--text-small);
302
296
  color: var(--ink-muted);
303
297
  }
304
298
  .ui-field-error {
305
- font-size: 13px;
299
+ font-size: var(--text-small);
306
300
  color: var(--danger-text);
307
301
  }
302
+ /* Every field type with an error: the red border (1.5 px, as TextField) and the warning icon. In a field that is a row
303
+ (password, date, select, multi-select) the icon sits in the row before its own button or caret; in a text area it
304
+ sits at the top right. */
305
+ .ui-pwfield.is-invalid,
306
+ .ui-datefield.is-invalid,
307
+ .ui-select-trigger.is-invalid,
308
+ .ui-ms.is-invalid {
309
+ border: 1.5px solid var(--danger);
310
+ }
311
+ .ui-field-icon.is-inline {
312
+ position: static;
313
+ flex: none;
314
+ transform: none;
315
+ }
316
+ .ui-pwfield .ui-field-icon.is-inline,
317
+ .ui-datefield .ui-field-icon.is-inline {
318
+ margin-left: var(--space-2);
319
+ }
320
+ .ui-field-box > .ui-textarea ~ .ui-field-icon {
321
+ top: 12px;
322
+ transform: none;
323
+ }
308
324
  .is-disabled .ui-field-label {
309
325
  color: var(--ink-muted);
310
326
  }
@@ -315,9 +331,6 @@ body {
315
331
  cursor: not-allowed;
316
332
  }
317
333
 
318
- @media (max-width: 599px) {
319
- }
320
-
321
334
  .ui-badge {
322
335
  display: inline-flex;
323
336
  align-items: center;
@@ -328,7 +341,7 @@ body {
328
341
  background: var(--surface);
329
342
  box-shadow: var(--shadow-chip);
330
343
  color: var(--ink);
331
- font-size: 13px;
344
+ font-size: var(--text-small);
332
345
  font-weight: 500;
333
346
  white-space: nowrap;
334
347
  box-sizing: border-box;
@@ -337,44 +350,51 @@ body {
337
350
  flex: 0 0 15px;
338
351
  }
339
352
  .ui-badge-draft .ui-badge-mark {
340
- color: var(--neutral-500);
353
+ color: var(--ink-muted);
341
354
  }
342
- /* A glyph beside text, on the same ground: the text color of the accent, which reads on any accent (4.5:1). */
355
+ /* A mark beside text, on the same ground: the status text colors, which reach 4.5:1 on every ground (bg, surfaces,
356
+ accent-soft, table row hover and zebra), so the mark is 3:1 or more wherever the badge goes. */
343
357
  .ui-badge-doing .ui-badge-mark {
344
358
  color: var(--accent-text);
345
359
  }
346
360
  .ui-badge-review .ui-badge-mark {
347
- color: var(--warning);
361
+ color: var(--warning-text);
348
362
  }
349
363
  .ui-badge-done .ui-badge-mark {
350
- color: var(--success);
364
+ color: var(--success-text);
351
365
  }
352
366
  .ui-badge-fail .ui-badge-mark {
353
- color: var(--danger);
367
+ color: var(--danger-text);
354
368
  }
355
- .ui-badge.is-dot {
369
+ /* The dot form: a mark and text, no chip and no shadow. variant="dot", and every Badge inside a Card or a DataTable
370
+ (a raised chip on a raised card reads as a button). Only the attention states (fail, review, doing) color their
371
+ text; done and draft stay calm in ink-muted. The mark keeps its status color and shape. */
372
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *) {
356
373
  height: auto;
357
374
  padding: 0;
358
375
  gap: 6px;
359
376
  background: transparent;
360
377
  box-shadow: none;
378
+ /* the size and weight of the text beside it (a status cell reads like the other cells); states that need
379
+ attention are bold */
380
+ font-size: inherit;
381
+ font-weight: inherit;
382
+ }
383
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *):is(.ui-badge-fail, .ui-badge-review, .ui-badge-doing) {
361
384
  font-weight: 600;
362
385
  }
363
- .ui-badge.is-dot.ui-badge-done {
364
- color: var(--success-text);
386
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *):is(.ui-badge-done, .ui-badge-draft) {
387
+ color: var(--ink-muted);
365
388
  }
366
- .ui-badge.is-dot.ui-badge-fail {
389
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *).ui-badge-fail {
367
390
  color: var(--danger-text);
368
391
  }
369
- .ui-badge.is-dot.ui-badge-review {
392
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *).ui-badge-review {
370
393
  color: var(--warning-text);
371
394
  }
372
- .ui-badge.is-dot.ui-badge-doing {
395
+ .ui-badge:is(.is-dot, .ui-card *, .ui-dt *).ui-badge-doing {
373
396
  color: var(--accent-text);
374
397
  }
375
- .ui-badge.is-dot.ui-badge-draft {
376
- color: var(--ink-muted);
377
- }
378
398
 
379
399
  .ui-alert {
380
400
  position: relative;
@@ -386,7 +406,7 @@ body {
386
406
  border-radius: var(--radius-md);
387
407
  background: var(--surface);
388
408
  box-shadow: var(--shadow-card);
389
- font-size: 14px;
409
+ font-size: var(--text-compact);
390
410
  line-height: 1.5;
391
411
  }
392
412
  .ui-alert::before {
@@ -432,7 +452,7 @@ body {
432
452
  align-self: center;
433
453
  height: 32px;
434
454
  padding: 0 var(--space-3);
435
- font-size: 13px;
455
+ font-size: var(--text-small);
436
456
  }
437
457
  .ui-alert-close {
438
458
  flex: 0 0 32px;
@@ -477,14 +497,14 @@ body {
477
497
  padding: var(--space-8) var(--space-5);
478
498
  }
479
499
  .ui-empty-title {
480
- font-size: 20px;
500
+ font-size: var(--text-h4);
481
501
  font-weight: 700;
482
502
  line-height: 28px;
483
503
  }
484
504
  .ui-empty-desc {
485
505
  margin: 0;
486
506
  max-width: 360px;
487
- font-size: 14px;
507
+ font-size: var(--text-compact);
488
508
  color: var(--ink-muted);
489
509
  }
490
510
  .ui-steps {
@@ -495,7 +515,7 @@ body {
495
515
  flex-direction: column;
496
516
  gap: var(--space-2);
497
517
  text-align: left;
498
- font-size: 14px;
518
+ font-size: var(--text-compact);
499
519
  color: var(--ink-muted);
500
520
  }
501
521
  .ui-steps li {
@@ -515,7 +535,7 @@ body {
515
535
  background: var(--surface-sub);
516
536
  color: var(--ink-muted);
517
537
  font-family: var(--font-mono);
518
- font-size: 12px;
538
+ font-size: var(--text-mini);
519
539
  font-weight: 700;
520
540
  display: inline-flex;
521
541
  align-items: center;
@@ -546,7 +566,7 @@ body {
546
566
  color: var(--ink);
547
567
  border: 1px solid var(--line);
548
568
  box-shadow: var(--shadow-overlay);
549
- font-size: 14px;
569
+ font-size: var(--text-compact);
550
570
  animation: ui-toast-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
551
571
  }
552
572
  .ui-toast-icon {
@@ -586,7 +606,7 @@ body {
586
606
  display: flex;
587
607
  flex-direction: column;
588
608
  gap: var(--space-2);
589
- animation: ui-dialog-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
609
+ animation: ui-dialog-in var(--dur-tooltip) cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
590
610
  }
591
611
  .ui-dialog-head {
592
612
  display: flex;
@@ -623,12 +643,12 @@ body {
623
643
  padding: var(--space-4);
624
644
  }
625
645
  .ui-dialog-title {
626
- font-size: 20px;
646
+ font-size: var(--text-h4);
627
647
  font-weight: 700;
628
648
  line-height: 28px;
629
649
  }
630
650
  .ui-dialog-body {
631
- font-size: 14px;
651
+ font-size: var(--text-compact);
632
652
  color: var(--ink-muted);
633
653
  }
634
654
  .ui-dialog-actions {
@@ -649,7 +669,7 @@ body {
649
669
  @media (prefers-reduced-motion: reduce) {
650
670
  .ui-toast,
651
671
  .ui-dialog {
652
- animation: ui-fade 0.15s ease both;
672
+ animation: ui-fade var(--dur-hover) ease both;
653
673
  }
654
674
  .ui-btn:active:not(:disabled) {
655
675
  transform: none;
@@ -667,7 +687,7 @@ body {
667
687
  padding: 14px 10px;
668
688
  background: var(--surface-chrome);
669
689
  border-right: 1px solid var(--line);
670
- transition: width 0.3s cubic-bezier(0.3, 0.7, 0.3, 1);
690
+ transition: width var(--dur-toggle) var(--ease-glide);
671
691
  }
672
692
  .ui-sidenav.ui-shell-allnav {
673
693
  width: auto;
@@ -719,10 +739,6 @@ body {
719
739
  :is(a, button).ui-nav-brand-link {
720
740
  cursor: pointer;
721
741
  }
722
- :is(a, button).ui-nav-brand-link:focus-visible {
723
- outline: none;
724
- box-shadow: 0 0 0 3px var(--focus-ring);
725
- }
726
742
  .ui-nav-mark {
727
743
  flex: none;
728
744
  display: inline-flex;
@@ -740,14 +756,14 @@ body {
740
756
  border-radius: 6px;
741
757
  background: var(--accent);
742
758
  color: var(--on-accent);
743
- font-size: 13px;
759
+ font-size: var(--text-small);
744
760
  line-height: 1;
745
761
  }
746
762
  .ui-nav-brand-name {
747
763
  min-width: 0;
748
764
  overflow: hidden;
749
765
  text-overflow: ellipsis;
750
- transition: opacity 0.3s cubic-bezier(0.3, 0.7, 0.3, 1) 80ms;
766
+ transition: opacity var(--dur-toggle) var(--ease-glide) 80ms;
751
767
  }
752
768
  .ui-sidenav.is-collapsed .ui-nav-brand-name {
753
769
  opacity: 0;
@@ -792,19 +808,19 @@ body {
792
808
  background: transparent;
793
809
  color: var(--ink-muted);
794
810
  font: inherit;
795
- font-size: 15px;
811
+ font-size: var(--text-control);
796
812
  font-weight: 500;
797
813
  text-align: left;
798
814
  white-space: nowrap;
799
815
  overflow: hidden;
800
816
  cursor: pointer;
801
817
  transition:
802
- background-color 0.15s ease,
803
- color 0.15s ease;
818
+ background-color var(--dur-hover) ease,
819
+ color var(--dur-hover) ease;
804
820
  }
805
821
  .ui-nav-item.is-sub {
806
822
  padding-left: 44px;
807
- font-size: 14px;
823
+ font-size: var(--text-compact);
808
824
  }
809
825
  .ui-nav-item:hover:not(.is-selected) {
810
826
  background: var(--surface-sub);
@@ -816,10 +832,6 @@ body {
816
832
  .ui-nav-item.is-selected .ui-nav-icon {
817
833
  color: var(--accent-text);
818
834
  }
819
- .ui-nav-item:focus-visible {
820
- outline: none;
821
- box-shadow: 0 0 0 3px var(--focus-ring);
822
- }
823
835
  .ui-nav-label {
824
836
  flex: 1 1 auto;
825
837
  overflow: hidden;
@@ -833,7 +845,7 @@ body {
833
845
  }
834
846
  .ui-nav-bar {
835
847
  position: absolute;
836
- z-index: 1;
848
+ z-index: var(--z-raised);
837
849
  left: 0;
838
850
  width: 3px;
839
851
  border-radius: 0 3px 3px 0;
@@ -850,20 +862,20 @@ body {
850
862
  position: absolute;
851
863
  left: calc(100% + 10px);
852
864
  top: 50%;
853
- z-index: 5;
865
+ z-index: var(--z-float);
854
866
  padding: 6px 10px;
855
867
  border-radius: var(--radius-sm);
856
868
  background: var(--ink);
857
869
  color: var(--bg);
858
- font-size: 13px;
870
+ font-size: var(--text-small);
859
871
  font-weight: 600;
860
872
  white-space: nowrap;
861
873
  box-shadow: var(--shadow-overlay);
862
874
  opacity: 0;
863
875
  transform: translate(-4px, -50%);
864
876
  transition:
865
- opacity 0.15s ease,
866
- transform 0.15s ease;
877
+ opacity var(--dur-hover) ease,
878
+ transform var(--dur-hover) ease;
867
879
  pointer-events: none;
868
880
  }
869
881
  .ui-nav-row:hover .ui-nav-tip,
@@ -903,7 +915,7 @@ body {
903
915
  color: var(--accent-text);
904
916
  }
905
917
  .ui-nav-collapse .ui-icon {
906
- transition: transform 0.3s ease;
918
+ transition: transform var(--dur-toggle) ease;
907
919
  }
908
920
  .ui-nav-collapse .is-flipped {
909
921
  transform: scaleX(-1);
@@ -921,7 +933,7 @@ body {
921
933
  }
922
934
  .ui-topbar-title {
923
935
  margin: 0;
924
- font-size: 20px;
936
+ font-size: var(--text-h4);
925
937
  line-height: 28px;
926
938
  font-weight: 700;
927
939
  white-space: nowrap;
@@ -959,13 +971,13 @@ body {
959
971
  background: var(--surface-sub);
960
972
  color: var(--ink-muted);
961
973
  font: inherit;
962
- font-size: 14px;
974
+ font-size: var(--text-compact);
963
975
  cursor: pointer;
964
976
  }
965
977
  .ui-search kbd {
966
978
  margin-left: auto;
967
979
  font-family: var(--font-mono);
968
- font-size: 12px;
980
+ font-size: var(--text-mini);
969
981
  }
970
982
 
971
983
  .ui-crumb ol {
@@ -976,7 +988,7 @@ body {
976
988
  margin: 0;
977
989
  padding: 0;
978
990
  list-style: none;
979
- font-size: 14px;
991
+ font-size: var(--text-compact);
980
992
  color: var(--ink-muted);
981
993
  }
982
994
  .ui-crumb li {
@@ -1023,11 +1035,15 @@ body {
1023
1035
  .ui-tabs.has-more-left.has-more-right {
1024
1036
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
1025
1037
  }
1038
+ /* The selected tab's pill: a line-strong border, so it shows the selection at 3:1 on the gray row (surface on
1039
+ surface-sub alone is about 1.1:1). */
1026
1040
  .ui-tabs-ind {
1027
1041
  position: absolute;
1028
1042
  top: 4px;
1029
1043
  bottom: 4px;
1030
- border-radius: var(--radius-md);
1044
+ box-sizing: border-box;
1045
+ border: 1px solid var(--line-strong);
1046
+ border-radius: var(--radius-sm);
1031
1047
  background: var(--surface);
1032
1048
  box-shadow: var(--shadow-sm);
1033
1049
  pointer-events: none;
@@ -1040,23 +1056,19 @@ body {
1040
1056
  height: 38px;
1041
1057
  padding: 0 var(--space-4);
1042
1058
  border: 0;
1043
- border-radius: var(--radius-md);
1059
+ border-radius: var(--radius-sm);
1044
1060
  background: transparent;
1045
1061
  color: var(--ink-muted);
1046
1062
  font: inherit;
1047
- font-size: 15px;
1063
+ font-size: var(--text-control);
1048
1064
  font-weight: 500;
1049
1065
  cursor: pointer;
1050
- transition: color 0.15s ease;
1066
+ transition: color var(--dur-hover) ease;
1051
1067
  }
1052
1068
  .ui-tab.is-selected {
1053
1069
  color: var(--ink);
1054
1070
  font-weight: 700;
1055
1071
  }
1056
- .ui-tab:focus-visible {
1057
- outline: none;
1058
- box-shadow: 0 0 0 3px var(--focus-ring);
1059
- }
1060
1072
 
1061
1073
  .ui-tabbar {
1062
1074
  position: relative;
@@ -1102,7 +1114,7 @@ body {
1102
1114
  top: 8px;
1103
1115
  }
1104
1116
  .ui-tabbar-label {
1105
- font-size: 11px;
1117
+ font-size: var(--text-mini);
1106
1118
  line-height: 14px;
1107
1119
  white-space: nowrap;
1108
1120
  }
@@ -1121,7 +1133,7 @@ body {
1121
1133
  }
1122
1134
  }
1123
1135
  .ui-rise-in > * {
1124
- animation: ui-rise 200ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
1136
+ animation: ui-rise var(--dur-nav) var(--ease-spring) both;
1125
1137
  }
1126
1138
  .ui-rise-in > *:nth-child(2) {
1127
1139
  animation-delay: 40ms;
@@ -1143,10 +1155,10 @@ body {
1143
1155
  .ui-tabs-ind,
1144
1156
  .ui-tabbar-pill,
1145
1157
  .ui-nav-bar {
1146
- transition: opacity 0.15s ease !important;
1158
+ transition: opacity var(--dur-hover) ease !important;
1147
1159
  }
1148
1160
  .ui-rise-in > * {
1149
- animation: ui-fade 0.15s ease both;
1161
+ animation: ui-fade var(--dur-hover) ease both;
1150
1162
  }
1151
1163
  .ui-sidenav {
1152
1164
  transition: none;
@@ -1155,7 +1167,7 @@ body {
1155
1167
 
1156
1168
  /* ---------- Form controls ---------- */
1157
1169
  .ui-req {
1158
- color: var(--danger);
1170
+ color: var(--danger-text);
1159
1171
  }
1160
1172
  .ui-check,
1161
1173
  .ui-radio {
@@ -1168,7 +1180,7 @@ body {
1168
1180
  background: transparent;
1169
1181
  color: var(--ink);
1170
1182
  font: inherit;
1171
- font-size: 15px;
1183
+ font-size: var(--text-control);
1172
1184
  text-align: left;
1173
1185
  cursor: pointer;
1174
1186
  }
@@ -1189,8 +1201,8 @@ body {
1189
1201
  align-items: center;
1190
1202
  justify-content: center;
1191
1203
  transition:
1192
- background-color 0.15s ease,
1193
- border-color 0.15s ease;
1204
+ background-color var(--dur-hover) ease,
1205
+ border-color var(--dur-hover) ease;
1194
1206
  }
1195
1207
  .ui-check.is-on .ui-check-box {
1196
1208
  background: var(--accent);
@@ -1212,15 +1224,7 @@ body {
1212
1224
  }
1213
1225
  .ui-draw {
1214
1226
  stroke-dasharray: 24;
1215
- animation: ui-draw 200ms ease-out both;
1216
- }
1217
- .ui-check:focus-visible .ui-check-box,
1218
- .ui-radio:focus-visible .ui-radio-ring {
1219
- box-shadow: 0 0 0 3px var(--focus-ring);
1220
- }
1221
- .ui-check:focus-visible,
1222
- .ui-radio:focus-visible {
1223
- outline: none;
1227
+ animation: ui-draw var(--dur-nav) ease-out both;
1224
1228
  }
1225
1229
  .ui-radios {
1226
1230
  display: flex;
@@ -1232,12 +1236,12 @@ body {
1232
1236
  width: 22px;
1233
1237
  height: 22px;
1234
1238
  box-sizing: border-box;
1235
- border-radius: 99px;
1239
+ border-radius: var(--radius-full);
1236
1240
  border: 2px solid var(--line-strong);
1237
1241
  display: inline-flex;
1238
1242
  align-items: center;
1239
1243
  justify-content: center;
1240
- transition: border-color 0.15s ease;
1244
+ transition: border-color var(--dur-hover) ease;
1241
1245
  }
1242
1246
  .ui-radio.is-on .ui-radio-ring {
1243
1247
  border-color: var(--accent);
@@ -1245,9 +1249,9 @@ body {
1245
1249
  .ui-radio-dot {
1246
1250
  width: 10px;
1247
1251
  height: 10px;
1248
- border-radius: 99px;
1252
+ border-radius: var(--radius-full);
1249
1253
  background: var(--accent);
1250
- animation: ui-draw-dot 200ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
1254
+ animation: ui-draw-dot var(--dur-nav) cubic-bezier(0.34, 1.56, 0.64, 1) both;
1251
1255
  }
1252
1256
  @keyframes ui-draw-dot {
1253
1257
  from {
@@ -1265,22 +1269,18 @@ body {
1265
1269
  height: 32px;
1266
1270
  padding: 0;
1267
1271
  box-sizing: border-box;
1268
- border-radius: 99px;
1272
+ border-radius: var(--radius-full);
1269
1273
  border: 2px solid var(--line-strong);
1270
1274
  background: var(--surface-sub);
1271
1275
  cursor: pointer;
1272
1276
  transition:
1273
- background-color 0.2s ease,
1274
- border-color 0.2s ease;
1277
+ background-color var(--dur-nav) ease,
1278
+ border-color var(--dur-nav) ease;
1275
1279
  }
1276
1280
  .ui-switch.is-on {
1277
1281
  background: var(--accent);
1278
1282
  border-color: var(--accent);
1279
1283
  }
1280
- .ui-switch:focus-visible {
1281
- outline: none;
1282
- box-shadow: 0 0 0 3px var(--focus-ring);
1283
- }
1284
1284
  .ui-switch:disabled {
1285
1285
  opacity: 0.5;
1286
1286
  cursor: not-allowed;
@@ -1288,7 +1288,7 @@ body {
1288
1288
  .ui-switch-thumb {
1289
1289
  position: absolute;
1290
1290
  top: 50%;
1291
- border-radius: 99px;
1291
+ border-radius: var(--radius-full);
1292
1292
  background: var(--line-strong);
1293
1293
  color: var(--surface);
1294
1294
  display: flex;
@@ -1321,19 +1321,16 @@ body {
1321
1321
  background: var(--surface-input);
1322
1322
  color: var(--ink);
1323
1323
  font: inherit;
1324
- font-size: 15px;
1324
+ font-size: var(--text-control);
1325
1325
  text-align: left;
1326
1326
  cursor: pointer;
1327
1327
  }
1328
- .ui-select-trigger[data-popup-open],
1329
- .ui-select-trigger:focus-visible {
1330
- outline: none;
1328
+ .ui-select-trigger[data-popup-open] {
1331
1329
  border-color: var(--accent);
1332
- box-shadow: 0 0 0 3px var(--focus-ring);
1333
1330
  }
1334
1331
  .ui-select-chev {
1335
1332
  color: var(--ink-muted);
1336
- transition: transform 0.2s ease;
1333
+ transition: transform var(--dur-nav) ease;
1337
1334
  }
1338
1335
  .ui-select-trigger[data-popup-open] .ui-select-chev {
1339
1336
  transform: rotate(180deg);
@@ -1362,7 +1359,7 @@ body {
1362
1359
  border: 1px solid var(--line);
1363
1360
  box-shadow: var(--shadow-overlay);
1364
1361
  transform-origin: top;
1365
- animation: ui-menu-down 200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
1362
+ animation: ui-menu-down var(--dur-nav) var(--ease-standard) both;
1366
1363
  }
1367
1364
  .ui-select-search {
1368
1365
  display: flex;
@@ -1383,7 +1380,7 @@ body {
1383
1380
  background: transparent;
1384
1381
  color: var(--ink);
1385
1382
  font: inherit;
1386
- font-size: 14px;
1383
+ font-size: var(--text-compact);
1387
1384
  }
1388
1385
  .ui-select-opt {
1389
1386
  display: flex;
@@ -1398,7 +1395,7 @@ body {
1398
1395
  background: transparent;
1399
1396
  color: var(--ink);
1400
1397
  font: inherit;
1401
- font-size: 15px;
1398
+ font-size: var(--text-control);
1402
1399
  text-align: left;
1403
1400
  cursor: pointer;
1404
1401
  }
@@ -1413,7 +1410,7 @@ body {
1413
1410
  }
1414
1411
  .ui-select-empty {
1415
1412
  padding: 10px;
1416
- font-size: 14px;
1413
+ font-size: var(--text-compact);
1417
1414
  color: var(--ink-muted);
1418
1415
  }
1419
1416
 
@@ -1445,7 +1442,7 @@ body {
1445
1442
  width: 28px;
1446
1443
  height: 28px;
1447
1444
  border: 0;
1448
- border-radius: 99px;
1445
+ border-radius: var(--radius-full);
1449
1446
  background: var(--surface-sub);
1450
1447
  color: var(--ink-muted);
1451
1448
  display: flex;
@@ -1469,7 +1466,7 @@ body {
1469
1466
  }
1470
1467
  .ui-count {
1471
1468
  font-family: var(--font-mono);
1472
- font-size: 13px;
1469
+ font-size: var(--text-small);
1473
1470
  color: var(--ink-muted);
1474
1471
  }
1475
1472
 
@@ -1490,14 +1487,14 @@ body {
1490
1487
  @media (prefers-reduced-motion: reduce) {
1491
1488
  .ui-draw,
1492
1489
  .ui-radio-dot {
1493
- animation: ui-fade 0.15s ease both;
1490
+ animation: ui-fade var(--dur-hover) ease both;
1494
1491
  stroke-dasharray: none;
1495
1492
  }
1496
1493
  .ui-select-menu {
1497
- animation: ui-fade 0.15s ease both;
1494
+ animation: ui-fade var(--dur-hover) ease both;
1498
1495
  }
1499
1496
  .ui-switch-thumb {
1500
- transition: background-color 0.15s ease !important;
1497
+ transition: background-color var(--dur-hover) ease !important;
1501
1498
  }
1502
1499
  }
1503
1500
 
@@ -1513,13 +1510,13 @@ body {
1513
1510
  box-shadow: var(--shadow-card);
1514
1511
  }
1515
1512
  .ui-kpi-label {
1516
- font-size: 14px;
1513
+ font-size: var(--text-compact);
1517
1514
  color: var(--ink-muted);
1518
1515
  }
1519
1516
  .ui-kpi-value {
1520
1517
  font-family: var(--font-mono);
1521
1518
  font-variant-numeric: tabular-nums;
1522
- font-size: 31px;
1519
+ font-size: var(--text-h2);
1523
1520
  line-height: 1.15;
1524
1521
  font-weight: 700;
1525
1522
  letter-spacing: -0.01em;
@@ -1527,6 +1524,8 @@ body {
1527
1524
  color: var(--ink);
1528
1525
  }
1529
1526
  .ui-kpi-unit {
1527
+ /* Units are words (個, 人, 天, ms): the text font, not the digits' Geist Mono. */
1528
+ font-family: var(--font-sans);
1530
1529
  margin-left: 4px;
1531
1530
  font-size: 0.5em;
1532
1531
  font-weight: 600;
@@ -1540,7 +1539,7 @@ body {
1540
1539
  flex-wrap: wrap;
1541
1540
  align-items: center;
1542
1541
  gap: 6px;
1543
- font-size: 13px;
1542
+ font-size: var(--text-small);
1544
1543
  }
1545
1544
  .ui-kpi-change {
1546
1545
  font-weight: 600;
@@ -1564,7 +1563,7 @@ body {
1564
1563
  flex-wrap: wrap;
1565
1564
  gap: 14px;
1566
1565
  margin-bottom: 10px;
1567
- font-size: 13px;
1566
+ font-size: var(--text-small);
1568
1567
  color: var(--ink-muted);
1569
1568
  }
1570
1569
  .ui-chart-legend > span {
@@ -1594,7 +1593,7 @@ body {
1594
1593
  }
1595
1594
  .ui-chart-tick {
1596
1595
  font-family: var(--font-mono);
1597
- font-size: 12px;
1596
+ font-size: var(--text-mini);
1598
1597
  fill: var(--ink-muted);
1599
1598
  color: var(--ink-muted);
1600
1599
  }
@@ -1612,7 +1611,7 @@ body {
1612
1611
  stroke-linecap: round;
1613
1612
  stroke-linejoin: round;
1614
1613
  stroke-dasharray: 1;
1615
- animation: ui-line-draw 900ms cubic-bezier(0.4, 0, 0.2, 1) both;
1614
+ animation: ui-line-draw var(--dur-chart) cubic-bezier(0.4, 0, 0.2, 1) both;
1616
1615
  }
1617
1616
  .ui-chart-hit {
1618
1617
  position: absolute;
@@ -1638,20 +1637,20 @@ body {
1638
1637
  width: 10px;
1639
1638
  height: 10px;
1640
1639
  margin: -5px 0 0 -5px;
1641
- border-radius: 99px;
1640
+ border-radius: var(--radius-full);
1642
1641
  box-shadow: 0 0 0 2px var(--surface);
1643
1642
  }
1644
1643
  .ui-chart-tip {
1645
1644
  position: absolute;
1646
1645
  top: 4px;
1647
- z-index: 5;
1646
+ z-index: var(--z-float);
1648
1647
  min-width: 120px;
1649
1648
  padding: 10px 12px;
1650
1649
  border-radius: var(--radius-md);
1651
1650
  background: var(--surface);
1652
1651
  border: 1px solid var(--line);
1653
1652
  box-shadow: var(--shadow-overlay);
1654
- font-size: 13px;
1653
+ font-size: var(--text-small);
1655
1654
  color: var(--ink);
1656
1655
  pointer-events: none;
1657
1656
  }
@@ -1675,7 +1674,7 @@ body {
1675
1674
  .ui-bars-labels {
1676
1675
  display: flex;
1677
1676
  margin-top: 4px;
1678
- font-size: 12px;
1677
+ font-size: var(--text-mini);
1679
1678
  color: var(--ink-muted);
1680
1679
  }
1681
1680
  .ui-chart-xlabels > span,
@@ -1730,8 +1729,8 @@ body {
1730
1729
  border-radius: 4px 4px 0 0;
1731
1730
  background: var(--chart-1);
1732
1731
  transform-origin: bottom;
1733
- animation: ui-bar-grow 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
1734
- transition: opacity 0.15s ease;
1732
+ animation: ui-bar-grow var(--dur-bar) var(--ease-standard) both;
1733
+ transition: opacity var(--dur-hover) ease;
1735
1734
  }
1736
1735
  .ui-bar-slot .ui-chart-tip {
1737
1736
  top: auto;
@@ -1748,34 +1747,41 @@ body {
1748
1747
  }
1749
1748
  .ui-progress-track {
1750
1749
  height: 8px;
1751
- border-radius: 99px;
1750
+ border-radius: var(--radius-full);
1752
1751
  background: var(--surface-sub);
1753
1752
  overflow: hidden;
1754
1753
  }
1755
1754
  .ui-progress-fill {
1756
1755
  height: 100%;
1757
- border-radius: 99px;
1756
+ border-radius: var(--radius-full);
1758
1757
  background: var(--accent);
1759
1758
  transition:
1760
- width 0.15s linear,
1761
- background-color 0.3s ease;
1759
+ width var(--dur-hover) linear,
1760
+ background-color var(--dur-toggle) ease;
1762
1761
  }
1763
1762
  .ui-progress.is-done .ui-progress-fill {
1764
1763
  background: var(--success);
1765
1764
  }
1765
+ /* In a table row the ground can be a selected row's accent-soft, where the solid green is under 3:1: the text green
1766
+ (4.5:1 there) instead. */
1767
+ .ui-dt-row .ui-progress.is-done .ui-progress-fill {
1768
+ background: var(--success-text);
1769
+ }
1766
1770
  .ui-progress-text {
1767
1771
  font-family: var(--font-mono);
1768
- font-size: 13px;
1772
+ font-size: var(--text-small);
1769
1773
  color: var(--ink-muted);
1770
1774
  }
1771
1775
  .ui-progress.is-done .ui-progress-text {
1776
+ /* 「完成 ✓」 is words: the text font; Geist Mono stays on the percentage. */
1777
+ font-family: var(--font-sans);
1772
1778
  color: var(--success-text);
1773
1779
  font-weight: 600;
1774
1780
  }
1775
1781
  .ui-loading {
1776
1782
  position: relative;
1777
1783
  height: 8px;
1778
- border-radius: 99px;
1784
+ border-radius: var(--radius-full);
1779
1785
  background: var(--surface-sub);
1780
1786
  overflow: hidden;
1781
1787
  }
@@ -1799,11 +1805,11 @@ body {
1799
1805
  position: absolute;
1800
1806
  top: 0;
1801
1807
  bottom: 0;
1802
- border-radius: 99px;
1808
+ border-radius: var(--radius-full);
1803
1809
  background: var(--accent);
1804
1810
  animation:
1805
- ui-drop-l 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite,
1806
- ui-drop-r 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
1811
+ ui-drop-l var(--dur-loop) cubic-bezier(0.65, 0, 0.35, 1) infinite,
1812
+ ui-drop-r var(--dur-loop) var(--ease-standard) infinite;
1807
1813
  }
1808
1814
  .ui-ring-track {
1809
1815
  fill: none;
@@ -1816,7 +1822,7 @@ body {
1816
1822
  }
1817
1823
  .ui-ring-text {
1818
1824
  font-family: var(--font-mono);
1819
- font-size: 15px;
1825
+ font-size: var(--text-control);
1820
1826
  font-weight: 700;
1821
1827
  fill: var(--ink);
1822
1828
  }
@@ -1824,7 +1830,7 @@ body {
1824
1830
  @media (prefers-reduced-motion: reduce) {
1825
1831
  .ui-chart-line,
1826
1832
  .ui-bar {
1827
- animation: ui-fade 0.2s ease both;
1833
+ animation: ui-fade var(--dur-nav) ease both;
1828
1834
  stroke-dasharray: none;
1829
1835
  }
1830
1836
  .ui-loading-drop {
@@ -1845,10 +1851,20 @@ body {
1845
1851
  container it cannot take its width from its content, so it fills its parent. */
1846
1852
  container: ui-dt / inline-size;
1847
1853
  width: 100%;
1854
+ /* Row grounds. Zebra rows are surface-sub; hover is a neutral wash of ink over surface (not accent: selection is
1855
+ accent). Text on each keeps 4.5:1 for ink, ink-muted and every *-text token (DataTable.test.tsx checks it). */
1856
+ --dt-zebra: var(--surface-sub);
1857
+ --dt-hover: color-mix(in srgb, var(--surface), var(--ink) 6%);
1858
+ }
1859
+ /* Dark: surface-sub rows stood out too much; half-way between surface and surface-sub. A 5 % wash keeps
1860
+ accent-text, danger-text and info-text above 4.5:1 (6 % gave 4.4:1). */
1861
+ [data-theme='dark'] .ui-dt {
1862
+ --dt-zebra: color-mix(in srgb, var(--surface), var(--surface-sub) 50%);
1863
+ --dt-hover: color-mix(in srgb, var(--surface), var(--ink) 5%);
1848
1864
  }
1849
1865
  .ui-dt-caption {
1850
1866
  /* The same size as a Card title: a table's heading is a block heading whether or not it sits in a card. */
1851
- font-size: 17px;
1867
+ font-size: var(--text-title);
1852
1868
  font-weight: 700;
1853
1869
  }
1854
1870
  .ui-dt-tools {
@@ -1857,10 +1873,125 @@ body {
1857
1873
  gap: 8px;
1858
1874
  }
1859
1875
  /* Search on the left; the count and every button in one group on the right that keeps to one line: when it runs out of
1860
- room the sort button's text is cut with … first. */
1876
+ room the sort button's text is cut with … first. Every control is 40 px tall. */
1861
1877
  .ui-dt-tools > .ui-dt-search {
1862
- flex: 0 1 260px;
1863
- min-width: 160px;
1878
+ position: relative;
1879
+ flex: 0 1 320px;
1880
+ min-width: 240px;
1881
+ }
1882
+ .ui-dt-search > .ui-searchfield {
1883
+ min-width: 0;
1884
+ }
1885
+ /* The search icon at 20 px, as in every input. */
1886
+ .ui-dt-search .ui-searchfield-icon {
1887
+ width: 20px;
1888
+ height: 20px;
1889
+ left: 12px;
1890
+ top: 10px;
1891
+ }
1892
+ .ui-dt-search .ui-input {
1893
+ padding-left: 40px;
1894
+ }
1895
+ /* 「/」 focuses the field (searchShortcut): a small key in the empty, unfocused field on desktop. */
1896
+ .ui-dt-kbd {
1897
+ position: absolute;
1898
+ top: 50%;
1899
+ right: 10px;
1900
+ transform: translateY(-50%);
1901
+ min-width: 20px;
1902
+ height: 22px;
1903
+ padding: 0 5px;
1904
+ box-sizing: border-box;
1905
+ display: inline-flex;
1906
+ align-items: center;
1907
+ justify-content: center;
1908
+ border: 1px solid var(--line-strong);
1909
+ border-radius: var(--radius-sm);
1910
+ color: var(--ink-muted);
1911
+ font-family: var(--font-mono);
1912
+ font-size: var(--text-mini);
1913
+ line-height: 1;
1914
+ pointer-events: none;
1915
+ }
1916
+ .ui-dt-actions > :is(.ui-dt-filterbtn, .ui-dt-sortbtn) {
1917
+ height: var(--control-height);
1918
+ }
1919
+ /* 「⋯」 (更多表格操作): quiet, but as tall as the other tools. */
1920
+ .ui-dt-actions > .ui-dt-menubtn {
1921
+ width: var(--control-height);
1922
+ height: var(--control-height);
1923
+ }
1924
+ /* Filters applied: the button says so in accent, besides its count. */
1925
+ .ui-dt-filterbtn.is-active {
1926
+ color: var(--accent-text);
1927
+ border-color: var(--accent);
1928
+ }
1929
+ /* 「已複製」 under the 「⋯」 button for 2 s after copying (the menu has closed). */
1930
+ .ui-dt-actions {
1931
+ position: relative;
1932
+ }
1933
+ .ui-dt-copied {
1934
+ position: absolute;
1935
+ top: calc(100% + 8px);
1936
+ right: 0;
1937
+ z-index: var(--z-tooltip);
1938
+ display: inline-flex;
1939
+ align-items: center;
1940
+ gap: 6px;
1941
+ padding: 6px 10px;
1942
+ border-radius: var(--radius-chip);
1943
+ background: var(--ink);
1944
+ color: var(--bg);
1945
+ font-size: var(--text-small);
1946
+ font-weight: 600;
1947
+ line-height: 1.4;
1948
+ white-space: nowrap;
1949
+ pointer-events: none;
1950
+ animation: ui-pop-fade var(--dur-hover) ease both;
1951
+ }
1952
+ .ui-dt-subcaret {
1953
+ margin-left: auto;
1954
+ color: var(--ink-muted);
1955
+ }
1956
+ /* The applied conditions under the toolbar: removable chips and 「清除全部」. */
1957
+ .ui-dt-chips {
1958
+ display: flex;
1959
+ flex-wrap: wrap;
1960
+ align-items: center;
1961
+ gap: var(--space-2);
1962
+ }
1963
+ .ui-dt-chip {
1964
+ display: inline-flex;
1965
+ align-items: center;
1966
+ gap: 4px;
1967
+ height: 32px;
1968
+ max-width: 100%;
1969
+ padding: 0 6px 0 12px;
1970
+ border: 1px solid var(--line-strong);
1971
+ border-radius: var(--radius-chip);
1972
+ background: var(--surface);
1973
+ color: var(--ink);
1974
+ font: inherit;
1975
+ font-size: var(--text-compact);
1976
+ cursor: pointer;
1977
+ }
1978
+ .ui-dt-chip-text {
1979
+ min-width: 0;
1980
+ overflow: hidden;
1981
+ text-overflow: ellipsis;
1982
+ white-space: nowrap;
1983
+ }
1984
+ .ui-dt-chip .ui-icon {
1985
+ color: var(--ink-muted);
1986
+ }
1987
+ .ui-dt-chip:hover {
1988
+ background: var(--surface-sub);
1989
+ }
1990
+ .ui-dt-chip:hover .ui-icon {
1991
+ color: var(--ink);
1992
+ }
1993
+ .ui-dt-chipclear {
1994
+ font-size: var(--text-compact);
1864
1995
  }
1865
1996
  .ui-dt-actions {
1866
1997
  flex: 1 1 auto;
@@ -1921,7 +2052,7 @@ body {
1921
2052
  .ui-dt-actions > .ui-dt-sortbtn {
1922
2053
  min-width: 0;
1923
2054
  }
1924
- .ui-dt-actions:has(> .ui-dt-zoombtn) .ui-dt-btntext {
2055
+ .ui-dt-actions:has(> .ui-dt-menubtn) .ui-dt-btntext {
1925
2056
  position: absolute;
1926
2057
  width: 1px;
1927
2058
  height: 1px;
@@ -1929,7 +2060,7 @@ body {
1929
2060
  clip: rect(0 0 0 0);
1930
2061
  white-space: nowrap;
1931
2062
  }
1932
- .ui-dt-actions:has(> .ui-dt-zoombtn) :is(.ui-dt-filterbtn, .ui-dt-sortbtn, .ui-dt-colbtn) {
2063
+ .ui-dt-actions:has(> .ui-dt-menubtn) :is(.ui-dt-filterbtn, .ui-dt-sortbtn) {
1933
2064
  padding-inline: 10px;
1934
2065
  }
1935
2066
  .ui-dt-actions {
@@ -1972,7 +2103,7 @@ body {
1972
2103
  pointer-events: none;
1973
2104
  background: linear-gradient(to right, transparent, var(--surface));
1974
2105
  opacity: 0;
1975
- transition: opacity 0.15s ease;
2106
+ transition: opacity var(--dur-hover) ease;
1976
2107
  }
1977
2108
  .ui-dt-scroller.has-more::after {
1978
2109
  opacity: 1;
@@ -2001,7 +2132,7 @@ body {
2001
2132
  background: var(--surface);
2002
2133
  }
2003
2134
  .ui-dt-body .ui-dt-row.is-even {
2004
- background: var(--surface-sub);
2135
+ background: var(--dt-zebra);
2005
2136
  }
2006
2137
  .ui-dt-body {
2007
2138
  position: relative;
@@ -2010,15 +2141,83 @@ body {
2010
2141
  transition: background-color 0.12s ease;
2011
2142
  }
2012
2143
  .ui-dt-body .ui-dt-row:hover {
2013
- background: var(--accent-soft);
2144
+ background: var(--dt-hover);
2014
2145
  }
2015
- /* EC: rows with details are clickable as a whole; the hover above already shows it. */
2016
- .ui-dt-body .ui-dt-row.has-exp {
2146
+ /* EC: rows with details or a page (rowHref) are clickable as a whole; the hover above already shows it. */
2147
+ .ui-dt-body .ui-dt-row:is(.has-exp, .has-href) {
2017
2148
  cursor: pointer;
2018
2149
  }
2019
- .ui-dt-body .ui-dt-row.is-selected {
2150
+ /* Selected: accent-soft and a 3 px accent bar on the left. The row a keyboard is in: a 2 px bar only. The bar sits on
2151
+ the first cell, so a sticky first cell (stickyFirst) does not cover it. */
2152
+ .ui-dt-body .ui-dt-row {
2153
+ --dt-mark: 0 0 transparent;
2154
+ }
2155
+ .ui-dt-body .ui-dt-row:has(:focus-visible) {
2156
+ --dt-mark: inset 2px 0 0 var(--accent);
2157
+ }
2158
+ .ui-dt-body .ui-dt-row.is-selected,
2159
+ .ui-dt-body .ui-dt-row.is-selected:hover {
2160
+ --dt-mark: inset 3px 0 0 var(--accent);
2020
2161
  background: var(--accent-soft);
2021
2162
  }
2163
+ .ui-dt-body .ui-dt-row > .ui-dt-cell:first-child {
2164
+ box-shadow: var(--dt-mark);
2165
+ }
2166
+ /* rowHref: the first cell's text is the row's link. */
2167
+ .ui-dt-rowlink {
2168
+ color: inherit;
2169
+ font-weight: 600;
2170
+ text-decoration: none;
2171
+ border-radius: var(--radius-sm);
2172
+ min-width: 0;
2173
+ }
2174
+ .ui-dt-row:hover .ui-dt-rowlink,
2175
+ .ui-dt-rowlink:hover {
2176
+ text-decoration: underline;
2177
+ text-underline-offset: 3px;
2178
+ }
2179
+ /* secondary: a second line under the cell's text, smaller and muted, one line cut with …. */
2180
+ .ui-dt-stack {
2181
+ display: flex;
2182
+ flex-direction: column;
2183
+ justify-content: center;
2184
+ min-width: 0;
2185
+ max-width: 100%;
2186
+ padding-block: 6px;
2187
+ }
2188
+ .ui-dt-cell.is-num .ui-dt-stack {
2189
+ align-items: flex-end;
2190
+ }
2191
+ .ui-dt-main {
2192
+ display: flex;
2193
+ align-items: center;
2194
+ min-width: 0;
2195
+ max-width: 100%;
2196
+ }
2197
+ .ui-dt-sub {
2198
+ min-width: 0;
2199
+ max-width: 100%;
2200
+ overflow: hidden;
2201
+ text-overflow: ellipsis;
2202
+ white-space: nowrap;
2203
+ font-family: var(--font-sans);
2204
+ font-size: var(--text-small);
2205
+ line-height: 20px;
2206
+ font-weight: 400;
2207
+ color: var(--ink-muted);
2208
+ }
2209
+ /* Dates: <time>, figures of one width so a column of times lines up. */
2210
+ .ui-dt-time {
2211
+ /* Dates and 「2 小時前」 hold words: the text font, with figures of one width so a column of times lines up. */
2212
+ font-family: var(--font-sans);
2213
+ font-variant-numeric: tabular-nums;
2214
+ white-space: nowrap;
2215
+ }
2216
+ /* Hugging columns are measured on one line (DataTable adds is-measuring for the read only). */
2217
+ .ui-dt.is-measuring .ui-dt-cell.is-hug {
2218
+ white-space: nowrap;
2219
+ }
2220
+
2022
2221
  .ui-dt-body .ui-dt-row:last-child {
2023
2222
  border-bottom: 0;
2024
2223
  }
@@ -2026,7 +2225,7 @@ body {
2026
2225
  position: absolute;
2027
2226
  left: 0;
2028
2227
  right: 0;
2029
- z-index: 0;
2228
+ z-index: var(--z-base);
2030
2229
  pointer-events: none;
2031
2230
  }
2032
2231
  .ui-dt-cell {
@@ -2051,10 +2250,12 @@ body {
2051
2250
  .ui-dt-head {
2052
2251
  position: sticky;
2053
2252
  top: 0;
2054
- z-index: 2;
2253
+ z-index: var(--z-sticky);
2055
2254
  min-height: 44px;
2056
2255
  background: var(--surface-sub);
2057
- font-size: 14px;
2256
+ /* Its own level: a stronger line under the headings than between rows. */
2257
+ border-bottom-color: var(--line-strong);
2258
+ font-size: var(--text-compact);
2058
2259
  font-weight: 700;
2059
2260
  color: var(--ink);
2060
2261
  white-space: nowrap;
@@ -2104,17 +2305,17 @@ body {
2104
2305
  .ui-dt-cell.is-num .ui-dt-sort {
2105
2306
  flex-direction: row-reverse;
2106
2307
  }
2107
- .ui-dt-sort:focus-visible {
2108
- outline: none;
2109
- box-shadow: 0 0 0 3px var(--focus-ring);
2110
- }
2111
2308
  .ui-dt-arrow {
2112
2309
  opacity: 0;
2310
+ color: var(--ink-muted);
2113
2311
  transition: opacity 0.12s ease;
2114
2312
  }
2115
2313
  .ui-dt-sort:hover .ui-dt-arrow,
2116
2314
  .ui-dt-sort:focus-visible .ui-dt-arrow {
2117
- opacity: 0.55;
2315
+ opacity: 1;
2316
+ }
2317
+ .ui-dt-sort.is-on .ui-dt-arrow {
2318
+ color: inherit;
2118
2319
  }
2119
2320
  .ui-dt-sort.is-on {
2120
2321
  color: var(--accent-text);
@@ -2126,10 +2327,6 @@ body {
2126
2327
  padding: 0;
2127
2328
  cursor: pointer;
2128
2329
  }
2129
- .ui-dt-check:focus-visible {
2130
- outline: none;
2131
- box-shadow: 0 0 0 3px var(--focus-ring);
2132
- }
2133
2330
  .ui-dt-sel > *,
2134
2331
  .ui-dt-acts > * {
2135
2332
  transition: opacity 0.12s ease;
@@ -2172,7 +2369,7 @@ body {
2172
2369
  border-right: 0;
2173
2370
  }
2174
2371
  .ui-dt-bulk-count {
2175
- font-size: 14px;
2372
+ font-size: var(--text-compact);
2176
2373
  }
2177
2374
  .ui-dt-bulk-actions {
2178
2375
  margin-left: auto;
@@ -2204,7 +2401,7 @@ body {
2204
2401
  gap: 12px;
2205
2402
  }
2206
2403
  .ui-dt-range {
2207
- font-size: 13px;
2404
+ font-size: var(--text-small);
2208
2405
  color: var(--ink-muted);
2209
2406
  }
2210
2407
  .ui-dt-pages {
@@ -2233,19 +2430,18 @@ body {
2233
2430
  opacity: 0.4;
2234
2431
  cursor: default;
2235
2432
  }
2236
- .ui-dt-page:focus-visible {
2237
- outline: none;
2238
- box-shadow: 0 0 0 3px var(--focus-ring);
2239
- }
2240
2433
 
2241
2434
  .ui-dt-summary {
2242
2435
  margin-bottom: var(--space-3);
2243
- }
2244
- .ui-dt-summary {
2245
2436
  align-self: flex-start;
2437
+ /* Wider than the table (phones): the row scrolls sideways, the edge with more tabs fades (Tabs), and it comes to rest
2438
+ on a whole tab rather than in the middle of a word. */
2439
+ scroll-snap-type: x mandatory;
2440
+ scroll-padding-inline: 4px;
2246
2441
  }
2247
2442
  .ui-dt-summary .ui-tab {
2248
2443
  white-space: nowrap;
2444
+ scroll-snap-align: start;
2249
2445
  }
2250
2446
  .ui-dt-cell.is-long > .ui-dt-long {
2251
2447
  /* As wide as the column: the text is cut where the column ends, not after a set number of characters. */
@@ -2256,6 +2452,12 @@ body {
2256
2452
  text-overflow: ellipsis;
2257
2453
  white-space: nowrap;
2258
2454
  }
2455
+ /* A link inside a cut text that has keyboard focus could sit past the cut, out of sight: while focus is inside, the
2456
+ text shows in full (the row grows) so the focused link and its outline are seen. */
2457
+ .ui-dt-cell.is-long > .ui-dt-long:has(:focus-visible) {
2458
+ white-space: normal;
2459
+ overflow: visible;
2460
+ }
2259
2461
  .ui-dt-more {
2260
2462
  display: none;
2261
2463
  }
@@ -2286,12 +2488,8 @@ body {
2286
2488
  .ui-dt-exp-btn:hover {
2287
2489
  color: var(--ink);
2288
2490
  }
2289
- .ui-dt-exp-btn:focus-visible {
2290
- outline: none;
2291
- box-shadow: inset 0 0 0 2px var(--accent);
2292
- }
2293
2491
  .ui-dt-exp-btn .ui-icon {
2294
- transition: transform 0.2s ease;
2492
+ transition: transform var(--dur-nav) ease;
2295
2493
  }
2296
2494
  .ui-dt-exp-btn.is-open .ui-icon {
2297
2495
  transform: rotate(90deg);
@@ -2301,7 +2499,7 @@ body {
2301
2499
  border-bottom: 1px solid var(--line);
2302
2500
  }
2303
2501
  .ui-dt-detail.is-even {
2304
- background: var(--surface-sub);
2502
+ background: var(--dt-zebra);
2305
2503
  }
2306
2504
  .ui-dt-detail-cell {
2307
2505
  display: flex;
@@ -2311,7 +2509,7 @@ body {
2311
2509
  max-width: 72em;
2312
2510
  }
2313
2511
  .ui-dt-detail-label {
2314
- font-size: 13px;
2512
+ font-size: var(--text-small);
2315
2513
  line-height: 20px;
2316
2514
  color: var(--ink-muted);
2317
2515
  }
@@ -2345,9 +2543,6 @@ body {
2345
2543
  border: 0;
2346
2544
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
2347
2545
  }
2348
- .ui-dt-colbtn {
2349
- display: none !important;
2350
- }
2351
2546
  .ui-dt-body .ui-dt-row {
2352
2547
  display: grid;
2353
2548
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
@@ -2366,8 +2561,15 @@ body {
2366
2561
  }
2367
2562
  .ui-dt-body .ui-dt-row.is-selected {
2368
2563
  background: var(--accent-soft) !important;
2564
+ box-shadow: inset 3px 0 0 var(--accent);
2565
+ }
2566
+ .ui-dt-body .ui-dt-row > .ui-dt-cell:first-child {
2369
2567
  box-shadow: none;
2370
2568
  }
2569
+ .ui-dt-kbd {
2570
+ display: none;
2571
+ }
2572
+
2371
2573
  .ui-dt-body .ui-dt-cell {
2372
2574
  grid-column: 1 / -1;
2373
2575
  display: block;
@@ -2387,7 +2589,7 @@ body {
2387
2589
  margin-bottom: 0;
2388
2590
  color: var(--ink-muted);
2389
2591
  font-family: var(--font-sans);
2390
- font-size: 12px;
2592
+ font-size: var(--text-mini);
2391
2593
  line-height: 18px;
2392
2594
  font-weight: 400;
2393
2595
  white-space: nowrap;
@@ -2447,7 +2649,7 @@ body {
2447
2649
  min-width: 0;
2448
2650
  padding-left: 6px;
2449
2651
  padding-right: 6px;
2450
- font-size: 14px;
2652
+ font-size: var(--text-compact);
2451
2653
  }
2452
2654
  .ui-dt-body .ui-dt-cell.is-long > .ui-dt-long {
2453
2655
  max-width: none;
@@ -2466,33 +2668,10 @@ body {
2466
2668
  background: transparent;
2467
2669
  color: var(--accent-text);
2468
2670
  font: inherit;
2469
- font-size: 13px;
2671
+ font-size: var(--text-small);
2470
2672
  font-weight: 600;
2471
2673
  cursor: pointer;
2472
2674
  }
2473
- .ui-dt-body .ui-badge {
2474
- height: auto;
2475
- padding: 0;
2476
- gap: 6px;
2477
- background: transparent;
2478
- box-shadow: none;
2479
- font-weight: 600;
2480
- }
2481
- .ui-dt-body .ui-badge-done {
2482
- color: var(--success-text);
2483
- }
2484
- .ui-dt-body .ui-badge-fail {
2485
- color: var(--danger-text);
2486
- }
2487
- .ui-dt-body .ui-badge-review {
2488
- color: var(--warning-text);
2489
- }
2490
- .ui-dt-body .ui-badge-doing {
2491
- color: var(--accent-text);
2492
- }
2493
- .ui-dt-body .ui-badge-draft {
2494
- color: var(--ink-muted);
2495
- }
2496
2675
  }
2497
2676
  @media (prefers-reduced-motion: reduce) {
2498
2677
  .ui-dt-body .ui-dt-row {
@@ -2524,12 +2703,12 @@ body {
2524
2703
  border-radius: var(--radius-chip);
2525
2704
  background: var(--ink);
2526
2705
  color: var(--bg);
2527
- font-size: 13px;
2706
+ font-size: var(--text-small);
2528
2707
  font-weight: 600;
2529
2708
  line-height: 1.4;
2530
2709
  white-space: nowrap;
2531
2710
  pointer-events: none;
2532
- animation: ui-pop-scale 220ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
2711
+ animation: ui-pop-scale var(--dur-tooltip) var(--ease-spring) both;
2533
2712
  }
2534
2713
  .ui-tooltip {
2535
2714
  transform-origin: var(--transform-origin);
@@ -2549,10 +2728,6 @@ body {
2549
2728
  cursor: default;
2550
2729
  border-radius: var(--radius-sm);
2551
2730
  }
2552
- .ui-dt-long.is-cut:focus-visible {
2553
- outline: none;
2554
- box-shadow: 0 0 0 3px var(--focus-ring);
2555
- }
2556
2731
  .ui-tooltip-arrow {
2557
2732
  position: absolute;
2558
2733
  width: 8px;
@@ -2566,6 +2741,12 @@ body {
2566
2741
  .ui-tooltip[data-side='bottom'] .ui-tooltip-arrow {
2567
2742
  top: -4px;
2568
2743
  }
2744
+ .ui-tooltip[data-side='right'] .ui-tooltip-arrow {
2745
+ left: -4px;
2746
+ }
2747
+ .ui-tooltip[data-side='left'] .ui-tooltip-arrow {
2748
+ right: -4px;
2749
+ }
2569
2750
 
2570
2751
  .ui-menu-trigger {
2571
2752
  border-color: transparent;
@@ -2582,7 +2763,7 @@ body {
2582
2763
  background: var(--surface);
2583
2764
  border: 1px solid var(--line);
2584
2765
  box-shadow: var(--shadow-overlay);
2585
- animation: ui-pop-scale 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
2766
+ animation: ui-pop-scale var(--dur-menu) var(--ease-standard) both;
2586
2767
  }
2587
2768
  .ui-menu-item {
2588
2769
  display: flex;
@@ -2596,7 +2777,7 @@ body {
2596
2777
  background: transparent;
2597
2778
  color: var(--ink);
2598
2779
  font: inherit;
2599
- font-size: 14px;
2780
+ font-size: var(--text-compact);
2600
2781
  text-align: left;
2601
2782
  white-space: nowrap;
2602
2783
  cursor: pointer;
@@ -2624,7 +2805,7 @@ body {
2624
2805
  .ui-menu-kbd {
2625
2806
  margin-left: 16px;
2626
2807
  font-family: var(--font-mono);
2627
- font-size: 12px;
2808
+ font-size: var(--text-mini);
2628
2809
  color: var(--ink-muted);
2629
2810
  }
2630
2811
  .ui-menu-item.is-danger .ui-menu-kbd {
@@ -2645,10 +2826,10 @@ body {
2645
2826
  height: 20px;
2646
2827
  padding: 0 6px;
2647
2828
  box-sizing: border-box;
2648
- border-radius: 99px;
2829
+ border-radius: var(--radius-full);
2649
2830
  background: var(--accent);
2650
2831
  color: var(--on-accent);
2651
- font-size: 12px;
2832
+ font-size: var(--text-mini);
2652
2833
  display: inline-flex;
2653
2834
  align-items: center;
2654
2835
  justify-content: center;
@@ -2662,7 +2843,7 @@ body {
2662
2843
  background: var(--surface);
2663
2844
  border: 1px solid var(--line);
2664
2845
  box-shadow: var(--shadow-overlay);
2665
- animation: ui-pop-fade 150ms ease both;
2846
+ animation: ui-pop-fade var(--dur-hover) ease both;
2666
2847
  }
2667
2848
  .ui-popover-arrow {
2668
2849
  position: absolute;
@@ -2689,18 +2870,18 @@ body {
2689
2870
  .ui-drawer-backdrop {
2690
2871
  position: fixed;
2691
2872
  inset: 0;
2692
- z-index: 800;
2873
+ z-index: var(--z-drawer);
2693
2874
  background: var(--scrim);
2694
2875
  backdrop-filter: blur(4px);
2695
2876
  -webkit-backdrop-filter: blur(4px);
2696
- transition: opacity 300ms ease;
2877
+ transition: opacity var(--dur-toggle) ease;
2697
2878
  }
2698
2879
  .ui-drawer-backdrop:is([data-starting-style], [data-ending-style]) {
2699
2880
  opacity: 0;
2700
2881
  }
2701
2882
  .ui-drawer {
2702
2883
  position: fixed;
2703
- z-index: 801;
2884
+ z-index: calc(var(--z-drawer) + 1);
2704
2885
  top: 0;
2705
2886
  right: 0;
2706
2887
  bottom: 0;
@@ -2710,15 +2891,15 @@ body {
2710
2891
  flex-direction: column;
2711
2892
  background: var(--surface);
2712
2893
  box-shadow: var(--shadow-overlay);
2713
- transition: transform 450ms cubic-bezier(0.34, 1.4, 0.64, 1);
2894
+ transition: transform var(--dur-drawer) var(--ease-spring);
2714
2895
  }
2715
2896
  .ui-drawer[data-starting-style] {
2716
2897
  transform: translateX(105%);
2717
2898
  }
2718
2899
  .ui-drawer[data-ending-style] {
2719
2900
  transform: translateX(105%);
2720
- transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2721
- transition-duration: 300ms;
2901
+ transition-timing-function: var(--ease-exit);
2902
+ transition-duration: var(--dur-toggle);
2722
2903
  }
2723
2904
  .ui-drawer.is-left {
2724
2905
  right: auto;
@@ -2737,7 +2918,7 @@ body {
2737
2918
  border-bottom: 1px solid var(--line);
2738
2919
  }
2739
2920
  .ui-drawer-title {
2740
- font-size: 20px;
2921
+ font-size: var(--text-h4);
2741
2922
  font-weight: 700;
2742
2923
  }
2743
2924
  .ui-drawer-head .ui-dialog-close {
@@ -2763,10 +2944,10 @@ body {
2763
2944
  @media (prefers-reduced-motion: reduce) {
2764
2945
  .ui-tooltip,
2765
2946
  .ui-menu {
2766
- animation: ui-pop-fade 150ms ease both;
2947
+ animation: ui-pop-fade var(--dur-hover) ease both;
2767
2948
  }
2768
2949
  .ui-drawer {
2769
- transition: opacity 200ms ease;
2950
+ transition: opacity var(--dur-nav) ease;
2770
2951
  }
2771
2952
  .ui-drawer:is([data-starting-style], [data-ending-style]) {
2772
2953
  transform: none;
@@ -2778,11 +2959,11 @@ body {
2778
2959
  html.ui-theme-fade,
2779
2960
  html.ui-theme-fade * {
2780
2961
  transition:
2781
- background-color 300ms ease,
2782
- color 300ms ease,
2783
- border-color 300ms ease,
2784
- fill 300ms ease,
2785
- stroke 300ms ease !important;
2962
+ background-color var(--dur-toggle) ease,
2963
+ color var(--dur-toggle) ease,
2964
+ border-color var(--dur-toggle) ease,
2965
+ fill var(--dur-toggle) ease,
2966
+ stroke var(--dur-toggle) ease !important;
2786
2967
  }
2787
2968
  .ui-themepick {
2788
2969
  display: grid;
@@ -2800,7 +2981,7 @@ html.ui-theme-fade * {
2800
2981
  background: transparent;
2801
2982
  color: var(--ink);
2802
2983
  font: inherit;
2803
- font-size: 13px;
2984
+ font-size: var(--text-small);
2804
2985
  cursor: pointer;
2805
2986
  }
2806
2987
  .ui-themepick-opt.is-on {
@@ -2808,10 +2989,6 @@ html.ui-theme-fade * {
2808
2989
  padding: 5px;
2809
2990
  font-weight: 700;
2810
2991
  }
2811
- .ui-themepick-opt:focus-visible {
2812
- outline: none;
2813
- box-shadow: 0 0 0 3px var(--focus-ring);
2814
- }
2815
2992
  .ui-themepick-mini {
2816
2993
  position: relative;
2817
2994
  display: block;
@@ -2869,7 +3046,7 @@ html.ui-theme-fade * {
2869
3046
  height: 28px;
2870
3047
  padding: 0;
2871
3048
  border: 0;
2872
- border-radius: 99px;
3049
+ border-radius: var(--radius-full);
2873
3050
  display: inline-flex;
2874
3051
  align-items: center;
2875
3052
  justify-content: center;
@@ -2883,12 +3060,6 @@ html.ui-theme-fade * {
2883
3060
  0 0 0 2px var(--surface),
2884
3061
  0 0 0 4px currentColor;
2885
3062
  }
2886
- .ui-swatch:focus-visible {
2887
- outline: none;
2888
- box-shadow:
2889
- 0 0 0 2px var(--surface),
2890
- 0 0 0 4px var(--focus-ring);
2891
- }
2892
3063
  .ui-accentpick-hex {
2893
3064
  display: flex;
2894
3065
  align-items: center;
@@ -2924,6 +3095,9 @@ html.ui-theme-fade * {
2924
3095
  color: var(--ink-muted);
2925
3096
  font-weight: 400;
2926
3097
  }
3098
+ .ui-link-btn:focus-visible {
3099
+ border-radius: var(--radius-xs);
3100
+ }
2927
3101
  .ui-link {
2928
3102
  color: var(--accent-text);
2929
3103
  font-weight: 600;
@@ -2949,11 +3123,11 @@ html.ui-theme-fade * {
2949
3123
  height: 18px;
2950
3124
  padding: 0 5px;
2951
3125
  box-sizing: border-box;
2952
- border-radius: 99px;
3126
+ border-radius: var(--radius-full);
2953
3127
  background: var(--danger);
2954
- color: var(--on-solid);
3128
+ color: var(--on-danger);
2955
3129
  font-family: var(--font-mono);
2956
- font-size: 11px;
3130
+ font-size: var(--text-mini);
2957
3131
  font-weight: 700;
2958
3132
  line-height: 18px;
2959
3133
  text-align: center;
@@ -2970,7 +3144,7 @@ html.ui-theme-fade * {
2970
3144
  border: 1px solid var(--line);
2971
3145
  box-shadow: var(--shadow-overlay);
2972
3146
  overflow: hidden;
2973
- animation: ui-pop-fade 150ms ease both;
3147
+ animation: ui-pop-fade var(--dur-hover) ease both;
2974
3148
  }
2975
3149
  .ui-noti-head {
2976
3150
  display: flex;
@@ -2981,7 +3155,7 @@ html.ui-theme-fade * {
2981
3155
  border-bottom: 1px solid var(--line);
2982
3156
  }
2983
3157
  .ui-noti-title {
2984
- font-size: 17px;
3158
+ font-size: var(--text-title);
2985
3159
  font-weight: 700;
2986
3160
  }
2987
3161
  .ui-noti-readall {
@@ -2992,7 +3166,7 @@ html.ui-theme-fade * {
2992
3166
  background: transparent;
2993
3167
  color: var(--accent-text);
2994
3168
  font: inherit;
2995
- font-size: 13px;
3169
+ font-size: var(--text-small);
2996
3170
  font-weight: 600;
2997
3171
  cursor: pointer;
2998
3172
  }
@@ -3004,7 +3178,7 @@ html.ui-theme-fade * {
3004
3178
  }
3005
3179
  .ui-noti-group {
3006
3180
  padding: 10px 16px 4px;
3007
- font-size: 12px;
3181
+ font-size: var(--text-mini);
3008
3182
  font-weight: 700;
3009
3183
  color: var(--ink-muted);
3010
3184
  }
@@ -3031,7 +3205,7 @@ html.ui-theme-fade * {
3031
3205
  top: 17px;
3032
3206
  width: 8px;
3033
3207
  height: 8px;
3034
- border-radius: 99px;
3208
+ border-radius: var(--radius-full);
3035
3209
  background: var(--accent);
3036
3210
  }
3037
3211
  .ui-noti-text {
@@ -3040,17 +3214,17 @@ html.ui-theme-fade * {
3040
3214
  min-width: 0;
3041
3215
  }
3042
3216
  .ui-noti-t {
3043
- font-size: 14px;
3217
+ font-size: var(--text-compact);
3044
3218
  font-weight: 600;
3045
3219
  }
3046
3220
  .ui-noti-b {
3047
- font-size: 13px;
3221
+ font-size: var(--text-small);
3048
3222
  color: var(--ink-muted);
3049
3223
  }
3050
3224
  .ui-noti-time {
3051
3225
  margin-top: 2px;
3052
3226
  font-family: var(--font-mono);
3053
- font-size: 12px;
3227
+ font-size: var(--text-mini);
3054
3228
  color: var(--ink-muted);
3055
3229
  }
3056
3230
  .ui-noti-empty {
@@ -3073,13 +3247,8 @@ html.ui-theme-fade * {
3073
3247
  background: var(--surface-input);
3074
3248
  color: var(--ink);
3075
3249
  }
3076
- .ui-datefield:focus-within,
3077
3250
  .ui-datefield.is-open {
3078
3251
  border-color: var(--accent);
3079
- box-shadow: 0 0 0 3px var(--focus-ring);
3080
- }
3081
- .ui-datefield.is-invalid {
3082
- border-color: var(--danger);
3083
3252
  }
3084
3253
  .ui-datefield-input,
3085
3254
  .ui-pwfield-input {
@@ -3092,7 +3261,7 @@ html.ui-theme-fade * {
3092
3261
  background: transparent;
3093
3262
  color: var(--ink);
3094
3263
  font: inherit;
3095
- font-size: 15px;
3264
+ font-size: var(--text-control);
3096
3265
  }
3097
3266
  .ui-datefield-input {
3098
3267
  font-family: var(--font-mono);
@@ -3119,7 +3288,7 @@ html.ui-theme-fade * {
3119
3288
  padding: 0 var(--space-3);
3120
3289
  font: inherit;
3121
3290
  font-family: var(--font-mono);
3122
- font-size: 14px;
3291
+ font-size: var(--text-compact);
3123
3292
  text-align: left;
3124
3293
  cursor: pointer;
3125
3294
  }
@@ -3132,7 +3301,7 @@ html.ui-theme-fade * {
3132
3301
  background: var(--surface);
3133
3302
  border: 1px solid var(--line);
3134
3303
  box-shadow: var(--shadow-overlay);
3135
- animation: ui-pop-fade 150ms ease both;
3304
+ animation: ui-pop-fade var(--dur-hover) ease both;
3136
3305
  }
3137
3306
  .ui-rangepop {
3138
3307
  display: flex;
@@ -3142,7 +3311,7 @@ html.ui-theme-fade * {
3142
3311
  display: flex;
3143
3312
  justify-content: space-between;
3144
3313
  margin-top: 8px;
3145
- font-size: 13px;
3314
+ font-size: var(--text-small);
3146
3315
  }
3147
3316
  .ui-cal {
3148
3317
  width: 266px;
@@ -3178,7 +3347,7 @@ html.ui-theme-fade * {
3178
3347
  }
3179
3348
  .ui-cal-wk {
3180
3349
  height: 24px;
3181
- font-size: 12px;
3350
+ font-size: var(--text-mini);
3182
3351
  color: var(--ink-muted);
3183
3352
  text-align: center;
3184
3353
  }
@@ -3207,7 +3376,7 @@ html.ui-theme-fade * {
3207
3376
  color: var(--ink);
3208
3377
  font: inherit;
3209
3378
  font-family: var(--font-mono);
3210
- font-size: 14px;
3379
+ font-size: var(--text-compact);
3211
3380
  cursor: pointer;
3212
3381
  }
3213
3382
  .ui-cal-day:hover {
@@ -3230,16 +3399,12 @@ html.ui-theme-fade * {
3230
3399
  width: 4px;
3231
3400
  height: 4px;
3232
3401
  margin-left: -2px;
3233
- border-radius: 99px;
3402
+ border-radius: var(--radius-full);
3234
3403
  background: var(--accent-text);
3235
3404
  }
3236
3405
  .ui-cal-day.is-today.is-sel::after {
3237
3406
  background: var(--on-accent);
3238
3407
  }
3239
- .ui-cal-day:focus-visible {
3240
- outline: none;
3241
- box-shadow: 0 0 0 3px var(--focus-ring);
3242
- }
3243
3408
  .ui-quick {
3244
3409
  display: flex;
3245
3410
  flex-direction: column;
@@ -3256,7 +3421,7 @@ html.ui-theme-fade * {
3256
3421
  background: transparent;
3257
3422
  color: var(--ink);
3258
3423
  font: inherit;
3259
- font-size: 14px;
3424
+ font-size: var(--text-compact);
3260
3425
  text-align: left;
3261
3426
  white-space: nowrap;
3262
3427
  cursor: pointer;
@@ -3306,8 +3471,8 @@ html.ui-theme-fade * {
3306
3471
  border-radius: var(--radius-md);
3307
3472
  color: var(--ink-muted);
3308
3473
  transition:
3309
- background-color 0.15s ease,
3310
- border-color 0.15s ease;
3474
+ background-color var(--dur-hover) ease,
3475
+ border-color var(--dur-hover) ease;
3311
3476
  }
3312
3477
  .ui-dropline.is-drag {
3313
3478
  border-color: var(--accent);
@@ -3316,10 +3481,10 @@ html.ui-theme-fade * {
3316
3481
  .ui-dropline-text {
3317
3482
  flex: 1 1 auto;
3318
3483
  color: var(--ink);
3319
- font-size: 14px;
3484
+ font-size: var(--text-compact);
3320
3485
  }
3321
3486
  .ui-dropline-limit {
3322
- font-size: 13px;
3487
+ font-size: var(--text-small);
3323
3488
  }
3324
3489
  .ui-upload-list {
3325
3490
  list-style: none;
@@ -3367,13 +3532,13 @@ html.ui-theme-fade * {
3367
3532
  .ui-upload-size {
3368
3533
  flex: 0 0 auto;
3369
3534
  font-family: var(--font-mono);
3370
- font-size: 13px;
3535
+ font-size: var(--text-small);
3371
3536
  color: var(--ink-muted);
3372
3537
  }
3373
3538
  .ui-upload-error {
3374
3539
  display: flex;
3375
3540
  gap: 12px;
3376
- font-size: 13px;
3541
+ font-size: var(--text-small);
3377
3542
  color: var(--danger-text);
3378
3543
  }
3379
3544
 
@@ -3392,10 +3557,6 @@ html.ui-theme-fade * {
3392
3557
  cursor: text;
3393
3558
  overflow: hidden;
3394
3559
  }
3395
- .ui-ms:focus-within {
3396
- border-color: var(--accent);
3397
- box-shadow: 0 0 0 3px var(--focus-ring);
3398
- }
3399
3560
  .ui-chip {
3400
3561
  display: inline-flex;
3401
3562
  align-items: center;
@@ -3404,7 +3565,7 @@ html.ui-theme-fade * {
3404
3565
  padding: 0 4px 0 10px;
3405
3566
  border-radius: var(--radius-chip);
3406
3567
  background: var(--surface-sub);
3407
- font-size: 14px;
3568
+ font-size: var(--text-compact);
3408
3569
  white-space: nowrap;
3409
3570
  }
3410
3571
  .ui-chip-x {
@@ -3428,7 +3589,7 @@ html.ui-theme-fade * {
3428
3589
  border-radius: var(--radius-chip);
3429
3590
  background: var(--accent-soft);
3430
3591
  color: var(--accent-text);
3431
- font-size: 13px;
3592
+ font-size: var(--text-small);
3432
3593
  font-weight: 700;
3433
3594
  line-height: 28px;
3434
3595
  white-space: nowrap;
@@ -3442,7 +3603,7 @@ html.ui-theme-fade * {
3442
3603
  background: transparent;
3443
3604
  color: var(--ink);
3444
3605
  font: inherit;
3445
- font-size: 15px;
3606
+ font-size: var(--text-control);
3446
3607
  }
3447
3608
  .ui-ms-opt {
3448
3609
  justify-content: flex-start;
@@ -3470,7 +3631,7 @@ html.ui-theme-fade * {
3470
3631
  }
3471
3632
  .ui-errorpage-code {
3472
3633
  font-family: var(--font-mono);
3473
- font-size: 96px;
3634
+ font-size: 96px; /* token-exempt: ErrorPage status code, one use */
3474
3635
  line-height: 1;
3475
3636
  font-weight: 700;
3476
3637
  color: var(--accent-text);
@@ -3478,7 +3639,7 @@ html.ui-theme-fade * {
3478
3639
  }
3479
3640
  .ui-errorpage-title {
3480
3641
  margin: 0;
3481
- font-size: 25px;
3642
+ font-size: var(--text-h3);
3482
3643
  font-weight: 700;
3483
3644
  }
3484
3645
  .ui-errorpage-desc {
@@ -3521,7 +3682,7 @@ html.ui-theme-fade * {
3521
3682
  }
3522
3683
  .ui-login-title {
3523
3684
  margin: 0;
3524
- font-size: 25px;
3685
+ font-size: var(--text-h3);
3525
3686
  font-weight: 700;
3526
3687
  }
3527
3688
  .ui-login-pwlabel {
@@ -3538,13 +3699,6 @@ html.ui-theme-fade * {
3538
3699
  border-radius: var(--radius-md);
3539
3700
  background: var(--surface-input);
3540
3701
  }
3541
- .ui-pwfield:focus-within {
3542
- border-color: var(--accent);
3543
- box-shadow: 0 0 0 3px var(--focus-ring);
3544
- }
3545
- .ui-pwfield.is-invalid {
3546
- border-color: var(--danger);
3547
- }
3548
3702
  .ui-login-submit {
3549
3703
  width: 100%;
3550
3704
  justify-content: center;
@@ -3557,7 +3711,7 @@ html.ui-theme-fade * {
3557
3711
  }
3558
3712
  .ui-settings-title {
3559
3713
  margin: 0;
3560
- font-size: 25px;
3714
+ font-size: var(--text-h3);
3561
3715
  font-weight: 700;
3562
3716
  }
3563
3717
  .ui-settings-body {
@@ -3602,10 +3756,6 @@ html.ui-theme-fade * {
3602
3756
  border-radius: 0 3px 3px 0;
3603
3757
  background: var(--accent);
3604
3758
  }
3605
- .ui-settings-cat:focus-visible {
3606
- outline: none;
3607
- box-shadow: 0 0 0 3px var(--focus-ring);
3608
- }
3609
3759
  .ui-settings-content {
3610
3760
  flex: 1 1 auto;
3611
3761
  min-width: 0;
@@ -3624,19 +3774,19 @@ html.ui-theme-fade * {
3624
3774
  }
3625
3775
  .ui-settings-h {
3626
3776
  margin: 0;
3627
- font-size: 18px;
3777
+ font-size: var(--text-lead);
3628
3778
  font-weight: 700;
3629
3779
  }
3630
3780
  .ui-settings-desc {
3631
3781
  margin: -6px 0 0;
3632
- font-size: 14px;
3782
+ font-size: var(--text-compact);
3633
3783
  color: var(--ink-muted);
3634
3784
  }
3635
3785
  .ui-settings-toast {
3636
3786
  position: fixed;
3637
3787
  right: 24px;
3638
3788
  bottom: 24px;
3639
- z-index: 950;
3789
+ z-index: var(--z-palette);
3640
3790
  }
3641
3791
  .ui-danger {
3642
3792
  padding: 18px;
@@ -3649,7 +3799,7 @@ html.ui-theme-fade * {
3649
3799
  }
3650
3800
  .ui-danger-title {
3651
3801
  margin: 0;
3652
- font-size: 18px;
3802
+ font-size: var(--text-lead);
3653
3803
  font-weight: 700;
3654
3804
  color: var(--danger-text);
3655
3805
  }
@@ -3662,7 +3812,7 @@ html.ui-theme-fade * {
3662
3812
  }
3663
3813
  .ui-danger-row p {
3664
3814
  margin: 0;
3665
- font-size: 14px;
3815
+ font-size: var(--text-compact);
3666
3816
  color: var(--ink-muted);
3667
3817
  }
3668
3818
  @media (max-width: 599px) {
@@ -3686,7 +3836,7 @@ html.ui-theme-fade * {
3686
3836
  }
3687
3837
  }
3688
3838
  .ui-login-pwlabel .ui-link {
3689
- font-size: 14px;
3839
+ font-size: var(--text-compact);
3690
3840
  }
3691
3841
 
3692
3842
  /* ---------- DataTable filters ---------- */
@@ -3703,7 +3853,7 @@ html.ui-theme-fade * {
3703
3853
  background: transparent;
3704
3854
  color: var(--ink-muted);
3705
3855
  font: inherit;
3706
- font-size: 14px;
3856
+ font-size: var(--text-compact);
3707
3857
  cursor: pointer;
3708
3858
  }
3709
3859
  .ui-dt-view.is-on {
@@ -3723,20 +3873,16 @@ html.ui-theme-fade * {
3723
3873
  .ui-dt-view-n {
3724
3874
  margin-left: 6px;
3725
3875
  font-family: var(--font-mono);
3726
- font-size: 12px;
3876
+ font-size: var(--text-mini);
3727
3877
  color: var(--ink-muted);
3728
3878
  font-weight: 400;
3729
3879
  }
3730
- .ui-dt-filterbtn,
3731
- .ui-dt-colbtn {
3732
- height: 36px;
3733
- }
3734
- .ui-dt-colbtn {
3735
- margin-left: 0;
3880
+ .ui-dt-filterbtn {
3881
+ height: var(--control-height);
3736
3882
  }
3737
3883
  .ui-dt-result {
3738
3884
  margin-left: auto;
3739
- font-size: 13px;
3885
+ font-size: var(--text-small);
3740
3886
  color: var(--ink-muted);
3741
3887
  white-space: nowrap;
3742
3888
  }
@@ -3750,12 +3896,12 @@ html.ui-theme-fade * {
3750
3896
  background: var(--surface);
3751
3897
  border: 1px solid var(--line);
3752
3898
  box-shadow: var(--shadow-overlay);
3753
- animation: ui-pop-fade 150ms ease both;
3899
+ animation: ui-pop-fade var(--dur-hover) ease both;
3754
3900
  }
3755
3901
  /* S2C: the 「排序」 button writes the current sort (「排序:程式 ↑、ΔT ↓」, cut with … when long); on phones 「排序」 and
3756
3902
  the number of levels. Its panel looks like the filter panel. */
3757
3903
  .ui-dt-sortbtn {
3758
- height: 36px;
3904
+ height: var(--control-height);
3759
3905
  }
3760
3906
  .ui-dt-sortbtn-text {
3761
3907
  min-width: 0;
@@ -3820,7 +3966,7 @@ html.ui-theme-fade * {
3820
3966
  flex: none;
3821
3967
  width: 1ch;
3822
3968
  font-family: var(--font-mono);
3823
- font-size: 13px;
3969
+ font-size: var(--text-small);
3824
3970
  color: var(--ink-muted);
3825
3971
  }
3826
3972
  .ui-dt-sortname {
@@ -3845,7 +3991,7 @@ html.ui-theme-fade * {
3845
3991
  background: transparent;
3846
3992
  color: var(--ink);
3847
3993
  font: inherit;
3848
- font-size: 13px;
3994
+ font-size: var(--text-small);
3849
3995
  white-space: nowrap;
3850
3996
  cursor: pointer;
3851
3997
  }
@@ -3857,13 +4003,9 @@ html.ui-theme-fade * {
3857
4003
  color: var(--accent-text);
3858
4004
  font-weight: 600;
3859
4005
  }
3860
- :is(.ui-dt-sortgrip, .ui-dt-sortrm, .ui-dt-sortdir button):focus-visible {
3861
- outline: none;
3862
- box-shadow: inset 0 0 0 2px var(--focus-ring);
3863
- }
3864
4006
  .ui-dt-sortnone {
3865
4007
  margin: 0;
3866
- font-size: 13px;
4008
+ font-size: var(--text-small);
3867
4009
  color: var(--ink-muted);
3868
4010
  }
3869
4011
  .ui-dt-sortmore {
@@ -3872,7 +4014,7 @@ html.ui-theme-fade * {
3872
4014
  gap: 4px;
3873
4015
  min-height: 40px;
3874
4016
  margin-top: 4px;
3875
- font-size: 14px;
4017
+ font-size: var(--text-compact);
3876
4018
  }
3877
4019
  .ui-dt-sortadd {
3878
4020
  margin-top: 8px;
@@ -3882,7 +4024,7 @@ html.ui-theme-fade * {
3882
4024
  .ui-dt-sortaddhead {
3883
4025
  display: block;
3884
4026
  margin-bottom: 4px;
3885
- font-size: 13px;
4027
+ font-size: var(--text-small);
3886
4028
  color: var(--ink-muted);
3887
4029
  }
3888
4030
  .ui-dt-sortadd .ui-dt-opt {
@@ -3891,7 +4033,7 @@ html.ui-theme-fade * {
3891
4033
  /* The heading's place in a multi-column sort, after its arrow. */
3892
4034
  .ui-dt-sortpri {
3893
4035
  font-family: var(--font-mono);
3894
- font-size: 11px;
4036
+ font-size: var(--text-mini);
3895
4037
  line-height: 1;
3896
4038
  color: var(--accent-text);
3897
4039
  margin-left: -2px;
@@ -3916,7 +4058,7 @@ html.ui-theme-fade * {
3916
4058
  .ui-dt-facet legend {
3917
4059
  padding: 0;
3918
4060
  margin-bottom: 6px;
3919
- font-size: 13px;
4061
+ font-size: var(--text-small);
3920
4062
  font-weight: 700;
3921
4063
  }
3922
4064
  .ui-dt-opt {
@@ -3931,17 +4073,13 @@ html.ui-theme-fade * {
3931
4073
  background: transparent;
3932
4074
  color: var(--ink);
3933
4075
  font: inherit;
3934
- font-size: 14px;
4076
+ font-size: var(--text-compact);
3935
4077
  text-align: left;
3936
4078
  cursor: pointer;
3937
4079
  }
3938
4080
  .ui-dt-opt:hover {
3939
4081
  background: var(--surface-sub);
3940
4082
  }
3941
- .ui-dt-opt:focus-visible {
3942
- outline: none;
3943
- box-shadow: 0 0 0 3px var(--focus-ring);
3944
- }
3945
4083
  .ui-dt-opt.is-zero {
3946
4084
  color: var(--ink-muted);
3947
4085
  }
@@ -3960,7 +4098,7 @@ html.ui-theme-fade * {
3960
4098
  }
3961
4099
  .ui-dt-opt-n {
3962
4100
  font-family: var(--font-mono);
3963
- font-size: 12px;
4101
+ font-size: var(--text-mini);
3964
4102
  color: var(--ink-muted);
3965
4103
  }
3966
4104
  .ui-dt-range-inputs {
@@ -3992,20 +4130,57 @@ html.ui-theme-fade * {
3992
4130
  }
3993
4131
  .ui-dt-cell.is-sticky {
3994
4132
  position: sticky;
3995
- z-index: 1;
4133
+ z-index: var(--z-raised);
4134
+ /* The row's ground (zebra, hover, selected), so nothing shows through while the table scrolls sideways. */
3996
4135
  background: inherit;
4136
+ }
4137
+ .ui-dt-cell.is-sticky-end {
3997
4138
  box-shadow: 6px 0 8px -6px var(--edge-shadow);
3998
4139
  }
4140
+ .ui-dt-body .ui-dt-row > .ui-dt-cell.is-sticky-end:first-child {
4141
+ box-shadow:
4142
+ var(--dt-mark),
4143
+ 6px 0 8px -6px var(--edge-shadow);
4144
+ }
3999
4145
  .ui-dt-head .ui-dt-cell.is-sticky {
4000
4146
  background: var(--surface-sub);
4001
4147
  }
4002
4148
  .ui-dt-colmenu {
4003
4149
  min-width: 200px;
4150
+ max-height: min(420px, var(--available-height, 420px));
4151
+ overflow-y: auto;
4004
4152
  }
4005
4153
  @media (max-width: 599px) {
4154
+ /* Phones: the totals stay, as a summary under the cards: 「合計 n 筆」, then one line per total, its column's name on
4155
+ the left and the value on the right. Columns without a total are left out. */
4006
4156
  .ui-dt-total {
4157
+ display: flex;
4158
+ flex-direction: column;
4159
+ gap: var(--space-1);
4160
+ min-width: 0 !important;
4161
+ min-height: 0;
4162
+ padding: var(--space-3) var(--space-4);
4163
+ border-radius: 0 0 var(--radius-lg) var(--radius-lg);
4164
+ }
4165
+ .ui-dt-total .ui-dt-cell {
4166
+ display: flex;
4167
+ justify-content: space-between;
4168
+ align-items: baseline;
4169
+ gap: var(--space-3);
4170
+ padding: 0;
4171
+ border-right: 0;
4172
+ overflow: visible;
4173
+ white-space: normal;
4174
+ }
4175
+ .ui-dt-total .ui-dt-cell:empty {
4007
4176
  display: none;
4008
4177
  }
4178
+ .ui-dt-total .ui-dt-cell[data-label]::before {
4179
+ content: attr(data-label);
4180
+ color: var(--ink-muted);
4181
+ font-family: var(--font-sans);
4182
+ font-weight: 400;
4183
+ }
4009
4184
  .ui-dt-cell.is-sticky {
4010
4185
  position: static;
4011
4186
  box-shadow: none;
@@ -4024,10 +4199,10 @@ html.ui-theme-fade * {
4024
4199
  border-color: var(--accent);
4025
4200
  }
4026
4201
  .ui-dt-head .ui-dt-cell.is-sticky {
4027
- z-index: 3;
4202
+ z-index: calc(var(--z-sticky) + 1);
4028
4203
  }
4029
4204
  .ui-dt-filterhead .ui-link-btn {
4030
- font-size: 13px;
4205
+ font-size: var(--text-small);
4031
4206
  }
4032
4207
 
4033
4208
  /* KPI count-up: the final value reserves the width, the counting value sits on top of it, right-aligned. */
@@ -4040,6 +4215,9 @@ html.ui-theme-fade * {
4040
4215
  justify-items: end;
4041
4216
  vertical-align: bottom;
4042
4217
  }
4218
+ .ui-kpi-cjk {
4219
+ font-family: var(--font-sans);
4220
+ }
4043
4221
  .ui-kpi-sizer,
4044
4222
  .ui-kpi-live {
4045
4223
  grid-area: 1 / 1;
@@ -4056,7 +4234,7 @@ html.ui-theme-fade * {
4056
4234
  box-shadow: var(--shadow-card);
4057
4235
  overflow: hidden;
4058
4236
  color: var(--ink);
4059
- font-size: 15px;
4237
+ font-size: var(--text-control);
4060
4238
  }
4061
4239
  .ui-tree-head {
4062
4240
  display: flex;
@@ -4071,7 +4249,7 @@ html.ui-theme-fade * {
4071
4249
  }
4072
4250
  .ui-tree-title {
4073
4251
  margin: 0;
4074
- font-size: 20px;
4252
+ font-size: var(--text-h4);
4075
4253
  font-weight: 700;
4076
4254
  line-height: 1.3;
4077
4255
  white-space: nowrap;
@@ -4095,7 +4273,7 @@ html.ui-theme-fade * {
4095
4273
  .ui-tree-bulk-size {
4096
4274
  margin-left: 8px;
4097
4275
  font-weight: 400;
4098
- font-size: 13px;
4276
+ font-size: var(--text-small);
4099
4277
  color: var(--ink-muted);
4100
4278
  font-family: var(--font-mono);
4101
4279
  }
@@ -4124,9 +4302,6 @@ html.ui-theme-fade * {
4124
4302
  .ui-tree-row.is-selected {
4125
4303
  background: var(--accent-soft);
4126
4304
  }
4127
- .ui-tree-row:focus-visible {
4128
- box-shadow: inset 0 0 0 2px var(--accent);
4129
- }
4130
4305
  .ui-tree-guide {
4131
4306
  position: absolute;
4132
4307
  top: 0;
@@ -4170,7 +4345,7 @@ html.ui-theme-fade * {
4170
4345
  flex: 0 0 16px;
4171
4346
  display: flex;
4172
4347
  color: var(--ink-muted);
4173
- transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
4348
+ transition: transform var(--dur-nav) var(--ease-standard);
4174
4349
  }
4175
4350
  .ui-tree-caret.is-open {
4176
4351
  transform: rotate(90deg);
@@ -4198,20 +4373,21 @@ html.ui-theme-fade * {
4198
4373
  }
4199
4374
  .ui-tree-ext {
4200
4375
  position: absolute;
4201
- left: 0;
4376
+ /* Centred on the page icon: a 4-letter label at 12 px is a little wider than the 30 px icon. */
4377
+ left: 50%;
4378
+ translate: -50% 0;
4202
4379
  bottom: 5px;
4203
4380
  min-width: 22px;
4204
- padding: 0 3px;
4381
+ padding: 0 2px;
4205
4382
  box-sizing: border-box;
4206
4383
  border-radius: 3px;
4207
4384
  background: var(--ext);
4208
4385
  color: var(--on-solid);
4209
4386
  font-family: var(--font-mono);
4210
- font-size: 9px;
4387
+ font-size: var(--text-mini);
4211
4388
  font-weight: 700;
4212
4389
  line-height: 14px;
4213
4390
  text-align: center;
4214
- letter-spacing: 0.02em;
4215
4391
  }
4216
4392
  .ui-tree-doc.is-pdf {
4217
4393
  --ext: var(--file-pdf);
@@ -4260,13 +4436,13 @@ html.ui-theme-fade * {
4260
4436
  }
4261
4437
  .ui-tree-count {
4262
4438
  flex: 0 0 auto;
4263
- font-size: 13px;
4439
+ font-size: var(--text-small);
4264
4440
  color: var(--ink-muted);
4265
4441
  white-space: nowrap;
4266
4442
  }
4267
4443
  .ui-tree-newcount {
4268
4444
  flex: 0 0 auto;
4269
- font-size: 12px;
4445
+ font-size: var(--text-mini);
4270
4446
  font-weight: 700;
4271
4447
  color: var(--accent-text);
4272
4448
  white-space: nowrap;
@@ -4275,18 +4451,19 @@ html.ui-theme-fade * {
4275
4451
  display: flex;
4276
4452
  flex-wrap: wrap;
4277
4453
  column-gap: 0.4em;
4278
- font-size: 13px;
4454
+ font-size: var(--text-small);
4279
4455
  color: var(--ink-muted);
4280
- font-family: var(--font-mono);
4456
+ /* Dates, counts and sizes in words (「4 個檔案 · 13 小時前」): the text font with digits of one width. */
4457
+ font-variant-numeric: tabular-nums;
4281
4458
  }
4282
4459
  .ui-tree-meta > span {
4283
4460
  white-space: nowrap;
4284
4461
  }
4285
4462
  .ui-tree-col {
4286
4463
  flex: 0 0 auto;
4287
- font-size: 13px;
4464
+ font-size: var(--text-small);
4288
4465
  color: var(--ink-muted);
4289
- font-family: var(--font-mono);
4466
+ font-variant-numeric: tabular-nums;
4290
4467
  white-space: nowrap;
4291
4468
  }
4292
4469
  .ui-tree-meta .is-new,
@@ -4348,11 +4525,11 @@ html.ui-theme-fade * {
4348
4525
  }
4349
4526
  .ui-tree-in {
4350
4527
  overflow: hidden;
4351
- animation: ui-tree-grow 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
4528
+ animation: ui-tree-grow var(--dur-expand) var(--ease-standard) both;
4352
4529
  }
4353
4530
  @media (prefers-reduced-motion: reduce) {
4354
4531
  .ui-tree-in {
4355
- animation: ui-fade 0.15s ease both;
4532
+ animation: ui-fade var(--dur-hover) ease both;
4356
4533
  }
4357
4534
  .ui-tree-caret {
4358
4535
  transition: none;
@@ -4364,7 +4541,7 @@ html.ui-theme-fade * {
4364
4541
  font-family: var(--font-mono);
4365
4542
  font-size: 0.875em;
4366
4543
  padding: 1px 5px;
4367
- border-radius: 4px;
4544
+ border-radius: var(--radius-xs);
4368
4545
  background: var(--surface-sub);
4369
4546
  color: var(--ink);
4370
4547
  overflow-wrap: anywhere;
@@ -4395,10 +4572,6 @@ html.ui-theme-fade * {
4395
4572
  [data-theme='dark'] .ui-code.is-link {
4396
4573
  color: color-mix(in srgb, var(--accent-text), var(--ink) 25%);
4397
4574
  }
4398
- .ui-code.is-link:focus-visible {
4399
- outline: none;
4400
- box-shadow: 0 0 0 3px var(--focus-ring);
4401
- }
4402
4575
  /* A name (function, class, variable) and a location (file:line) that point somewhere: no chip, no underline until
4403
4576
  hover or keyboard focus. Three classes so they win over the dark link colour and the table chip above. */
4404
4577
  .ui-code.is-link.is-name,
@@ -4420,7 +4593,7 @@ html.ui-theme-fade * {
4420
4593
  /* One step smaller: the 13 px of secondary text. Never breaks inside. */
4421
4594
  .ui-code.is-link.is-location {
4422
4595
  color: var(--ink-muted);
4423
- font-size: 13px;
4596
+ font-size: var(--text-small);
4424
4597
  white-space: nowrap;
4425
4598
  }
4426
4599
  .ui-code.is-link.is-name:is(:hover, :focus-visible),
@@ -4433,15 +4606,14 @@ html.ui-theme-fade * {
4433
4606
  }
4434
4607
  .ui-code.is-link.is-name:focus-visible,
4435
4608
  .ui-code.is-link.is-location:focus-visible {
4436
- border-radius: 4px;
4437
- box-shadow: 0 0 0 3px var(--focus-ring);
4609
+ border-radius: var(--radius-xs);
4438
4610
  }
4439
4611
 
4440
4612
  /* AiMark: a small gray 「AI 撰寫」 at the end of a sentence written by AI (A2), the same style as other source marks. */
4441
4613
  .ui-aimark {
4442
4614
  margin-left: 8px;
4443
4615
  font-family: var(--font-sans);
4444
- font-size: 13px;
4616
+ font-size: var(--text-small);
4445
4617
  font-weight: 400;
4446
4618
  color: var(--ink-muted);
4447
4619
  white-space: nowrap;
@@ -4451,7 +4623,7 @@ html.ui-theme-fade * {
4451
4623
  /* With the space before it: about 6 px from the name. */
4452
4624
  margin-left: 2px;
4453
4625
  font-family: var(--font-mono);
4454
- font-size: 13px;
4626
+ font-size: var(--text-small);
4455
4627
  color: var(--ink-muted);
4456
4628
  }
4457
4629
  .ui-tab.is-selected .ui-tab-count {
@@ -4469,7 +4641,7 @@ html.ui-theme-fade * {
4469
4641
  padding-top: 0;
4470
4642
  padding-bottom: 0;
4471
4643
  padding-right: 8px;
4472
- font-size: 13px;
4644
+ font-size: var(--text-small);
4473
4645
  border-radius: var(--radius-sm);
4474
4646
  }
4475
4647
  .ui-tree.is-plain.is-compact .ui-tree-guide {
@@ -4496,27 +4668,28 @@ html.ui-theme-fade * {
4496
4668
  font-weight: 600;
4497
4669
  }
4498
4670
  .ui-tree.is-plain.is-compact .ui-tree-pmeta {
4499
- font-size: 12px;
4671
+ font-size: var(--text-mini);
4500
4672
  }
4501
4673
  @media (pointer: coarse) {
4502
4674
  .ui-tree.is-plain.is-compact .ui-tree-row {
4503
4675
  min-height: 48px;
4504
4676
  }
4505
4677
  }
4506
- /* A mark: a 6 px dot at the row's right end, lined up down the list. */
4678
+ /* A mark: a 6 px dot at the row's right end, lined up down the list. Status text colors, 3:1 or more on every row
4679
+ ground (hover, selected). */
4507
4680
  .ui-tree-mark {
4508
4681
  flex: none;
4509
4682
  width: 6px;
4510
4683
  height: 6px;
4511
4684
  margin-left: auto;
4512
4685
  border-radius: var(--radius-full);
4513
- background: var(--warning);
4686
+ background: var(--warning-text);
4514
4687
  }
4515
4688
  .ui-tree-mark.is-danger {
4516
- background: var(--danger);
4689
+ background: var(--danger-text);
4517
4690
  }
4518
4691
  .ui-tree-mark.is-accent {
4519
- background: var(--accent);
4692
+ background: var(--accent-text);
4520
4693
  }
4521
4694
  .ui-tree-mark + .ui-tree-act {
4522
4695
  margin-left: 4px;
@@ -4568,7 +4741,7 @@ html.ui-theme-fade * {
4568
4741
  font-weight: 500;
4569
4742
  }
4570
4743
  .ui-tree-pmeta {
4571
- font-size: 13px;
4744
+ font-size: var(--text-small);
4572
4745
  color: var(--ink-muted);
4573
4746
  white-space: nowrap;
4574
4747
  overflow: hidden;
@@ -4582,7 +4755,7 @@ html.ui-theme-fade * {
4582
4755
  background: var(--surface-sub);
4583
4756
  color: var(--ink-muted);
4584
4757
  font-family: var(--font-mono);
4585
- font-size: 11px;
4758
+ font-size: var(--text-mini);
4586
4759
  font-weight: 600;
4587
4760
  line-height: 18px;
4588
4761
  }
@@ -4607,7 +4780,7 @@ html.ui-theme-fade * {
4607
4780
  /* Tag: category, small gray text only */
4608
4781
  .ui-tag {
4609
4782
  flex: 0 0 auto;
4610
- font-size: 12px;
4783
+ font-size: var(--text-mini);
4611
4784
  font-weight: 600;
4612
4785
  line-height: 1.4;
4613
4786
  color: var(--ink-muted);
@@ -4662,7 +4835,7 @@ html.ui-theme-fade * {
4662
4835
  background: transparent;
4663
4836
  color: var(--ink);
4664
4837
  font: inherit;
4665
- font-size: 14px;
4838
+ font-size: var(--text-compact);
4666
4839
  font-weight: 600;
4667
4840
  white-space: nowrap;
4668
4841
  cursor: pointer;
@@ -4674,10 +4847,6 @@ html.ui-theme-fade * {
4674
4847
  .ui-projsw[data-popup-open] {
4675
4848
  background: var(--surface-sub);
4676
4849
  }
4677
- .ui-projsw:focus-visible {
4678
- outline: none;
4679
- box-shadow: 0 0 0 3px var(--focus-ring);
4680
- }
4681
4850
  .ui-projsw.is-static {
4682
4851
  cursor: default;
4683
4852
  opacity: 1;
@@ -4689,16 +4858,16 @@ html.ui-theme-fade * {
4689
4858
  width: 10px;
4690
4859
  height: 10px;
4691
4860
  box-sizing: border-box;
4692
- border-radius: 99px;
4693
- background: var(--success);
4861
+ border-radius: var(--radius-full);
4862
+ background: var(--success-text);
4694
4863
  }
4695
4864
  .ui-projsw.is-stale .ui-projsw-dot {
4696
4865
  background: transparent;
4697
- border: 2px solid var(--warning);
4866
+ border: 2px solid var(--warning-text);
4698
4867
  }
4699
4868
  .ui-projsw.is-offline .ui-projsw-dot {
4700
- background: linear-gradient(135deg, transparent 42%, var(--neutral-500) 42% 58%, transparent 58%);
4701
- border: 2px solid var(--neutral-500);
4869
+ background: linear-gradient(135deg, transparent 42%, var(--ink-muted) 42% 58%, transparent 58%);
4870
+ border: 2px solid var(--ink-muted);
4702
4871
  }
4703
4872
  .ui-projsw-text {
4704
4873
  display: flex;
@@ -4727,7 +4896,7 @@ html.ui-theme-fade * {
4727
4896
  .ui-projsw-caret {
4728
4897
  flex: 0 0 auto;
4729
4898
  color: var(--ink-muted);
4730
- transition: transform 0.2s ease;
4899
+ transition: transform var(--dur-nav) ease;
4731
4900
  }
4732
4901
  .ui-projsw[data-popup-open] .ui-projsw-caret {
4733
4902
  transform: rotate(180deg);
@@ -4740,11 +4909,11 @@ html.ui-theme-fade * {
4740
4909
  border-radius: var(--radius-lg);
4741
4910
  background: var(--surface);
4742
4911
  box-shadow: var(--shadow-overlay);
4743
- animation: ui-pop-scale 200ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
4912
+ animation: ui-pop-scale var(--dur-nav) var(--ease-spring) both;
4744
4913
  }
4745
4914
  .ui-projsw-title {
4746
4915
  padding: 4px 8px 8px;
4747
- font-size: 13px;
4916
+ font-size: var(--text-small);
4748
4917
  font-weight: 700;
4749
4918
  color: var(--ink-muted);
4750
4919
  }
@@ -4760,7 +4929,7 @@ html.ui-theme-fade * {
4760
4929
  background: transparent;
4761
4930
  color: var(--ink);
4762
4931
  font: inherit;
4763
- font-size: 14px;
4932
+ font-size: var(--text-compact);
4764
4933
  text-align: left;
4765
4934
  cursor: pointer;
4766
4935
  }
@@ -4778,7 +4947,7 @@ html.ui-theme-fade * {
4778
4947
  .ui-projsw-optdetail {
4779
4948
  flex: 1 1 auto;
4780
4949
  color: var(--ink-muted);
4781
- font-size: 13px;
4950
+ font-size: var(--text-small);
4782
4951
  }
4783
4952
  .ui-projsw-check {
4784
4953
  color: var(--accent-text);
@@ -4787,7 +4956,7 @@ html.ui-theme-fade * {
4787
4956
  margin-top: 6px;
4788
4957
  padding: 8px 10px 4px;
4789
4958
  border-top: 1px solid var(--line);
4790
- font-size: 14px;
4959
+ font-size: var(--text-compact);
4791
4960
  }
4792
4961
  @media (prefers-reduced-motion: reduce) {
4793
4962
  .ui-projsw-pop {
@@ -4808,7 +4977,7 @@ html.ui-theme-fade * {
4808
4977
  }
4809
4978
  .ui-dl-item dt {
4810
4979
  color: var(--ink-muted);
4811
- font-size: 13px;
4980
+ font-size: var(--text-small);
4812
4981
  line-height: 24px;
4813
4982
  white-space: nowrap;
4814
4983
  }
@@ -4902,16 +5071,16 @@ html.ui-theme-fade * {
4902
5071
  /* CommandPalette */
4903
5072
  .ui-pal-backdrop {
4904
5073
  position: fixed;
4905
- z-index: 950;
5074
+ z-index: var(--z-palette);
4906
5075
  inset: 0;
4907
5076
  background: var(--scrim);
4908
5077
  backdrop-filter: blur(4px);
4909
5078
  -webkit-backdrop-filter: blur(4px);
4910
- animation: ui-fade 150ms ease both;
5079
+ animation: ui-fade var(--dur-hover) ease both;
4911
5080
  }
4912
5081
  .ui-pal {
4913
5082
  position: fixed;
4914
- z-index: 951;
5083
+ z-index: calc(var(--z-palette) + 1);
4915
5084
  left: 50%;
4916
5085
  top: 12vh;
4917
5086
  width: 640px;
@@ -4927,7 +5096,7 @@ html.ui-theme-fade * {
4927
5096
  border: 1px solid var(--line);
4928
5097
  box-shadow: var(--shadow-overlay);
4929
5098
  overflow: hidden;
4930
- animation: ui-pal-in 200ms cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
5099
+ animation: ui-pal-in var(--dur-nav) cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
4931
5100
  }
4932
5101
  @keyframes ui-pal-in {
4933
5102
  from {
@@ -4960,7 +5129,7 @@ html.ui-theme-fade * {
4960
5129
  background: transparent;
4961
5130
  color: var(--ink);
4962
5131
  font: inherit;
4963
- font-size: 16px;
5132
+ font-size: var(--text-body);
4964
5133
  }
4965
5134
  .ui-pal-input::placeholder {
4966
5135
  color: var(--ink-muted);
@@ -4974,7 +5143,7 @@ html.ui-theme-fade * {
4974
5143
  background: transparent;
4975
5144
  color: var(--accent-text);
4976
5145
  font: inherit;
4977
- font-size: 15px;
5146
+ font-size: var(--text-control);
4978
5147
  font-weight: 600;
4979
5148
  white-space: nowrap;
4980
5149
  cursor: pointer;
@@ -4982,13 +5151,9 @@ html.ui-theme-fade * {
4982
5151
  .ui-pal-cancel:hover {
4983
5152
  background: var(--surface-sub);
4984
5153
  }
4985
- .ui-pal-cancel:focus-visible {
4986
- outline: none;
4987
- box-shadow: 0 0 0 3px var(--focus-ring);
4988
- }
4989
5154
  .ui-pal-group {
4990
5155
  padding: var(--space-3) var(--space-4) var(--space-1);
4991
- font-size: 13px;
5156
+ font-size: var(--text-small);
4992
5157
  font-weight: 700;
4993
5158
  color: var(--ink-muted);
4994
5159
  }
@@ -5041,12 +5206,12 @@ html.ui-theme-fade * {
5041
5206
  white-space: nowrap;
5042
5207
  }
5043
5208
  .ui-pal-label {
5044
- font-size: 15px;
5209
+ font-size: var(--text-control);
5045
5210
  color: var(--ink);
5046
5211
  }
5047
5212
  .ui-pal-label.is-code {
5048
5213
  font-family: var(--font-mono);
5049
- font-size: 14px;
5214
+ font-size: var(--text-compact);
5050
5215
  }
5051
5216
  .ui-pal-hit {
5052
5217
  background: transparent;
@@ -5054,7 +5219,7 @@ html.ui-theme-fade * {
5054
5219
  font-weight: 700;
5055
5220
  }
5056
5221
  .ui-pal-detail {
5057
- font-size: 13px;
5222
+ font-size: var(--text-small);
5058
5223
  line-height: 20px;
5059
5224
  color: var(--ink-muted);
5060
5225
  }
@@ -5075,7 +5240,7 @@ html.ui-theme-fade * {
5075
5240
  .ui-pal-empty {
5076
5241
  margin: 0;
5077
5242
  padding: var(--space-6) var(--space-4);
5078
- font-size: 14px;
5243
+ font-size: var(--text-compact);
5079
5244
  color: var(--ink-muted);
5080
5245
  text-align: center;
5081
5246
  }
@@ -5085,7 +5250,7 @@ html.ui-theme-fade * {
5085
5250
  margin: 0;
5086
5251
  padding: var(--space-2) var(--space-4);
5087
5252
  border-top: 1px solid var(--line);
5088
- font-size: 13px;
5253
+ font-size: var(--text-small);
5089
5254
  color: var(--ink-muted);
5090
5255
  }
5091
5256
  /* CodeView: the keys that move inside the code, shown while it has focus. */
@@ -5098,7 +5263,7 @@ html.ui-theme-fade * {
5098
5263
  margin: 0;
5099
5264
  display: grid;
5100
5265
  gap: 4px;
5101
- font-size: 13px;
5266
+ font-size: var(--text-small);
5102
5267
  }
5103
5268
  .ui-cv-keylist > div {
5104
5269
  display: flex;
@@ -5116,10 +5281,10 @@ html.ui-theme-fade * {
5116
5281
  padding: 0 var(--space-1);
5117
5282
  border: 1px solid var(--line);
5118
5283
  border-bottom-width: 2px;
5119
- border-radius: var(--radius-sm);
5284
+ border-radius: var(--radius-xs);
5120
5285
  background: var(--surface);
5121
5286
  font-family: var(--font-mono);
5122
- font-size: 12px;
5287
+ font-size: var(--text-mini);
5123
5288
  }
5124
5289
  /* header="float": the language and buttons float at the top right while the pointer is over the code or focus is in
5125
5290
  it; always on touch screens. */
@@ -5130,7 +5295,7 @@ html.ui-theme-fade * {
5130
5295
  position: absolute;
5131
5296
  top: 6px;
5132
5297
  right: 6px;
5133
- z-index: 2;
5298
+ z-index: var(--z-sticky);
5134
5299
  display: flex;
5135
5300
  align-items: center;
5136
5301
  gap: 2px;
@@ -5138,9 +5303,9 @@ html.ui-theme-fade * {
5138
5303
  border-radius: var(--radius-sm);
5139
5304
  background: var(--surface);
5140
5305
  box-shadow: var(--shadow-sm);
5141
- font-size: 12px;
5306
+ font-size: var(--text-mini);
5142
5307
  opacity: 0;
5143
- transition: opacity 150ms ease;
5308
+ transition: opacity var(--dur-hover) ease;
5144
5309
  }
5145
5310
  .ui-cv:is(:hover, :focus-within) .ui-cv-tools,
5146
5311
  .ui-cv-tools:has([aria-expanded='true']) {
@@ -5164,7 +5329,7 @@ html.ui-theme-fade * {
5164
5329
  gap: var(--space-4);
5165
5330
  padding: var(--space-2) var(--space-4);
5166
5331
  border-top: 1px solid var(--line);
5167
- font-size: 13px;
5332
+ font-size: var(--text-small);
5168
5333
  color: var(--ink-muted);
5169
5334
  white-space: nowrap;
5170
5335
  }
@@ -5182,9 +5347,9 @@ html.ui-theme-fade * {
5182
5347
  align-items: center;
5183
5348
  justify-content: center;
5184
5349
  border: 1px solid var(--line-strong);
5185
- border-radius: 4px;
5350
+ border-radius: var(--radius-xs);
5186
5351
  font-family: var(--font-mono);
5187
- font-size: 12px;
5352
+ font-size: var(--text-mini);
5188
5353
  }
5189
5354
  @media (hover: none), (pointer: coarse) {
5190
5355
  .ui-pal-keys {
@@ -5205,7 +5370,7 @@ html.ui-theme-fade * {
5205
5370
  .ui-tour-layer {
5206
5371
  position: fixed;
5207
5372
  inset: 0;
5208
- z-index: 960;
5373
+ z-index: var(--z-tour);
5209
5374
  }
5210
5375
  .ui-tour-block {
5211
5376
  position: absolute;
@@ -5222,10 +5387,10 @@ html.ui-theme-fade * {
5222
5387
  0 0 0 9999px var(--scrim-strong);
5223
5388
  pointer-events: none;
5224
5389
  transition:
5225
- left 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
5226
- top 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
5227
- width 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
5228
- height 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
5390
+ left var(--dur-toggle) var(--ease-standard),
5391
+ top var(--dur-toggle) var(--ease-standard),
5392
+ width var(--dur-toggle) var(--ease-standard),
5393
+ height var(--dur-toggle) var(--ease-standard);
5229
5394
  }
5230
5395
  .ui-tour-card {
5231
5396
  width: 320px;
@@ -5239,16 +5404,16 @@ html.ui-theme-fade * {
5239
5404
  border-radius: var(--radius-lg);
5240
5405
  background: var(--surface);
5241
5406
  box-shadow: var(--shadow-overlay);
5242
- font-size: 15px;
5407
+ font-size: var(--text-control);
5243
5408
  line-height: 1.55;
5244
- animation: ui-pop-fade 200ms ease both;
5409
+ animation: ui-pop-fade var(--dur-nav) ease both;
5245
5410
  }
5246
5411
  .ui-tour-body {
5247
5412
  min-height: 0;
5248
5413
  overflow-y: auto;
5249
5414
  }
5250
5415
  .ui-tour-count {
5251
- font-size: 13px;
5416
+ font-size: var(--text-small);
5252
5417
  color: var(--ink-muted);
5253
5418
  }
5254
5419
  .ui-tour-title {
@@ -5281,7 +5446,7 @@ html.ui-theme-fade * {
5281
5446
  padding: var(--space-3);
5282
5447
  border-radius: var(--radius-md);
5283
5448
  background: var(--surface-sub);
5284
- font-size: 15px;
5449
+ font-size: var(--text-control);
5285
5450
  line-height: 1.5;
5286
5451
  }
5287
5452
  .ui-sug-head {
@@ -5293,7 +5458,7 @@ html.ui-theme-fade * {
5293
5458
  }
5294
5459
  .ui-sug-title {
5295
5460
  flex: 1 1 auto;
5296
- font-size: 14px;
5461
+ font-size: var(--text-compact);
5297
5462
  font-weight: 700;
5298
5463
  white-space: nowrap;
5299
5464
  }
@@ -5365,30 +5530,26 @@ html.ui-theme-fade * {
5365
5530
  font: inherit;
5366
5531
  text-align: inherit;
5367
5532
  cursor: pointer;
5368
- border-radius: 4px;
5533
+ border-radius: var(--radius-xs);
5369
5534
  }
5370
5535
  .ui-term-q {
5371
5536
  display: inline-block;
5372
5537
  margin-left: 2px;
5373
5538
  vertical-align: -2px;
5374
5539
  color: var(--ink-muted);
5375
- transition: color 0.15s ease;
5540
+ transition: color var(--dur-hover) ease;
5376
5541
  }
5377
5542
  .ui-term:hover .ui-term-q,
5378
5543
  .ui-term.is-open .ui-term-q {
5379
5544
  color: var(--accent-text);
5380
5545
  }
5381
- .ui-term:focus-visible {
5382
- outline: none;
5383
- box-shadow: 0 0 0 3px var(--focus-ring);
5384
- }
5385
5546
  /* Term variant="inline": a dashed underline inside a sentence, no icon; the card opens after resting on the word. */
5386
5547
  .ui-term.is-word {
5387
5548
  cursor: help;
5388
5549
  text-decoration: underline dashed var(--line-strong);
5389
5550
  text-decoration-thickness: 1px;
5390
5551
  text-underline-offset: 4px;
5391
- transition: text-decoration-color 0.15s ease;
5552
+ transition: text-decoration-color var(--dur-hover) ease;
5392
5553
  }
5393
5554
  .ui-term.is-word:hover,
5394
5555
  .ui-term.is-word.is-open,
@@ -5406,12 +5567,12 @@ html.ui-theme-fade * {
5406
5567
  border: 1px solid var(--line);
5407
5568
  box-shadow: var(--shadow-overlay);
5408
5569
  color: var(--ink);
5409
- font-size: 14px;
5570
+ font-size: var(--text-compact);
5410
5571
  font-weight: 400;
5411
5572
  line-height: 1.55;
5412
5573
  text-align: left;
5413
5574
  white-space: normal;
5414
- animation: ui-pop-scale 200ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
5575
+ animation: ui-pop-scale var(--dur-nav) var(--ease-spring) both;
5415
5576
  transform-origin: 16px 0;
5416
5577
  }
5417
5578
  .ui-term-pop[data-side='top'] {
@@ -5440,7 +5601,7 @@ html.ui-theme-fade * {
5440
5601
  border-radius: var(--radius-sm);
5441
5602
  background: var(--surface-sub);
5442
5603
  font-family: var(--font-mono);
5443
- font-size: 13px;
5604
+ font-size: var(--text-small);
5444
5605
  line-height: 1.5;
5445
5606
  white-space: pre;
5446
5607
  overflow-x: auto;
@@ -5454,14 +5615,14 @@ html.ui-theme-fade * {
5454
5615
  }
5455
5616
  .ui-term-backdrop {
5456
5617
  position: fixed;
5457
- z-index: 900;
5618
+ z-index: var(--z-modal);
5458
5619
  inset: 0;
5459
5620
  background: var(--scrim);
5460
- animation: ui-fade 200ms ease both;
5621
+ animation: ui-fade var(--dur-nav) ease both;
5461
5622
  }
5462
5623
  .ui-term-sheet {
5463
5624
  position: fixed;
5464
- z-index: 901;
5625
+ z-index: calc(var(--z-modal) + 1);
5465
5626
  left: 0;
5466
5627
  right: 0;
5467
5628
  bottom: 0;
@@ -5473,15 +5634,15 @@ html.ui-theme-fade * {
5473
5634
  background: var(--surface);
5474
5635
  box-shadow: var(--shadow-overlay);
5475
5636
  color: var(--ink);
5476
- font-size: 15px;
5637
+ font-size: var(--text-control);
5477
5638
  font-weight: 400;
5478
5639
  line-height: 1.6;
5479
5640
  text-align: left;
5480
5641
  white-space: normal;
5481
- animation: ui-sheet-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
5642
+ animation: ui-sheet-up var(--dur-expand) var(--ease-standard) both;
5482
5643
  }
5483
5644
  .ui-term-sheet .ui-term-title {
5484
- font-size: 17px;
5645
+ font-size: var(--text-title);
5485
5646
  }
5486
5647
  .ui-term-sheet .ui-term-close {
5487
5648
  width: var(--touch-target);
@@ -5559,7 +5720,7 @@ html.ui-theme-fade * {
5559
5720
  }
5560
5721
  .ui-tree-row.is-error .ui-tree-main {
5561
5722
  color: var(--danger-text);
5562
- font-size: 14px;
5723
+ font-size: var(--text-compact);
5563
5724
  }
5564
5725
  .ui-tree-row.is-error .ui-link-btn {
5565
5726
  flex: 0 0 auto;
@@ -5579,7 +5740,7 @@ html.ui-theme-fade * {
5579
5740
  min-height: 40px;
5580
5741
  padding: 0 var(--space-3);
5581
5742
  border-bottom: 1px solid var(--line);
5582
- font-size: 13px;
5743
+ font-size: var(--text-small);
5583
5744
  }
5584
5745
  .ui-cv-file {
5585
5746
  min-width: 0;
@@ -5646,15 +5807,12 @@ html.ui-theme-fade * {
5646
5807
  overflow-y: auto;
5647
5808
  overflow-x: hidden;
5648
5809
  font-family: var(--font-mono);
5649
- font-size: 13px;
5810
+ font-size: var(--text-small);
5650
5811
  line-height: 20px;
5651
5812
  color: var(--ink);
5652
5813
  tab-size: 4;
5653
5814
  outline: none;
5654
5815
  }
5655
- .ui-cv-body:focus-visible {
5656
- box-shadow: inset 0 0 0 2px var(--focus-ring);
5657
- }
5658
5816
  .ui-cv-body code {
5659
5817
  display: block;
5660
5818
  font: inherit;
@@ -5668,7 +5826,7 @@ html.ui-theme-fade * {
5668
5826
  /* peek: a line marked for a moment from outside (an item pointing at it); quieter than the target. */
5669
5827
  background: var(--surface);
5670
5828
  box-shadow: inset 3px 0 0 var(--line-strong);
5671
- transition: background 0.15s ease;
5829
+ transition: background var(--dur-hover) ease;
5672
5830
  }
5673
5831
  .ui-cv-line.is-target {
5674
5832
  background: var(--accent-soft);
@@ -5715,10 +5873,6 @@ html.ui-theme-fade * {
5715
5873
  .ui-cv-ref:hover {
5716
5874
  text-decoration-thickness: 2px;
5717
5875
  }
5718
- .ui-cv-ref:focus-visible {
5719
- outline: none;
5720
- box-shadow: 0 0 0 3px var(--focus-ring);
5721
- }
5722
5876
  .ui-cv-ref:is(button) {
5723
5877
  cursor: pointer;
5724
5878
  }
@@ -5754,10 +5908,6 @@ html.ui-theme-fade * {
5754
5908
  .ui-cv-body.is-armed .ui-cv-name:hover {
5755
5909
  cursor: pointer;
5756
5910
  }
5757
- .ui-cv-name:focus-visible {
5758
- outline: none;
5759
- box-shadow: 0 0 0 3px var(--focus-ring);
5760
- }
5761
5911
  @media (pointer: coarse) {
5762
5912
  .ui-cv-name {
5763
5913
  cursor: pointer;
@@ -5767,19 +5917,13 @@ html.ui-theme-fade * {
5767
5917
  .ui-cv-preview {
5768
5918
  max-width: 320px;
5769
5919
  padding: var(--space-3);
5770
- font-size: 13px;
5920
+ font-size: var(--text-small);
5771
5921
  line-height: 20px;
5772
5922
  }
5773
5923
  .ui-cv-sr {
5774
5924
  user-select: none;
5775
5925
  -webkit-user-select: none;
5776
5926
  }
5777
- .ui-cv-line.is-target:focus {
5778
- outline: none;
5779
- box-shadow:
5780
- inset 3px 0 0 var(--accent),
5781
- inset 0 0 0 2px var(--focus-ring);
5782
- }
5783
5927
  /* An operator never splits across lines (-> stays ->). */
5784
5928
  .ui-cv-op {
5785
5929
  white-space: nowrap;
@@ -5802,7 +5946,7 @@ html.ui-theme-fade * {
5802
5946
  align-items: center;
5803
5947
  min-height: 40px;
5804
5948
  margin: 0 var(--space-3) var(--space-1);
5805
- font-size: 14px;
5949
+ font-size: var(--text-compact);
5806
5950
  font-weight: 600;
5807
5951
  white-space: nowrap;
5808
5952
  }
@@ -5849,13 +5993,13 @@ html.ui-theme-fade * {
5849
5993
  }
5850
5994
  .ui-graph-name {
5851
5995
  font-family: var(--font-mono);
5852
- font-size: 13px;
5996
+ font-size: var(--text-small);
5853
5997
  fill: var(--ink);
5854
5998
  color: var(--ink);
5855
5999
  }
5856
6000
  .ui-graph-label {
5857
6001
  font-family: var(--font-sans);
5858
- font-size: 12px;
6002
+ font-size: var(--text-mini);
5859
6003
  font-weight: 600;
5860
6004
  fill: var(--ink);
5861
6005
  color: var(--ink);
@@ -5876,7 +6020,7 @@ html.ui-theme-fade * {
5876
6020
  }
5877
6021
  .ui-graph .is-dim {
5878
6022
  opacity: 0.4;
5879
- transition: opacity 0.15s ease;
6023
+ transition: opacity var(--dur-hover) ease;
5880
6024
  }
5881
6025
  .ui-graph-legend {
5882
6026
  display: flex;
@@ -5885,7 +6029,7 @@ html.ui-theme-fade * {
5885
6029
  margin-top: var(--space-2);
5886
6030
  padding-top: var(--space-3);
5887
6031
  border-top: 1px solid var(--line);
5888
- font-size: 13px;
6032
+ font-size: var(--text-small);
5889
6033
  }
5890
6034
  .ui-graph-legend-item {
5891
6035
  display: inline-flex;
@@ -5946,17 +6090,17 @@ html.ui-theme-fade * {
5946
6090
  }
5947
6091
  .ui-tree-subtitle {
5948
6092
  margin-top: 2px;
5949
- font-size: 13px;
6093
+ font-size: var(--text-small);
5950
6094
  color: var(--ink-muted);
5951
6095
  white-space: nowrap;
5952
6096
  }
5953
6097
  .ui-tree-pmeta.is-path {
5954
6098
  font-family: var(--font-mono);
5955
- font-size: 12px;
6099
+ font-size: var(--text-mini);
5956
6100
  }
5957
6101
  .ui-tree-pmeta .ui-num {
5958
6102
  font-family: var(--font-mono);
5959
- font-size: 12px;
6103
+ font-size: var(--text-mini);
5960
6104
  }
5961
6105
 
5962
6106
  /* LayerGraph */
@@ -5990,7 +6134,7 @@ html.ui-theme-fade * {
5990
6134
  align-items: center;
5991
6135
  gap: var(--space-2);
5992
6136
  min-height: 48px;
5993
- font-size: 14px;
6137
+ font-size: var(--text-compact);
5994
6138
  color: var(--ink);
5995
6139
  white-space: nowrap;
5996
6140
  cursor: pointer;
@@ -6019,7 +6163,7 @@ html.ui-theme-fade * {
6019
6163
  }
6020
6164
  .ui-lg-listtitle {
6021
6165
  margin: 0;
6022
- font-size: 13px;
6166
+ font-size: var(--text-small);
6023
6167
  font-weight: 700;
6024
6168
  color: var(--ink-muted);
6025
6169
  }
@@ -6028,8 +6172,8 @@ html.ui-theme-fade * {
6028
6172
  flex-wrap: wrap;
6029
6173
  align-items: center;
6030
6174
  min-height: 32px;
6031
- font-size: 14px;
6032
- transition: opacity 0.15s ease;
6175
+ font-size: var(--text-compact);
6176
+ transition: opacity var(--dur-hover) ease;
6033
6177
  }
6034
6178
  .ui-lg-libtn {
6035
6179
  min-height: 32px;
@@ -6061,10 +6205,6 @@ html.ui-theme-fade * {
6061
6205
  background: var(--accent-soft);
6062
6206
  font-weight: 700;
6063
6207
  }
6064
- .ui-lg-libtn:focus-visible {
6065
- outline: none;
6066
- box-shadow: 0 0 0 3px var(--focus-ring);
6067
- }
6068
6208
  .ui-lg-limeta {
6069
6209
  color: var(--ink);
6070
6210
  }
@@ -6076,6 +6216,10 @@ html.ui-theme-fade * {
6076
6216
  overflow-x: auto;
6077
6217
  overscroll-behavior-x: contain;
6078
6218
  }
6219
+ /* A box scrolled into view by keyboard focus keeps its 2 px outline (2 px away) inside the frame. */
6220
+ .ui-lg-node {
6221
+ scroll-margin: 6px;
6222
+ }
6079
6223
  /* HC: dragged shorter than the diagram: it scrolls up and down inside the frame. */
6080
6224
  .ui-lg-scroll.is-framed {
6081
6225
  overflow-y: auto;
@@ -6112,8 +6256,8 @@ html.ui-theme-fade * {
6112
6256
  background: var(--line);
6113
6257
  pointer-events: none;
6114
6258
  transition:
6115
- height 0.15s ease,
6116
- background 0.15s ease;
6259
+ height var(--dur-hover) ease,
6260
+ background var(--dur-hover) ease;
6117
6261
  }
6118
6262
  .ui-lg-resize:hover::after,
6119
6263
  .ui-lg-resize.is-dragging::after,
@@ -6125,7 +6269,7 @@ html.ui-theme-fade * {
6125
6269
  position: absolute;
6126
6270
  top: 50%;
6127
6271
  left: 50%;
6128
- z-index: 1;
6272
+ z-index: var(--z-raised);
6129
6273
  display: flex;
6130
6274
  align-items: center;
6131
6275
  justify-content: center;
@@ -6138,7 +6282,7 @@ html.ui-theme-fade * {
6138
6282
  border-radius: 5px;
6139
6283
  background: var(--surface);
6140
6284
  pointer-events: none;
6141
- transition: border-color 0.15s ease;
6285
+ transition: border-color var(--dur-hover) ease;
6142
6286
  }
6143
6287
  .ui-lg-resize-grip i {
6144
6288
  display: block;
@@ -6146,7 +6290,7 @@ html.ui-theme-fade * {
6146
6290
  height: 3px;
6147
6291
  border-radius: 50%;
6148
6292
  background: var(--line-strong);
6149
- transition: background 0.15s ease;
6293
+ transition: background var(--dur-hover) ease;
6150
6294
  }
6151
6295
  .ui-lg-resize:hover .ui-lg-resize-grip,
6152
6296
  .ui-lg-resize.is-dragging .ui-lg-resize-grip,
@@ -6172,7 +6316,7 @@ html.ui-theme-fade * {
6172
6316
  pointer-events: none;
6173
6317
  background: linear-gradient(to right, transparent, var(--ui-graph-bg, var(--surface)));
6174
6318
  opacity: 0;
6175
- transition: opacity 0.15s ease;
6319
+ transition: opacity var(--dur-hover) ease;
6176
6320
  }
6177
6321
  .ui-lg-scroller.has-more::after {
6178
6322
  opacity: 1;
@@ -6183,10 +6327,10 @@ html.ui-theme-fade * {
6183
6327
  justify-content: flex-end;
6184
6328
  gap: 4px;
6185
6329
  margin-top: var(--space-1);
6186
- font-size: 13px;
6330
+ font-size: var(--text-small);
6187
6331
  line-height: 20px;
6188
6332
  color: var(--ink-muted);
6189
- transition: opacity 0.15s ease;
6333
+ transition: opacity var(--dur-hover) ease;
6190
6334
  }
6191
6335
  .ui-scroll-hint.is-done {
6192
6336
  visibility: hidden;
@@ -6207,7 +6351,7 @@ html.ui-theme-fade * {
6207
6351
  stroke: var(--graph-edge);
6208
6352
  stroke-linecap: round;
6209
6353
  stroke-linejoin: round;
6210
- transition: opacity 0.15s ease;
6354
+ transition: opacity var(--dur-hover) ease;
6211
6355
  }
6212
6356
  .ui-lg-edge.is-inferred {
6213
6357
  stroke-dasharray: 6 4;
@@ -6222,7 +6366,7 @@ html.ui-theme-fade * {
6222
6366
  }
6223
6367
  .ui-lg-arrow {
6224
6368
  fill: var(--graph-edge);
6225
- transition: opacity 0.15s ease;
6369
+ transition: opacity var(--dur-hover) ease;
6226
6370
  }
6227
6371
  .ui-lg-arrow.is-related {
6228
6372
  fill: var(--accent);
@@ -6236,7 +6380,7 @@ html.ui-theme-fade * {
6236
6380
  position: absolute;
6237
6381
  left: 0;
6238
6382
  top: 0;
6239
- z-index: 1;
6383
+ z-index: var(--z-raised);
6240
6384
  overflow: visible;
6241
6385
  pointer-events: none;
6242
6386
  }
@@ -6253,11 +6397,13 @@ html.ui-theme-fade * {
6253
6397
  outline: none;
6254
6398
  }
6255
6399
  .ui-lg-hit:focus-visible {
6256
- stroke: var(--focus-ring);
6400
+ /* An SVG path takes no outline: the focused line is drawn 4 px wide in the focus color over the line. */
6401
+ stroke: var(--focus);
6402
+ stroke-width: 4px;
6257
6403
  }
6258
6404
  .ui-lg-node,
6259
6405
  .ui-lg-label {
6260
- z-index: 2;
6406
+ z-index: var(--z-sticky);
6261
6407
  }
6262
6408
  .ui-lg-label.is-clickable {
6263
6409
  pointer-events: auto;
@@ -6315,18 +6461,12 @@ html.ui-theme-fade * {
6315
6461
  text-align: left;
6316
6462
  cursor: pointer;
6317
6463
  transition:
6318
- opacity 0.15s ease,
6319
- background 0.15s ease;
6464
+ opacity var(--dur-hover) ease,
6465
+ background var(--dur-hover) ease;
6320
6466
  }
6321
6467
  .ui-lg-node:hover {
6322
6468
  background: var(--line);
6323
6469
  }
6324
- .ui-lg-node:focus-visible {
6325
- outline: none;
6326
- box-shadow:
6327
- inset 4px 0 0 var(--graph-edge),
6328
- 0 0 0 3px var(--focus-ring);
6329
- }
6330
6470
  .ui-lg-node.is-selected {
6331
6471
  background: var(--accent-soft);
6332
6472
  box-shadow:
@@ -6343,16 +6483,13 @@ html.ui-theme-fade * {
6343
6483
  .ui-lg-node.is-external:hover {
6344
6484
  background: var(--surface-sub);
6345
6485
  }
6346
- .ui-lg-node.is-external:focus-visible {
6347
- box-shadow: 0 0 0 3px var(--focus-ring);
6348
- }
6349
6486
  .ui-lg-node.is-external.is-selected {
6350
6487
  background: var(--accent-soft);
6351
6488
  border-color: var(--accent);
6352
6489
  box-shadow: none;
6353
6490
  }
6354
6491
  .ui-lg-ext {
6355
- font-size: 12px;
6492
+ font-size: var(--text-mini);
6356
6493
  line-height: 16px;
6357
6494
  color: var(--ink-muted);
6358
6495
  }
@@ -6361,10 +6498,12 @@ html.ui-theme-fade * {
6361
6498
  overflow: hidden;
6362
6499
  text-overflow: ellipsis;
6363
6500
  white-space: nowrap;
6364
- font-family: var(--font-mono);
6365
- font-size: 13px;
6501
+ font-size: var(--text-small);
6366
6502
  font-weight: 600;
6367
6503
  }
6504
+ .ui-lg-name.is-code {
6505
+ font-family: var(--font-mono);
6506
+ }
6368
6507
  .ui-lg-size {
6369
6508
  display: flex;
6370
6509
  align-items: center;
@@ -6388,14 +6527,14 @@ html.ui-theme-fade * {
6388
6527
  }
6389
6528
  .ui-lg-count {
6390
6529
  flex: 0 0 auto;
6391
- font-size: 12px;
6530
+ font-size: var(--text-mini);
6392
6531
  color: var(--ink-muted);
6393
6532
  white-space: nowrap;
6394
6533
  }
6395
6534
  .ui-lg-label {
6396
6535
  position: absolute;
6397
6536
  transform: translateY(-50%);
6398
- font-size: 12px;
6537
+ font-size: var(--text-mini);
6399
6538
  font-weight: 600;
6400
6539
  line-height: 16px;
6401
6540
  color: var(--ink);
@@ -6403,7 +6542,7 @@ html.ui-theme-fade * {
6403
6542
  pointer-events: none;
6404
6543
  paint-order: stroke fill;
6405
6544
  -webkit-text-stroke: 5px var(--ui-graph-bg, var(--surface));
6406
- transition: opacity 0.15s ease;
6545
+ transition: opacity var(--dur-hover) ease;
6407
6546
  }
6408
6547
  .ui-lg-label.is-over {
6409
6548
  background: var(--ui-graph-bg, var(--surface));
@@ -6412,7 +6551,7 @@ html.ui-theme-fade * {
6412
6551
  /* NA+B: the text of a numbered line shows only while the line is hovered or selected. */
6413
6552
  .ui-lg-label.is-numbered {
6414
6553
  visibility: hidden;
6415
- z-index: 3;
6554
+ z-index: calc(var(--z-sticky) + 1);
6416
6555
  }
6417
6556
  .ui-lg-label.is-numbered.is-shown {
6418
6557
  visibility: visible;
@@ -6420,15 +6559,15 @@ html.ui-theme-fade * {
6420
6559
  /* A line's number: a 20 px dot on the line, the same number as in the list under the diagram. */
6421
6560
  .ui-lg-num {
6422
6561
  position: absolute;
6423
- z-index: 2;
6562
+ z-index: var(--z-sticky);
6424
6563
  width: 20px;
6425
6564
  height: 20px;
6426
6565
  margin: -10px 0 0 -10px;
6427
- border-radius: 99px;
6566
+ border-radius: var(--radius-full);
6428
6567
  background: var(--ink);
6429
6568
  color: var(--surface);
6430
6569
  font-family: var(--font-mono);
6431
- font-size: 12px;
6570
+ font-size: var(--text-mini);
6432
6571
  font-weight: 700;
6433
6572
  line-height: 20px;
6434
6573
  text-align: center;
@@ -6454,7 +6593,7 @@ html.ui-theme-fade * {
6454
6593
  display: flex;
6455
6594
  flex-direction: column;
6456
6595
  gap: var(--space-1);
6457
- font-size: 13px;
6596
+ font-size: var(--text-small);
6458
6597
  }
6459
6598
  .ui-lg-numlist li {
6460
6599
  display: flex;
@@ -6472,7 +6611,7 @@ html.ui-theme-fade * {
6472
6611
  }
6473
6612
  .ui-lg-shared {
6474
6613
  margin-top: var(--space-3);
6475
- font-size: 13px;
6614
+ font-size: var(--text-small);
6476
6615
  }
6477
6616
  .ui-lg-shared-title {
6478
6617
  font-weight: 700;
@@ -6493,7 +6632,7 @@ html.ui-theme-fade * {
6493
6632
  padding: 6px 12px 6px 16px;
6494
6633
  }
6495
6634
  .ui-lg-shared-meta {
6496
- font-size: 12px;
6635
+ font-size: var(--text-mini);
6497
6636
  color: var(--ink-muted);
6498
6637
  }
6499
6638
  .ui-lg-head {
@@ -6513,7 +6652,7 @@ html.ui-theme-fade * {
6513
6652
  background: var(--surface);
6514
6653
  color: var(--ink-muted);
6515
6654
  font-family: var(--font-sans);
6516
- font-size: 12px;
6655
+ font-size: var(--text-mini);
6517
6656
  font-weight: 600;
6518
6657
  line-height: 16px;
6519
6658
  white-space: nowrap;
@@ -6542,7 +6681,7 @@ html.ui-theme-fade * {
6542
6681
  border-radius: var(--radius-sm);
6543
6682
  background: var(--accent);
6544
6683
  color: var(--on-accent);
6545
- font-size: 12px;
6684
+ font-size: var(--text-mini);
6546
6685
  line-height: 18px;
6547
6686
  white-space: nowrap;
6548
6687
  }
@@ -6590,9 +6729,14 @@ html.ui-theme-fade * {
6590
6729
  .ui-card.is-flush > .ui-dt:first-child {
6591
6730
  padding-top: var(--space-4);
6592
6731
  }
6593
- .ui-card.is-flush > .ui-dt > :not(.ui-dt-scroller) {
6732
+ .ui-card.is-flush > .ui-dt > :not(.ui-dt-scroller, .ui-dt-summary) {
6594
6733
  padding-inline: var(--space-4);
6595
6734
  }
6735
+ /* The summary tabs draw their own track: kept off the card's edges by a margin, not padded inside the track. */
6736
+ .ui-card.is-flush > .ui-dt > .ui-dt-summary {
6737
+ margin-inline: var(--space-4);
6738
+ max-width: calc(100% - 2 * var(--space-4));
6739
+ }
6596
6740
  .ui-card.is-flush > .ui-dt .ui-dt-scroll {
6597
6741
  border-inline: 0;
6598
6742
  border-radius: 0;
@@ -6601,7 +6745,7 @@ html.ui-theme-fade * {
6601
6745
  flex: 1 1 auto;
6602
6746
  min-width: 0;
6603
6747
  margin: 0;
6604
- font-size: 17px;
6748
+ font-size: var(--text-title);
6605
6749
  font-weight: 700;
6606
6750
  white-space: nowrap;
6607
6751
  overflow: hidden;
@@ -6612,6 +6756,8 @@ html.ui-theme-fade * {
6612
6756
  align-items: center;
6613
6757
  gap: var(--space-2);
6614
6758
  flex: 0 0 auto;
6759
+ /* Always at the right end, with or without a title beside them. */
6760
+ margin-left: auto;
6615
6761
  }
6616
6762
  :is(.ui-card, .ui-tree, .ui-settings-section, .ui-dialog, .ui-drawer) :is(.ui-tree, .ui-kpi, .ui-settings-section, .ui-alert) {
6617
6763
  box-shadow: none;
@@ -6638,7 +6784,7 @@ html.ui-theme-fade * {
6638
6784
  Popups stay above every panel layer (drawer 800, dialog 900, palette 950, tour 960) and below tooltips (1000). */
6639
6785
  .ui-float,
6640
6786
  .ui-select-positioner {
6641
- z-index: 980;
6787
+ z-index: var(--z-popover);
6642
6788
  outline: none;
6643
6789
  }
6644
6790
  .ui-menu {
@@ -6654,19 +6800,19 @@ html.ui-theme-fade * {
6654
6800
  box-sizing: border-box;
6655
6801
  }
6656
6802
  .ui-tooltip-positioner {
6657
- z-index: 1000;
6803
+ z-index: var(--z-tooltip);
6658
6804
  pointer-events: none;
6659
6805
  }
6660
6806
  .ui-tour-float {
6661
- z-index: 961;
6807
+ z-index: calc(var(--z-tour) + 1);
6662
6808
  }
6663
6809
  .ui-backdrop {
6664
- z-index: 900;
6810
+ z-index: var(--z-modal);
6665
6811
  }
6666
6812
  .ui-dialog-viewport {
6667
6813
  position: fixed;
6668
6814
  inset: 0;
6669
- z-index: 901;
6815
+ z-index: calc(var(--z-modal) + 1);
6670
6816
  display: flex;
6671
6817
  align-items: center;
6672
6818
  justify-content: center;
@@ -6691,14 +6837,14 @@ html.ui-theme-fade * {
6691
6837
  margin-bottom: 0;
6692
6838
  }
6693
6839
  .ui-dialog-title:where(h2) {
6694
- font-size: 20px;
6840
+ font-size: var(--text-h4);
6695
6841
  line-height: 28px;
6696
6842
  }
6697
6843
  .ui-drawer-title:where(h2) {
6698
- font-size: 20px;
6844
+ font-size: var(--text-h4);
6699
6845
  }
6700
6846
  .ui-term-sheet .ui-term-title:where(h2) {
6701
- font-size: 17px;
6847
+ font-size: var(--text-title);
6702
6848
  }
6703
6849
  .ui-select-empty:empty {
6704
6850
  display: none;
@@ -6719,7 +6865,7 @@ html.ui-theme-fade * {
6719
6865
  name tooltips are not needed there: resting on the strip opens the names. */
6720
6866
  .ui-shell-rail {
6721
6867
  position: relative;
6722
- z-index: 20;
6868
+ z-index: var(--z-rail);
6723
6869
  flex: 0 0 var(--sidebar-collapsed);
6724
6870
  height: 100%;
6725
6871
  }
@@ -6729,8 +6875,8 @@ html.ui-theme-fade * {
6729
6875
  bottom: 0;
6730
6876
  left: 0;
6731
6877
  transition:
6732
- width 0.3s cubic-bezier(0.3, 0.7, 0.3, 1),
6733
- box-shadow 0.3s ease;
6878
+ width var(--dur-toggle) var(--ease-glide),
6879
+ box-shadow var(--dur-toggle) ease;
6734
6880
  }
6735
6881
  .ui-shell-rail.is-open > .ui-sidenav {
6736
6882
  box-shadow: var(--shadow-overlay);
@@ -6752,7 +6898,7 @@ html.ui-theme-fade * {
6752
6898
  }
6753
6899
  .ui-shell-top {
6754
6900
  position: absolute;
6755
- z-index: 10;
6901
+ z-index: var(--z-header);
6756
6902
  top: 0;
6757
6903
  left: 0;
6758
6904
  right: 0;
@@ -6773,7 +6919,7 @@ html.ui-theme-fade * {
6773
6919
  min-height: var(--touch-target);
6774
6920
  left: var(--space-3);
6775
6921
  top: var(--space-3);
6776
- z-index: 1000;
6922
+ z-index: var(--z-tooltip);
6777
6923
  padding: var(--space-2) var(--space-4);
6778
6924
  border-radius: var(--radius-md);
6779
6925
  background: var(--surface);
@@ -6785,10 +6931,7 @@ html.ui-theme-fade * {
6785
6931
  }
6786
6932
  .ui-skip:focus {
6787
6933
  transform: none;
6788
- outline: none;
6789
- box-shadow:
6790
- var(--shadow-overlay),
6791
- 0 0 0 3px var(--focus-ring);
6934
+ box-shadow: var(--shadow-overlay);
6792
6935
  }
6793
6936
  .ui-shell-main:focus {
6794
6937
  outline: none;
@@ -6919,8 +7062,8 @@ html.ui-theme-fade * {
6919
7062
  border-radius: 2px;
6920
7063
  pointer-events: none;
6921
7064
  transition:
6922
- width 0.15s ease,
6923
- background 0.15s ease;
7065
+ width var(--dur-hover) ease,
7066
+ background var(--dur-hover) ease;
6924
7067
  }
6925
7068
  .ui-split-handle:hover::after,
6926
7069
  .ui-split.is-dragging .ui-split-handle::after,
@@ -6933,7 +7076,7 @@ html.ui-theme-fade * {
6933
7076
  position: absolute;
6934
7077
  top: 50%;
6935
7078
  left: 50%;
6936
- z-index: 1;
7079
+ z-index: var(--z-raised);
6937
7080
  display: flex;
6938
7081
  flex-direction: column;
6939
7082
  align-items: center;
@@ -6947,7 +7090,7 @@ html.ui-theme-fade * {
6947
7090
  border-radius: 5px;
6948
7091
  background: var(--surface);
6949
7092
  pointer-events: none;
6950
- transition: border-color 0.15s ease;
7093
+ transition: border-color var(--dur-hover) ease;
6951
7094
  }
6952
7095
  .ui-split-grip i {
6953
7096
  display: block;
@@ -6955,7 +7098,7 @@ html.ui-theme-fade * {
6955
7098
  height: 3px;
6956
7099
  border-radius: 50%;
6957
7100
  background: var(--line-strong);
6958
- transition: background 0.15s ease;
7101
+ transition: background var(--dur-hover) ease;
6959
7102
  }
6960
7103
  .ui-split-handle:hover .ui-split-grip,
6961
7104
  .ui-split.is-dragging .ui-split-grip,
@@ -6988,9 +7131,7 @@ html.ui-theme-fade * {
6988
7131
  /* Charts by keyboard: the plot is a Tab stop; ← → show each value. */
6989
7132
  .ui-bars:focus-visible,
6990
7133
  .ui-chart-plot:focus-visible {
6991
- outline: none;
6992
7134
  border-radius: var(--radius-sm);
6993
- box-shadow: 0 0 0 3px var(--focus-ring);
6994
7135
  }
6995
7136
 
6996
7137
  /* Section: a part of a page that closes to its title and a one-line summary (SLR4LANG). */
@@ -7045,14 +7186,10 @@ html.ui-theme-fade * {
7045
7186
  text-align: left;
7046
7187
  cursor: pointer;
7047
7188
  }
7048
- .ui-sec-btn:focus-visible {
7049
- outline: 2px solid var(--focus-ring, var(--accent));
7050
- outline-offset: 2px;
7051
- }
7052
7189
  .ui-sec-caret {
7053
7190
  flex: none;
7054
7191
  color: var(--ink-muted);
7055
- transition: transform 260ms ease;
7192
+ transition: transform var(--dur-expand) ease;
7056
7193
  }
7057
7194
  .ui-sec.is-open .ui-sec-caret {
7058
7195
  transform: rotate(90deg);
@@ -7060,7 +7197,7 @@ html.ui-theme-fade * {
7060
7197
  .ui-sec-title {
7061
7198
  flex: none;
7062
7199
  max-width: 100%;
7063
- font-size: 20px;
7200
+ font-size: var(--text-h4);
7064
7201
  line-height: 28px;
7065
7202
  font-weight: 700;
7066
7203
  white-space: nowrap;
@@ -7072,7 +7209,7 @@ html.ui-theme-fade * {
7072
7209
  min-width: 0;
7073
7210
  padding-left: var(--space-1);
7074
7211
  color: var(--ink-muted);
7075
- font-size: 13px;
7212
+ font-size: var(--text-small);
7076
7213
  line-height: 20px;
7077
7214
  font-weight: 400;
7078
7215
  white-space: nowrap;
@@ -7082,7 +7219,7 @@ html.ui-theme-fade * {
7082
7219
  .ui-sec-body {
7083
7220
  display: grid;
7084
7221
  grid-template-rows: 0fr;
7085
- transition: grid-template-rows 260ms ease;
7222
+ transition: grid-template-rows var(--dur-expand) ease;
7086
7223
  }
7087
7224
  .ui-sec.is-open > .ui-sec-body {
7088
7225
  grid-template-rows: 1fr;
@@ -7110,7 +7247,7 @@ html.ui-theme-fade * {
7110
7247
 
7111
7248
  /* Markdown: project documents and code comments in the system's type; # is an h4 (20 px). */
7112
7249
  .ui-md {
7113
- font-size: 16px;
7250
+ font-size: var(--text-body);
7114
7251
  line-height: 1.65;
7115
7252
  color: var(--ink);
7116
7253
  /* break-word, not anywhere: a long word still wraps, but a table does not think every column can shrink to one
@@ -7118,7 +7255,7 @@ html.ui-theme-fade * {
7118
7255
  overflow-wrap: break-word;
7119
7256
  }
7120
7257
  .ui-md.is-small {
7121
- font-size: 13px;
7258
+ font-size: var(--text-small);
7122
7259
  line-height: 20px;
7123
7260
  }
7124
7261
  .ui-md > :first-child {
@@ -7138,7 +7275,7 @@ html.ui-theme-fade * {
7138
7275
  }
7139
7276
  .ui-md h4.ui-md-h {
7140
7277
  margin: var(--space-5) 0 var(--space-2);
7141
- font-size: 20px;
7278
+ font-size: var(--text-h4);
7142
7279
  line-height: 28px;
7143
7280
  font-weight: 700;
7144
7281
  }
@@ -7151,11 +7288,11 @@ html.ui-theme-fade * {
7151
7288
  font-weight: 700;
7152
7289
  }
7153
7290
  .ui-md h3.ui-md-h {
7154
- font-size: 25px;
7291
+ font-size: var(--text-h3);
7155
7292
  line-height: 32px;
7156
7293
  }
7157
7294
  .ui-md.is-small h4.ui-md-h {
7158
- font-size: 13px;
7295
+ font-size: var(--text-small);
7159
7296
  line-height: 20px;
7160
7297
  }
7161
7298
  .ui-md ul,
@@ -7196,7 +7333,7 @@ html.ui-theme-fade * {
7196
7333
  .ui-md-table {
7197
7334
  border-collapse: collapse;
7198
7335
  min-width: 100%;
7199
- font-size: 14px;
7336
+ font-size: var(--text-compact);
7200
7337
  line-height: 20px;
7201
7338
  }
7202
7339
  .ui-md-table th {
@@ -7250,7 +7387,7 @@ html.ui-theme-fade * {
7250
7387
  .ui-md-caret {
7251
7388
  flex: none;
7252
7389
  color: var(--ink-muted);
7253
- transition: transform 260ms ease;
7390
+ transition: transform var(--dur-expand) ease;
7254
7391
  }
7255
7392
  .ui-md-details.is-open .ui-md-caret {
7256
7393
  transform: rotate(90deg);
@@ -7302,7 +7439,7 @@ html.ui-theme-fade * {
7302
7439
  top: 0;
7303
7440
  bottom: 0;
7304
7441
  right: -6px;
7305
- z-index: 1;
7442
+ z-index: var(--z-raised);
7306
7443
  width: 11px;
7307
7444
  cursor: col-resize;
7308
7445
  touch-action: none;
@@ -7322,7 +7459,7 @@ html.ui-theme-fade * {
7322
7459
  transform: translateX(-50%);
7323
7460
  border-radius: 2px;
7324
7461
  background: var(--accent);
7325
- transition: width 0.15s ease;
7462
+ transition: width var(--dur-hover) ease;
7326
7463
  }
7327
7464
  .ui-md-table th:last-child .ui-col-resize::after {
7328
7465
  left: auto;
@@ -7407,13 +7544,13 @@ html.ui-theme-fade * {
7407
7544
  display: block;
7408
7545
  color: var(--ink-muted);
7409
7546
  font-family: var(--font-sans);
7410
- font-size: 13px;
7547
+ font-size: var(--text-small);
7411
7548
  line-height: 20px;
7412
7549
  }
7413
7550
  }
7414
7551
  /* Headings of Markdown inside a Section stay under the section's 20 px title. */
7415
7552
  .ui-sec-content .ui-md h4.ui-md-h {
7416
- font-size: 16px;
7553
+ font-size: var(--text-body);
7417
7554
  line-height: 24px;
7418
7555
  }
7419
7556
 
@@ -7445,7 +7582,7 @@ html.ui-theme-fade * {
7445
7582
  grid-template-columns: minmax(0, 1fr);
7446
7583
  }
7447
7584
  .ui-dl.is-body .ui-dl-item dt {
7448
- font-size: 13px;
7585
+ font-size: var(--text-small);
7449
7586
  line-height: 20px;
7450
7587
  }
7451
7588
  }
@@ -7470,7 +7607,7 @@ html.ui-theme-fade * {
7470
7607
  background: var(--surface-chrome);
7471
7608
  border-bottom: 1px solid var(--line);
7472
7609
  position: relative;
7473
- z-index: 6;
7610
+ z-index: calc(var(--z-float) + 1);
7474
7611
  --hint-ring: var(--surface-chrome);
7475
7612
  }
7476
7613
  .ui-wb-top-l {
@@ -7506,14 +7643,10 @@ html.ui-theme-fade * {
7506
7643
  border-radius: var(--radius-sm);
7507
7644
  color: inherit;
7508
7645
  font-weight: 700;
7509
- font-size: 15px;
7646
+ font-size: var(--text-control);
7510
7647
  text-decoration: none;
7511
7648
  white-space: nowrap;
7512
7649
  }
7513
- a.ui-wb-brand:focus-visible {
7514
- outline: none;
7515
- box-shadow: 0 0 0 3px var(--focus-ring);
7516
- }
7517
7650
  .ui-wb-mark {
7518
7651
  display: inline-flex;
7519
7652
  align-items: center;
@@ -7527,12 +7660,12 @@ a.ui-wb-brand:focus-visible {
7527
7660
  .ui-wb-crumbs {
7528
7661
  min-width: 0;
7529
7662
  overflow: hidden;
7530
- font-size: 13px;
7663
+ font-size: var(--text-small);
7531
7664
  }
7532
7665
  .ui-wb-crumbs ol {
7533
7666
  flex-wrap: nowrap;
7534
7667
  white-space: nowrap;
7535
- font-size: 13px;
7668
+ font-size: var(--text-small);
7536
7669
  min-width: 0;
7537
7670
  }
7538
7671
  /* Too long for the bar: the levels give way, then the current one ends in an ellipsis. */
@@ -7561,16 +7694,16 @@ a.ui-wb-brand:focus-visible {
7561
7694
  overflow: auto;
7562
7695
  background: var(--bg);
7563
7696
  transition:
7564
- left 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7565
- right 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7566
- bottom 300ms cubic-bezier(0.3, 0.7, 0.3, 1);
7697
+ left var(--dur-toggle) var(--ease-glide),
7698
+ right var(--dur-toggle) var(--ease-glide),
7699
+ bottom var(--dur-toggle) var(--ease-glide);
7567
7700
  }
7568
7701
  /* The bar above the main view: breadcrumb and the page's small buttons, 36 px, in line with the tab rows beside it. */
7569
7702
  .ui-wb-mainbar {
7570
7703
  position: absolute;
7571
7704
  top: 0;
7572
7705
  height: 36px;
7573
- z-index: 1;
7706
+ z-index: var(--z-raised);
7574
7707
  display: flex;
7575
7708
  align-items: center;
7576
7709
  gap: var(--space-2);
@@ -7579,8 +7712,8 @@ a.ui-wb-brand:focus-visible {
7579
7712
  background: var(--surface);
7580
7713
  border-bottom: 1px solid var(--line);
7581
7714
  transition:
7582
- left 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7583
- right 300ms cubic-bezier(0.3, 0.7, 0.3, 1);
7715
+ left var(--dur-toggle) var(--ease-glide),
7716
+ right var(--dur-toggle) var(--ease-glide);
7584
7717
  }
7585
7718
  .ui-wb.is-sizing .ui-wb-mainbar {
7586
7719
  transition: none;
@@ -7619,16 +7752,13 @@ a.ui-wb-brand:focus-visible {
7619
7752
  border: 0;
7620
7753
  border-radius: var(--radius-sm);
7621
7754
  background: transparent;
7622
- font-size: 13px;
7755
+ font-size: var(--text-small);
7623
7756
  box-shadow: none;
7624
7757
  }
7625
7758
  .ui-wb-exfilter .ui-searchfield .ui-input:hover,
7626
7759
  .ui-wb-exfilter .ui-searchfield .ui-input:focus {
7627
7760
  background: var(--surface-sub);
7628
7761
  }
7629
- .ui-wb-exfilter .ui-searchfield .ui-input:focus-visible {
7630
- box-shadow: 0 0 0 3px var(--focus-ring);
7631
- }
7632
7762
  .ui-wb-exfilter .ui-searchfield-icon {
7633
7763
  left: 8px;
7634
7764
  top: 6px;
@@ -7675,9 +7805,9 @@ a.ui-wb-brand:focus-visible {
7675
7805
  .ui-wb-side.is-docked,
7676
7806
  .ui-wb-panel {
7677
7807
  transition:
7678
- transform 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7679
- left 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7680
- right 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7808
+ transform var(--dur-toggle) var(--ease-glide),
7809
+ left var(--dur-toggle) var(--ease-glide),
7810
+ right var(--dur-toggle) var(--ease-glide),
7681
7811
  visibility 0s;
7682
7812
  }
7683
7813
  .ui-wb-ex.is-docked.is-shut,
@@ -7685,10 +7815,10 @@ a.ui-wb-brand:focus-visible {
7685
7815
  .ui-wb-panel.is-shut {
7686
7816
  visibility: hidden;
7687
7817
  transition:
7688
- transform 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7689
- left 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7690
- right 300ms cubic-bezier(0.3, 0.7, 0.3, 1),
7691
- visibility 0s linear 300ms;
7818
+ transform var(--dur-toggle) var(--ease-glide),
7819
+ left var(--dur-toggle) var(--ease-glide),
7820
+ right var(--dur-toggle) var(--ease-glide),
7821
+ visibility 0s linear var(--dur-toggle);
7692
7822
  }
7693
7823
  .ui-wb-ex.is-shut {
7694
7824
  transform: translateX(-100%);
@@ -7702,19 +7832,19 @@ a.ui-wb-brand:focus-visible {
7702
7832
  /* motion.md 側邊抽屜: elastic in 450 ms, out 300 ms; scrim 300 ms. */
7703
7833
  .ui-wb-ex.is-drawer,
7704
7834
  .ui-wb-side.is-drawer {
7705
- z-index: 8;
7835
+ z-index: calc(var(--z-float) + 3);
7706
7836
  box-shadow: var(--shadow-overlay);
7707
7837
  border: 0;
7708
7838
  transition:
7709
- transform 450ms cubic-bezier(0.34, 1.4, 0.64, 1),
7839
+ transform var(--dur-drawer) var(--ease-spring),
7710
7840
  visibility 0s;
7711
7841
  }
7712
7842
  .ui-wb-ex.is-drawer.is-shut,
7713
7843
  .ui-wb-side.is-drawer.is-shut {
7714
7844
  visibility: hidden;
7715
7845
  transition:
7716
- transform 300ms cubic-bezier(0.4, 0, 1, 1),
7717
- visibility 0s linear 300ms;
7846
+ transform var(--dur-toggle) var(--ease-exit),
7847
+ visibility 0s linear var(--dur-toggle);
7718
7848
  }
7719
7849
  .ui-wb-ex.is-drawer::before,
7720
7850
  .ui-wb-side.is-drawer::after {
@@ -7734,7 +7864,7 @@ a.ui-wb-brand:focus-visible {
7734
7864
  .ui-wb-scrim {
7735
7865
  position: absolute;
7736
7866
  inset: 0;
7737
- z-index: 7;
7867
+ z-index: calc(var(--z-float) + 2);
7738
7868
  border: 0;
7739
7869
  padding: 0;
7740
7870
  background: var(--scrim);
@@ -7742,7 +7872,7 @@ a.ui-wb-brand:focus-visible {
7742
7872
  -webkit-backdrop-filter: blur(4px);
7743
7873
  opacity: 0;
7744
7874
  pointer-events: none;
7745
- transition: opacity 300ms ease;
7875
+ transition: opacity var(--dur-toggle) ease;
7746
7876
  }
7747
7877
  .ui-wb-scrim.is-open {
7748
7878
  opacity: 1;
@@ -7776,7 +7906,7 @@ a.ui-wb-brand:focus-visible {
7776
7906
  /* Splitters: 8 px to grab, a 1 px line; a 2 px accent line on hover (after 150 ms), while dragging and on focus. */
7777
7907
  .ui-wb-split {
7778
7908
  position: absolute;
7779
- z-index: 5;
7909
+ z-index: var(--z-float);
7780
7910
  outline: none;
7781
7911
  touch-action: none;
7782
7912
  }
@@ -7799,7 +7929,7 @@ a.ui-wb-brand:focus-visible {
7799
7929
  .ui-wb-split-line {
7800
7930
  position: absolute;
7801
7931
  background: transparent;
7802
- transition: background-color 0.15s ease 0.15s;
7932
+ transition: background-color var(--dur-hover) ease var(--dur-hover);
7803
7933
  }
7804
7934
  .ui-wb-split.is-v .ui-wb-split-line {
7805
7935
  top: 0;
@@ -7883,7 +8013,7 @@ a.ui-wb-brand:focus-visible {
7883
8013
  background: none;
7884
8014
  color: var(--ink-muted);
7885
8015
  font: inherit;
7886
- font-size: 13px;
8016
+ font-size: var(--text-small);
7887
8017
  font-weight: 500;
7888
8018
  white-space: nowrap;
7889
8019
  cursor: pointer;
@@ -7896,23 +8026,21 @@ a.ui-wb-brand:focus-visible {
7896
8026
  font-weight: 700;
7897
8027
  }
7898
8028
  .ui-wb-tab:focus-visible {
7899
- outline: none;
7900
- box-shadow: inset 0 0 0 2px var(--focus-ring);
7901
8029
  border-radius: var(--radius-sm);
7902
8030
  }
7903
8031
  .ui-wb-tab.is-ghost {
7904
8032
  opacity: 0.4;
7905
8033
  }
7906
8034
  .ui-wb-tab.is-held {
7907
- z-index: 2;
8035
+ z-index: var(--z-sticky);
7908
8036
  border-radius: var(--radius-sm);
7909
8037
  background: var(--accent-soft);
7910
8038
  color: var(--accent-text);
7911
8039
  box-shadow: var(--shadow-overlay);
7912
8040
  transform: scale(1.06);
7913
8041
  transition:
7914
- transform 0.15s ease,
7915
- box-shadow 0.15s ease;
8042
+ transform var(--dur-hover) ease,
8043
+ box-shadow var(--dur-hover) ease;
7916
8044
  }
7917
8045
  /* Where a dragged tab lands: a 2 px accent line before (or after the last) tab. */
7918
8046
  .ui-wb-tab.has-line::before,
@@ -7936,7 +8064,7 @@ a.ui-wb-brand:focus-visible {
7936
8064
  width: 6px;
7937
8065
  height: 6px;
7938
8066
  border-radius: var(--radius-full);
7939
- background: var(--warning);
8067
+ background: var(--warning-text);
7940
8068
  }
7941
8069
  .ui-wb-dot.is-on-button {
7942
8070
  position: absolute;
@@ -7959,7 +8087,7 @@ a.ui-wb-brand:focus-visible {
7959
8087
  background: none;
7960
8088
  color: var(--ink-muted);
7961
8089
  font: inherit;
7962
- font-size: 13px;
8090
+ font-size: var(--text-small);
7963
8091
  font-weight: 600;
7964
8092
  white-space: nowrap;
7965
8093
  cursor: pointer;
@@ -7969,10 +8097,6 @@ a.ui-wb-brand:focus-visible {
7969
8097
  background: var(--surface-sub);
7970
8098
  color: var(--ink);
7971
8099
  }
7972
- .ui-wb-more:focus-visible {
7973
- outline: none;
7974
- box-shadow: 0 0 0 3px var(--focus-ring);
7975
- }
7976
8100
  .ui-wb-tabbtns {
7977
8101
  flex: none;
7978
8102
  display: flex;
@@ -7986,7 +8110,7 @@ a.ui-wb-brand:focus-visible {
7986
8110
  }
7987
8111
  /* motion.md 內容切換: the new view's blocks rise one after another, 40 ms apart. */
7988
8112
  .ui-wb-pane > * {
7989
- animation: ui-wb-rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
8113
+ animation: ui-wb-rise var(--dur-toggle) var(--ease-standard) both;
7990
8114
  }
7991
8115
  .ui-wb-pane > :nth-child(2) {
7992
8116
  animation-delay: 40ms;
@@ -8014,7 +8138,7 @@ a.ui-wb-brand:focus-visible {
8014
8138
  .ui-wb-dropframe {
8015
8139
  position: absolute;
8016
8140
  inset: 4px;
8017
- z-index: 4;
8141
+ z-index: calc(var(--z-float) - 1);
8018
8142
  display: flex;
8019
8143
  align-items: center;
8020
8144
  justify-content: center;
@@ -8024,7 +8148,7 @@ a.ui-wb-brand:focus-visible {
8024
8148
  }
8025
8149
  .ui-wb-dropframe span,
8026
8150
  .ui-wb-dropzone {
8027
- font-size: 13px;
8151
+ font-size: var(--text-small);
8028
8152
  font-weight: 700;
8029
8153
  }
8030
8154
  .ui-wb-dropframe span {
@@ -8036,7 +8160,7 @@ a.ui-wb-brand:focus-visible {
8036
8160
  }
8037
8161
  .ui-wb-dropzone {
8038
8162
  position: absolute;
8039
- z-index: 9;
8163
+ z-index: calc(var(--z-float) + 4);
8040
8164
  display: flex;
8041
8165
  align-items: center;
8042
8166
  justify-content: center;
@@ -8066,18 +8190,18 @@ a.ui-wb-brand:focus-visible {
8066
8190
  left: 0;
8067
8191
  right: 0;
8068
8192
  bottom: 0;
8069
- z-index: 5;
8193
+ z-index: var(--z-float);
8070
8194
  border-top: 1px solid var(--line);
8071
8195
  transition:
8072
- transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
8196
+ transform var(--dur-toggle) var(--ease-standard),
8073
8197
  visibility 0s;
8074
8198
  }
8075
8199
  .ui-wb-sheet.is-shut {
8076
8200
  visibility: hidden;
8077
8201
  transform: translateY(100%);
8078
8202
  transition:
8079
- transform 300ms cubic-bezier(0.4, 0, 1, 1),
8080
- visibility 0s linear 300ms;
8203
+ transform var(--dur-toggle) var(--ease-exit),
8204
+ visibility 0s linear var(--dur-toggle);
8081
8205
  }
8082
8206
  .ui-wb-sheet > .ui-wb-split.is-h {
8083
8207
  height: 20px;
@@ -8154,13 +8278,16 @@ a.ui-wb-brand:focus-visible {
8154
8278
  background: var(--surface-sub);
8155
8279
  vertical-align: middle;
8156
8280
  }
8281
+ /* Like the tab pill: a line-strong border shows the selection at 3:1 (icon-only items differ in color alone). */
8157
8282
  .ui-seg-ind {
8158
8283
  position: absolute;
8159
8284
  top: 2px;
8160
8285
  bottom: 2px;
8161
- border-radius: 4px;
8286
+ box-sizing: border-box;
8287
+ border: 1px solid var(--line-strong);
8288
+ border-radius: var(--radius-xs);
8162
8289
  background: var(--surface);
8163
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
8290
+ box-shadow: var(--shadow-sm);
8164
8291
  }
8165
8292
  .ui-seg-item {
8166
8293
  position: relative;
@@ -8171,15 +8298,15 @@ a.ui-wb-brand:focus-visible {
8171
8298
  height: 24px;
8172
8299
  padding: 0 10px;
8173
8300
  border: 0;
8174
- border-radius: 4px;
8301
+ border-radius: var(--radius-xs);
8175
8302
  background: none;
8176
8303
  color: var(--ink-muted);
8177
8304
  font: inherit;
8178
- font-size: 13px;
8305
+ font-size: var(--text-small);
8179
8306
  line-height: 20px;
8180
8307
  white-space: nowrap;
8181
8308
  cursor: pointer;
8182
- transition: color 0.15s ease;
8309
+ transition: color var(--dur-hover) ease;
8183
8310
  }
8184
8311
  .ui-seg-item:hover,
8185
8312
  .ui-seg-item.is-selected {
@@ -8195,10 +8322,6 @@ a.ui-wb-brand:focus-visible {
8195
8322
  .ui-seg.is-icons .ui-seg-item.is-selected {
8196
8323
  color: var(--accent-text);
8197
8324
  }
8198
- .ui-seg-item:focus-visible {
8199
- outline: none;
8200
- box-shadow: 0 0 0 3px var(--focus-ring);
8201
- }
8202
8325
  @media (prefers-reduced-motion: reduce) {
8203
8326
  .ui-seg-ind {
8204
8327
  transition: none !important;
@@ -8208,7 +8331,7 @@ a.ui-wb-brand:focus-visible {
8208
8331
  /* LineChart additions for monitoring: band between two series, now and the future, thresholds, marker, playhead. */
8209
8332
  .ui-chart-headline {
8210
8333
  margin-bottom: 4px;
8211
- font-size: 25px;
8334
+ font-size: var(--text-h3);
8212
8335
  line-height: 32px;
8213
8336
  font-weight: 700;
8214
8337
  font-variant-numeric: tabular-nums;
@@ -8259,7 +8382,7 @@ a.ui-wb-brand:focus-visible {
8259
8382
  display: flex;
8260
8383
  align-items: center;
8261
8384
  justify-content: center;
8262
- font-size: 13px;
8385
+ font-size: var(--text-small);
8263
8386
  color: var(--ink-muted);
8264
8387
  }
8265
8388
  .ui-chart-stripe {
@@ -8270,17 +8393,17 @@ a.ui-wb-brand:focus-visible {
8270
8393
  stroke-dasharray: 6 4;
8271
8394
  }
8272
8395
  .ui-chart-threshold text {
8273
- font-size: 12px;
8396
+ font-size: var(--text-mini);
8274
8397
  font-weight: 600;
8275
8398
  }
8276
8399
  .ui-chart-threshold.is-warning line {
8277
- stroke: var(--warning);
8400
+ stroke: var(--warning-text);
8278
8401
  }
8279
8402
  .ui-chart-threshold.is-warning text {
8280
8403
  fill: var(--warning-text);
8281
8404
  }
8282
8405
  .ui-chart-threshold.is-danger line {
8283
- stroke: var(--danger);
8406
+ stroke: var(--danger-text);
8284
8407
  }
8285
8408
  .ui-chart-threshold.is-danger text {
8286
8409
  fill: var(--danger-text);
@@ -8291,7 +8414,7 @@ a.ui-wb-brand:focus-visible {
8291
8414
  }
8292
8415
  .ui-chart-now text,
8293
8416
  .ui-chart-marker text {
8294
- font-size: 12px;
8417
+ font-size: var(--text-mini);
8295
8418
  font-weight: 600;
8296
8419
  fill: var(--ink);
8297
8420
  }
@@ -8360,7 +8483,7 @@ a.ui-wb-brand:focus-visible {
8360
8483
  white-space: nowrap;
8361
8484
  }
8362
8485
  .ui-meter-state {
8363
- font-size: 13px;
8486
+ font-size: var(--text-small);
8364
8487
  font-weight: 600;
8365
8488
  white-space: nowrap;
8366
8489
  text-align: right;
@@ -8395,10 +8518,10 @@ a.ui-wb-brand:focus-visible {
8395
8518
  border-radius: 1px;
8396
8519
  }
8397
8520
  .ui-meter-mark.is-warning {
8398
- background: var(--warning);
8521
+ background: var(--warning-text);
8399
8522
  }
8400
8523
  .ui-meter-mark.is-danger {
8401
- background: var(--danger);
8524
+ background: var(--danger-text);
8402
8525
  }
8403
8526
  .ui-meter-dot {
8404
8527
  position: absolute;
@@ -8408,21 +8531,21 @@ a.ui-wb-brand:focus-visible {
8408
8531
  border-radius: 7px;
8409
8532
  transform: translate(-50%, -50%);
8410
8533
  box-shadow: 0 0 0 2px var(--surface);
8411
- transition: left 0.3s ease;
8534
+ transition: left var(--dur-toggle) ease;
8412
8535
  }
8413
8536
  .ui-meter-dot.is-success {
8414
- background: var(--success);
8537
+ background: var(--success-text);
8415
8538
  }
8416
8539
  .ui-meter-dot.is-warning {
8417
- background: var(--warning);
8540
+ background: var(--warning-text);
8418
8541
  }
8419
8542
  .ui-meter-dot.is-danger {
8420
- background: var(--danger);
8543
+ background: var(--danger-text);
8421
8544
  }
8422
8545
  .ui-meter-marks {
8423
8546
  position: relative;
8424
8547
  height: 18px;
8425
- font-size: 12px;
8548
+ font-size: var(--text-mini);
8426
8549
  line-height: 18px;
8427
8550
  color: var(--ink-muted);
8428
8551
  }
@@ -8447,11 +8570,11 @@ a.ui-wb-brand:focus-visible {
8447
8570
  padding: 10px 14px;
8448
8571
  }
8449
8572
  .ui-kpi.is-compact .ui-kpi-value {
8450
- font-size: 22px;
8573
+ font-size: 22px; /* token-exempt: KpiCard compact number, one use */
8451
8574
  line-height: 30px;
8452
8575
  }
8453
8576
  .ui-kpi-target {
8454
- font-size: 13px;
8577
+ font-size: var(--text-small);
8455
8578
  line-height: 20px;
8456
8579
  color: var(--ink-muted);
8457
8580
  }
@@ -8596,10 +8719,6 @@ a.ui-wb-brand:focus-visible {
8596
8719
  color: var(--ink);
8597
8720
  cursor: pointer;
8598
8721
  }
8599
- .ui-zone:focus-visible {
8600
- outline: none;
8601
- box-shadow: 0 0 0 3px var(--focus-ring);
8602
- }
8603
8722
  .ui-zone.is-warning {
8604
8723
  box-shadow: inset 0 0 0 4px var(--warning);
8605
8724
  }
@@ -8622,7 +8741,7 @@ a.ui-wb-brand:focus-visible {
8622
8741
  min-width: 0;
8623
8742
  }
8624
8743
  .ui-zone-name {
8625
- font-size: 16px;
8744
+ font-size: var(--text-body);
8626
8745
  font-weight: 600;
8627
8746
  line-height: 22px;
8628
8747
  white-space: nowrap;
@@ -8631,7 +8750,7 @@ a.ui-wb-brand:focus-visible {
8631
8750
  }
8632
8751
  .ui-zone-state {
8633
8752
  flex: none;
8634
- font-size: 13px;
8753
+ font-size: var(--text-small);
8635
8754
  font-weight: 600;
8636
8755
  line-height: 20px;
8637
8756
  white-space: nowrap;
@@ -8639,7 +8758,7 @@ a.ui-wb-brand:focus-visible {
8639
8758
  .ui-zone-value {
8640
8759
  margin-top: auto;
8641
8760
  font-family: var(--font-mono);
8642
- font-size: 31px;
8761
+ font-size: var(--text-h2);
8643
8762
  font-weight: 700;
8644
8763
  line-height: 1.1;
8645
8764
  font-variant-numeric: tabular-nums;
@@ -8648,11 +8767,11 @@ a.ui-wb-brand:focus-visible {
8648
8767
  .ui-zone-unit {
8649
8768
  margin-left: 4px;
8650
8769
  font-family: var(--font-sans);
8651
- font-size: 16px;
8770
+ font-size: var(--text-body);
8652
8771
  font-weight: 500;
8653
8772
  }
8654
8773
  .ui-zone-detail {
8655
- font-size: 13px;
8774
+ font-size: var(--text-small);
8656
8775
  line-height: 20px;
8657
8776
  white-space: nowrap;
8658
8777
  overflow: hidden;
@@ -8687,7 +8806,7 @@ a.ui-wb-brand:focus-visible {
8687
8806
  }
8688
8807
  .ui-events-time {
8689
8808
  font-family: var(--font-mono);
8690
- font-size: 13px;
8809
+ font-size: var(--text-small);
8691
8810
  color: var(--ink-muted);
8692
8811
  font-variant-numeric: tabular-nums;
8693
8812
  }
@@ -8716,7 +8835,7 @@ a.ui-wb-brand:focus-visible {
8716
8835
  }
8717
8836
  .ui-timecontrol-clock {
8718
8837
  font-family: var(--font-mono);
8719
- font-size: 28px;
8838
+ font-size: 28px; /* token-exempt: TimeControl clock, one use */
8720
8839
  font-weight: 700;
8721
8840
  line-height: 36px;
8722
8841
  font-variant-numeric: tabular-nums;
@@ -8726,7 +8845,7 @@ a.ui-wb-brand:focus-visible {
8726
8845
  }
8727
8846
  .ui-timecontrol-detail {
8728
8847
  margin: 0;
8729
- font-size: 13px;
8848
+ font-size: var(--text-small);
8730
8849
  line-height: 20px;
8731
8850
  color: var(--ink-muted);
8732
8851
  }
@@ -8772,7 +8891,7 @@ a.ui-wb-brand:focus-visible {
8772
8891
  border-radius: var(--radius-lg);
8773
8892
  background: var(--surface);
8774
8893
  box-shadow: var(--shadow-card);
8775
- font-size: 16px;
8894
+ font-size: var(--text-body);
8776
8895
  line-height: 1.5;
8777
8896
  }
8778
8897
  .ui-console-start,
@@ -8880,3 +8999,93 @@ a.ui-wb-brand:focus-visible {
8880
8999
  .ui-console.is-stacked .ui-console-main {
8881
9000
  min-height: 320px;
8882
9001
  }
9002
+
9003
+ /* ---------- Focus ----------
9004
+ One focus style everywhere: a 2 px outline in --focus (the accent's text color, 3:1 or more on every ground in
9005
+ both themes), 2 px outside the control. Controls that sit flush in a container that clips (a tab row that
9006
+ scrolls, a table, a list, a code view) draw it 2 px inside instead, so it is never cut off. A new focusable part
9007
+ joins one of these two lists rather than drawing its own ring. CommandPalette's active result (focus stays in its
9008
+ input) shows the same outline, since Enter picks it. Anything else focusable (a link in Markdown, a
9009
+ breadcrumb) gets the same outline from the first rule. */
9010
+ :where(:focus-visible) {
9011
+ outline: 2px solid var(--focus);
9012
+ outline-offset: 2px;
9013
+ }
9014
+ .ui-btn:focus-visible,
9015
+ .ui-iconbtn:focus-visible,
9016
+ .ui-toast-action:focus-visible,
9017
+ .ui-input:focus-visible,
9018
+ :is(a, button).ui-nav-brand-link:focus-visible,
9019
+ .ui-nav-collapse:focus-visible,
9020
+ .ui-check:focus-visible,
9021
+ .ui-radio:focus-visible,
9022
+ .ui-switch:focus-visible,
9023
+ .ui-select-trigger:focus-visible,
9024
+ .ui-searchfield-clear:focus-visible,
9025
+ .ui-dt-chip:focus-visible,
9026
+ .ui-dt-chipclear:focus-visible,
9027
+ .ui-dt-bulk-close:focus-visible,
9028
+ .ui-dt-more:focus-visible,
9029
+ .ui-dt-view:focus-visible,
9030
+ .ui-dt-page:focus-visible,
9031
+ .ui-dt-check:focus-visible,
9032
+ .ui-themepick-opt:focus-visible,
9033
+ .ui-swatch:focus-visible,
9034
+ .ui-link-btn:focus-visible,
9035
+ .ui-datefield:focus-within,
9036
+ .ui-cal-day:focus-visible,
9037
+ .ui-ms:focus-within,
9038
+ .ui-pwfield:focus-within,
9039
+ .ui-dt-opt:focus-visible,
9040
+ .ui-code.is-link:focus-visible,
9041
+ .ui-code.is-link.is-name:focus-visible,
9042
+ .ui-code.is-link.is-location:focus-visible,
9043
+ .ui-projsw:focus-visible,
9044
+ .ui-pal-cancel:focus-visible,
9045
+ .ui-term:focus-visible,
9046
+ .ui-cv-ref:focus-visible,
9047
+ .ui-cv-name:focus-visible,
9048
+ .ui-lg-libtn:focus-visible,
9049
+ .ui-lg-node:focus-visible,
9050
+ .ui-skip:focus,
9051
+ .ui-bars:focus-visible,
9052
+ .ui-chart-plot:focus-visible,
9053
+ .ui-sec-btn:focus-visible,
9054
+ a.ui-wb-brand:focus-visible,
9055
+ .ui-wb-more:focus-visible,
9056
+ .ui-zone:focus-visible {
9057
+ outline: 2px solid var(--focus);
9058
+ outline-offset: 2px;
9059
+ }
9060
+ .ui-tab:focus-visible,
9061
+ .ui-dt-rowlink:focus-visible,
9062
+ .ui-dt-sort:focus-visible,
9063
+ .ui-dt-exp-btn:focus-visible,
9064
+ .ui-dt-long.is-cut:focus-visible,
9065
+ .ui-dt-sortgrip:focus-visible,
9066
+ .ui-dt-sortrm:focus-visible,
9067
+ .ui-dt-sortdir button:focus-visible,
9068
+ .ui-tree-row:focus-visible,
9069
+ .ui-cv-body:focus-visible,
9070
+ .ui-wb-exfilter .ui-searchfield .ui-input:focus-visible,
9071
+ .ui-wb-tab:focus-visible,
9072
+ .ui-seg-item:focus-visible,
9073
+ .ui-cv-line.is-target:focus,
9074
+ .ui-menu-item:focus-visible,
9075
+ .ui-select-opt:focus-visible,
9076
+ .ui-noti-item:focus-visible,
9077
+ .ui-projsw-opt:focus-visible,
9078
+ .ui-nav-item:focus-visible,
9079
+ .ui-settings-cat:focus-visible,
9080
+ .ui-pal-item.is-active,
9081
+ .ui-pal-head:has(.ui-pal-input:focus-visible),
9082
+ .ui-cv .ui-iconbtn:focus-visible,
9083
+ .ui-wb .ui-iconbtn:focus-visible {
9084
+ outline: 2px solid var(--focus);
9085
+ outline-offset: -2px;
9086
+ }
9087
+ /* DataTable cells clip what overflows them (a cut long text, a code link in a sentence): anything focusable inside a
9088
+ cell draws the outline inside itself. :is() lifts the rule above the outside-outline list (.ui-code.is-link…). */
9089
+ .ui-dt-cell :is(.ui-code.is-link.is-location, *):focus-visible {
9090
+ outline-offset: -2px;
9091
+ }