@usableapp/cardds 0.7.117 → 0.7.118

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,30 @@
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.118 — 2026-10-25
6
+
7
+ A long body text that opens in place (`Text expand`, replaces `Text scroll`), a settings sheet whose sections are all open (`SheetSettings`), a two-line `Tile inline`, and `Panes` that slide when the app moves them.
8
+
9
+ Components: Text, Card, Panes, Tile, SheetSettings, SheetSettingsGroup, SheetSteps
10
+
11
+ ### Breaking
12
+ - **`Text scroll` is gone; a long body text is `Text expand` (Lh 2026-10-25).** `scroll` showed a box of `--text-scroll-lines` lines that scrolled inside itself. `expand` CUTS the text at those lines with a chevron under it; a tap on the box or the chevron opens the whole text in place (the chevron turns up), a tap again folds it. A text that fits is only read: no chevron, not a control. Controlled like an input: `open` + `onOpenChange`, or `defaultOpen`. A cut text is a control (`role="button"`, `aria-expanded`, Enter/Space): a turning card does not turn on it, and a card with it beside one foot button is no longer pressed whole. Before → after: `<Text level="body" scroll>` → `<Text level="body" expand>`. The knobs keep their names: `--text-scroll-lines`, `--text-scroll-size` (`3.6lh` keeps the closed box 3.6 lines tall at every text size). Stories `Text/ExpandInATurningCard`, `Text/ExpandWithOneFootButton`, `Text/ExpandFits`, `Text/Controlled` (new); `Card/ReasonScrolls` removed, `Card/ReasonFixedHeight` uses `expand`.
13
+
14
+ ### Changed
15
+ - **`--text-scroll-lines` defaults to 3.6 (was 3.5):** a part of the next line peeks out under the cut, so it reads as more. A project that set the knob is unchanged.
16
+
17
+ ### Added
18
+ - **`SheetSettings` + `SheetSettingsGroup title`: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25).** Settings built from `SheetSteps` had to be done one section before the next showed, and a done line looked like a title bar. `SheetSettings` has no order, no `at`, no ✓, no summary, no finish and no folding: each `SheetSettingsGroup` is a group labelled by its title, then its own rows and controls (`Rows` of `Row` + `Toggle`, a row with an `End` value). The title bar is the `SheetStep`'s own (same tint, height, type, inset), and information only: nothing to press. It shares the step's rules, so the `--sheet-step-bar-*`, `--sheet-step-title-font`, `--sheet-steps-row-h` and `--sheet-step-inner-pad-x` knobs retune both. Before → after: `<SheetSteps>` with one `SheetStep` per settings section → `<SheetSettings><SheetSettingsGroup title="Notifications">…`. Goes in a Sheet's `Body`. Stories `SheetSettings/Default`, `Short`, `Ruled` (new).
19
+ - **`Tile inline`: a two-line tile.** The icon at the start of the label's line, the sub under the label, at least the two lines tall (floored at the tap height). For wide picks in a `TileGrid` (time slots with their hours). Without `inline` nothing changes. Knobs `--tile-inline-gap`, `--tile-inline-min-h`. Story `Tile/Inline` (new).
20
+
21
+ ### Fixed
22
+ - **`Panes` slides when `at` changes from outside.** A `BtnGroup` (or anything of the app's) driving `at` made the rail jump instead of slide: the size watcher was made anew every render and its at-once align cut the smooth scroll short. Now one watcher for the rail's life, aligning only when the rail's width really changes. Story `Panes/Controlled` (new).
23
+ - **`Card` re-finds its pressed-whole control when a child becomes a control after mounting** (a `Text expand` that turns out not to fit), so the card is no longer pressed whole beside it.
24
+ - **`SheetSteps`:** nothing moves; its bar's rules are now written once with `SheetSettings` (`:is(.sheet-step__head, .sheet-settings__head)`).
25
+
26
+ ### Gallery
27
+ - ↓ / ↑ go page to page again, and a story no longer takes the focus or scrolls the page on arrival. Not shipped in the package.
28
+
5
29
  ## 0.7.117 — 2026-10-25
6
30
 
7
31
  Every switch follows the brand on every palette (orchard's sky Toggle and Ring removed); a gallery page of every switch; the spec scripts are paused.
package/css/actions.css CHANGED
@@ -428,7 +428,8 @@
428
428
  .feed-card--small (Lh 2026-10-09) = the small card of a CardFeed: the card itself is the button that grows it, so it has the ring too.
429
429
  .card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
430
430
  button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
431
- button's, the card itself is never focused or disabled. */
431
+ button's, the card itself is never focused or disabled.
432
+ .t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
432
433
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
433
434
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
434
435
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick) {
@@ -436,7 +437,7 @@
436
437
  touch-action: manipulation;
437
438
  transition: scale var(--motion-press) var(--ease-out);
438
439
  }
439
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
440
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more) {
440
441
  cursor: pointer;
441
442
  touch-action: manipulation;
442
443
  transition: opacity var(--motion-press) var(--ease-out);
@@ -451,7 +452,7 @@
451
452
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
452
453
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
453
454
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
454
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
455
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
455
456
  /* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
456
457
  it darkens a touch instead (--press-shade) */
457
458
  :where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
@@ -461,7 +462,7 @@
461
462
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
462
463
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
463
464
  :where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
464
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
465
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
465
466
  /* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
466
467
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
467
468
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
package/css/base.css CHANGED
@@ -138,7 +138,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
138
138
  .t-h2 { font: var(--type-h2); letter-spacing: var(--track-h2); margin: 0; --fs-self: var(--fs-h2); }
139
139
  .t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
140
140
  .t-body { font: var(--type-body); margin: 0; }
141
- .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.5) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; } /* the box is plain: no border, no ground; lh = the body's own line */
141
+ .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.6) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow: hidden; } /* the cut box of `Text expand`: plain, no border, no ground, no scroll; lh = the body's own line */
142
+ .t-expand { display: grid; } /* the box, and under it the chevron when the text does not fit */
143
+ .t-expand.is-open > .t-scroll { height: auto; max-height: none; } /* open: the whole text in place */
144
+ .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
142
145
  .t-label { font: var(--type-label); }
143
146
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
144
147
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
package/css/media.css CHANGED
@@ -16,7 +16,7 @@
16
16
  .quote--sm .quote__text { font: var(--type-h2); letter-spacing: var(--track-h2); }
17
17
  .quote__by { font: var(--quote-by-font, var(--type-caption)); color: var(--quote-by-ink, var(--card-muted)); }
18
18
 
19
- /* ---- tile grid: big square tiles — icon top, label bottom ----
19
+ /* ---- tile grid: big square tiles — icon top, label bottom (inline: icon and label on one line) ----
20
20
  <div class="tile-grid"><button class="tile"><svg class="icon"/><span class="tile__label">Light</span></button>
21
21
  <label class="tile tile--pick"><input type="checkbox"><svg class="icon"/><span class="tile__label">Music</span></label></div> */
22
22
  .tile-grid {
@@ -48,6 +48,18 @@
48
48
  .tile--on { background: var(--tile-on-bg, var(--accent)); --dark: var(--accent-dark); color: var(--tile-on-ink, var(--card-ink)); border-color: transparent; }
49
49
  /* .tile--pick's hidden input and :has(:checked) fill are declared once in choice.css, alongside .chip--pick and .mood__opt */
50
50
  .tile--wide { grid-column: 1 / -1; }
51
+ /* inline: the icon at the start of the label's line, the sub under the label (not under the icon); as tall as those two lines */
52
+ .tile--inline {
53
+ grid-template-columns: auto 1fr;
54
+ align-items: center;
55
+ align-content: center;
56
+ column-gap: var(--tile-inline-gap, var(--sp-3));
57
+ row-gap: var(--tile-text-gap, var(--sp-0));
58
+ min-height: var(--tile-inline-min-h, var(--tap));
59
+ }
60
+ .tile--inline:not(:has(> .icon)) { grid-template-columns: 1fr; }
61
+ .tile--inline .tile__text { display: contents; }
62
+ .tile--inline .tile__sub { grid-column: -2; }
51
63
  /* upload: dashed, centred plus + label */
52
64
  .tile--upload {
53
65
  border-style: dashed;
package/css/sheet.css CHANGED
@@ -491,21 +491,23 @@
491
491
  display: grid; grid-template-columns: minmax(0, 1fr); /* the column is the step's width, never its words' — a long summary is cut with …, it never pushes the row past the sheet's edge (Lh 2026-09-28, #153) */ grid-template-rows: auto 0fr; align-content: start; /* mid-fold the rows sum to less than the box: the spare room stays BELOW, never spread into the title row (Lh: it looked like a spring) */
492
492
  flex: 0 0 auto;
493
493
  transition: grid-template-rows var(--motion-sheet) var(--ease), flex-grow var(--motion-sheet) var(--ease);
494
- --_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) */
495
494
  }
495
+ /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
496
+ Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
497
+ :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) */ }
496
498
  /* 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:
497
499
  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
498
500
  with them, nothing jumps (Lh 2026-09-24) */
499
501
  .sheet-step--now { grid-template-rows: auto 1fr; flex-grow: 1; }
500
502
  .sheet-step + .sheet-step { margin-top: var(--sheet-steps-gap, var(--sp-1)); } /* the folded bars read as a pile, a little ground between them (Lh 2026-09-25) */
501
- .sheet-step__head { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
503
+ :is(.sheet-step__head, .sheet-settings__head) { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
502
504
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--_row-h); min-width: 0; /* THIN: 32px, a summary line, not a button (Lh 2026-09-25) — the tap stays 44, see __go */
503
505
  padding-inline: var(--sheet-step-bar-pad-x, var(--sp-3)); border-radius: var(--sheet-step-bar-radius, var(--r-chip));
504
506
  background: var(--sheet-step-bar-bg, var(--ink-tint)); color: var(--sheet-step-bar-ink, inherit);
505
507
  --card-muted: var(--card-ink); /* a tint of the ink: its secondary words are the full ink (no lighter shade holds 4.5:1 there) */
506
508
  border-top: var(--sheet-step-border-w, 0rem) solid var(--sheet-step-border, currentColor); /* a rule instead of the bar: set this, the bar's bg transparent, radius 0 */
507
509
  }
508
- .sheet-step__title { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
510
+ :is(.sheet-step__title, .sheet-settings__title) { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
509
511
  .sheet-step__num { /* `numbered`: the step's number in a disc BEFORE its title (Lh 2026-09-25) — a disc of the card's colour on the bar, the number in the ink */
510
512
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
511
513
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
@@ -522,15 +524,22 @@
522
524
  so a .bleed cancels it exactly. The sum is computed on the body, before the inner's --card-pad takes over; outside a card there is
523
525
  no --card-pad and the step keeps its own inset (0px, as .bleed reads it). The inner reads the knob itself, not the sum: a theme's
524
526
  unitless 0 (SheetSteps · Ruled) is a length there but not in a calc, so the step stays right and only the bleed is lost. */
525
- .sheet-step__body { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
526
- .sheet-step__inner { --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) */
527
- .sheet-step__inner > * { min-width: 0; }
527
+ :is(.sheet-step__body, .sheet-settings__group) { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); }
528
+ .sheet-step__body { margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
529
+ :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) */
530
+ :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
528
531
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
529
532
  .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; }
530
533
  /* the last step's finish, when the app gives one: under the steps */
531
534
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
532
535
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
533
536
 
537
+ /* ---- sheet settings: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25) ----
538
+ <div class="sheet-settings"> › <div class="sheet-settings__group" role="group"> › __head (the step's bar, rules above) + __body (the
539
+ step's inner: the bar's inset, the card's gap). No order, no fold, nothing pressed: the bar is information. */
540
+ .sheet-settings { display: flex; flex-direction: column; min-width: 0; }
541
+ .sheet-settings__group { display: flex; flex-direction: column; min-width: 0; }
542
+
534
543
  /* ==== the step bar answers a press, as PRESS in actions.css answers every other control (#62: a block is written in its own file) ==== */
535
544
  .sheet-step:has(> .sheet-step__go:active) { opacity: var(--press-dim); } /* the step bar's button is invisible over it: the bar answers */
536
545
 
package/dist/cardds.css CHANGED
@@ -707,7 +707,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
707
707
  .t-h2 { font: var(--type-h2); letter-spacing: var(--track-h2); margin: 0; --fs-self: var(--fs-h2); }
708
708
  .t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
709
709
  .t-body { font: var(--type-body); margin: 0; }
710
- .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.5) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; } /* the box is plain: no border, no ground; lh = the body's own line */
710
+ .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.6) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow: hidden; } /* the cut box of `Text expand`: plain, no border, no ground, no scroll; lh = the body's own line */
711
+ .t-expand { display: grid; } /* the box, and under it the chevron when the text does not fit */
712
+ .t-expand.is-open > .t-scroll { height: auto; max-height: none; } /* open: the whole text in place */
713
+ .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
711
714
  .t-label { font: var(--type-label); }
712
715
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
713
716
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
@@ -2334,21 +2337,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2334
2337
  display: grid; grid-template-columns: minmax(0, 1fr); /* the column is the step's width, never its words' — a long summary is cut with …, it never pushes the row past the sheet's edge (Lh 2026-09-28, #153) */ grid-template-rows: auto 0fr; align-content: start; /* mid-fold the rows sum to less than the box: the spare room stays BELOW, never spread into the title row (Lh: it looked like a spring) */
2335
2338
  flex: 0 0 auto;
2336
2339
  transition: grid-template-rows var(--motion-sheet) var(--ease), flex-grow var(--motion-sheet) var(--ease);
2337
- --_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) */
2338
2340
  }
2341
+ /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
2342
+ Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
2343
+ :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) */ }
2339
2344
  /* 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:
2340
2345
  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
2341
2346
  with them, nothing jumps (Lh 2026-09-24) */
2342
2347
  .sheet-step--now { grid-template-rows: auto 1fr; flex-grow: 1; }
2343
2348
  .sheet-step + .sheet-step { margin-top: var(--sheet-steps-gap, var(--sp-1)); } /* the folded bars read as a pile, a little ground between them (Lh 2026-09-25) */
2344
- .sheet-step__head { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
2349
+ :is(.sheet-step__head, .sheet-settings__head) { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
2345
2350
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--_row-h); min-width: 0; /* THIN: 32px, a summary line, not a button (Lh 2026-09-25) — the tap stays 44, see __go */
2346
2351
  padding-inline: var(--sheet-step-bar-pad-x, var(--sp-3)); border-radius: var(--sheet-step-bar-radius, var(--r-chip));
2347
2352
  background: var(--sheet-step-bar-bg, var(--ink-tint)); color: var(--sheet-step-bar-ink, inherit);
2348
2353
  --card-muted: var(--card-ink); /* a tint of the ink: its secondary words are the full ink (no lighter shade holds 4.5:1 there) */
2349
2354
  border-top: var(--sheet-step-border-w, 0rem) solid var(--sheet-step-border, currentColor); /* a rule instead of the bar: set this, the bar's bg transparent, radius 0 */
2350
2355
  }
2351
- .sheet-step__title { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2356
+ :is(.sheet-step__title, .sheet-settings__title) { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2352
2357
  .sheet-step__num { /* `numbered`: the step's number in a disc BEFORE its title (Lh 2026-09-25) — a disc of the card's colour on the bar, the number in the ink */
2353
2358
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
2354
2359
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
@@ -2365,15 +2370,22 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2365
2370
  so a .bleed cancels it exactly. The sum is computed on the body, before the inner's --card-pad takes over; outside a card there is
2366
2371
  no --card-pad and the step keeps its own inset (0px, as .bleed reads it). The inner reads the knob itself, not the sum: a theme's
2367
2372
  unitless 0 (SheetSteps · Ruled) is a length there but not in a calc, so the step stays right and only the bleed is lost. */
2368
- .sheet-step__body { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
2369
- .sheet-step__inner { --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) */
2370
- .sheet-step__inner > * { min-width: 0; }
2373
+ :is(.sheet-step__body, .sheet-settings__group) { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); }
2374
+ .sheet-step__body { margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
2375
+ :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) */
2376
+ :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
2371
2377
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
2372
2378
  .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; }
2373
2379
  /* the last step's finish, when the app gives one: under the steps */
2374
2380
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
2375
2381
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
2376
2382
 
2383
+ /* ---- sheet settings: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25) ----
2384
+ <div class="sheet-settings"> › <div class="sheet-settings__group" role="group"> › __head (the step's bar, rules above) + __body (the
2385
+ step's inner: the bar's inset, the card's gap). No order, no fold, nothing pressed: the bar is information. */
2386
+ .sheet-settings { display: flex; flex-direction: column; min-width: 0; }
2387
+ .sheet-settings__group { display: flex; flex-direction: column; min-width: 0; }
2388
+
2377
2389
  /* ==== the step bar answers a press, as PRESS in actions.css answers every other control (#62: a block is written in its own file) ==== */
2378
2390
  .sheet-step:has(> .sheet-step__go:active) { opacity: var(--press-dim); } /* the step bar's button is invisible over it: the bar answers */
2379
2391
 
@@ -3090,7 +3102,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3090
3102
  .feed-card--small (Lh 2026-10-09) = the small card of a CardFeed: the card itself is the button that grows it, so it has the ring too.
3091
3103
  .card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
3092
3104
  button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
3093
- button's, the card itself is never focused or disabled. */
3105
+ button's, the card itself is never focused or disabled.
3106
+ .t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
3094
3107
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3095
3108
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3096
3109
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick) {
@@ -3098,7 +3111,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3098
3111
  touch-action: manipulation;
3099
3112
  transition: scale var(--motion-press) var(--ease-out);
3100
3113
  }
3101
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
3114
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more) {
3102
3115
  cursor: pointer;
3103
3116
  touch-action: manipulation;
3104
3117
  transition: opacity var(--motion-press) var(--ease-out);
@@ -3113,7 +3126,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3113
3126
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3114
3127
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3115
3128
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
3116
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3129
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3117
3130
  /* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
3118
3131
  it darkens a touch instead (--press-shade) */
3119
3132
  :where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
@@ -3123,7 +3136,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3123
3136
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3124
3137
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
3125
3138
  :where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
3126
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
3139
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
3127
3140
  /* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
3128
3141
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3129
3142
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
@@ -5645,7 +5658,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5645
5658
  .quote--sm .quote__text { font: var(--type-h2); letter-spacing: var(--track-h2); }
5646
5659
  .quote__by { font: var(--quote-by-font, var(--type-caption)); color: var(--quote-by-ink, var(--card-muted)); }
5647
5660
 
5648
- /* ---- tile grid: big square tiles — icon top, label bottom ----
5661
+ /* ---- tile grid: big square tiles — icon top, label bottom (inline: icon and label on one line) ----
5649
5662
  <div class="tile-grid"><button class="tile"><svg class="icon"/><span class="tile__label">Light</span></button>
5650
5663
  <label class="tile tile--pick"><input type="checkbox"><svg class="icon"/><span class="tile__label">Music</span></label></div> */
5651
5664
  .tile-grid {
@@ -5677,6 +5690,18 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5677
5690
  .tile--on { background: var(--tile-on-bg, var(--accent)); --dark: var(--accent-dark); color: var(--tile-on-ink, var(--card-ink)); border-color: transparent; }
5678
5691
  /* .tile--pick's hidden input and :has(:checked) fill are declared once in choice.css, alongside .chip--pick and .mood__opt */
5679
5692
  .tile--wide { grid-column: 1 / -1; }
5693
+ /* inline: the icon at the start of the label's line, the sub under the label (not under the icon); as tall as those two lines */
5694
+ .tile--inline {
5695
+ grid-template-columns: auto 1fr;
5696
+ align-items: center;
5697
+ align-content: center;
5698
+ column-gap: var(--tile-inline-gap, var(--sp-3));
5699
+ row-gap: var(--tile-text-gap, var(--sp-0));
5700
+ min-height: var(--tile-inline-min-h, var(--tap));
5701
+ }
5702
+ .tile--inline:not(:has(> .icon)) { grid-template-columns: 1fr; }
5703
+ .tile--inline .tile__text { display: contents; }
5704
+ .tile--inline .tile__sub { grid-column: -2; }
5680
5705
  /* upload: dashed, centred plus + label */
5681
5706
  .tile--upload {
5682
5707
  border-style: dashed;
@@ -53,7 +53,16 @@ export function Card({ tone, paper, sm, row, cover, fold, centre, band, as = 'ar
53
53
  return () => { live = false; };
54
54
  }, [away]);
55
55
  const [go, setGo] = useState(false);
56
- useLayoutEffect(() => { setGo(!turns && own.current != null && goControl(own.current) != null); }); // every render: what the card holds is its children's
56
+ const findGo = useLatest(() => setGo(!turns && own.current != null && goControl(own.current) != null));
57
+ useLayoutEffect(() => findGo.current()); // every render: what the card holds is its children's
58
+ useEffect(() => {
59
+ const card = own.current;
60
+ if (!card)
61
+ return;
62
+ const watch = new MutationObserver(() => findGo.current());
63
+ watch.observe(card, { subtree: true, childList: true, attributes: true, attributeFilter: ['role', 'tabindex', 'href', 'disabled', 'aria-disabled', 'inert'] });
64
+ return () => watch.disconnect();
65
+ }, []);
57
66
  const pressing = useRef(false);
58
67
  const click = (e) => {
59
68
  if (pressing.current)