@apliteni/apliteni-ui 0.168.0 → 0.172.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.
@@ -604,7 +604,8 @@ the place of anything else on the page.** A closed readout has no box, so it can
604
604
  scroll region that holds it. There is one element per host. It is placed absolutely
605
605
  and takes no pointer events. `.ui-tip-host` marks the box it is placed against. The readout flips
606
606
  or slides only as far as needed to stay inside the viewport and every ancestor whose overflow
607
- clips. **What it says is text**, written with `textContent` and never parsed. Focus on a mark shows
607
+ clips. **What it says is text**, written with `textContent` and never parsed. The text wraps inside
608
+ the readout's box, also in a table cell that keeps its text on one line. Focus on a mark shows
608
609
  the readout and describes the mark through `aria-describedby`. **Escape dismisses every readout
609
610
  the kit is showing**. **Under a coarse pointer the tap is the switch**, and the opening tap is
610
611
  captured. This means a chart that drills down on a bar does not drill down on the tap that asked
@@ -629,8 +630,10 @@ focuses the trigger waits for the hover.
629
630
  `aria-label`. The readout shows its word on hover and focus. It adds no tab stop and no
630
631
  description, and it is hidden from assistive technology, because the control's name already says it.
631
632
 
632
- `placement` selects the preferred top or bottom side. The readout stays within clipping ancestors
633
- and viewport bounds, and updates its position on scroll and resize.
633
+ `placement` selects the preferred top or bottom side. **The open readout sits in the top layer**,
634
+ over a sticky table cell and over a cut one. It stays within the viewport and within each clipping
635
+ ancestor that can hold it beside its mark, and updates its position on scroll and resize. A browser
636
+ with no popover support keeps it in its host, within every clipping ancestor.
634
637
 
635
638
  ### Pagination
636
639
 
@@ -660,7 +663,8 @@ window's. In a flex row or an `auto` grid track, you give it one:
660
663
  | Open | 66rem | 50rem | 32rem | 15rem |
661
664
 
662
665
  Below 14rem, band and tile values use the next smaller type rank. Open values step down below 15rem.
663
- Longer values remain the caller's responsibility.
666
+ Longer values remain the caller's responsibility. Totals that are the sum of a list go in the
667
+ table's footer rows, not in a stat band.
664
668
 
665
669
  A band can use `basisId` to reference comparison text before the figures. An explicit `basis` takes precedence.
666
670
  When a period control already states the window, omit a caption that repeats it, including for totals without changes.
@@ -680,7 +684,7 @@ larger.
680
684
  ### Dense financial tables
681
685
 
682
686
  The table is markup. A named scroll region contains a native `<table>`, and you apply the
683
- recipes as classes. Zebra adds no grey stripes. Hover gives a row a quiet neutral fill across the table width. On a dense hover table, the fill has round ends, and the first and last content sit 8px inside it. No row line crosses those ends.
687
+ recipes as classes. Zebra adds no grey stripes. Hover gives a row a quiet neutral fill across the table width. On a dense hover table, the fill has round ends, and the first and last content sit 8px inside it. No row line crosses those ends. A dense table marks a selected row with its check box only, with no wash, because a round hover with selected rows looks bad.
684
688
  Keyboard focus keeps its ring, and a landed row keeps its own mark. On a zebra or dense table, `compact` sets a 33px minimum row, but larger or wrapped content makes the row
685
689
  taller. **Columns scroll rather than disappear**, while sticky headers and pinned identity cells
686
690
  keep opaque backgrounds, the shared focus composition, and their full accessible names. **A
@@ -691,17 +695,26 @@ reach the focus ring. An engine that cannot report a scroll state keeps the divi
691
695
  width. **A link
692
696
  inside a cell uses the row's ink, gets an underline on hover, and uses the shared ring on
693
697
  `:focus-visible`**. The ring surrounds the whole link, including a title-cell link that wraps.
698
+ In a cell after the first, the band keeps 8px of room before the name, and the name does not move.
694
699
  `numericValue` distinguishes missing from zero. `deltaValue` prints your sign and uses your
695
700
  explicit judgement. **Colour never supplies the sign.** **Every body and header cell aligns its
696
701
  content to the top**, so when one cell wraps, the other values stay level with its first line. A
697
702
  React sort mark stands on the first line of a wrapped label. A badge, a logo, a selection box or
698
- an icon button in a cell stays level with the text beside it.
703
+ an icon button in a cell stays level with the text beside it. A badge in a cell is 19px high,
704
+ against 24px elsewhere, and never makes its row taller.
705
+
706
+ Use a badge for the status of the record. Use an ink word for a second status in the same row.
707
+ `.ui-status--success`, `--danger`, `--warn`, `--info` and `--neutral` give a word the ink of
708
+ its tone with no fill. Each one is at least 4.5:1 on a plain or a selected row, in both themes
709
+ and under every accent. In light, warn, info and danger take a deeper ink than their badge, so
710
+ they are at least 7:1 on a plain row, a selected row and a selected row under the pointer.
699
711
 
700
712
  **A hover table that is neither zebra nor dense is a row table.** Its body rows have no lines
701
713
  and no column lines, and the head keeps its rule. **A row is 48px tall, 36px with `compact` and
702
714
  56px with `comfortable`**, and larger or wrapped content makes it taller. The space above a
703
715
  row's first line centres that line in this height, so a one-line row looks centred. Hover gives the row a
704
- neutral fill, and a checked selection box gives it an accent wash. Both fills are square, and the
716
+ neutral fill, and a checked selection box gives it an accent wash at a tinted card's strength: 5% in
717
+ light and 8% under the pointer, 9% in dark and 12% under the pointer. Both fills are square, and the
705
718
  first and last content sit 12px inside them. The name
706
719
  in the first column takes the strongest ink. **`.ui-table__sub` puts a second value under the
707
720
  first**, such as an email under a name, in full ink at a smaller size. An act cell that holds icon
@@ -728,7 +741,8 @@ composed into a cell.
728
741
 
729
742
  **Below 720px a pinned identity cell keeps its content on one line**, capped at
730
743
  `--ui-table-identity-max` and cut with an ellipsis past the cap. The default cap is
731
- `min(var(--panel-sm), 50vw)`, and that one property is yours to retune. The whole text stays in
744
+ `min(var(--panel-sm), 50vw)`, and that one property is yours to retune. A table with a
745
+ selection column leaves less room on a phone. Lower the cap there. The whole text stays in
732
746
  the markup, so the accessible name is unchanged and the company link remains the disclosure. The
733
747
  decorative logo is not drawn there. A sub-line stays running text, which is a rule in
734
748
  [Dense tables](../guidelines/dense-tables.md). **Focusing a link inside a sub-line draws the band
@@ -913,7 +927,7 @@ floor. So at that width the field uses `flex-basis: 100%`. It takes the full lin
913
927
  of the row wraps below it.
914
928
 
915
929
  A title without an introduction keeps a 32px gap before the page body.
916
- A control row directly inside the body sits 8px closer to the block it controls.
930
+ A control row directly inside the page body, a `.ui-card-stack` or a `.ui-stack` sits one inner gap, 8px, above the block it controls. On a touch phone below `560px`, that gap is 20px.
917
931
  Use `.ui-toolbar--split` to place the final control at the row's end. On a phone, it stays in that row beside the control before it, rather than dropping to its own line.
918
932
 
919
933
  ### Segmented strips that outgrow their column
@@ -1367,7 +1381,13 @@ The button and tick follow `value` until the caller updates it. `AccountMenu` ma
1367
1381
  router-link rendering. **Nesting stops one level deep.** Each row keeps its name and count when
1368
1382
  collapsed.
1369
1383
  - **`Checkbox` and `Switch`** render native inputs inside the existing label classes, and **a
1370
- disabled one uses the same paint as every other disabled control in the kit.**
1384
+ disabled one uses the same paint as every other disabled control in the kit.** A resting box
1385
+ has a field's fill and an edge of at least 3:1 on the page, a card, a menu and a hovered row.
1386
+ It measures 5.36:1 or more in light and 5.38:1 or more in dark. **A checked or partial box is a
1387
+ light tint of the accent with an accent edge and an accent mark, not a solid accent block.** A
1388
+ checked radio uses the same paint. Under every accent, the edge measures 5.74:1 or more in light
1389
+ and 4.61:1 or more in dark on a card and on a selected or hovered selected row. The mark measures
1390
+ 5.23:1 or more on the tint in light and 4.46:1 or more in dark.
1371
1391
  - **A checkbox whose `indeterminate` property is true shows the checked fill with a short dash**
1372
1392
  in place of the tick. **`DataTable`'s selection boxes use the kit box and show the dash when some,
1373
1393
  but not all, rows on the page are selected.** **A selection column takes the width of its box in
@@ -1458,7 +1478,10 @@ top and bottom edges. A date picker in a field does the same. Outside a field, f
1458
1478
  filter bar, a toolbar or the topbar, the trigger keeps the pill.
1459
1479
  Put a form on a card, not on the page ground. A field is drawn by its edge, but the page ground
1460
1480
  is too close to the field's own fill for you to see that edge. See
1461
- [Colour and contrast](foundations.md#colour-and-contrast).
1481
+ [Colour and contrast](foundations.md#colour-and-contrast). **A filter bar is the one exception.**
1482
+ It stands on the page directly above its table card, with no card of its own. On the page ground,
1483
+ the edge of its search field measures 1.37:1 in light and 1.50:1 in dark. Keep that search field
1484
+ live on the page, because a field that is off measures 1.12:1 there.
1462
1485
 
1463
1486
  ### Segmented or tabs?
1464
1487
 
@@ -87,10 +87,15 @@ The kit uses two families, and the split is based on role:
87
87
  - **Neither family is bundled.** Your page loads both. If a family named by a token is not
88
88
  loaded, the browser falls back silently.
89
89
 
90
- Component sizes use the `--text-*` scale. A size between two steps uses the nearest step plus a
91
- fixed pixel offset, so a host override still moves it. The 16px touch-field size is the one
92
- safety exception. See
93
- [A field is 16px on a touch screen](#a-field-is-16px-on-a-touch-screen).
90
+ **Each component size is one step of the `--text-*` scale, with no offset.** A host that
91
+ changes a step moves every part on it. Three kinds of size stay off the scale:
92
+
93
+ - A field is 16px on a touch screen. See
94
+ [A field is 16px on a touch screen](#a-field-is-16px-on-a-touch-screen).
95
+ - The landing page's hero title, hero line and section heading are fluid display sizes.
96
+ - Inline code is 0.9 of its sentence, and never smaller than `--text-xs`.
97
+
98
+ The smallest step, `--text-xs`, is 12px. No kit text is smaller.
94
99
 
95
100
  ## Labels and titles
96
101
 
@@ -109,7 +114,7 @@ sentence case and renders as written. A word that is capitalised in itself stays
109
114
  | `caption` | `--text-sm` | `--weight-normal` | inherited | a sentence under a specimen, figure or screenshot |
110
115
  | `chip` | `--text-xs` | `--weight-semibold` | inherited | a badge, a pill, a menu row's badge, a version badge |
111
116
 
112
- On the kit's scale, these are 30, 18, 14.5, 13, 13 and 11px. When two ranks share a size,
117
+ On the kit's scale, these are 30, 18, 14.5, 13, 13 and 12px. When two ranks share a size,
113
118
  their weight separates them. `label` and `caption` are both 13px. Words use body ink, including
114
119
  labels and captions. See [Text ink](#text-ink).
115
120
 
@@ -198,6 +203,11 @@ This stronger aim is a written consumer rule only. The automated badge checks en
198
203
  so they would accept the previous success pair at 5.29:1. The other light status pairs
199
204
  meet 4.5:1 but do not all meet 7:1. Dark danger measures at least 6.30:1 on these three grounds.
200
205
 
206
+ **A status word has its own ink in light.** A word with no fill stands on a selected row's accent
207
+ wash, so `--status-warn-ink`, `--status-info-ink` and `--status-danger-ink` are deeper than the
208
+ chip inks. They measure at least 7.01:1 on a plain, a selected and a selected hover row under
209
+ every accent. In dark they are the chip inks, at 7.42:1 or more.
210
+
201
211
  **Archive has little contrast to spare.** Its muted ink measures 4.64:1 on the light page
202
212
  and 4.56:1 on a dark floating panel. These are the narrowest Archive pairs.
203
213
  Check both before changing muted ink, the neutral fill or a containing surface.
@@ -219,7 +229,8 @@ These fill ratios describe separation, not text contrast.
219
229
  - **A field has no fill step, so the ground you put it on decides whether its box is seen.**
220
230
  `--field-bg` and `--disabled-surface` are both `--surface` in both themes. A field is
221
231
  therefore drawn by its edge. On the page ground, a disabled field measures 1.12:1. This is
222
- a white box on a grey page. **Put a form on a card.**
232
+ a white box on a grey page. **Put a form on a card.** A filter bar above a table is the one
233
+ exception. See [Forms](components.md#forms).
223
234
  - **The box reports the state, so a field that is off draws the fainter edge of the two.** The
224
235
  same two tokens paint a button, so a button that is off drops a rung with the field.
225
236
  - **A disabled select carries the kit's own paint and no fade.** The kit's disabled field
@@ -334,6 +345,9 @@ A link that breaks across two lines draws one band per line, because an `outline
334
345
  line box it covers. This is the same thing the browser's own outline already did, so a link
335
346
  gets no new limit by taking the kit's band instead.
336
347
 
348
+ A text link, and words that open a hover readout, get a 6px corner and 4px of room at each side
349
+ inside the band. Focus moves no word, because the margin gives that room back.
350
+
337
351
  ```css
338
352
  --ring-width: 2px;
339
353
  --ring-color: var(--accent);
@@ -62,7 +62,7 @@
62
62
 
63
63
  **Don't:** Unavailable keeps the live paint, so only the cursor reports the state.
64
64
 
65
- **Except:** A disabled label must stay legible, so the pair changes rather than fades. Only the label-free switch track may fade, and a control that draws no box when it is on — a ghost button — draws none when it is off, so its ink carries the state alone. Where the browser fades a control for you, as Chromium does a disabled select, reset that fade: it takes the edge and the words down together, and the words are what a reader still has to read.
65
+ **Except:** A disabled label must stay legible, so the pair changes rather than fades. Only the label-free switch track may fade, and a control that draws no box when it is on — a ghost button — draws none when it is off, so its ink carries the state alone. Where the browser fades a control for you, as Chromium does a disabled select, reset that fade: it takes the edge and the words down together, and a reader still has to read the words.
66
66
 
67
67
  ## Touch field text
68
68
 
@@ -98,11 +98,11 @@
98
98
 
99
99
  **Why:** Colour alone is not reliably distinguishable.
100
100
 
101
- **Do:** The word carries the status; the tone fill agrees with it.
101
+ **Do:** The word carries the status. The tone agrees with it, as a fill or as ink.
102
102
 
103
103
  **Don't:** A tone fill with the word taken out of it.
104
104
 
105
- **Except:** A status badge needs no glyph or dot. A callout or toast keeps its glyph, because its words sit in a sentence rather than in a fill.
105
+ **Except:** A status badge needs no glyph or dot. A callout or toast keeps its glyph, because its words sit in a sentence, not a fill.
106
106
 
107
107
  ## Measurable pairs
108
108
 
@@ -110,7 +110,7 @@
110
110
 
111
111
  **Rule:** Keep text on opaque grounds so its contrast can be measured.
112
112
 
113
- **Why:** A gradient, filter or translucent layer puts the ink on more than one ground, so no single pair can be read off it.
113
+ **Why:** A gradient, filter or translucent layer puts the ink on more than one ground, so no single pair measures it.
114
114
 
115
115
  **Do:** One opaque ground under the whole sentence.
116
116
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  **Rule:** Open the readout above the mark; place it below only when space above is clipped and below has more room.
20
20
 
21
- **Why:** This keeps the mark and pointer approach clear while keeping the readout on-screen.
21
+ **Why:** It keeps the mark and pointer approach clear and the readout on-screen.
22
22
 
23
23
  **Do:** Open a readout below a tall bar near the top of a clipping region.
24
24
 
@@ -28,15 +28,15 @@
28
28
 
29
29
  <!-- rule: contents -->
30
30
 
31
- **Rule:** Name the point, show its value, and include no more than one comparison.
31
+ **Rule:** Name the point, show its value, and give at most one comparison.
32
32
 
33
- **Why:** Short readouts stay readable and do not cover nearby marks.
33
+ **Why:** Short readouts stay readable and clear of nearby marks.
34
34
 
35
35
  **Do:** Use three short lines: point, value, one comparison.
36
36
 
37
37
  **Don't:** Wrap long text or place controls in the readout.
38
38
 
39
- **Except:** Match the page’s currency and precision.
39
+ **Except:** Match the page’s currency and precision. A readout that shows the full text of a cut cell wraps.
40
40
 
41
41
  ## Tap to open or close
42
42
 
@@ -46,11 +46,11 @@
46
46
 
47
47
  **Why:** Hover is not readable under a finger.
48
48
 
49
- **Do:** Tap another mark to move the readout, or tap the same mark or anywhere else to close it.
49
+ **Do:** Tap another mark to move the readout. Tap the same mark or anywhere else to close it.
50
50
 
51
51
  **Don't:** Require a hover gesture on a touch screen.
52
52
 
53
- **Except:** The opening tap blocks the mark’s click but still reaches page listeners; the tap that closes the readout may also drill down.
53
+ **Except:** The opening tap blocks the mark’s click but reaches page listeners. The closing tap may also drill down.
54
54
 
55
55
  ## Provide another access method
56
56
 
@@ -60,8 +60,8 @@
60
60
 
61
61
  **Why:** Pointer, focus, and tap must all support access, and Escape must dismiss the readout.
62
62
 
63
- **Do:** Let focus or tap open the readout, and provide the leading figure plus a table or labelled series summary.
63
+ **Do:** Let focus or tap open the readout. Give the leading figure and a table or labelled series summary.
64
64
 
65
- **Don't:** Require pointing at one of 365 daily points to find its value.
65
+ **Don't:** Require pointing at one of 365 daily points for its value.
66
66
 
67
- **Except:** Touch-screen focus without a tap must support screen-reader arrival; pointer detection must support laptop mouse hover, finger or pen tap, and keyboard focus restoration. Whether chart marks should be tab stops remains undecided; the kit adds none.
67
+ **Except:** Touch-screen focus without a tap must support screen-reader arrival; pointer detection must support laptop mouse hover, finger or pen tap, and keyboard focus restoration. Tab stops on chart marks remain undecided; the kit adds none.
@@ -51,7 +51,7 @@
51
51
 
52
52
  **Don't:** Use t-shirt sizes for prose or put `ch` on a wrapper with two font sizes.
53
53
 
54
- **Except:** Put `ch` on the element using its font size. The centred `.ui-section-head` uses `--panel-lg` for its 40px heading and 17px copy. Keep `.ui-footer__brand` at 300px because its flex track controls wrapping.
54
+ **Except:** Put `ch` on the element using its font size. The centred `.ui-section-head` uses `--panel-lg` for its 40px heading and 18px copy. Keep `.ui-footer__brand` at 300px because its flex track controls wrapping.
55
55
 
56
56
  ## Use the three breakpoints
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.168.0",
3
+ "version": "0.172.0",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -84,6 +84,13 @@
84
84
  .ui-toolbar--split .ui-filter-bar {
85
85
  column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important;
86
86
  }
87
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) {
88
+ margin-bottom: calc(var(--tap-gap) - var(--space-5, 20px)) !important;
89
+ }
90
+ .ui-stack > .ui-toolbar:not(:last-child) {
91
+ margin-bottom: var(--tap-gap) !important;
92
+ --tap-clear-y: var(--tap-gap);
93
+ }
87
94
  .ui-filter-bar__chip {
88
95
  --tap-clear-x: 0px;
89
96
  --tap-clear-y: 0px;
@@ -168,14 +175,19 @@
168
175
  .ui-tip-host {
169
176
  position: relative;
170
177
  }
178
+ .ui-tip-host > .ui-focusable:focus-visible {
179
+ border-radius: var(--radius-xs);
180
+ padding: var(--space-1);
181
+ margin-inline: calc(-1 * var(--space-1));
182
+ }
171
183
  .ui-tip {
172
184
  --ui-tip-gap: 8px;
173
185
  --ui-tip-bg: var(--bg-elevated);
174
186
  position: absolute;
175
187
  top: var(--ui-tip-y, 0px);
176
- left: var(--ui-tip-x, 50%);
188
+ left: calc(var(--ui-tip-x, 50%) + var(--ui-tip-shift, 0px));
177
189
  z-index: var(--z-dropdown);
178
- translate: calc(-50% + var(--ui-tip-shift, 0px)) calc(-100% - var(--ui-tip-gap));
190
+ translate: -50% calc(-100% - var(--ui-tip-gap));
179
191
  display: flex;
180
192
  flex-direction: column;
181
193
  width: max-content;
@@ -188,6 +200,7 @@
188
200
  font-family: var(--font-sans);
189
201
  font-size: var(--text-xs);
190
202
  line-height: 1.45;
203
+ white-space: normal;
191
204
  color: var(--text);
192
205
  pointer-events: none;
193
206
  opacity: 0;
@@ -195,7 +208,15 @@
195
208
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) linear;
196
209
  }
197
210
  .ui-tip.is-below {
198
- translate: calc(-50% + var(--ui-tip-shift, 0px)) var(--ui-tip-gap);
211
+ translate: -50% var(--ui-tip-gap);
212
+ }
213
+ .ui-tip:popover-open {
214
+ position: fixed;
215
+ right: auto;
216
+ bottom: auto;
217
+ height: auto;
218
+ margin: 0;
219
+ overflow: visible;
199
220
  }
200
221
  .ui-tip.is-open {
201
222
  opacity: 1;
@@ -267,7 +288,7 @@
267
288
  margin: 0;
268
289
  font-family: var(--font-sans);
269
290
  font-weight: var(--weight-semibold);
270
- font-size: var(--text-base);
291
+ font-size: var(--text-md);
271
292
  color: var(--strong);
272
293
  }
273
294
  .rx-modal__body {
@@ -479,17 +479,22 @@ import { useId as useId4 } from "react";
479
479
  var TIP_GAP = 8;
480
480
  function placeTip(host, mark, tip, bound, placement = "top") {
481
481
  const mrect = mark.getBoundingClientRect();
482
- const rect = host.getBoundingClientRect();
483
482
  const view = host.ownerDocument.documentElement;
483
+ const declared = parseFloat(getComputedStyle(tip).getPropertyValue("--ui-tip-gap"));
484
+ const gap = Number.isFinite(declared) ? declared : TIP_GAP;
484
485
  const clip = { top: 0, left: 0, right: view.clientWidth, bottom: view.clientHeight };
486
+ const layered = typeof tip.showPopover === "function" && tip.matches(":popover-open");
485
487
  for (let el = host; el && el !== host.ownerDocument.body; el = el.parentElement) {
486
488
  const style = getComputedStyle(el);
487
- if (![style.overflow, style.overflowX, style.overflowY].some((v) => v && v !== "visible")) continue;
488
- const bounds = el.getBoundingClientRect();
489
- clip.top = Math.max(clip.top, bounds.top);
490
- clip.left = Math.max(clip.left, bounds.left);
491
- clip.right = Math.min(clip.right, bounds.right);
492
- clip.bottom = Math.min(clip.bottom, bounds.bottom);
489
+ if (style.display === "inline" || ![style.overflow, style.overflowX, style.overflowY].some((v) => v && v !== "visible")) continue;
490
+ if (layered && (el.clientWidth < tip.offsetWidth || el.clientHeight < mrect.height + gap + tip.offsetHeight)) continue;
491
+ const edge = el.getBoundingClientRect();
492
+ const top = edge.top + el.clientTop;
493
+ const left2 = edge.left + el.clientLeft;
494
+ clip.top = Math.max(clip.top, top);
495
+ clip.left = Math.max(clip.left, left2);
496
+ clip.right = Math.min(clip.right, left2 + el.clientWidth);
497
+ clip.bottom = Math.min(clip.bottom, top + el.clientHeight);
493
498
  }
494
499
  if (bound) {
495
500
  const edge = bound.getBoundingClientRect();
@@ -498,8 +503,6 @@ function placeTip(host, mark, tip, bound, placement = "top") {
498
503
  clip.right = Math.min(clip.right, edge.right);
499
504
  clip.bottom = Math.min(clip.bottom, edge.bottom);
500
505
  }
501
- const declared = parseFloat(getComputedStyle(tip).getPropertyValue("--ui-tip-gap"));
502
- const gap = Number.isFinite(declared) ? declared : TIP_GAP;
503
506
  const above = mrect.top - clip.top;
504
507
  const below = clip.bottom - mrect.bottom;
505
508
  const prefersBelow = placement === "bottom";
@@ -509,8 +512,10 @@ function placeTip(host, mark, tip, bound, placement = "top") {
509
512
  const centre = mrect.left + mrect.width / 2;
510
513
  const ideal = centre - tip.offsetWidth / 2;
511
514
  const left = Math.max(clip.left, Math.min(ideal, clip.right - tip.offsetWidth));
512
- tip.style.setProperty("--ui-tip-x", `${centre - rect.left - host.clientLeft + host.scrollLeft}px`);
513
- tip.style.setProperty("--ui-tip-y", `${(isBelow ? mrect.bottom : mrect.top) - rect.top - host.clientTop + host.scrollTop}px`);
515
+ const y = isBelow ? mrect.bottom : mrect.top;
516
+ const rect = layered ? null : host.getBoundingClientRect();
517
+ tip.style.setProperty("--ui-tip-x", `${rect ? centre - rect.left - host.clientLeft + host.scrollLeft : centre}px`);
518
+ tip.style.setProperty("--ui-tip-y", `${rect ? y - rect.top - host.clientTop + host.scrollTop : y}px`);
514
519
  tip.style.setProperty("--ui-tip-shift", `${left - ideal}px`);
515
520
  }
516
521
 
@@ -617,11 +622,17 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
617
622
  placeTip(h, anchor, t, void 0, placement);
618
623
  }
619
624
  useLayoutEffect2(() => {
620
- if (!mark) return;
625
+ const t = tip.current;
626
+ const layered = typeof t?.showPopover === "function";
627
+ if (!mark) {
628
+ if (layered && t.matches(":popover-open")) t.hidePopover();
629
+ return;
630
+ }
621
631
  if (!host.current?.contains(mark)) {
622
632
  close(true);
623
633
  return;
624
634
  }
635
+ if (layered && !t.matches(":popover-open")) t.showPopover();
625
636
  place();
626
637
  });
627
638
  const shared = useRef2({});
@@ -655,9 +666,12 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
655
666
  const reposition = () => place();
656
667
  view.addEventListener("scroll", reposition, true);
657
668
  view.addEventListener("resize", reposition);
669
+ const sized = typeof view.ResizeObserver === "function" ? new view.ResizeObserver(reposition) : null;
670
+ if (sized) [tip.current, active.current].forEach((el) => el && sized.observe(el));
658
671
  return () => {
659
672
  view.removeEventListener("scroll", reposition, true);
660
673
  view.removeEventListener("resize", reposition);
674
+ sized?.disconnect();
661
675
  };
662
676
  }, [open, placement]);
663
677
  return /* @__PURE__ */ jsxs7(
@@ -674,7 +688,9 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
674
688
  if (Date.now() > ignoreMouseUntil.current) close(true);
675
689
  },
676
690
  onFocus: (event) => {
677
- if (Date.now() > ignoreMouseUntil.current && pointerKind.current !== "mouse") show(markOf(event.target));
691
+ if (Date.now() <= ignoreMouseUntil.current || pointerKind.current === "mouse") return;
692
+ dismissed.current = null;
693
+ show(markOf(event.target));
678
694
  },
679
695
  onBlur: (event) => {
680
696
  if (!markOf(event.relatedTarget)) close(true);
@@ -736,7 +752,7 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
736
752
  },
737
753
  children: [
738
754
  control ? /* @__PURE__ */ jsx11("span", { ref: trigger, children }) : /* @__PURE__ */ jsx11("span", { ref: trigger, className: "ui-focusable", tabIndex: 0, "aria-describedby": id, children }),
739
- /* @__PURE__ */ jsx11("span", { ref: tip, id, "data-tip": "", role: "tooltip", "aria-hidden": control || void 0, className: `ui-tip${open ? " is-open" : ""}`, children: /* @__PURE__ */ jsx11(Text2, { label, value, detail: detail2 }) })
755
+ /* @__PURE__ */ jsx11("span", { ref: tip, id, "data-tip": "", popover: "manual", role: "tooltip", "aria-hidden": control || void 0, className: `ui-tip${open ? " is-open" : ""}`, children: /* @__PURE__ */ jsx11(Text2, { label, value, detail: detail2 }) })
740
756
  ]
741
757
  }
742
758
  );
@@ -3,6 +3,7 @@
3
3
  * .ui-badge — status chip (live / soon / archive / neutral)
4
4
  * .ui-tag — soft solid label
5
5
  * .ui-dot — leading status dot (pulses when .is-live)
6
+ * .ui-status--* — status word: tone ink, no fill
6
7
  * ========================================================================== */
7
8
 
8
9
  .ui-badge {
@@ -40,7 +41,15 @@
40
41
  .ui-badge--pending { color: var(--chip-warn-ink); background: var(--chip-warn-fill); }
41
42
  .ui-badge--neutral { color: var(--text); background: var(--chip-neutral-fill); }
42
43
 
43
- /* Pill: same shape, sentence case, a touch larger — a metadata chip */
44
+ /* Status word: the tone's ink with no fill, for a second status in a row beside the
45
+ record's badge. A word, not a change value, so not .ui-delta (#814). */
46
+ .ui-status--success { color: var(--chip-success-ink); }
47
+ .ui-status--danger { color: var(--status-danger-ink); }
48
+ .ui-status--warn { color: var(--status-warn-ink); }
49
+ .ui-status--info { color: var(--status-info-ink); }
50
+ .ui-status--neutral { color: var(--text); }
51
+
52
+ /* Pill: same shape and size, sentence case — a metadata chip */
44
53
  .ui-pill {
45
54
  display: inline-flex;
46
55
  align-items: center;
@@ -158,3 +158,10 @@ a:focus-visible,
158
158
  outline: var(--ring);
159
159
  outline-offset: var(--ring-offset);
160
160
  }
161
+ /* A text link has no box, so the ring sat on the glyphs with square corners. It takes a corner
162
+ and room at each side. The margin gives the room back, so no word moves. #814 (rev_136bd26bc559/d22) */
163
+ a:not([class]):focus-visible {
164
+ border-radius: var(--radius-xs);
165
+ padding-inline: var(--space-1);
166
+ margin-inline: calc(-1 * var(--space-1));
167
+ }
@@ -11,6 +11,9 @@
11
11
  the edge on each side. A part that takes a button's place uses it, so the
12
12
  row keeps its height. */
13
13
  --btn-height-md: calc(var(--text-sm) * var(--leading-tight) + 2 * var(--btn-pad-y-md) + 2 * var(--btn-edge-width));
14
+ /* The outer height of an sm button, with or without a glyph. It stands level with a
15
+ pill dropdown trigger. #814 */
16
+ --btn-height-sm: var(--space-8);
14
17
  }
15
18
 
16
19
  .ui-btn {
@@ -109,13 +112,13 @@
109
112
  /* why: docs/components.md#extra-small-buttons */
110
113
  .ui-btn--xs { --btn-pad-y: 4.5px; --btn-pad-x: 8px; --btn-font: var(--text-xs); min-width: 24px; min-height: 24px; }
111
114
  .ui-btn--xs svg { width: 13px; height: 13px; stroke-width: 2.8; }
112
- .ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font: calc(var(--text-sm) - 0.5px); min-height: 0; }
115
+ .ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font: var(--text-sm); min-height: var(--btn-height-sm); }
113
116
  .ui-btn--lg { --btn-pad-y: 13px; --btn-pad-x: 24px; --btn-font: var(--text-md); border-radius: var(--radius-md); }
114
117
 
115
118
  /* Icon-only */
116
119
  .ui-btn--icon { --btn-pad-y: var(--btn-pad-y-md); padding: var(--btn-pad-y-md); border-radius: var(--radius-sm); }
117
120
  .ui-btn--icon.ui-btn--xs { --btn-pad-y: 4.5px; padding: 4.5px; }
118
- .ui-btn--icon.ui-btn--sm { --btn-pad-y: 6px; padding: 6px; }
121
+ .ui-btn--icon.ui-btn--sm { --btn-pad-y: 7px; padding: 7px; }
119
122
 
120
123
  .ui-btn--block { width: 100%; }
121
124
 
@@ -8,7 +8,7 @@
8
8
  padding: 15px 17px;
9
9
  border-radius: var(--radius-md);
10
10
  background: var(--surface);
11
- font-size: calc(var(--text-sm) + 0.5px);
11
+ font-size: var(--text-sm);
12
12
  line-height: 1.55;
13
13
  color: var(--text);
14
14
  }
@@ -17,7 +17,7 @@
17
17
  .ui-callout__icon { width: 18px; height: 18px; flex: none; margin-top: 1px; /* muted-ink: glyph — nonverbal callout icon */ color: var(--muted); }
18
18
  .ui-callout__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2.1; } /* 2.1 of a 24 box drawn at 18px = 1.58 CSS px, which is what buys the 3:1 graphic bar rather than the 4.5:1 text one. docs/foundations.md#icons-and-glyphs */
19
19
  .ui-callout b { color: var(--text); font-weight: var(--weight-semibold); }
20
- .ui-callout code { font-family: var(--font-mono); font-size: 0.92em; color: var(--text); }
20
+ .ui-callout code { font-family: var(--font-mono); font-size: max(0.92em, var(--text-xs)); color: var(--text); }
21
21
 
22
22
  .ui-callout--info { background: var(--glow-cyan); /* code-bg: inherit — a wash paints over a ground and behind a chip, so the opaque ground below it is the step. */ }
23
23
  .ui-callout--info .ui-callout__icon { color: var(--chip-info-ink); } /* the chip inks, not the raw signals: in light the raw signal cleared the graphic bar by a tenth on its own wash and read as a smudge, and a stroke is read the way text is. The two are the same value in dark by construction, so only light moves. #206 */
@@ -185,7 +185,7 @@
185
185
  }
186
186
  .ui-card__row + .ui-card__row { border-top: 1px solid var(--border); }
187
187
  .ui-card__row .lab { color: var(--strong); font-size: var(--text-md); font-weight: var(--weight-medium); }
188
- .ui-card__row .hint { color: var(--text); font-size: calc(var(--text-sm) + 0.5px); margin-top: 3px; }
188
+ .ui-card__row .hint { color: var(--text); font-size: var(--text-sm); margin-top: 3px; }
189
189
 
190
190
  /* Icon chip that leads a card header */
191
191
  .ui-card__icon {
@@ -65,7 +65,7 @@
65
65
  color: var(--text);
66
66
  cursor: pointer;
67
67
  font-family: var(--font-sans);
68
- font-size: calc(var(--text-xs) + 1px);
68
+ font-size: var(--text-xs);
69
69
  display: inline-flex;
70
70
  align-items: center;
71
71
  padding: 2px 4px;
@@ -116,7 +116,8 @@
116
116
  1px of offset unpainted. */
117
117
  .ui-code {
118
118
  font-family: var(--font-mono);
119
- font-size: 0.9em;
119
+ /* Inline code follows its sentence, and never draws under the smallest step. #814 */
120
+ font-size: max(0.9em, var(--text-xs));
120
121
  background: var(--code-bg);
121
122
  padding: 2px 6px;
122
123
  border-radius: var(--radius-xs);
@@ -87,7 +87,7 @@
87
87
  the one that gives, and scrolls — the same split the drawer's header / body /
88
88
  footer makes. The title is an h2 and opts out of the display face base.css
89
89
  gives a heading, for the same reason .ui-drawer__title does: at --text-md it
90
- is the question on a dialog, set at the size the answer beneath it is set at.
90
+ is the question on a dialog, two steps above the answer beneath it.
91
91
  why: docs/foundations.md#typefaces */
92
92
  .ui-confirm__title {
93
93
  margin: 0;
@@ -143,7 +143,7 @@
143
143
  .ui-drawer__title {
144
144
  margin: 0;
145
145
  font-family: var(--font-sans);
146
- font-size: calc(var(--text-base) + 0.5px);
146
+ font-size: var(--text-md);
147
147
  font-weight: 600;
148
148
  letter-spacing: 0.01em;
149
149
  color: var(--strong);
@@ -30,7 +30,7 @@
30
30
  gap: 8px;
31
31
  cursor: pointer;
32
32
  font-family: var(--font-sans);
33
- font-size: calc(var(--text-sm) - 0.5px);
33
+ font-size: var(--text-sm);
34
34
  font-weight: 500;
35
35
  color: var(--text);
36
36
  background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
@@ -40,7 +40,9 @@
40
40
  why: docs/foundations.md#colour-and-contrast */
41
41
  border: 1px solid var(--control-edge);
42
42
  border-radius: var(--radius-pill);
43
- padding: 7px 11px 7px 13px;
43
+ /* A 13px line is 17px tall, so this block padding and the edge hold the pill at 32px,
44
+ level with an sm button. #814 */
45
+ padding: 6.5px 11px 6.5px 13px;
44
46
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
45
47
  }
46
48
  /* The hover edge steps aside under the band: an accent edge one pixel inside an
@@ -350,7 +352,7 @@
350
352
  why: docs/foundations.md#the-focus-ring */
351
353
  .ui-dropdown__item:focus-visible { background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */ outline: var(--ring-scroll); outline-offset: var(--ring-scroll-offset); }
352
354
  .ui-dropdown__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
353
- .ui-dropdown__label { font-family: var(--font-sans); font-size: calc(var(--text-sm) - 0.5px); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
355
+ .ui-dropdown__label { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
354
356
  .ui-dropdown__desc { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
355
357
  .ui-dropdown__ic { display: inline-flex; flex: none; /* muted-ink: glyph — option icon */ color: var(--muted); }
356
358
  .ui-dropdown__ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.1; }
@@ -398,7 +400,7 @@
398
400
  tick centre on the label line, not on the middle of the two lines. The badge
399
401
  subtracts its own line and its block padding (#798). */
400
402
  .ui-dropdown__item:has(> .ui-dropdown__main > .ui-dropdown__desc) {
401
- --ui-dropdown-line: calc((var(--text-sm) - 0.5px) * var(--leading-normal));
403
+ --ui-dropdown-line: calc(var(--text-sm) * var(--leading-normal));
402
404
  align-items: flex-start;
403
405
  }
404
406
  .ui-dropdown__item:has(> .ui-dropdown__main > .ui-dropdown__desc) > :is(.ui-dropdown__ic, .ui-dropdown__tick, .ui-dropdown__more) { height: var(--ui-dropdown-line); align-items: center; }
@@ -477,7 +479,7 @@
477
479
  .ui-dropdown__search-input {
478
480
  width: 100%;
479
481
  font: inherit;
480
- font-size: calc(var(--text-sm) - 0.5px);
482
+ font-size: var(--text-sm);
481
483
  color: var(--strong);
482
484
  /* The ground and line .ui-input takes. why: docs/foundations.md#elevation */
483
485
  background: var(--field-bg); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
@@ -521,7 +523,7 @@
521
523
  anything matches, so it takes no room. */
522
524
  .ui-dropdown__none { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 10px; text-align: center; }
523
525
  .ui-dropdown__none:empty { display: none; }
524
- .ui-dropdown__none-title { font-size: calc(var(--text-sm) - 0.5px); font-weight: 600; color: var(--strong); }
526
+ .ui-dropdown__none-title { font-size: var(--text-sm); font-weight: 600; color: var(--strong); }
525
527
  .ui-dropdown__none-hint { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
526
528
 
527
529
  .ui-dropdown__badge.is-state {
@@ -87,7 +87,7 @@
87
87
  .ui-fbc__x svg { width: 14px; height: 14px; stroke-width: 2.7; }
88
88
  .ui-fbc__quote { margin: 14px 20px 0; background: var(--surface); /* code-bg: inherit — decorative or text-only paint; nothing nested reads a ground from it. */ border-radius: 12px; padding: 12px 15px; display: flex; gap: 11px; }
89
89
  .ui-fbc__qm { color: var(--text); font-size: var(--text-xl); font-weight: var(--weight-bold); line-height: .9; flex: none; opacity: .55; }
90
- .ui-fbc__quote q { quotes: none; color: var(--text); font-style: italic; font-size: calc(var(--text-sm) + 0.5px); line-height: 1.55; }
90
+ .ui-fbc__quote q { quotes: none; color: var(--text); font-style: italic; font-size: var(--text-sm); line-height: 1.55; }
91
91
  .ui-fbc__body { padding: 14px 20px 0; }
92
92
  .ui-fbcomposer textarea {
93
93
  width: 100%; min-height: 96px; resize: vertical; font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.55;
@@ -97,7 +97,7 @@
97
97
  .ui-fbcomposer textarea:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
98
98
  .ui-fbc__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px 18px; }
99
99
 
100
- .ui-fbbtn { font-family: var(--font-sans); font-size: calc(var(--text-sm) + 0.5px); font-weight: var(--weight-semibold); border-radius: 10px; padding: 9px 17px; cursor: pointer; border: 0; transition: filter var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
100
+ .ui-fbbtn { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-semibold); border-radius: 10px; padding: 9px 17px; cursor: pointer; border: 0; transition: filter var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
101
101
  .ui-fbbtn.ghost { background: transparent; color: var(--text); }
102
102
  .ui-fbbtn.ghost:hover { color: var(--strong); background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */ }
103
103
  .ui-fbbtn:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
@@ -121,8 +121,8 @@
121
121
  .ui-fbck-t { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
122
122
  .ui-fbck-m { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 118; stroke-dashoffset: 118; animation: uiFbCkDraw .6s cubic-bezier(.5,0,.3,1) .1s forwards; /* motion: choreographed — the mark draws while the spring is still settling */ }
123
123
  .ui-fbck-s { fill: none; stroke: var(--sheen); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 15 400; stroke-dashoffset: 133; filter: drop-shadow(0 0 8px var(--green)) drop-shadow(0 0 15px var(--green)); opacity: 0; animation: uiFbCkComet .6s cubic-bezier(.5,0,.3,1) .1s forwards; /* motion: choreographed — the comet rides the mark, so it shares its duration and delay exactly */ }
124
- .ui-fbc__done h4 { color: var(--strong); font-size: calc(var(--text-lg) + 1px); font-weight: var(--weight-semibold); letter-spacing: -.01em; margin-bottom: 7px; }
125
- .ui-fbc__done p { color: var(--text); font-size: calc(var(--text-sm) + 0.5px); line-height: 1.55; max-width: var(--prose-caption); margin: 0 auto; }
124
+ .ui-fbc__done h4 { color: var(--strong); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: -.01em; margin-bottom: 7px; }
125
+ .ui-fbc__done p { color: var(--text); font-size: var(--text-sm); line-height: 1.55; max-width: var(--prose-caption); margin: 0 auto; }
126
126
  .ui-fbc__done p b { color: var(--text); font-weight: var(--weight-semibold); }
127
127
  .ui-fbc__done .row { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
128
128
  @keyframes uiFbCkDraw { to { stroke-dashoffset: 0; } }
@@ -39,7 +39,7 @@
39
39
  footer breaks into columns, so it answers to the row rather than to a
40
40
  scale. The one width below the floor the measure gate draws. See #208. */
41
41
  .ui-footer__brand { max-width: 300px; }
42
- .ui-footer .ui-footer__brand .brand { font-size: calc(var(--text-base) + 0.5px); }
42
+ .ui-footer .ui-footer__brand .brand { font-size: var(--text-md); }
43
43
  .ui-footer__tagline {
44
44
  margin: 12px 0 0;
45
45
  font-size: var(--text-sm);
@@ -86,7 +86,7 @@
86
86
  }
87
87
  .ui-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
88
88
  .ui-footer__links a {
89
- font-size: calc(var(--text-sm) + 0.5px);
89
+ font-size: var(--text-sm);
90
90
  color: var(--footer-link);
91
91
  text-decoration: none;
92
92
  transition: color var(--dur-fast) var(--ease);
@@ -123,7 +123,7 @@
123
123
  border-top: 1px solid var(--footer-border);
124
124
  }
125
125
  .ui-footer--app .ui-footer__in { max-width: none; padding: 12px clamp(14px, 2.4vw, 22px); }
126
- .ui-footer--app .ui-footer__bar { padding-top: 0; border-top: 0; font-size: calc(var(--text-sm) - 0.5px); }
126
+ .ui-footer--app .ui-footer__bar { padding-top: 0; border-top: 0; }
127
127
 
128
128
  /* Responsive — columns collapse to a stacked layout on narrow screens. Two of
129
129
  the kit's three steps, and the second one is the phone step rather than a
@@ -141,9 +141,11 @@
141
141
  height: 19px;
142
142
  flex: none;
143
143
  margin-top: 1px;
144
- border: 1.5px solid var(--border-strong);
144
+ /* A field's fill and a --muted edge: the edge clears the 3:1 control floor on every ground a box
145
+ stands on, and a grey fill read as disabled. Decided on #814 (rev_136bd26bc559/d21). */
146
+ border: 1.5px solid var(--muted);
145
147
  border-radius: var(--radius-xs);
146
- background: var(--surface-2); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
148
+ background: var(--field-bg); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
147
149
  cursor: pointer;
148
150
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
149
151
  position: relative;
@@ -179,15 +181,18 @@
179
181
  what the kit's rows already chose. why: docs/foundations.md#the-focus-ring */
180
182
  .ui-check input:enabled:hover:not(:focus-visible),
181
183
  .ui-table__selection input[type="checkbox"]:enabled:hover:not(:focus-visible) { border-color: var(--accent); }
184
+ /* On: a tint of the accent with an accent edge and mark, not a solid accent block, so a
185
+ column of checked rows stays quiet. The mark reads 3:1 on the tint under every accent in
186
+ both themes, so neither theme needs its own ink. Decision rev_813ccb2322b5/d27. #814 */
182
187
  .ui-check input:checked,
183
- .ui-table__selection input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
188
+ .ui-table__selection input[type="checkbox"]:checked { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); /* code-bg: inherit — control paint inside the box; no chip is written in it. */ }
184
189
  .ui-check input[type="checkbox"]:checked::after,
185
190
  .ui-table__selection input[type="checkbox"]:checked::after {
186
191
  content: "";
187
192
  position: absolute;
188
193
  left: 5px; top: 1.5px;
189
194
  width: 5px; height: 10px;
190
- border: solid var(--accent-contrast);
195
+ border: solid var(--accent);
191
196
  border-width: 0 2px 2px 0;
192
197
  transform: rotate(45deg); /* motion: still — the turn is the tick's shape, not travel; it lands with the box's fill, which transitions */
193
198
  }
@@ -196,12 +201,12 @@
196
201
  position: absolute;
197
202
  inset: 4px;
198
203
  border-radius: 50%;
199
- background: var(--accent-contrast);
204
+ background: var(--accent);
200
205
  }
201
206
  .ui-check input:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
202
207
 
203
208
  /* Off. `.ui-check` had no disabled rule at all until #429 put a disabled checkbox
204
- on screen: the box kept --surface-2 and --border-strong, its words kept --text,
209
+ on screen: the box kept its resting fill and edge, its words kept --text,
205
210
  and it was the word "unavailable" in the label that carried the state. The same
206
211
  flat pair the fields and the buttons take (#220, #273) — a paint on the box and
207
212
  quiet ink on the words, never an `opacity`, which drags label and box toward the
@@ -219,13 +224,13 @@
219
224
  .ui-check input[type="checkbox"]:disabled:checked::after,
220
225
  .ui-table__selection input[type="checkbox"]:disabled:checked::after { border-color: var(--disabled-surface); }
221
226
  .ui-check input[type="radio"]:disabled:checked::after { background: var(--disabled-surface); /* code-bg: inherit — the mark inside the box; the box carries the focus indicator. */ }
222
- /* Partial: some of a group is on, not all. The checked box's fill with a level
227
+ /* Partial: some of a group is on, not all. The checked box's tint with a level
223
228
  dash where the tick would be, so the box still reads as "on" from across a table
224
229
  and the dash alone says "not all". It wins over a tick when both are set, as the
225
230
  browser's own box does. Drawn with a border, not a background, so forced colours
226
231
  keeps the dash. #619 */
227
232
  .ui-check input[type="checkbox"]:indeterminate,
228
- .ui-table__selection input[type="checkbox"]:indeterminate { background: var(--accent); border-color: var(--accent); }
233
+ .ui-table__selection input[type="checkbox"]:indeterminate { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); /* code-bg: inherit — control paint inside the box; no chip is written in it. */ }
229
234
  .ui-check input[type="checkbox"]:indeterminate::after,
230
235
  .ui-table__selection input[type="checkbox"]:indeterminate::after {
231
236
  content: "";
@@ -233,15 +238,10 @@
233
238
  inset: 0;
234
239
  margin: auto;
235
240
  width: 11px; height: 0; /* odd, so the 17px padding box splits into equal gaps */
236
- border: solid var(--accent-contrast);
241
+ border: solid var(--accent);
237
242
  border-width: 2px 0 0;
238
243
  transform: none;
239
244
  }
240
- /* White ink falls below 3:1 on the lighter dark-theme accents, so the tick, the dash and
241
- the radio's dot take the ink a selected Segmented pill takes there. */
242
- :where(:root[data-theme="dark"]) .ui-check input[type="checkbox"]:enabled:is(:checked, :indeterminate)::after,
243
- :where(:root[data-theme="dark"]) .ui-table__selection input[type="checkbox"]:enabled:is(:checked, :indeterminate)::after { border-color: var(--signal-contrast); }
244
- :where(:root[data-theme="dark"]) .ui-check input[type="radio"]:enabled:checked::after { background: var(--signal-contrast); }
245
245
  .ui-check input[type="checkbox"]:disabled:indeterminate,
246
246
  .ui-table__selection input[type="checkbox"]:disabled:indeterminate { background: var(--disabled-ink); border-color: var(--disabled-ink); }
247
247
  .ui-check input[type="checkbox"]:disabled:indeterminate::after,
@@ -151,7 +151,7 @@
151
151
  }
152
152
  /* The mark is the Avatar part in the reader's hue, filling this box like the top bar's. */
153
153
  .ui-app__av > .ui-avatar { --ui-avatar-size: 100%; }
154
- .ui-app__who { font-size: calc(var(--text-sm) - 0.5px); line-height: 1.3; min-width: 0; }
154
+ .ui-app__who { font-size: var(--text-sm); line-height: 1.3; min-width: 0; }
155
155
  .ui-app__who b { display: block; color: var(--strong); font-weight: var(--weight-semibold); }
156
156
  /* nowrap is what makes the ellipsis fire — without it the address wraps, and
157
157
  the rail column is max-content, so a long one widens the rail instead. */
@@ -185,7 +185,7 @@
185
185
  time it is open it is no longer inside the rail that drew it.
186
186
  why: docs/components.md#the-dropdown-panel */
187
187
  .ui-app__user-panel .ui-dropdown__head { display: flex; flex-direction: column; gap: 2px; }
188
- .ui-app__user-panel .ui-dropdown__head b { display: block; color: var(--strong); font-size: calc(var(--text-sm) - 0.5px); font-weight: var(--weight-semibold); }
188
+ .ui-app__user-panel .ui-dropdown__head b { display: block; color: var(--strong); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
189
189
  /* The address wraps rather than truncating: nothing bounds this line, so
190
190
  `text-overflow` would have nothing to fire against — the inert pair
191
191
  .ui-app__who's own comment warns about. `anywhere` keeps an address with no
@@ -410,7 +410,7 @@
410
410
  letter-spacing: var(--tracking-tight);
411
411
  margin-bottom: 8px;
412
412
  }
413
- .ui-app__sub { color: var(--text); font-size: calc(var(--text-base) + 0.5px); line-height: 1.6; max-width: var(--prose-body); margin-bottom: var(--space-8); }
413
+ .ui-app__sub { color: var(--text); font-size: var(--text-base); line-height: 1.6; max-width: var(--prose-body); margin-bottom: var(--space-8); }
414
414
  /* A page may open on its title alone; then the title carries the head's step. */
415
415
  .ui-app__main > h1:not(:has(+ .ui-app__sub)) { margin-bottom: var(--space-8); }
416
416
  /* Page tools stand at the end of the title row, and the lede goes under the whole row.
@@ -439,10 +439,13 @@
439
439
  attribute, ~20 characters) from setting a floor well above the basis. */
440
440
  .ui-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
441
441
  /* A control row belongs to the block it narrows rather than standing beside it,
442
- so it sits closer than .ui-app__body's gap between two blocks that are each
443
- their own subject. Not on the last row: there the gap is the page's bottom
444
- and nothing is being narrowed. why: Artur's review of the Finance report, #505 */
445
- .ui-app__body > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--space-3) - var(--space-5)); }
442
+ so it sits one inner gap above that block, closer than the stack's gap between
443
+ two blocks that are each their own subject. Both page stacks, so a filter bar
444
+ on the page meets its table card at the same distance. Not on the last row:
445
+ there the gap is the page's bottom and nothing is being narrowed. tap-zone.css
446
+ widens it on a touch phone. why: docs/foundations.md#spacing-and-rhythm */
447
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--space-2) - var(--space-5)); }
448
+ .ui-stack > .ui-toolbar + * { margin-top: var(--space-2); }
446
449
  .ui-toolbar > .ui-input,
447
450
  .ui-toolbar > .ui-input-group { flex: 1 1 6rem; min-width: 0; }
448
451
  /* A row that offers the block two unrelated things — what to narrow it by, and
@@ -527,7 +530,7 @@
527
530
  .ui-app__drawer .ui-nav__item,
528
531
  .ui-app__drawer .ui-app__user-trigger { min-height: 44px; }
529
532
  .ui-app__main { padding: 28px var(--space-4) 56px; }
530
- .ui-app__main h1 { font-size: calc(var(--text-xl) + 3px); }
533
+ .ui-app__main h1 { font-size: var(--text-xl); }
531
534
  /* A settings row is label-beside-control, and below this step any control that does
532
535
  not fit beside its label drops under it. A row that holds a choice wraps this way at
533
536
  every width, in card.css. Scoped to the shell, because a card row outside a shell
@@ -593,12 +596,12 @@
593
596
  padding: 38px 36px 32px;
594
597
  }
595
598
  .ui-auth__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
596
- .ui-auth__brand span { font-size: calc(var(--text-base) + 0.5px); font-weight: 600; color: var(--strong); }
597
- .ui-auth__title { color: var(--strong); font-size: calc(var(--text-xl) + 2px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
599
+ .ui-auth__brand span { font-size: var(--text-md); font-weight: 600; color: var(--strong); }
600
+ .ui-auth__title { color: var(--strong); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
598
601
  .ui-auth__sub { color: var(--text); font-size: var(--text-base); line-height: 1.55; margin-bottom: 26px; }
599
602
  .ui-auth__foot { margin-top: 24px; text-align: center; font-size: var(--text-sm); color: var(--text); }
600
603
  .ui-auth__foot a { color: var(--accent); }
601
- .ui-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text); font-size: calc(var(--text-xs) + 1px); }
604
+ .ui-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text); font-size: var(--text-xs); }
602
605
  .ui-divider::before, .ui-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
603
606
 
604
607
  /* App scope grant list (OAuth consent) */
@@ -613,7 +616,7 @@
613
616
  color: var(--accent);
614
617
  }
615
618
  .ui-scope__icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
616
- .ui-scope__t { color: var(--strong); font-size: calc(var(--text-base) - 0.5px); font-weight: 500; }
619
+ .ui-scope__t { color: var(--strong); font-size: var(--text-base); font-weight: 500; }
617
620
  .ui-scope__d { color: var(--text); font-size: var(--text-sm); margin-top: 2px; line-height: 1.5; }
618
621
 
619
622
  /* -- Landing hero -------------------------------------------------------- */
@@ -627,7 +630,7 @@
627
630
  display: inline-flex;
628
631
  align-items: center;
629
632
  gap: 8px;
630
- font-size: calc(var(--text-xs) + 1px);
633
+ font-size: var(--text-xs);
631
634
  letter-spacing: 0.06em;
632
635
  color: var(--purple-mid);
633
636
  background: var(--glow-purple); /* code-bg: inherit — a wash paints over a ground and behind a chip, so the opaque ground below it is the step. */
@@ -680,12 +683,12 @@
680
683
  margin-bottom: 16px;
681
684
  }
682
685
  .ui-feature__icon svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; }
683
- .ui-feature h3 { color: var(--strong); font-size: calc(var(--text-lg) - 1px); font-weight: 600; margin-bottom: 7px; }
686
+ .ui-feature h3 { color: var(--strong); font-size: var(--text-lg); font-weight: 600; margin-bottom: 7px; }
684
687
  .ui-feature p { color: var(--text); font-size: var(--text-base); line-height: 1.6; }
685
688
 
686
689
  .ui-section-head { text-align: center; max-width: var(--panel-lg); margin: 0 auto clamp(40px, 6vh, 64px); }
687
690
  .ui-section-head h2 { color: var(--strong); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
688
- .ui-section-head p { color: var(--text); font-size: calc(var(--text-lg) - 1px); line-height: 1.6; }
691
+ .ui-section-head p { color: var(--text); font-size: var(--text-lg); line-height: 1.6; }
689
692
 
690
693
  /* Forced colours replace every author background, so a selected item takes the system
691
694
  pair as its fill. `forced-color-adjust: none` is what keeps the pair from sitting on
@@ -183,7 +183,7 @@
183
183
  --m-dist: var(--space-1);
184
184
  animation: m-slide-down var(--dur-fast) var(--ease-out) both;
185
185
  }
186
- .ui-nav__item--sub { font-size: calc(var(--text-base) - 0.5px); padding: 7px 12px; }
186
+ .ui-nav__item--sub { font-size: var(--text-base); padding: 7px 12px; }
187
187
  /* A nested current row takes the plate whole, like a top-level one. It used to
188
188
  take neither half — the bar hung back onto the guide hairline and the plate's
189
189
  own hairline was switched off so the two would not stack — and a fill with no
@@ -345,7 +345,7 @@
345
345
  padding: 11px 14px;
346
346
  color: var(--text);
347
347
  text-decoration: none;
348
- font-size: calc(var(--text-base) - 0.5px);
348
+ font-size: var(--text-base);
349
349
  font-weight: 500;
350
350
  border-radius: 10px 10px 0 0;
351
351
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
@@ -23,7 +23,7 @@
23
23
  }
24
24
  .ui-seg button {
25
25
  font-family: var(--font-sans);
26
- font-size: calc(var(--text-sm) + 0.5px);
26
+ font-size: var(--text-sm);
27
27
  font-weight: var(--weight-semibold);
28
28
  letter-spacing: 0.02em;
29
29
  color: var(--text);
@@ -69,7 +69,7 @@
69
69
  .ui-seg button:has(> span > svg) { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
70
70
  .ui-seg button svg { display: block; width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
71
71
 
72
- .ui-seg--sm button { min-height: var(--space-6); padding: var(--space-1) var(--space-3); font-size: calc(var(--text-xs) + 1px); }
72
+ .ui-seg--sm button { min-height: var(--space-6); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); line-height: var(--leading-tight); }
73
73
  .ui-seg--block { display: flex; align-self: stretch; justify-self: stretch; }
74
74
  .ui-seg--block button { flex: 1; }
75
75
 
@@ -61,7 +61,7 @@
61
61
  .ui-sx--compact .ui-sx__inner { display: flex; align-items: center; gap: 16px; }
62
62
  .ui-sx--compact .ui-sx__visual { flex: none; }
63
63
  .ui-sx--compact .ui-sx__check { width: 28px; height: 28px; }
64
- .ui-sx--compact .ui-sx__title { font-size: calc(var(--text-md) + 0.5px); }
64
+ .ui-sx--compact .ui-sx__title { font-size: var(--text-md); }
65
65
  .ui-sx--compact .ui-sx__body { font-size: var(--text-sm); margin-top: 3px; }
66
66
  .ui-sx--compact .ui-sx__actions { margin-top: 0; margin-left: auto; flex: none; }
67
67
  .ui-sx--compact .ui-sx__content { flex: 1; display: flex; align-items: center; gap: 16px; }
@@ -214,6 +214,15 @@
214
214
  .ui-table td.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child:focus-visible {
215
215
  outline: var(--ring-scroll);
216
216
  outline-offset: var(--ring-scroll-offset);
217
+ margin-inline: 0;
218
+ }
219
+ /* A later cell's name starts at its cell's edge, so the band crossed its first letter. The band
220
+ takes --space-2 of the gap before it: a clear edge, lent back by the margin, so no word moves.
221
+ #814 (rev_136bd26bc559/d22) */
222
+ .ui-table td.ui-table__linked:not(:first-child) > :is(a:not([class]), a.ui-identity):only-child:focus-visible {
223
+ width: auto;
224
+ margin-inline-start: calc(-1 * var(--space-2));
225
+ border-inline-start: var(--space-2) solid transparent;
217
226
  }
218
227
 
219
228
  .ui-table__num { text-align: right; font-variant-numeric: tabular-nums; }
@@ -402,12 +411,13 @@
402
411
  line, so the text stays level with the text of the other cells. A badge gives back its
403
412
  padding. The logo is 24px (--space-6), and an identity keeps its 24px tap floor and gives
404
413
  back the room around its line. A linked identity fills its cell, so it keeps its place.
405
- The line height is resolved on the cell, because a logo, a box or a button has its own. */
414
+ The line height is resolved on the cell, because a logo, a box or a button has its own.
415
+ A badge in a cell takes the tight line, so it paints 19px against 24px elsewhere (#814). */
406
416
  @property --ui-cell-line { syntax: "<length>"; inherits: true; initial-value: 0px; }
407
417
  .ui-table :is(td, th) { --ui-cell-line: 1lh; }
408
418
  .ui-table :is(td, th) .ui-identity:not(.ui-table__linked > :only-child) { margin-block: calc((var(--ui-cell-line) - var(--space-6)) / 2); }
409
419
  .ui-table :is(td, th) .ui-identity__logo { margin-block: calc((var(--ui-cell-line) - var(--space-6)) / 2); }
410
- .ui-table :is(td, th) .ui-badge { margin-block: calc(-1 * var(--badge-pad-y)); }
420
+ .ui-table :is(td, th) .ui-badge { line-height: var(--leading-tight); margin-block: calc(-1 * var(--badge-pad-y)); }
411
421
  .ui-identity__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
412
422
  .ui-identity__logo img[hidden] { display: none; /* motion: still — a failed resource is replaced without animating the error. */ }
413
423
  a.ui-identity:hover { text-decoration: underline; }
@@ -428,11 +438,11 @@ a.ui-identity:hover { text-decoration: underline; }
428
438
  text-overflow: ellipsis;
429
439
  }
430
440
  /* A sub-line is one line of running text and cuts itself: the cell's ellipsis cannot
431
- reach into a child block. 4px is a focused link's ring, inside the cell's padding.
432
- Nothing is capped here — block layout already holds a child to the cell. */
441
+ reach into a child block. Nothing is capped here — block layout already holds a child
442
+ to the cell. */
433
443
  .ui-table--pinned .ui-table__identity > * {
434
444
  overflow: clip;
435
- overflow-clip-margin: var(--space-1);
445
+ overflow-clip-margin: 7px; /* a focused link's 3px ring and the 4px room inside it (#814), inside the cell's padding */
436
446
  text-overflow: ellipsis;
437
447
  }
438
448
  /* A picture has no shorter form, so it keeps its intrinsic size and the cell cuts it.
@@ -554,12 +564,13 @@ a.ui-identity:hover { text-decoration: underline; }
554
564
 
555
565
  /* Row states. Hover is a quiet neutral fill. A selected row takes an accent wash, one step
556
566
  stronger under the pointer. Each fill is opaque and square, so a pinned cell still covers
557
- the columns that scroll under it. A target row keeps its own wash. The selected wash
558
- is 9%: at 8% an inline code chip on the dark page loses its 1.1:1 step. */
567
+ the columns that scroll under it. A target row keeps its own wash. The wash is a tinted
568
+ card's strength: 5% in light, where 9% read too strong beside the checked box (#814), and 9% in
569
+ dark, where at 8% an inline code chip on the dark page loses its 1.1:1 step. */
559
570
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover > :is(td, th) { border-radius: 0; }
560
571
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { background: var(--surface-3); }
561
- .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked) > :is(td, th) { background: color-mix(in srgb, var(--accent) 9%, var(--table-bg)); }
562
- .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { background: color-mix(in srgb, var(--accent) 12%, var(--table-bg)); }
572
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked) > :is(td, th) { background: color-mix(in srgb, var(--accent) var(--card-tint), var(--table-bg)); }
573
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { background: color-mix(in srgb, var(--accent) var(--card-tint-hover), var(--table-bg)); }
563
574
 
564
575
  /* Icon row actions: 32px buttons in a cell as wide as its buttons, so a row keeps its
565
576
  height. The glyph, not the button, meets the end cell's edge. The top padding centres a
@@ -13,7 +13,7 @@
13
13
  background: none;
14
14
  border: 0;
15
15
  cursor: pointer;
16
- font: 600 calc(var(--text-base) - 0.5px)/1 var(--font-sans);
16
+ font: 600 var(--text-base)/1 var(--font-sans);
17
17
  color: var(--text);
18
18
  padding: 11px 14px;
19
19
  border-bottom: 2px solid transparent;
@@ -144,6 +144,11 @@
144
144
  /* In a split toolbar the rail row beside the report sits on the same line as
145
145
  Clear all. One step plus 1px keeps the button's layer off that row. */
146
146
  .ui-toolbar--split .ui-filter-bar { column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important; }
147
+ /* The table under a filter bar moves down with the chips: the bar's inner gap
148
+ opens to --tap-gap too, so the last row's layers stop short of the table.
149
+ In .ui-stack the bar's margin collapses with the block's 8px one. */
150
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--tap-gap) - var(--space-5, 20px)) !important; }
151
+ .ui-stack > .ui-toolbar:not(:last-child) { margin-bottom: var(--tap-gap) !important; --tap-clear-y: var(--tap-gap); }
147
152
 
148
153
  /* Inside a chip there is nothing to open: parting the value from its remove
149
154
  mark would draw two controls where the reader sees one. Named on the
@@ -5,10 +5,19 @@
5
5
  * .ui-tip the readout — __label, __value, __detail
6
6
  * The readout is an overlay in every state. It is absolutely placed inside its
7
7
  * host, so showing it, filling it and moving it change the size of nothing.
8
+ * The React readout is a manual popover: open, it sits in the top layer and is
9
+ * fixed to the view, so no ancestor cuts it and no sticky cell covers it.
8
10
  * why: docs/components.md#the-hover-readout
9
11
  * ========================================================================== */
10
12
 
11
13
  .ui-tip-host { position: relative; }
14
+ /* Words that open a readout take a text link's ring: a corner and room on each side. The margin
15
+ lends the side room back, and an inline box's block padding moves no line. #814 (rev_136bd26bc559/d22) */
16
+ .ui-tip-host > .ui-focusable:focus-visible {
17
+ border-radius: var(--radius-xs);
18
+ padding: var(--space-1);
19
+ margin-inline: calc(-1 * var(--space-1));
20
+ }
12
21
 
13
22
  .ui-tip {
14
23
  /* One number for the mark-to-readout distance, read by both placements here
@@ -17,9 +26,11 @@
17
26
  --ui-tip-bg: var(--bg-elevated);
18
27
  position: absolute;
19
28
  top: var(--ui-tip-y, 0px);
20
- left: var(--ui-tip-x, 50%);
29
+ /* The slide is in `left`, not in `translate`: a change of `translate` alone does not lay
30
+ the box out again, so a scroll region kept the overflow of the readout's last place. */
31
+ left: calc(var(--ui-tip-x, 50%) + var(--ui-tip-shift, 0px));
21
32
  z-index: var(--z-dropdown);
22
- translate: calc(-50% + var(--ui-tip-shift, 0px)) calc(-100% - var(--ui-tip-gap));
33
+ translate: -50% calc(-100% - var(--ui-tip-gap));
23
34
  display: flex;
24
35
  flex-direction: column;
25
36
  width: max-content;
@@ -36,6 +47,9 @@
36
47
  font-family: var(--font-sans);
37
48
  font-size: var(--text-xs);
38
49
  line-height: 1.45;
50
+ /* A host's one-line rule, such as a table cell's, must not reach the readout: the full
51
+ text of a cut cell wraps inside the box. why: the Hover readouts page, #814 */
52
+ white-space: normal;
39
53
  color: var(--text);
40
54
  /* The readout covers the marks beside the one it describes. Were it a hover
41
55
  target it would take the pointer, uncover the mark, lose the pointer and
@@ -55,7 +69,18 @@
55
69
 
56
70
  /* Below the mark: the wiring's flip when above would be clipped, or the
57
71
  author's own choice. */
58
- .ui-tip.is-below { translate: calc(-50% + var(--ui-tip-shift, 0px)) var(--ui-tip-gap); }
72
+ .ui-tip.is-below { translate: -50% var(--ui-tip-gap); }
73
+
74
+ /* In the top layer: the place above, not the browser's centred popover box. A browser
75
+ with no popover drops this rule and keeps the readout in its host. */
76
+ .ui-tip:popover-open {
77
+ position: fixed;
78
+ right: auto;
79
+ bottom: auto;
80
+ height: auto;
81
+ margin: 0;
82
+ overflow: visible;
83
+ }
59
84
 
60
85
  .ui-tip.is-open { opacity: 1; visibility: visible; }
61
86
 
@@ -60,7 +60,7 @@
60
60
  .dtsw a {
61
61
  text-decoration: none;
62
62
  font-family: var(--font-sans);
63
- font-size: calc(var(--text-xs) + 1px);
63
+ font-size: var(--text-xs);
64
64
  font-weight: 600;
65
65
  letter-spacing: 0.04em;
66
66
  color: var(--text);
@@ -107,13 +107,13 @@
107
107
  gap: 8px;
108
108
  cursor: pointer;
109
109
  font-family: var(--font-sans);
110
- font-size: calc(var(--text-sm) - 0.5px);
110
+ font-size: var(--text-sm);
111
111
  font-weight: 500;
112
112
  color: var(--text);
113
113
  background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
114
114
  border: 1px solid var(--border);
115
115
  border-radius: 24px;
116
- padding: 7px 11px 7px 13px;
116
+ padding: 6.5px 11px 6.5px 13px;
117
117
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
118
118
  }
119
119
  /* The hover edge steps aside under the band: an accent edge one pixel inside an
@@ -226,7 +226,7 @@
226
226
  .vopt .vtick { margin-left: 8px; flex: none; display: none; color: var(--accent); margin-top: 1px; }
227
227
  .vopt .vtick svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
228
228
  .vopt[aria-selected="true"] .vtick { display: inline-flex; }
229
- .vopt .vname { font-family: var(--font-sans); font-size: calc(var(--text-sm) - 0.5px); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
229
+ .vopt .vname { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
230
230
  .vopt .vbadge {
231
231
  /* rank: chip */
232
232
  font-size: var(--text-xs);
@@ -302,7 +302,7 @@
302
302
  color: var(--accent-contrast);
303
303
  font: inherit;
304
304
  font-weight: 600;
305
- font-size: calc(var(--text-sm) - 0.5px);
305
+ font-size: var(--text-sm);
306
306
  display: grid;
307
307
  place-items: center;
308
308
  cursor: pointer;
@@ -391,7 +391,7 @@
391
391
  .amenu .ahead .avatar { cursor: default; }
392
392
  .amenu .ahead .aw { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
393
393
  .amenu .ahead .anm { color: var(--strong); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
394
- .amenu .ahead .aem { color: var(--text); font-size: calc(var(--text-xs) + 0.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
394
+ .amenu .ahead .aem { color: var(--text); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
395
395
  /* `scroll-margin-block` on the row, beside `scroll-padding-block` on the panel
396
396
  above: Chromium's own focus-follow scroll honoured the padding scrolling
397
397
  toward the end of the list and not the start, so the row carries its own
@@ -55,7 +55,7 @@
55
55
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
56
56
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
57
57
 
58
- --text-xs: 11px;
58
+ --text-xs: 12px;
59
59
  --text-sm: 13px;
60
60
  --text-base: 14.5px;
61
61
  --text-md: 15.5px;
@@ -179,6 +179,8 @@
179
179
  /* How much of its own colour a tinted card mixes in. Dark mixes upward off a mid-grey
180
180
  card, so it can afford this much. why: docs/foundations.md#elevation */
181
181
  --card-tint: 9%;
182
+ /* A selected row takes the card's tint, and one step more under the pointer. #814 */
183
+ --card-tint-hover: 12%;
182
184
 
183
185
  --text: #e9e7f0;
184
186
  --strong: #ffffff;
@@ -241,6 +243,11 @@
241
243
  --chip-danger-fill: var(--glow-pink);
242
244
  --chip-info-ink: var(--cyan);
243
245
  --chip-info-fill: var(--glow-cyan);
246
+ /* Status word ink: a tone word with no fill, read on a table row. Dark keeps the chip
247
+ ink, which is 7.42:1 or more on every row ground. Light deepens it, see there. */
248
+ --status-warn-ink: var(--chip-warn-ink);
249
+ --status-info-ink: var(--chip-info-ink);
250
+ --status-danger-ink: var(--chip-danger-ink);
244
251
  /* The fill of a chip with no status to carry. The themes match on SEPARATION, not on
245
252
  alpha — 12% here is 1.22:1 off the card, 15% in light is 1.23:1 — because --muted is
246
253
  a light violet-grey in dark and a mid slate in light.
@@ -421,6 +428,7 @@
421
428
  /* Light mixes DOWN from white, so tint costs lightness: 5% is the most a card can spend
422
429
  and stay above the page. why: docs/foundations.md#elevation */
423
430
  --card-tint: 5%;
431
+ --card-tint-hover: 8%;
424
432
 
425
433
  --text: #1a1e27;
426
434
  --strong: #0c0e13;
@@ -451,7 +459,7 @@
451
459
  --glow-cyan: rgba(12, 143, 168, 0.1);
452
460
  --glow-pink: rgba(169, 45, 89, 0.1); /* an exact tint of --pink above */
453
461
 
454
- /* Solid chip pairs for the light app. Each ink is deepened past its signal hue so 11px
462
+ /* Solid chip pairs for the light app. Each ink is deepened past its signal hue so 12px
455
463
  chip text clears WCAG AA on its own pale fill, and on the soft toast's wash, which
456
464
  #131 gave the same ink. Three came down again at #295 with the page; danger did not
457
465
  need to. */
@@ -469,6 +477,12 @@
469
477
  already occupy. See issue #131. */
470
478
  --chip-info-ink: #096a7c;
471
479
  --chip-info-fill: #ddeff3;
480
+ /* A status word has no fill, so a selected row's accent wash is its ground. The chip
481
+ inks read 4.95 to 6.24:1 there. These reach the 7:1 body aim on a plain, a selected
482
+ and a selected hover row under every accent. Owner decision on #814. */
483
+ --status-warn-ink: #684600;
484
+ --status-info-ink: #025463;
485
+ --status-danger-ink: #990149;
472
486
  /* See the dark block for why the two alphas differ. */
473
487
  --chip-neutral-fill: color-mix(in srgb, var(--muted) 13%, transparent);
474
488