@usableapp/cardds 0.7.155 → 0.7.157

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,27 @@
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.157 — 2026-10-28
6
+
7
+ A `Head` that leads with a `Lead`, an `Avatar` or an `AvatarStack`, then `Words`, draws as a FeedCard's head.
8
+
9
+ Components: Head
10
+
11
+ ### Changed
12
+ - **A `Head` that leads with a `Lead`, an `Avatar` or an `AvatarStack`, then `Words`** draws as a FeedCard's head (timebank, Lh 2026-10-28). Before → after: the meta took a full-width row under the lead, and with no end the title stood at the far right → the lead at the left, the title (card heading size) over its meta as one left-aligned block beside it, the end (`End`, `IconBtn`) at the right centred to the block. New knob `--head-meta-lines` (default not cut) beside `--head-title-lines`. A head with no lead before its title is unchanged. Story `Head · HeadLeadWords`.
13
+
14
+ ## 0.7.156 — 2026-10-28
15
+
16
+ A chat opens as a Sheet: the `MessageBar` stands as a sheet's `Foot`, a `StickyAnswer` works as a sheet's last child, and a sheet pins a row under its head (`topRow`).
17
+
18
+ Components: Sheet, Foot, MessageBar, StickyAnswer
19
+
20
+ ### Added
21
+ - **`MessageBar` in a sheet's `Foot`** (timebank, Lh 2026-10-28: a chat opens over home, not as a page). Before → after: a MessageBar was only a Screen's `bottom`; inside a Sheet's Foot it kept its own padding and ground → `<Foot><MessageBar…/></Foot>`: the bar takes the foot's whole line and its padding, stands on the sheet's bottom edge above the keyboard, and the body stops above it however tall the words grow. A cursor in the bar no longer makes the sheet scroll or change state (the sheet reveals body controls only).
22
+ - **`StickyAnswer` inside a `Sheet`** — the sheet's last child, in place of the Foot: the note waits at the sheet's foot, comes up under the sheet's head, and its `sheet` (the make-a-note form) slides up under it; the keyboard's room is the sheet's, never counted twice. Before → after: it was placed for a Screen only (under the top bar, lifted by `--kb`) → the same component works in both.
23
+ - **`Sheet topRow`** — a row pinned under the sheet's `Head` (a `Row`: the request a chat is about), as `Screen topRow`: it never scrolls, the body starts under it, edge to edge on the sheet's ground.
24
+ - Stories `Bubble/ChatSheet` and `StickyScreens/ChatSheet`: `<SheetStage over dim><Sheet state="full" states="full" handle={false}>` · Head (name, ✕) · Body (thread) · Foot (MessageBar) or StickyAnswer.
25
+
5
26
  ## 0.7.155 — 2026-10-27
6
27
 
7
28
  A stock `stamp` icon: a postage stamp with a person in it.
package/css/parts.css CHANGED
@@ -153,6 +153,34 @@
153
153
  }
154
154
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
155
155
 
156
+ /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
157
+ `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
158
+ at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
159
+ the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
160
+ A head with no lead before its title is untouched.
161
+ <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
162
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
163
+ display: grid;
164
+ grid-template-columns: auto minmax(0, 1fr);
165
+ grid-auto-columns: auto;
166
+ align-items: center;
167
+ }
168
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
169
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
170
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
171
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
172
+ grid-column: 2; grid-row: 2; align-self: start;
173
+ overflow-wrap: anywhere;
174
+ display: -webkit-box;
175
+ -webkit-box-orient: vertical;
176
+ -webkit-line-clamp: var(--head-meta-lines, none);
177
+ line-clamp: var(--head-meta-lines, none);
178
+ overflow: hidden;
179
+ padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
180
+ margin-block: -0.2em -0.15em;
181
+ }
182
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
183
+
156
184
  /* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
157
185
  :is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
158
186
  --card-bg: var(--card-1-bg);
@@ -452,6 +480,10 @@
452
480
  a stack sheet's), so the one margin is exact in each */
453
481
  .foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
454
482
  .foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
483
+ /* a chat's MessageBar as a sheet's foot (a conversation in a Sheet): the bar takes the foot's whole line; the foot's padding and
484
+ ground are the bar's, so it drops its own (the gesture bar's room is the foot's too). It grows with the words: the Sheet measures
485
+ the foot's rows (--sheet-foot-h), so the body stops above it */
486
+ .foot > .message-bar { flex: 1 1 100%; padding: 0; background: none; }
455
487
 
456
488
  /* in a card with paper bands: the foot band (the head's look, above) is slim */
457
489
  :is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
package/css/sheet.css CHANGED
@@ -120,6 +120,9 @@
120
120
  One row, ≤ 2 buttons (parts.css). <div class="foot"><button class="btn btn--primary btn--block">…</button></div> */
121
121
  /* …and the link row under the button, when there is one (its line + the gap over it) */
122
122
  .sheet:has(> .foot--link) { --_foot: calc(var(--card-gap) + var(--sheet-foot-h, calc(var(--btn-h) + var(--sp-1) + var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)))) + var(--card-pad) + var(--_safe-b-open)); } /* --sheet-foot-h: the foot's rows as the Sheet measured them (a button grows with the text size) */
123
+ /* the ROW PINNED under the head (Sheet `topRow`): a row of the column, so the body starts under it at its real height and it never
124
+ scrolls away; edge to edge, its own padding the card's inset, on the sheet's ground */
125
+ .sheet__top-row { margin-inline: calc(-1 * var(--card-pad)); padding-inline: var(--card-pad); }
123
126
  /* the body's padding can be taller than its own box, so the pinned parts must not give way to it (parts.css) */
124
127
  .sheet > :not(.body) { flex-shrink: 0; }
125
128
 
package/css/sticky.css CHANGED
@@ -270,7 +270,7 @@
270
270
  .sticky-thread--lapped > .sticky-post > .sticky-post__notes > .sticky { rotate: calc(-1 * var(--sticky-thread-tilt, calc(var(--tilt-base) * 2))); }
271
271
  .sticky-thread--lapped > .sticky-post:nth-child(even of .sticky-post) > .sticky-post__notes > .sticky { rotate: var(--sticky-thread-tilt, calc(var(--tilt-base) * 2)); }
272
272
  /* under an answer note the thread ends with the room that note stands in: the last turn scrolls up clear of it */
273
- .screen:has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
273
+ :is(.screen, .sheet):has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
274
274
 
275
275
  /* ---- sticky board: notes stuck on a page — rows that wrap by the width, each note turned a little ----
276
276
  <div class="sticky-board"><button class="sticky sticky--tap …">…</button>…</div>
@@ -363,6 +363,8 @@
363
363
  places. One `top`, one `right` — they slide between the two places; nothing else moves. */
364
364
  .sticky-answer {
365
365
  --_size: var(--sticky-size, calc(var(--sp-12) * 3.5));
366
+ --_answer-top: calc(var(--safe-top) + var(--header-h)); /* where the writing note stands under: the screen's top bar */
367
+ --_answer-kb: var(--kb, 0rem); /* the keyboard's room — the screen's box does not give it up */
366
368
  position: fixed; inset: 0;
367
369
  max-width: var(--screen-w); margin-inline: auto;
368
370
  overflow: clip;
@@ -370,21 +372,24 @@
370
372
  pointer-events: none;
371
373
  }
372
374
  .screen--fill > .sticky-answer { position: absolute; }
375
+ /* IN A SHEET (a chat that opens as a Sheet, the sheet's last child): a layer of the sheet, not the screen. The writing note stands
376
+ under the sheet's head, and the keyboard's room is already the sheet's (a stage lifts it, a Step shrinks) — not counted twice */
377
+ .sheet > .sticky-answer { position: absolute; --_answer-top: calc(var(--card-pad) + var(--sheet-head-h)); --_answer-kb: 0rem; }
373
378
  .sticky-answer--writing { z-index: calc(var(--z-top) + var(--z-over)); }
374
379
  .sticky-answer__scrim { position: absolute; inset: 0; background: var(--sticky-answer-scrim-bg, color-mix(in srgb, var(--surface) 82%, transparent)); opacity: 0; visibility: hidden; transition: opacity var(--motion-sheet) var(--ease), visibility 0s var(--motion-sheet); }
375
380
  .sticky-answer--writing > .sticky-answer__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
376
381
  .sticky-answer__note {
377
382
  position: absolute;
378
- top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--kb, 0rem)));
383
+ top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--_answer-kb)));
379
384
  right: var(--sticky-answer-end, var(--screen-pad));
380
385
  rotate: var(--sticky-answer-tilt, calc(var(--tilt-base) * -3));
381
386
  pointer-events: auto;
382
387
  transition: top var(--motion-sheet) var(--ease), right var(--motion-sheet) var(--ease), rotate var(--motion-sheet) var(--ease);
383
388
  }
384
- .sticky-answer--writing > .sticky-answer__note { top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
389
+ .sticky-answer--writing > .sticky-answer__note { top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
385
390
  .sticky-answer__under {
386
391
  position: absolute; inset-inline: var(--screen-pad);
387
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
392
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
388
393
  display: grid; gap: var(--sticky-answer-gap, var(--sp-4));
389
394
  opacity: 0; visibility: hidden;
390
395
  transition: opacity var(--motion-sheet-rest) var(--ease), visibility 0s var(--motion-sheet-rest);
@@ -399,11 +404,12 @@
399
404
  above the keyboard as on a stage (--_lift); the box itself takes no touch, so a touch beside the sheet is still the scrim's. */
400
405
  .sticky-answer__sheet {
401
406
  position: absolute; inset-inline: 0; bottom: 0;
402
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
407
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
403
408
  overflow: clip;
404
409
  container-type: size; /* the sheet reads this box's height as 100cqh */
405
410
  }
406
- .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
411
+ .sticky-answer__sheet { --_top: 0rem; } /* a stage's top-bar reserve is not this box's */
412
+ .sticky-answer__sheet > .sheet { --_lift: var(--_answer-kb); bottom: var(--_lift); pointer-events: auto; }
407
413
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
408
414
 
409
415
  /* ---- sticky heading: what the notes are about — the subject and a short caption written on whatever it stands on, a dotted rule under it ----
package/dist/cardds.css CHANGED
@@ -2037,6 +2037,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2037
2037
  One row, ≤ 2 buttons (parts.css). <div class="foot"><button class="btn btn--primary btn--block">…</button></div> */
2038
2038
  /* …and the link row under the button, when there is one (its line + the gap over it) */
2039
2039
  .sheet:has(> .foot--link) { --_foot: calc(var(--card-gap) + var(--sheet-foot-h, calc(var(--btn-h) + var(--sp-1) + var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)))) + var(--card-pad) + var(--_safe-b-open)); } /* --sheet-foot-h: the foot's rows as the Sheet measured them (a button grows with the text size) */
2040
+ /* the ROW PINNED under the head (Sheet `topRow`): a row of the column, so the body starts under it at its real height and it never
2041
+ scrolls away; edge to edge, its own padding the card's inset, on the sheet's ground */
2042
+ .sheet__top-row { margin-inline: calc(-1 * var(--card-pad)); padding-inline: var(--card-pad); }
2040
2043
  /* the body's padding can be taller than its own box, so the pinned parts must not give way to it (parts.css) */
2041
2044
  .sheet > :not(.body) { flex-shrink: 0; }
2042
2045
 
@@ -4508,6 +4511,34 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4508
4511
  }
4509
4512
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
4510
4513
 
4514
+ /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
4515
+ `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
4516
+ at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
4517
+ the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
4518
+ A head with no lead before its title is untouched.
4519
+ <div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
4520
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
4521
+ display: grid;
4522
+ grid-template-columns: auto minmax(0, 1fr);
4523
+ grid-auto-columns: auto;
4524
+ align-items: center;
4525
+ }
4526
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
4527
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
4528
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
4529
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
4530
+ grid-column: 2; grid-row: 2; align-self: start;
4531
+ overflow-wrap: anywhere;
4532
+ display: -webkit-box;
4533
+ -webkit-box-orient: vertical;
4534
+ -webkit-line-clamp: var(--head-meta-lines, none);
4535
+ line-clamp: var(--head-meta-lines, none);
4536
+ overflow: hidden;
4537
+ padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
4538
+ margin-block: -0.2em -0.15em;
4539
+ }
4540
+ .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
4541
+
4511
4542
  /* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
4512
4543
  :is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
4513
4544
  --card-bg: var(--card-1-bg);
@@ -4807,6 +4838,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4807
4838
  a stack sheet's), so the one margin is exact in each */
4808
4839
  .foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
4809
4840
  .foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
4841
+ /* a chat's MessageBar as a sheet's foot (a conversation in a Sheet): the bar takes the foot's whole line; the foot's padding and
4842
+ ground are the bar's, so it drops its own (the gesture bar's room is the foot's too). It grows with the words: the Sheet measures
4843
+ the foot's rows (--sheet-foot-h), so the body stops above it */
4844
+ .foot > .message-bar { flex: 1 1 100%; padding: 0; background: none; }
4810
4845
 
4811
4846
  /* in a card with paper bands: the foot band (the head's look, above) is slim */
4812
4847
  :is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
@@ -5121,7 +5156,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5121
5156
  .sticky-thread--lapped > .sticky-post > .sticky-post__notes > .sticky { rotate: calc(-1 * var(--sticky-thread-tilt, calc(var(--tilt-base) * 2))); }
5122
5157
  .sticky-thread--lapped > .sticky-post:nth-child(even of .sticky-post) > .sticky-post__notes > .sticky { rotate: var(--sticky-thread-tilt, calc(var(--tilt-base) * 2)); }
5123
5158
  /* under an answer note the thread ends with the room that note stands in: the last turn scrolls up clear of it */
5124
- .screen:has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
5159
+ :is(.screen, .sheet):has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
5125
5160
 
5126
5161
  /* ---- sticky board: notes stuck on a page — rows that wrap by the width, each note turned a little ----
5127
5162
  <div class="sticky-board"><button class="sticky sticky--tap …">…</button>…</div>
@@ -5214,6 +5249,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5214
5249
  places. One `top`, one `right` — they slide between the two places; nothing else moves. */
5215
5250
  .sticky-answer {
5216
5251
  --_size: var(--sticky-size, calc(var(--sp-12) * 3.5));
5252
+ --_answer-top: calc(var(--safe-top) + var(--header-h)); /* where the writing note stands under: the screen's top bar */
5253
+ --_answer-kb: var(--kb, 0rem); /* the keyboard's room — the screen's box does not give it up */
5217
5254
  position: fixed; inset: 0;
5218
5255
  max-width: var(--screen-w); margin-inline: auto;
5219
5256
  overflow: clip;
@@ -5221,21 +5258,24 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5221
5258
  pointer-events: none;
5222
5259
  }
5223
5260
  .screen--fill > .sticky-answer { position: absolute; }
5261
+ /* IN A SHEET (a chat that opens as a Sheet, the sheet's last child): a layer of the sheet, not the screen. The writing note stands
5262
+ under the sheet's head, and the keyboard's room is already the sheet's (a stage lifts it, a Step shrinks) — not counted twice */
5263
+ .sheet > .sticky-answer { position: absolute; --_answer-top: calc(var(--card-pad) + var(--sheet-head-h)); --_answer-kb: 0rem; }
5224
5264
  .sticky-answer--writing { z-index: calc(var(--z-top) + var(--z-over)); }
5225
5265
  .sticky-answer__scrim { position: absolute; inset: 0; background: var(--sticky-answer-scrim-bg, color-mix(in srgb, var(--surface) 82%, transparent)); opacity: 0; visibility: hidden; transition: opacity var(--motion-sheet) var(--ease), visibility 0s var(--motion-sheet); }
5226
5266
  .sticky-answer--writing > .sticky-answer__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
5227
5267
  .sticky-answer__note {
5228
5268
  position: absolute;
5229
- top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--kb, 0rem)));
5269
+ top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--_answer-kb)));
5230
5270
  right: var(--sticky-answer-end, var(--screen-pad));
5231
5271
  rotate: var(--sticky-answer-tilt, calc(var(--tilt-base) * -3));
5232
5272
  pointer-events: auto;
5233
5273
  transition: top var(--motion-sheet) var(--ease), right var(--motion-sheet) var(--ease), rotate var(--motion-sheet) var(--ease);
5234
5274
  }
5235
- .sticky-answer--writing > .sticky-answer__note { top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
5275
+ .sticky-answer--writing > .sticky-answer__note { top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
5236
5276
  .sticky-answer__under {
5237
5277
  position: absolute; inset-inline: var(--screen-pad);
5238
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5278
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5239
5279
  display: grid; gap: var(--sticky-answer-gap, var(--sp-4));
5240
5280
  opacity: 0; visibility: hidden;
5241
5281
  transition: opacity var(--motion-sheet-rest) var(--ease), visibility 0s var(--motion-sheet-rest);
@@ -5250,11 +5290,12 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5250
5290
  above the keyboard as on a stage (--_lift); the box itself takes no touch, so a touch beside the sheet is still the scrim's. */
5251
5291
  .sticky-answer__sheet {
5252
5292
  position: absolute; inset-inline: 0; bottom: 0;
5253
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5293
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5254
5294
  overflow: clip;
5255
5295
  container-type: size; /* the sheet reads this box's height as 100cqh */
5256
5296
  }
5257
- .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
5297
+ .sticky-answer__sheet { --_top: 0rem; } /* a stage's top-bar reserve is not this box's */
5298
+ .sticky-answer__sheet > .sheet { --_lift: var(--_answer-kb); bottom: var(--_lift); pointer-events: auto; }
5258
5299
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
5259
5300
 
5260
5301
  /* ---- sticky heading: what the notes are about — the subject and a short caption written on whatever it stands on, a dotted rule under it ----