@usableapp/cardds 0.7.138 → 0.7.140

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  > For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
4
4
 
5
+ ## 0.7.140 — 2026-10-26
6
+
7
+ A card's back can be the whole card. A `Pin` or a `Field` may stand on a card. Form controls grow with the member's text size in full.
8
+
9
+ Components: all
10
+
11
+ ### Added
12
+ - **`Card backFull`** (with `back`): the back is the whole card — no head and no foot on it (the front keeps both), what it holds in the middle of the card both ways and its words centred: one big code, one sentence with one button, a thank-you. A `Pin`, `Field`, `Composer` or `FormNote` on it keeps the card's width. The card stays as tall as its taller face. Without it nothing changes. Stories `Card · TurnsFullBack`, `Card · TurnsFullBackPin`, `Card · FieldOnFront`.
13
+
14
+ ### Changed
15
+ - **A `Pin` and a `Field` may stand on a `Card`, either face** (Lh 2026-10-26): a code typed on the card itself (the helper's code on a turned card's back), words written on it (a thank-you on its front). Before → after: `cardds check` `field-in-card` flagged both inside a `<Card>` → it no longer does; every other control the member fills or picks (`Dropdown`, `Toggle`, `Check`, `Slider`, `ChipPick`, `Composer`, …) is still flagged and stays on a sheet. A press on the Pin or the Field of a turning card never turns it.
16
+ - **Form controls grow with the text size in full** (Lh 2026-10-26: "form fields and the words in them use the same tokens"). Before → after: `setTextScale` grew the words in full and every control half as fast (160% text → 130% controls) → the form controls grow as much as the words (160% → 160%): `Field` (and `Field rows`), `Btn` (every `--btn-h`: a Foot, an ActionBar, a sheet's foot), `Chip`/`ChipPick`, `Pin` cells, `Toggle`, `Check`, `Slider`, `Dropdown`, `BtnGroup look="choice"`, the segment strip, a `SheetStep`'s bar, `Composer`. Each is the larger of its size of things (`--tap-base`) and the same share of the type (`--fs-base`); new root tokens `--form-tap` (48), `--form-tap-sm` (44), `--form-tap-lg` (56), and `--btn-h`, `--btn-xl-h`, `--chip-h` are now on both bases. At 100% nothing moves (the two are equal at the default bases). Icons, avatars, bars, `IconBtn` and the top bar keep growing half as fast. Nothing to change in a screen; an app that sets `--fs-base` by hand gets it too. A dense screen at 160% has less room than before: look at it.
17
+
18
+ ## 0.7.139 — 2026-10-26
19
+
20
+ A tab's count can lead with the app's words ("+1"), and a screen reader now hears a tab's count.
21
+
22
+ Components: StackSheet
23
+
24
+ ### Added
25
+ - **`StackSheetTab countPrefix`**: words before the count in the tab's circle, the app's: `{ id, icon, label, count: 1, countPrefix: '+' }` draws "+1" (new ones came). Shown only with a count: a count of 0 or none shows no circle and no prefix. Over 99 it reads "+99+". The same through `Home sheets[n].tabs`. Without it nothing changes. Story `Home` (the neighbours' find tab shows "+1", the next tab a plain 1).
26
+
27
+ ### Changed
28
+ - **A screen reader hears a tab's count.** Before → after: the tab's name (`aria-label`) hid its count, so a tab with a count was read by its name alone → it is read as the name then the count with its prefix ("เพื่อนบ้าน +1"). The JSX is unchanged.
29
+
5
30
  ## 0.7.138 — 2026-10-26
6
31
 
7
32
  Every stamp has a thin contact shadow, and a stamp can be plain paper with no teeth. A card can bring itself into view when a screen is drawn again.
package/css/actions.css CHANGED
@@ -64,7 +64,7 @@
64
64
  .appbar__sub { font: var(--type-caption); color: var(--on-surface-muted); }
65
65
  /* the bar's trailing controls (one or two: a labelled switch chip, a wallet button — home,
66
66
  Lh 2026-09-13) stand on the tap floor: a chip that is a switch grows to --tap here */
67
- .appbar .chip--pick { min-height: var(--tap); }
67
+ .appbar .chip--pick { min-height: var(--form-tap); }
68
68
 
69
69
  /* ---- icon button (round) ---- */
70
70
  .icon-btn {
@@ -238,7 +238,7 @@
238
238
  gap: var(--sp-2);
239
239
  width: 100%;
240
240
  min-width: 0;
241
- min-height: var(--tap-sm);
241
+ min-height: var(--form-tap-sm);
242
242
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
243
243
  border: var(--border-w) solid var(--outline); /* --outline: keeps a faint edge on colored palettes, like fields */
244
244
  border-radius: var(--r-chip);
@@ -265,7 +265,7 @@
265
265
  padding: var(--sp-2) var(--sp-1);
266
266
  font: var(--type-label);
267
267
  font-size: var(--fs-sm);
268
- min-height: calc(var(--tap-sm) - var(--sp-0));
268
+ min-height: calc(var(--form-tap-sm) - var(--sp-0));
269
269
  flex: 1;
270
270
  min-width: 0;
271
271
  }
@@ -279,14 +279,14 @@
279
279
  one the solid brand fill with the ink its ground declares (--on-accent, as a primary button). */
280
280
  .segment--choice {
281
281
  gap: 0;
282
- min-height: var(--tap);
282
+ min-height: var(--form-tap);
283
283
  border: var(--border-w) solid var(--btngroup-choice-border, var(--outline));
284
284
  border-radius: var(--btngroup-choice-radius, var(--r-chip));
285
285
  overflow: hidden;
286
286
  background: var(--btngroup-choice-bg, var(--action-bg));
287
287
  color: var(--btngroup-choice-ink, var(--action-ink));
288
288
  }
289
- .segment--choice > .segment__item { min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border-radius: 0; color: inherit; font-size: var(--fs-md); }
289
+ .segment--choice > .segment__item { min-height: var(--form-tap); padding: var(--sp-2) var(--sp-3); border-radius: 0; color: inherit; font-size: var(--fs-md); }
290
290
  .segment--choice > .segment__item + .segment__item { border-inline-start: var(--border-w) solid var(--btngroup-choice-rule, var(--btngroup-choice-border, var(--outline))); }
291
291
  .segment--choice > .segment__item[aria-selected="true"] {
292
292
  background: var(--btngroup-choice-on-bg, var(--accent));
package/css/card.css CHANGED
@@ -87,6 +87,8 @@
87
87
  .card__face > * { min-width: 0; }
88
88
  :is(.card, .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) { isolation: isolate; } /* the card is the stacking context the stamp's -1 lies in: below the card's words, above its paper */
89
89
  .card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
90
+ .card__middle--full { justify-content: center; align-items: center; text-align: center; } /* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
91
+ .card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
90
92
  .card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
91
93
  .card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
92
94
  .head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: -0.15em; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
package/css/choice.css CHANGED
@@ -12,8 +12,8 @@
12
12
  <input type="checkbox" class="check" aria-label="Done"> */
13
13
  .check {
14
14
  appearance: none;
15
- width: var(--check-size, var(--tap));
16
- height: var(--check-size, var(--tap));
15
+ width: var(--check-size, var(--form-tap));
16
+ height: var(--check-size, var(--form-tap));
17
17
  flex: none;
18
18
  margin: 0;
19
19
  border-radius: 50%;
@@ -24,8 +24,8 @@
24
24
  }
25
25
  .check::after {
26
26
  content: "";
27
- width: calc(var(--tap) / 2);
28
- height: calc(var(--tap) / 2);
27
+ width: calc(var(--form-tap) / 2);
28
+ height: calc(var(--form-tap) / 2);
29
29
  background: var(--on-accent);
30
30
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
31
31
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
@@ -33,14 +33,14 @@
33
33
  }
34
34
  .check:checked { background: var(--accent); border-color: transparent; }
35
35
  .check:checked::after { opacity: 1; }
36
- .check--sm { width: var(--check-sm-size, var(--tap-sm)); height: var(--check-sm-size, var(--tap-sm)); }
36
+ .check--sm { width: var(--check-sm-size, var(--form-tap-sm)); height: var(--check-sm-size, var(--form-tap-sm)); }
37
37
 
38
38
  /* ---- toggle: big switch ----
39
39
  <input type="checkbox" role="switch" class="toggle" aria-label="Private"> */
40
40
  .toggle {
41
- --_w: var(--bar-h); /* 64 × 36, knob = height − 2 × pad */
42
- --_h: calc(var(--tap-base) * 3 / 4);
43
- --_pad: calc(var(--tap-base) / 16);
41
+ --_w: max(var(--bar-h), calc(var(--fs-base) * 32 / 11)); /* 64 × 36, knob = height − 2 × pad; on the type too, as every form control (tokens.css --form-tap) */
42
+ --_h: max(calc(var(--tap-base) * 3 / 4), calc(var(--fs-base) * 18 / 11));
43
+ --_pad: max(calc(var(--tap-base) / 16), calc(var(--fs-base) * 3 / 22));
44
44
  appearance: none;
45
45
  width: var(--_w);
46
46
  height: var(--_h);
@@ -123,7 +123,7 @@
123
123
  .calendar__wd { font: var(--calendar-wd-font, var(--type-caption)); color: var(--calendar-wd-ink, var(--card-muted)); padding-block: var(--calendar-wd-pad-y, var(--sp-2)); }
124
124
  .calendar__day {
125
125
  width: 100%;
126
- max-width: var(--calendar-day-max-w, var(--tap));
126
+ max-width: var(--calendar-day-max-w, var(--form-tap));
127
127
  aspect-ratio: 1;
128
128
  display: grid;
129
129
  place-items: center;
@@ -199,7 +199,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
199
199
  display: flex;
200
200
  justify-content: space-between;
201
201
  }
202
- .mood__opt { flex: 1 1 0; max-width: var(--mood-opt-max-w, var(--tap)); min-width: 0; height: var(--mood-opt-h, var(--tap)); display: grid; place-items: center; position: relative; }
202
+ .mood__opt { flex: 1 1 0; max-width: var(--mood-opt-max-w, var(--form-tap)); min-width: 0; height: var(--mood-opt-h, var(--form-tap)); display: grid; place-items: center; position: relative; }
203
203
  .mood__dot {
204
204
  width: var(--mood-dot-size, var(--icon-xs));
205
205
  height: var(--mood-dot-size, var(--icon-xs));
@@ -221,7 +221,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
221
221
  .pin__cell {
222
222
  flex: 1;
223
223
  min-width: 0;
224
- max-width: var(--pin-cell-max-w, var(--fab));
224
+ --_max-w: max(var(--fab), calc(var(--fs-base) * 36 / 11)); /* 72, and as the digit grows (tokens.css --form-tap) */
225
+ max-width: var(--pin-cell-max-w, var(--_max-w));
225
226
  aspect-ratio: 2 / 3;
226
227
  padding: 0; /* iPhone (Lh 2026-10-03): WebKit on iOS gives a text field 0.5em of padding each side — of a 40px digit that is more
227
228
  than the pill is wide, so the field had NO room for its text: the digit started at the pill's middle and ran out of it, a few
@@ -280,7 +281,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
280
281
  .composer { display: grid; gap: var(--composer-gap, var(--sp-3)); }
281
282
  .composer__input {
282
283
  width: 100%;
283
- min-height: var(--composer-input-min-h, calc(var(--tap-base) * 11 / 3));
284
+ min-height: var(--composer-input-min-h, max(calc(var(--tap-base) * 11 / 3), calc(var(--fs-base) * 8)));
284
285
  resize: none;
285
286
  border: 0;
286
287
  padding: 0;
@@ -316,9 +317,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
316
317
  .slider__glyph {
317
318
  position: absolute;
318
319
  bottom: 0;
319
- left: calc(var(--tap) / 2 + (100% - var(--tap)) * var(--slider-at, 0));
320
- width: var(--slider-glyph-size, var(--tap));
321
- height: var(--slider-glyph-size, var(--tap));
320
+ left: calc(var(--form-tap) / 2 + (100% - var(--form-tap)) * var(--slider-at, 0));
321
+ width: var(--slider-glyph-size, var(--form-tap));
322
+ height: var(--slider-glyph-size, var(--form-tap));
322
323
  /* the eye centres the INK, not the line box: a letter that stands on the
323
324
  baseline (ก) has no descender, while the face's box keeps 0.30em under it
324
325
  (fonts.css) — so the ink lands low when the box is centred; lifted 0.15em
@@ -334,7 +335,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
334
335
  .slider__range {
335
336
  appearance: none;
336
337
  width: 100%;
337
- height: var(--slider-range-h, var(--tap));
338
+ height: var(--slider-range-h, var(--form-tap));
338
339
  margin: 0;
339
340
  background: transparent;
340
341
  cursor: pointer;
@@ -342,9 +343,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
342
343
  .slider__range::-webkit-slider-runnable-track { height: var(--sp-1); border-radius: var(--r-chip); background: var(--ink-rail); }
343
344
  .slider__range::-webkit-slider-thumb {
344
345
  appearance: none;
345
- width: var(--tap);
346
- height: var(--tap);
347
- margin-top: calc((var(--sp-1) - var(--tap)) / 2);
346
+ width: var(--form-tap);
347
+ height: var(--form-tap);
348
+ margin-top: calc((var(--sp-1) - var(--form-tap)) / 2);
348
349
  border-radius: 50%;
349
350
  background: var(--accent);
350
351
  border: var(--border-w) solid var(--on-accent);
@@ -352,8 +353,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
352
353
  }
353
354
  .slider__range::-moz-range-track { height: var(--sp-1); border-radius: var(--r-chip); background: var(--ink-rail); }
354
355
  .slider__range::-moz-range-thumb {
355
- width: var(--tap);
356
- height: var(--tap);
356
+ width: var(--form-tap);
357
+ height: var(--form-tap);
357
358
  border-radius: 50%;
358
359
  background: var(--accent);
359
360
  border: var(--border-w) solid var(--on-accent);
@@ -367,7 +368,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
367
368
  one label — the whole of it is the tap target ---- */
368
369
  .toggle-field {
369
370
  display: inline-flex; align-items: center; gap: var(--toggle-field-gap, var(--sp-2));
370
- min-height: var(--tap);
371
+ min-height: var(--form-tap);
371
372
  font: var(--toggle-field-font, var(--type-label));
372
373
  -webkit-user-select: none; user-select: none;
373
374
  flex: none;
package/css/forms.css CHANGED
@@ -15,7 +15,7 @@
15
15
  background: var(--field-bg, var(--action-bg));
16
16
  color: var(--field-ink, var(--action-ink));
17
17
  padding-inline: var(--field-pad-x, var(--sp-4));
18
- min-height: var(--field-min-h, var(--tap-lg)); /* 56, the action field's height, for every field (Lh 2026-09-22: "ใหญ่ดี") */
18
+ min-height: var(--field-min-h, var(--form-tap-lg)); /* 56, the action field's height, for every field (Lh 2026-09-22: "ใหญ่ดี") */
19
19
  min-width: 0;
20
20
  }
21
21
 
@@ -46,7 +46,7 @@
46
46
  .field:has(:focus, [data-cursor]) { border-color: var(--field-active-border, currentColor); } /* [data-cursor]: SheetSteps holds the phone's keyboard for this field */
47
47
 
48
48
  /* field with its action inside: date pick, send, go — the button sits flush right */
49
- .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--tap-lg)); }
49
+ .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
50
50
 
51
51
  /* colored palettes drop the visible outline elsewhere — fields keep one */
52
52
  [data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
@@ -59,7 +59,7 @@
59
59
  font: var(--add-row-font, var(--type-label));
60
60
  font-size: var(--add-row-font-size, var(--fs-body));
61
61
  padding: var(--add-row-pad-y, var(--sp-2)) var(--add-row-pad-x, 0);
62
- min-height: var(--add-row-min-h, var(--tap-sm));
62
+ min-height: var(--add-row-min-h, var(--form-tap-sm));
63
63
  }
64
64
  .add-row__plus {
65
65
  width: var(--add-row-plus-size, var(--icon));
package/css/sheet.css CHANGED
@@ -496,7 +496,7 @@
496
496
  }
497
497
  /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
498
498
  Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
499
- :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */ }
499
+ :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, max(calc(var(--tap-base) * 2 / 3), calc(var(--fs-base) * 16 / 11))); /* 32, and with the words (tokens.css --form-tap) */ /* the bar's own floor, read once (__head and __go below share it) */ }
500
500
  /* the open step GROWS into the room left, so the steps not done yet wait in a pile at the bottom — and a move is an ACCORDION:
501
501
  in one beat the step that was open folds while the new one unfolds (flex-grow and the 1fr row both ease), the piles slide
502
502
  with them, nothing jumps (Lh 2026-09-24) */
@@ -531,7 +531,7 @@
531
531
  :is(.sheet-step__inner, .sheet-settings__body) { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
532
532
  :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
533
533
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
534
- .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--tap-sm)) / 2) 0 auto; min-height: max(100%, var(--tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
534
+ .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--form-tap-sm)) / 2) 0 auto; min-height: max(100%, var(--form-tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
535
535
  /* the last step's finish, when the app gives one: under the steps */
536
536
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
537
537
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
@@ -27,7 +27,7 @@
27
27
  --r-base: 1.3rem; /* 20.8 the corners: every --r-* (0 = square; chips and buttons stay fully round) */
28
28
  --tap-base: 3rem; /* 48 the size of THINGS: touch targets, control heights, icons, avatars, ring, tiles
29
29
  (a touch target never goes under 44px, whatever this says) */
30
- /* a member's text-size setting is this same --fs-base, written on <html> by the app at run time (1.375rem = 100%, 2.2rem = 160%) — the words grow, the things keep their size */
30
+ /* a member's text-size setting is this same --fs-base, written on <html> by the app at run time (1.375rem = 100%, 2.2rem = 160%) — the words and the form controls grow, the other things half as much */
31
31
 
32
32
  /* ---- faces ---- */
33
33
  --font-ui: "PK Nonthaburi", -apple-system, system-ui, sans-serif;
package/css/tokens.css CHANGED
@@ -23,11 +23,12 @@
23
23
  The px in the comments are at these defaults (1rem = 16px). */
24
24
  --sp-base: 0.25rem; /* 4 spacing: --sp-N = base × N */
25
25
  --fs-base: 1.375rem; /* 22 type: the BODY is the base (Lh 2026-09-22) — every --fs-* is a multiplier of it; nothing under 0.68 (15, minor links — was 0.775/17 until 2026-09-23). A new size is Lh's call only.
26
- Also the member's text-size setting: the app writes it on <html> at run time (2.2rem = 160%) — words grow, things don't */
26
+ Also the member's text-size setting: the app writes it on <html> at run time (2.2rem = 160%) — words and form controls grow, things half as much */
27
27
  --r-base: 1.3rem; /* 20.8 radius, 130% of 1rem (Lh 2026-10-05): --r-* (--r-chip stays fully round) */
28
28
  --tap-base: 3rem; /* 48 the size of THINGS: touch targets and control heights (--tap*, --btn-h, --chip-h, --bar-h,
29
29
  --header-h, --fab), icons, avatars, dots, the ring and the tiles. --sp-base is the room BETWEEN things.
30
- Text-holders follow the type instead: --badge, --icon-xs and --stamp-xs (inline with captions) are on --fs-base.
30
+ Text-holders follow the type instead: --badge, --icon-xs and --stamp-xs (inline with captions) are on --fs-base;
31
+ the form controls (--form-tap*, --btn-h, --chip-h) on both, the larger wins.
31
32
  Not on a base: --screen-w (the column), borders / rules / focus (fixed rem), shadows, motion. */
32
33
 
33
34
  /* ---- spacing (4pt grid): the number in the name is the multiplier ---- */
@@ -48,9 +49,16 @@
48
49
  --tap-sm: max(var(--tap-floor), calc(var(--tap-base) * 11 / 12)); /* 44 minimum touch target */
49
50
  --tap-lg: max(var(--tap-floor), calc(var(--tap-base) * 7 / 6)); /* 56 hero controls: send, field with action */
50
51
  --tap-xl: max(var(--tap-floor), calc(var(--tap-base) * 17 / 12)); /* 68 the biggest round control: a foot of a few big round buttons (IconBtn xl) */
51
- --btn-h: calc(var(--tap-base) * 13 / 12); /* 52 button height */
52
- --btn-xl-h: calc(var(--tap-base) * 11 / 6); /* 88 the one giant CTA */
53
- --chip-h: calc(var(--tap-base) * 19 / 24); /* 38 chip height */
52
+ /* FORM CONTROLS follow the words they hold (Lh 2026-10-26: "form fields and the words in them use the same tokens"): a field, a button,
53
+ a chip, a Pin cell, a switch, a check and a segmented choice are the larger of their size of things (--tap-base) and the same share of
54
+ the type (--fs-base). At the default bases the two are equal (48 = 22 × 24/11); a member's larger text (setTextScale) grows them at the
55
+ words' full rate, where --tap-base grows only half as fast (icons, avatars, bars) */
56
+ --form-tap: max(var(--tap), calc(var(--fs-base) * 24 / 11)); /* 48 a check, a switch's row, a segmented choice, a slider's knob */
57
+ --form-tap-sm: max(var(--tap-sm), calc(var(--fs-base) * 2)); /* 44 */
58
+ --form-tap-lg: max(var(--tap-lg), calc(var(--fs-base) * 28 / 11)); /* 56 a Field */
59
+ --btn-h: max(calc(var(--tap-base) * 13 / 12), calc(var(--fs-base) * 26 / 11)); /* 52 button height */
60
+ --btn-xl-h: max(calc(var(--tap-base) * 11 / 6), calc(var(--fs-base) * 4)); /* 88 the one giant CTA */
61
+ --chip-h: max(calc(var(--tap-base) * 19 / 24), calc(var(--fs-base) * 19 / 11)); /* 38 chip height */
54
62
  --bar-h: calc(var(--tap-base) * 4 / 3); /* 64 float bar, day cell */
55
63
  --header-h: calc(var(--tap-base) * 5 / 4); /* 60 top bar — .topbar and .appbar alike */
56
64
  --card-pad-rest: var(--sp-5); /* 20 a card's padding before any variant — .card publishes it as --card-pad; the sheet's peek strip is built from it where no card is in scope */
package/dist/cardds.css CHANGED
@@ -64,11 +64,12 @@
64
64
  The px in the comments are at these defaults (1rem = 16px). */
65
65
  --sp-base: 0.25rem; /* 4 spacing: --sp-N = base × N */
66
66
  --fs-base: 1.375rem; /* 22 type: the BODY is the base (Lh 2026-09-22) — every --fs-* is a multiplier of it; nothing under 0.68 (15, minor links — was 0.775/17 until 2026-09-23). A new size is Lh's call only.
67
- Also the member's text-size setting: the app writes it on <html> at run time (2.2rem = 160%) — words grow, things don't */
67
+ Also the member's text-size setting: the app writes it on <html> at run time (2.2rem = 160%) — words and form controls grow, things half as much */
68
68
  --r-base: 1.3rem; /* 20.8 radius, 130% of 1rem (Lh 2026-10-05): --r-* (--r-chip stays fully round) */
69
69
  --tap-base: 3rem; /* 48 the size of THINGS: touch targets and control heights (--tap*, --btn-h, --chip-h, --bar-h,
70
70
  --header-h, --fab), icons, avatars, dots, the ring and the tiles. --sp-base is the room BETWEEN things.
71
- Text-holders follow the type instead: --badge, --icon-xs and --stamp-xs (inline with captions) are on --fs-base.
71
+ Text-holders follow the type instead: --badge, --icon-xs and --stamp-xs (inline with captions) are on --fs-base;
72
+ the form controls (--form-tap*, --btn-h, --chip-h) on both, the larger wins.
72
73
  Not on a base: --screen-w (the column), borders / rules / focus (fixed rem), shadows, motion. */
73
74
 
74
75
  /* ---- spacing (4pt grid): the number in the name is the multiplier ---- */
@@ -89,9 +90,16 @@
89
90
  --tap-sm: max(var(--tap-floor), calc(var(--tap-base) * 11 / 12)); /* 44 minimum touch target */
90
91
  --tap-lg: max(var(--tap-floor), calc(var(--tap-base) * 7 / 6)); /* 56 hero controls: send, field with action */
91
92
  --tap-xl: max(var(--tap-floor), calc(var(--tap-base) * 17 / 12)); /* 68 the biggest round control: a foot of a few big round buttons (IconBtn xl) */
92
- --btn-h: calc(var(--tap-base) * 13 / 12); /* 52 button height */
93
- --btn-xl-h: calc(var(--tap-base) * 11 / 6); /* 88 the one giant CTA */
94
- --chip-h: calc(var(--tap-base) * 19 / 24); /* 38 chip height */
93
+ /* FORM CONTROLS follow the words they hold (Lh 2026-10-26: "form fields and the words in them use the same tokens"): a field, a button,
94
+ a chip, a Pin cell, a switch, a check and a segmented choice are the larger of their size of things (--tap-base) and the same share of
95
+ the type (--fs-base). At the default bases the two are equal (48 = 22 × 24/11); a member's larger text (setTextScale) grows them at the
96
+ words' full rate, where --tap-base grows only half as fast (icons, avatars, bars) */
97
+ --form-tap: max(var(--tap), calc(var(--fs-base) * 24 / 11)); /* 48 a check, a switch's row, a segmented choice, a slider's knob */
98
+ --form-tap-sm: max(var(--tap-sm), calc(var(--fs-base) * 2)); /* 44 */
99
+ --form-tap-lg: max(var(--tap-lg), calc(var(--fs-base) * 28 / 11)); /* 56 a Field */
100
+ --btn-h: max(calc(var(--tap-base) * 13 / 12), calc(var(--fs-base) * 26 / 11)); /* 52 button height */
101
+ --btn-xl-h: max(calc(var(--tap-base) * 11 / 6), calc(var(--fs-base) * 4)); /* 88 the one giant CTA */
102
+ --chip-h: max(calc(var(--tap-base) * 19 / 24), calc(var(--fs-base) * 19 / 11)); /* 38 chip height */
95
103
  --bar-h: calc(var(--tap-base) * 4 / 3); /* 64 float bar, day cell */
96
104
  --header-h: calc(var(--tap-base) * 5 / 4); /* 60 top bar — .topbar and .appbar alike */
97
105
  --card-pad-rest: var(--sp-5); /* 20 a card's padding before any variant — .card publishes it as --card-pad; the sheet's peek strip is built from it where no card is in scope */
@@ -1040,6 +1048,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1040
1048
  .card__face > * { min-width: 0; }
1041
1049
  :is(.card, .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) { isolation: isolate; } /* the card is the stacking context the stamp's -1 lies in: below the card's words, above its paper */
1042
1050
  .card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
1051
+ .card__middle--full { justify-content: center; align-items: center; text-align: center; } /* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
1052
+ .card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
1043
1053
  .card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
1044
1054
  .card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
1045
1055
  .head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: -0.15em; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
@@ -2366,7 +2376,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2366
2376
  }
2367
2377
  /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
2368
2378
  Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
2369
- :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */ }
2379
+ :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, max(calc(var(--tap-base) * 2 / 3), calc(var(--fs-base) * 16 / 11))); /* 32, and with the words (tokens.css --form-tap) */ /* the bar's own floor, read once (__head and __go below share it) */ }
2370
2380
  /* the open step GROWS into the room left, so the steps not done yet wait in a pile at the bottom — and a move is an ACCORDION:
2371
2381
  in one beat the step that was open folds while the new one unfolds (flex-grow and the 1fr row both ease), the piles slide
2372
2382
  with them, nothing jumps (Lh 2026-09-24) */
@@ -2401,7 +2411,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2401
2411
  :is(.sheet-step__inner, .sheet-settings__body) { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
2402
2412
  :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
2403
2413
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
2404
- .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--tap-sm)) / 2) 0 auto; min-height: max(100%, var(--tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
2414
+ .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--form-tap-sm)) / 2) 0 auto; min-height: max(100%, var(--form-tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
2405
2415
  /* the last step's finish, when the app gives one: under the steps */
2406
2416
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
2407
2417
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
@@ -2529,7 +2539,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2529
2539
  background: var(--field-bg, var(--action-bg));
2530
2540
  color: var(--field-ink, var(--action-ink));
2531
2541
  padding-inline: var(--field-pad-x, var(--sp-4));
2532
- min-height: var(--field-min-h, var(--tap-lg)); /* 56, the action field's height, for every field (Lh 2026-09-22: "ใหญ่ดี") */
2542
+ min-height: var(--field-min-h, var(--form-tap-lg)); /* 56, the action field's height, for every field (Lh 2026-09-22: "ใหญ่ดี") */
2533
2543
  min-width: 0;
2534
2544
  }
2535
2545
 
@@ -2560,7 +2570,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2560
2570
  .field:has(:focus, [data-cursor]) { border-color: var(--field-active-border, currentColor); } /* [data-cursor]: SheetSteps holds the phone's keyboard for this field */
2561
2571
 
2562
2572
  /* field with its action inside: date pick, send, go — the button sits flush right */
2563
- .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--tap-lg)); }
2573
+ .field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
2564
2574
 
2565
2575
  /* colored palettes drop the visible outline elsewhere — fields keep one */
2566
2576
  [data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
@@ -2573,7 +2583,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2573
2583
  font: var(--add-row-font, var(--type-label));
2574
2584
  font-size: var(--add-row-font-size, var(--fs-body));
2575
2585
  padding: var(--add-row-pad-y, var(--sp-2)) var(--add-row-pad-x, 0);
2576
- min-height: var(--add-row-min-h, var(--tap-sm));
2586
+ min-height: var(--add-row-min-h, var(--form-tap-sm));
2577
2587
  }
2578
2588
  .add-row__plus {
2579
2589
  width: var(--add-row-plus-size, var(--icon));
@@ -2764,7 +2774,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2764
2774
  .appbar__sub { font: var(--type-caption); color: var(--on-surface-muted); }
2765
2775
  /* the bar's trailing controls (one or two: a labelled switch chip, a wallet button — home,
2766
2776
  Lh 2026-09-13) stand on the tap floor: a chip that is a switch grows to --tap here */
2767
- .appbar .chip--pick { min-height: var(--tap); }
2777
+ .appbar .chip--pick { min-height: var(--form-tap); }
2768
2778
 
2769
2779
  /* ---- icon button (round) ---- */
2770
2780
  .icon-btn {
@@ -2938,7 +2948,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2938
2948
  gap: var(--sp-2);
2939
2949
  width: 100%;
2940
2950
  min-width: 0;
2941
- min-height: var(--tap-sm);
2951
+ min-height: var(--form-tap-sm);
2942
2952
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
2943
2953
  border: var(--border-w) solid var(--outline); /* --outline: keeps a faint edge on colored palettes, like fields */
2944
2954
  border-radius: var(--r-chip);
@@ -2965,7 +2975,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2965
2975
  padding: var(--sp-2) var(--sp-1);
2966
2976
  font: var(--type-label);
2967
2977
  font-size: var(--fs-sm);
2968
- min-height: calc(var(--tap-sm) - var(--sp-0));
2978
+ min-height: calc(var(--form-tap-sm) - var(--sp-0));
2969
2979
  flex: 1;
2970
2980
  min-width: 0;
2971
2981
  }
@@ -2979,14 +2989,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2979
2989
  one the solid brand fill with the ink its ground declares (--on-accent, as a primary button). */
2980
2990
  .segment--choice {
2981
2991
  gap: 0;
2982
- min-height: var(--tap);
2992
+ min-height: var(--form-tap);
2983
2993
  border: var(--border-w) solid var(--btngroup-choice-border, var(--outline));
2984
2994
  border-radius: var(--btngroup-choice-radius, var(--r-chip));
2985
2995
  overflow: hidden;
2986
2996
  background: var(--btngroup-choice-bg, var(--action-bg));
2987
2997
  color: var(--btngroup-choice-ink, var(--action-ink));
2988
2998
  }
2989
- .segment--choice > .segment__item { min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border-radius: 0; color: inherit; font-size: var(--fs-md); }
2999
+ .segment--choice > .segment__item { min-height: var(--form-tap); padding: var(--sp-2) var(--sp-3); border-radius: 0; color: inherit; font-size: var(--fs-md); }
2990
3000
  .segment--choice > .segment__item + .segment__item { border-inline-start: var(--border-w) solid var(--btngroup-choice-rule, var(--btngroup-choice-border, var(--outline))); }
2991
3001
  .segment--choice > .segment__item[aria-selected="true"] {
2992
3002
  background: var(--btngroup-choice-on-bg, var(--accent));
@@ -3639,8 +3649,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3639
3649
  <input type="checkbox" class="check" aria-label="Done"> */
3640
3650
  .check {
3641
3651
  appearance: none;
3642
- width: var(--check-size, var(--tap));
3643
- height: var(--check-size, var(--tap));
3652
+ width: var(--check-size, var(--form-tap));
3653
+ height: var(--check-size, var(--form-tap));
3644
3654
  flex: none;
3645
3655
  margin: 0;
3646
3656
  border-radius: 50%;
@@ -3651,8 +3661,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3651
3661
  }
3652
3662
  .check::after {
3653
3663
  content: "";
3654
- width: calc(var(--tap) / 2);
3655
- height: calc(var(--tap) / 2);
3664
+ width: calc(var(--form-tap) / 2);
3665
+ height: calc(var(--form-tap) / 2);
3656
3666
  background: var(--on-accent);
3657
3667
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
3658
3668
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
@@ -3660,14 +3670,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3660
3670
  }
3661
3671
  .check:checked { background: var(--accent); border-color: transparent; }
3662
3672
  .check:checked::after { opacity: 1; }
3663
- .check--sm { width: var(--check-sm-size, var(--tap-sm)); height: var(--check-sm-size, var(--tap-sm)); }
3673
+ .check--sm { width: var(--check-sm-size, var(--form-tap-sm)); height: var(--check-sm-size, var(--form-tap-sm)); }
3664
3674
 
3665
3675
  /* ---- toggle: big switch ----
3666
3676
  <input type="checkbox" role="switch" class="toggle" aria-label="Private"> */
3667
3677
  .toggle {
3668
- --_w: var(--bar-h); /* 64 × 36, knob = height − 2 × pad */
3669
- --_h: calc(var(--tap-base) * 3 / 4);
3670
- --_pad: calc(var(--tap-base) / 16);
3678
+ --_w: max(var(--bar-h), calc(var(--fs-base) * 32 / 11)); /* 64 × 36, knob = height − 2 × pad; on the type too, as every form control (tokens.css --form-tap) */
3679
+ --_h: max(calc(var(--tap-base) * 3 / 4), calc(var(--fs-base) * 18 / 11));
3680
+ --_pad: max(calc(var(--tap-base) / 16), calc(var(--fs-base) * 3 / 22));
3671
3681
  appearance: none;
3672
3682
  width: var(--_w);
3673
3683
  height: var(--_h);
@@ -3750,7 +3760,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3750
3760
  .calendar__wd { font: var(--calendar-wd-font, var(--type-caption)); color: var(--calendar-wd-ink, var(--card-muted)); padding-block: var(--calendar-wd-pad-y, var(--sp-2)); }
3751
3761
  .calendar__day {
3752
3762
  width: 100%;
3753
- max-width: var(--calendar-day-max-w, var(--tap));
3763
+ max-width: var(--calendar-day-max-w, var(--form-tap));
3754
3764
  aspect-ratio: 1;
3755
3765
  display: grid;
3756
3766
  place-items: center;
@@ -3826,7 +3836,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3826
3836
  display: flex;
3827
3837
  justify-content: space-between;
3828
3838
  }
3829
- .mood__opt { flex: 1 1 0; max-width: var(--mood-opt-max-w, var(--tap)); min-width: 0; height: var(--mood-opt-h, var(--tap)); display: grid; place-items: center; position: relative; }
3839
+ .mood__opt { flex: 1 1 0; max-width: var(--mood-opt-max-w, var(--form-tap)); min-width: 0; height: var(--mood-opt-h, var(--form-tap)); display: grid; place-items: center; position: relative; }
3830
3840
  .mood__dot {
3831
3841
  width: var(--mood-dot-size, var(--icon-xs));
3832
3842
  height: var(--mood-dot-size, var(--icon-xs));
@@ -3848,7 +3858,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3848
3858
  .pin__cell {
3849
3859
  flex: 1;
3850
3860
  min-width: 0;
3851
- max-width: var(--pin-cell-max-w, var(--fab));
3861
+ --_max-w: max(var(--fab), calc(var(--fs-base) * 36 / 11)); /* 72, and as the digit grows (tokens.css --form-tap) */
3862
+ max-width: var(--pin-cell-max-w, var(--_max-w));
3852
3863
  aspect-ratio: 2 / 3;
3853
3864
  padding: 0; /* iPhone (Lh 2026-10-03): WebKit on iOS gives a text field 0.5em of padding each side — of a 40px digit that is more
3854
3865
  than the pill is wide, so the field had NO room for its text: the digit started at the pill's middle and ran out of it, a few
@@ -3907,7 +3918,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3907
3918
  .composer { display: grid; gap: var(--composer-gap, var(--sp-3)); }
3908
3919
  .composer__input {
3909
3920
  width: 100%;
3910
- min-height: var(--composer-input-min-h, calc(var(--tap-base) * 11 / 3));
3921
+ min-height: var(--composer-input-min-h, max(calc(var(--tap-base) * 11 / 3), calc(var(--fs-base) * 8)));
3911
3922
  resize: none;
3912
3923
  border: 0;
3913
3924
  padding: 0;
@@ -3943,9 +3954,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3943
3954
  .slider__glyph {
3944
3955
  position: absolute;
3945
3956
  bottom: 0;
3946
- left: calc(var(--tap) / 2 + (100% - var(--tap)) * var(--slider-at, 0));
3947
- width: var(--slider-glyph-size, var(--tap));
3948
- height: var(--slider-glyph-size, var(--tap));
3957
+ left: calc(var(--form-tap) / 2 + (100% - var(--form-tap)) * var(--slider-at, 0));
3958
+ width: var(--slider-glyph-size, var(--form-tap));
3959
+ height: var(--slider-glyph-size, var(--form-tap));
3949
3960
  /* the eye centres the INK, not the line box: a letter that stands on the
3950
3961
  baseline (ก) has no descender, while the face's box keeps 0.30em under it
3951
3962
  (fonts.css) — so the ink lands low when the box is centred; lifted 0.15em
@@ -3961,7 +3972,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3961
3972
  .slider__range {
3962
3973
  appearance: none;
3963
3974
  width: 100%;
3964
- height: var(--slider-range-h, var(--tap));
3975
+ height: var(--slider-range-h, var(--form-tap));
3965
3976
  margin: 0;
3966
3977
  background: transparent;
3967
3978
  cursor: pointer;
@@ -3969,9 +3980,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3969
3980
  .slider__range::-webkit-slider-runnable-track { height: var(--sp-1); border-radius: var(--r-chip); background: var(--ink-rail); }
3970
3981
  .slider__range::-webkit-slider-thumb {
3971
3982
  appearance: none;
3972
- width: var(--tap);
3973
- height: var(--tap);
3974
- margin-top: calc((var(--sp-1) - var(--tap)) / 2);
3983
+ width: var(--form-tap);
3984
+ height: var(--form-tap);
3985
+ margin-top: calc((var(--sp-1) - var(--form-tap)) / 2);
3975
3986
  border-radius: 50%;
3976
3987
  background: var(--accent);
3977
3988
  border: var(--border-w) solid var(--on-accent);
@@ -3979,8 +3990,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3979
3990
  }
3980
3991
  .slider__range::-moz-range-track { height: var(--sp-1); border-radius: var(--r-chip); background: var(--ink-rail); }
3981
3992
  .slider__range::-moz-range-thumb {
3982
- width: var(--tap);
3983
- height: var(--tap);
3993
+ width: var(--form-tap);
3994
+ height: var(--form-tap);
3984
3995
  border-radius: 50%;
3985
3996
  background: var(--accent);
3986
3997
  border: var(--border-w) solid var(--on-accent);
@@ -3994,7 +4005,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
3994
4005
  one label — the whole of it is the tap target ---- */
3995
4006
  .toggle-field {
3996
4007
  display: inline-flex; align-items: center; gap: var(--toggle-field-gap, var(--sp-2));
3997
- min-height: var(--tap);
4008
+ min-height: var(--form-tap);
3998
4009
  font: var(--toggle-field-font, var(--type-label));
3999
4010
  -webkit-user-select: none; user-select: none;
4000
4011
  flex: none;
@@ -49,6 +49,9 @@ export interface CardProps extends ComponentProps<'article'> {
49
49
  * what is left, so the card never changes height when it turns (knob `--card-middle-h` fixes the middle's height instead). The hidden face is `inert`; an `id` in the head or the foot would be drawn twice, so give it none.
50
50
  * Not on a `row`, `sm` or `stack` card */
51
51
  back?: ReactNode;
52
+ /** the back is the WHOLE card: no head and no foot on it (the front keeps both), what it holds in the middle of the card both ways and its words
53
+ * centred — one big code, one sentence with one button, a thank-you. The card stays as tall as its taller face. Only with `back` */
54
+ backFull?: boolean;
52
55
  /** CONTROLLED: the face that shows — pair it with `onFaceChange`. The app owns it */
53
56
  face?: CardFace;
54
57
  /** UNCONTROLLED: the face it starts on (default `'front'`) */
@@ -73,9 +76,9 @@ export interface CardProps extends ComponentProps<'article'> {
73
76
  * PRESSED WHOLE: a card whose ONLY control is its foot's button, or a row card's end button, is pressed anywhere — a touch off the
74
77
  * button runs that button's own action once, and the card dims under the finger. The app writes nothing; any other card is only read.
75
78
  * TWO FACES (`back`): the whole card turns over on a tap off a control (the flip mechanic it shares with Postcard); the head and the foot
76
- * read the same on both faces, the middle is one fixed height. `paper="bands"`: paper head and foot bands edge to edge, the tint between.
79
+ * read the same on both faces, the middle is one fixed height; `backFull` gives the back the whole card, centred, with neither. `paper="bands"`: paper head and foot bands edge to edge, the tint between.
77
80
  */
78
- export declare function Card({ tone, paper, sm, row, cover, fold, centre, band, as, stack, leave, onLeft, onRemove, removeLabel, back, face, defaultFace, onFaceChange, toBackLabel, toFrontLabel, startInView, className, style, children, onClick, ref, ...rest }: CardProps): import("react").DetailedReactHTMLElement<{
81
+ export declare function Card({ tone, paper, sm, row, cover, fold, centre, band, as, stack, leave, onLeft, onRemove, removeLabel, back, backFull, face, defaultFace, onFaceChange, toBackLabel, toFrontLabel, startInView, className, style, children, onClick, ref, ...rest }: CardProps): import("react").DetailedReactHTMLElement<{
79
82
  onClick: (e: MouseEvent<HTMLElement>) => void;
80
83
  inert?: boolean | undefined;
81
84
  "aria-busy"?: (boolean | "true" | "false") | undefined;