@apliteni/apliteni-ui 0.170.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.
@@ -927,7 +927,7 @@ floor. So at that width the field uses `flex-basis: 100%`. It takes the full lin
927
927
  of the row wraps below it.
928
928
 
929
929
  A title without an introduction keeps a 32px gap before the page body.
930
- 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.
931
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.
932
932
 
933
933
  ### Segmented strips that outgrow their column
@@ -1478,7 +1478,10 @@ top and bottom edges. A date picker in a field does the same. Outside a field, f
1478
1478
  filter bar, a toolbar or the topbar, the trigger keeps the pill.
1479
1479
  Put a form on a card, not on the page ground. A field is drawn by its edge, but the page ground
1480
1480
  is too close to the field's own fill for you to see that edge. See
1481
- [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.
1482
1485
 
1483
1486
  ### Segmented or tabs?
1484
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
 
@@ -224,7 +229,8 @@ These fill ratios describe separation, not text contrast.
224
229
  - **A field has no fill step, so the ground you put it on decides whether its box is seen.**
225
230
  `--field-bg` and `--disabled-surface` are both `--surface` in both themes. A field is
226
231
  therefore drawn by its edge. On the page ground, a disabled field measures 1.12:1. This is
227
- 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).
228
234
  - **The box reports the state, so a field that is off draws the fainter edge of the two.** The
229
235
  same two tokens paint a button, so a button that is off drops a rung with the field.
230
236
  - **A disabled select carries the kit's own paint and no fade.** The kit's disabled field
@@ -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.170.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;
@@ -281,7 +288,7 @@
281
288
  margin: 0;
282
289
  font-family: var(--font-sans);
283
290
  font-weight: var(--weight-semibold);
284
- font-size: var(--text-base);
291
+ font-size: var(--text-md);
285
292
  color: var(--strong);
286
293
  }
287
294
  .rx-modal__body {
@@ -688,7 +688,9 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
688
688
  if (Date.now() > ignoreMouseUntil.current) close(true);
689
689
  },
690
690
  onFocus: (event) => {
691
- 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));
692
694
  },
693
695
  onBlur: (event) => {
694
696
  if (!markOf(event.relatedTarget)) close(true);
@@ -49,7 +49,7 @@
49
49
  .ui-status--info { color: var(--status-info-ink); }
50
50
  .ui-status--neutral { color: var(--text); }
51
51
 
52
- /* Pill: same shape, sentence case, a touch larger — a metadata chip */
52
+ /* Pill: same shape and size, sentence case — a metadata chip */
53
53
  .ui-pill {
54
54
  display: inline-flex;
55
55
  align-items: center;
@@ -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
@@ -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; }
@@ -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
@@ -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;
@@ -459,7 +459,7 @@
459
459
  --glow-cyan: rgba(12, 143, 168, 0.1);
460
460
  --glow-pink: rgba(169, 45, 89, 0.1); /* an exact tint of --pink above */
461
461
 
462
- /* 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
463
463
  chip text clears WCAG AA on its own pale fill, and on the soft toast's wash, which
464
464
  #131 gave the same ink. Three came down again at #295 with the page; danger did not
465
465
  need to. */