@usableapp/cardds 0.7.160 → 0.7.162

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/css/actions.css +27 -34
  3. package/css/base.css +8 -5
  4. package/css/card.css +5 -5
  5. package/css/journey.css +5 -7
  6. package/css/layover.css +0 -1
  7. package/css/lists.css +2 -2
  8. package/css/media.css +5 -0
  9. package/css/numbers.css +1 -1
  10. package/css/palette.css +1 -1
  11. package/css/parts.css +78 -40
  12. package/css/sheet.css +1 -1
  13. package/css/stack.css +13 -5
  14. package/css/stamp.css +30 -30
  15. package/css/tokens.css +37 -4
  16. package/dist/actions/Btn.d.ts +59 -28
  17. package/dist/actions/Btn.js +17 -5
  18. package/dist/actions/BtnGroup.d.ts +3 -3
  19. package/dist/actions/BtnGroup.js +2 -2
  20. package/dist/actions/BtnRow.d.ts +2 -2
  21. package/dist/actions/BtnRow.js +1 -1
  22. package/dist/actions/Chip.d.ts +1 -1
  23. package/dist/actions/Fab.d.ts +11 -7
  24. package/dist/actions/Fab.js +6 -5
  25. package/dist/actions/LinkBlock.d.ts +4 -2
  26. package/dist/actions/LinkBlock.js +6 -3
  27. package/dist/cardds.css +213 -136
  28. package/dist/cards/CardParts.d.ts +1 -1
  29. package/dist/cards/CardParts.js +1 -1
  30. package/dist/catalog.json +1 -1
  31. package/dist/choice/Calendar.js +2 -2
  32. package/dist/forms/Composer.d.ts +2 -2
  33. package/dist/forms/Field.d.ts +1 -1
  34. package/dist/forms/Field.js +1 -1
  35. package/dist/forms/FileBtn.d.ts +8 -7
  36. package/dist/forms/FileBtn.js +3 -3
  37. package/dist/forms/MessageBar.d.ts +2 -2
  38. package/dist/forms/MessageBar.js +4 -4
  39. package/dist/forms/Pin.js +2 -3
  40. package/dist/index.d.ts +0 -1
  41. package/dist/index.js +0 -1
  42. package/dist/journey/JourneyBadge.d.ts +7 -4
  43. package/dist/journey/JourneyBadge.js +3 -3
  44. package/dist/lists/Bubble.d.ts +6 -6
  45. package/dist/lists/Row.js +5 -2
  46. package/dist/media/Postcard.d.ts +1 -1
  47. package/dist/media/Postcard.js +2 -2
  48. package/dist/media/Tile.d.ts +4 -6
  49. package/dist/media/Tile.js +2 -2
  50. package/dist/parts/End.d.ts +1 -1
  51. package/dist/parts/End.js +1 -1
  52. package/dist/parts/Foot.d.ts +3 -3
  53. package/dist/parts/Foot.js +1 -1
  54. package/dist/parts/Head.d.ts +3 -1
  55. package/dist/parts/Head.js +7 -2
  56. package/dist/parts/Words.d.ts +3 -1
  57. package/dist/parts/Words.js +13 -3
  58. package/dist/parts/endRoom.d.ts +11 -0
  59. package/dist/parts/endRoom.js +40 -0
  60. package/dist/post/PostDesk.js +2 -3
  61. package/dist/post/PostLetter.js +2 -2
  62. package/dist/scaffold/ActionBar.d.ts +4 -4
  63. package/dist/scaffold/ActionBar.js +3 -3
  64. package/dist/scaffold/AppBar.d.ts +1 -1
  65. package/dist/scaffold/FloatBar.d.ts +1 -1
  66. package/dist/scaffold/TopBar.d.ts +2 -2
  67. package/dist/sheets/Modal.d.ts +2 -2
  68. package/dist/sheets/Modal.js +2 -2
  69. package/dist/sheets/Sheet.d.ts +1 -1
  70. package/dist/sheets/Sheet.js +1 -1
  71. package/dist/sheets/SheetStack.js +3 -4
  72. package/dist/sheets/StackBack.d.ts +1 -1
  73. package/dist/sheets/StackBack.js +2 -3
  74. package/dist/sheets/StackSheet.d.ts +1 -1
  75. package/dist/sheets/StackSheet.js +2 -3
  76. package/dist/sheets/sheetDrag.js +2 -2
  77. package/dist/sheets/stackCard.js +5 -6
  78. package/dist/stamp/Stamp.d.ts +4 -2
  79. package/dist/stamp/Stamp.js +2 -2
  80. package/dist/state.d.ts +2 -0
  81. package/dist/state.js +9 -0
  82. package/dist/sticky/Sticky.d.ts +1 -1
  83. package/dist/sticky/StickyAnswer.d.ts +1 -1
  84. package/dist/sticky/StickyHeading.d.ts +2 -2
  85. package/dist/templates/CallSheet.js +1 -1
  86. package/dist/templates/Walkthrough.js +2 -2
  87. package/dist/type/Icon.d.ts +1 -1
  88. package/dist/type/Icon.js +1 -1
  89. package/dist/type/textScale.d.ts +4 -3
  90. package/dist/type/textScale.js +4 -3
  91. package/docs/reference.md +45 -25
  92. package/lint/rules.mjs +7 -7
  93. package/package.json +3 -1
  94. package/scripts/codemod-parts.mjs +1 -1
  95. package/dist/actions/IconBtn.d.ts +0 -326
  96. package/dist/actions/IconBtn.js +0 -19
package/dist/cardds.css CHANGED
@@ -69,7 +69,7 @@
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
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
+ the form controls (--form-tap*, --chip-h) on both, the larger wins.
73
73
  Not on a base: --screen-w (the column), borders / rules / focus (fixed rem), shadows, motion. */
74
74
 
75
75
  /* ---- spacing (4pt grid): the number in the name is the multiplier ---- */
@@ -89,7 +89,7 @@
89
89
  --tap: max(var(--tap-floor), var(--tap-base)); /* 48 primary touch target */
90
90
  --tap-sm: max(var(--tap-floor), calc(var(--tap-base) * 11 / 12)); /* 44 minimum touch target */
91
91
  --tap-lg: max(var(--tap-floor), calc(var(--tap-base) * 7 / 6)); /* 56 hero controls: send, field with action */
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
+ --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 (Btn round xl) */
93
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
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
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
@@ -97,7 +97,7 @@
97
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
98
  --form-tap-sm: max(var(--tap-sm), calc(var(--fs-base) * 2)); /* 44 */
99
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 */
100
+ --btn-h: var(--tap); /* 48 the md step of every button, a pill and a round alike (Lh 2026-10-29: one ladder, sm --tap-sm · md --tap · lg --tap-lg) */
101
101
  --btn-xl-h: max(calc(var(--tap-base) * 11 / 6), calc(var(--fs-base) * 4)); /* 88 the one giant CTA */
102
102
  --chip-h: max(calc(var(--tap-base) * 19 / 24), calc(var(--fs-base) * 19 / 11)); /* 38 chip height */
103
103
  --bar-h: calc(var(--tap-base) * 4 / 3); /* 64 float bar, day cell */
@@ -117,6 +117,31 @@
117
117
  --icon-lg: calc(var(--tap-base) * 2 / 3); /* 32 empty states */
118
118
  --icon-xs: calc(var(--fs-base) * 0.775); /* 17 inline with captions/chips only (row meta, link arrows) — the caption's size */
119
119
  --stamp-xs: calc(var(--fs-base) * 0.85); /* 18.7 × 23.4 the stamp inline with a status line: one Chip xs tall (Lh picked it 2026-10-24) */
120
+ --stamp: calc(var(--tap) * 2); /* 96 × 120 the one size of a stamp, two taps wide (knob --stamp-size) */
121
+
122
+ /* ---- the stamp's drawing (stamp.css): each a share of the stamp's own width (cqw) or of its picture (%), so it scales with the stamp ---- */
123
+ --stamp-perf-count: 8; /* teeth across (10 down, the 4:5 does it) — no knob: a stamp looks the same at every size */
124
+ --stamp-perf-hole: 3.9cqw; /* a tooth's hole: its radius */
125
+ --stamp-perf-soft: 0.4cqw; /* a hole's rim, clear to paper */
126
+ --stamp-frame-w: 8cqw; /* the paper's frame round the picture — knob --stamp-frame */
127
+ --stamp-xs-frame-w: 12cqw; /* …on an xs stamp, wider to clear its teeth */
128
+ --stamp-cap-inset: 5cqw; /* the words' room from the picture's sides */
129
+ --stamp-cap-foot: 3.5cqw; /* …from the picture's foot */
130
+ --stamp-cap-gap: 0.4cqw; /* between the small line and the name */
131
+ --stamp-bare-drop: 9%; /* a bare stamp's pictures, lower by this share: the foot's room is theirs */
132
+ --stamp-contact-blur: calc(var(--border-w) / 4); /* the contact shadow's blur, black or a frameless stamp's own tone */
133
+ --stamp-place-dot-pitch: calc(var(--sp-base) * 1.5); /* 6 an empty place's edge: one dot's centre to the next — knob --stamp-place-gap */
134
+ /* the pictures, by count (--stamp-art-<count>-<which>-x|y|w): the middle of each and its width, shares of the picture area */
135
+ --stamp-art-1-1-x: 50%; --stamp-art-1-1-y: 40%; --stamp-art-1-1-w: 72%;
136
+ --stamp-art-2-1-x: 37%; --stamp-art-2-1-y: 27%; --stamp-art-2-1-w: 58%;
137
+ --stamp-art-2-2-x: 63%; --stamp-art-2-2-y: 56%; --stamp-art-2-2-w: 54%;
138
+ --stamp-art-3-1-x: 30%; --stamp-art-3-1-y: 21%; --stamp-art-3-1-w: 50%;
139
+ --stamp-art-3-2-x: 71%; --stamp-art-3-2-y: 31%; --stamp-art-3-2-w: 46%;
140
+ --stamp-art-3-3-x: 47%; --stamp-art-3-3-y: 58%; --stamp-art-3-3-w: 54%;
141
+ --stamp-art-4-1-x: 29%; --stamp-art-4-1-y: 19%; --stamp-art-4-1-w: 44%;
142
+ --stamp-art-4-2-x: 71%; --stamp-art-4-2-y: 24%; --stamp-art-4-2-w: 42%;
143
+ --stamp-art-4-3-x: 31%; --stamp-art-4-3-y: 57%; --stamp-art-4-3-w: 42%;
144
+ --stamp-art-4-4-x: 70%; --stamp-art-4-4-y: 60%; --stamp-art-4-4-w: 44%;
120
145
 
121
146
  /* ---- people & big elements ---- */
122
147
  --avatar-sm: calc(var(--tap-base) * 5 / 6); /* 40 row lead */
@@ -127,6 +152,7 @@
127
152
  --ring-w: calc(var(--tap-base) * 11 / 24); /* 22 .ring stroke */
128
153
  --tile-min: calc(var(--tap-base) * 5 / 2); /* 120 .tile-grid column floor */
129
154
  --tile-h: calc(var(--tap-base) * 11 / 4); /* 132 tile / band height */
155
+ --drawer-h: calc(var(--tap-base) * 14 / 3); /* 224 a modal's drawer, a page's picture */
130
156
 
131
157
  /* ---- radius ---- */
132
158
  /* TILT (Lh 2026-10-20: no unit a component writes for itself): every paper laid at an angle (a note, a stamp, a letter, a card
@@ -140,6 +166,7 @@
140
166
  --r-media: var(--r-base); /* 20.8 images inside cards */
141
167
  --r-control: calc(var(--r-base) * 0.875); /* 18.2 fields, thumbs, menu rows */
142
168
  --r-badge: calc(var(--r-base) * 0.625); /* 13 tile badge, bars */
169
+ --r-tail: calc(var(--r-base) * 0.4375); /* 9.1 a corner that POINTS: a bubble's tail (Lh 2026-10-29) */
143
170
 
144
171
  /* ---- borders / rules / elevation (rem, like every length) ---- */
145
172
  /* one device-independent pixel in rem: what the platform needs to keep a hidden word in the accessibility tree, and the half-width
@@ -183,7 +210,7 @@
183
210
  --ease-linear: linear;
184
211
  --ease-settle: cubic-bezier(0.2, 0.8, 0.2, 1);
185
212
  --ease-step: steps(1); /* on or off with nothing between: a code cell's caret blinking, a secret digit before its dot */
186
- --motion-send: 0.7s; /* something going OUT from a button (Btn / IconBtn sending, actions.css): the icon tips forward, two rings spread */
213
+ --motion-send: 0.7s; /* something going OUT from a button (Btn sending, actions.css): the icon tips forward, two rings spread */
187
214
  --motion-press: 0.12s; /* a control giving under the finger and springing back (actions.css PRESS) */
188
215
  --press-scale: 0.96; /* how far a finger-sized control gives — a share of its size */
189
216
  --scale-lift: 1.06; /* a stamp lifted off the paper while the finger holds it */
@@ -250,6 +277,12 @@
250
277
  --lh-ruled: 1.7; /* a ruled sheet: the line under every line of writing */
251
278
  --track-loose: 0.02em; /* initials in an avatar */
252
279
  --track-caps: 0.08em; /* a kicker in capitals */
280
+ /* THE GLYPHS' ROOM (Lh 2026-10-29): how far a glyph's ink reaches past its line box, in the type's own em (a font metric, so it follows the
281
+ size it is read at). A line that clips its words (a line clamp, an ellipsis) pads its box by these inside the clip and gives them back
282
+ outside it, so no mark is cut and nothing moves. Rise: a stacked Thai mark over the first line. Drop: a lower vowel under the last (it
283
+ reaches 0.30em under the baseline; a tight line box, 1.15, ends 0.175em under it) */
284
+ --glyph-rise: 0.2em;
285
+ --glyph-drop: 0.15em;
253
286
  /* THE EIGHT KINDS: each has its face, weight, size (--fs-* above), leading and tracking, and its style --type-<kind> is made of them */
254
287
  --fw-display: var(--fw-heavy); --lh-display: 1.15; --track-display: -0.02em; /* leading: Thai marks stack to 1.1em up and 0.3em down in FC Pride — 1.02 clipped them (2026-09-10) */
255
288
  --fw-h1: var(--fw-black); --lh-h1: 1.15; --track-h1: -0.015em; /* tight, the display's floor: a stacked mark (1.13em up) clears the line above (Lh 2026-10-25: 1.2 read loose) */
@@ -541,7 +574,7 @@
541
574
  [data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
542
575
  /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
543
576
  Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
544
- [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--highlight-2)); color: var(--btn-primary-ink, var(--ink-onlight)); }
577
+ [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { --accent: var(--highlight-2); --on-accent: var(--ink-onlight); } /* the primary's own accent (role tokens only): actions.css paints it, so --btn-primary-* and --icon-btn-invert-* still win */
545
578
  [data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
546
579
 
547
580
  /* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
@@ -597,13 +630,13 @@ button, [role="button"], [role="tab"], [role="option"], [role="menuitem"], a.btn
597
630
  }
598
631
 
599
632
  /* the scale: everything is rem, so this one number resizes the whole system.
600
- 100% = the browser's text size (16px by default); narrow phones step to 15/16 so
601
- the 25rem column and its 48px taps keep their proportions on 320–360 screens.
633
+ 100% = the browser's text size (16px by default), on every screen: the screen's size is
634
+ never a trigger (Lh 2026-10-29). An app that wants a smaller scale on a narrow phone sets
635
+ `html { font-size }` itself, in its own css, by whatever rule it picks.
602
636
  An app's OWN text-size setting is NOT here (Lh 2026-09-22: --text-scale, which
603
637
  multiplied the root, zoomed the UI too — retired): it is --fs-base on <html>,
604
638
  the type base, so the words grow and the things keep their size (tokens.css). */
605
639
  html { font-size: 100%; }
606
- @media (max-width: 22.5em) { html { font-size: 93.75%; } }
607
640
 
608
641
  body {
609
642
  margin: 0;
@@ -859,6 +892,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
859
892
  .screen.screen--fill:has(> .appbar) { padding-top: var(--safe-top); --header-gap: 0rem; }
860
893
  /* a plain screen is a column at least one phone tall when it ends on an .action-bar or holds a .screen__centre (step.css, card.css) */
861
894
  .screen:not(.screen--fill):has(> .action-bar:last-child, > .screen__centre) { display: flex; flex-direction: column; min-height: 100dvh; }
895
+ /* a bare bar for a preview (ActionBar inline): no position, full width, no side padding. The :is() lifts it over every place
896
+ rule of the bar (actions.css: .action-bar, .screen--fill > .action-bar, the sticky last row), which load after this file */
897
+ .action-bar--inline:is(.action-bar, .screen:not(.screen--fill) > .action-bar:last-child) { position: static; width: 100%; max-width: none; padding-inline: 0; }
862
898
  /* the centred group: the place of a .card--centre (card.css), for a small group of things */
863
899
  .screen--fill > .screen__centre {
864
900
  position: absolute;
@@ -961,8 +997,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
961
997
  overflow: hidden;
962
998
  text-overflow: ellipsis;
963
999
  white-space: nowrap;
964
- padding-block: 0.15em; /* Thai marks survive the clip — see card.css, the head rule */
965
- margin-block: -0.15em;
1000
+ padding-block: var(--glyph-rise) var(--glyph-drop); /* Thai marks survive the clip (tokens.css, the glyphs' room) */
1001
+ margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
966
1002
  }
967
1003
  /* ---- where it sits in what media.css draws (docs/reference.md rule 15) ---- */
968
1004
  .postcard__band .icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
@@ -1083,7 +1119,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1083
1119
  .card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
1084
1120
  .card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
1085
1121
  .card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
1086
- .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; }
1122
+ .head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: middle; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
1087
1123
 
1088
1124
  /* ---- bleed: a scrolling track that runs to the container's edges ----
1089
1125
  For a horizontal strip inside a padded container — .avatar-pick, .chip-row,
@@ -1133,7 +1169,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1133
1169
  opacity: var(--off);
1134
1170
  min-height: calc(var(--tap-base) * 10 / 3);
1135
1171
  }
1136
- .ph--sm { min-height: calc(var(--tap-base) * 5 / 2); }
1172
+ .ph--sm { min-height: var(--tile-min); }
1137
1173
  .ph--md { min-height: calc(var(--tap-base) * 3); }
1138
1174
  /* ---- centred card: one thing to read, at the human centre of a fill screen ----
1139
1175
  (.screen__centre below is the same placement for a small GROUP of things)
@@ -1405,8 +1441,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1405
1441
  }
1406
1442
 
1407
1443
  /* ---- where it sits in what base.css draws (docs/reference.md rule 15) ---- */
1408
- .page > :is(img, .ph) { max-height: var(--page-media-h, calc(var(--tap-base) * 14 / 3)); width: auto; height: auto; max-width: 100%; object-fit: contain; justify-self: start; align-self: start; } /* height auto: an <img> with width/height attributes keeps its ratio inside the cap — no band under the picture */
1409
- .page > .ph { width: 100%; height: var(--page-media-h, calc(var(--tap-base) * 14 / 3)); }
1444
+ .page > :is(img, .ph) { max-height: var(--page-media-h, var(--drawer-h)); width: auto; height: auto; max-width: 100%; object-fit: contain; justify-self: start; align-self: start; } /* height auto: an <img> with width/height attributes keeps its ratio inside the cap — no band under the picture */
1445
+ .page > .ph { width: 100%; height: var(--page-media-h, var(--drawer-h)); }
1410
1446
  /* ---- where it sits in what stack.css draws (docs/reference.md rule 15) ---- */
1411
1447
  .sheet-stack > .card {
1412
1448
  grid-area: 1 / 1; /* every card shares the stack's cell; later ones offset down */
@@ -1537,7 +1573,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1537
1573
  width: calc(100% + 2 * var(--screen-pad)); /* the content's width: the page's inset given back */
1538
1574
  max-width: none;
1539
1575
  margin-inline: calc(-1 * var(--screen-pad));
1540
- height: calc(var(--_lead, 0rem) + var(--page-media-h, calc(var(--tap-base) * 14 / 3)));
1576
+ height: calc(var(--_lead, 0rem) + var(--page-media-h, var(--drawer-h)));
1541
1577
  max-height: none;
1542
1578
  border-radius: 0;
1543
1579
  border-inline: 0;
@@ -1632,8 +1668,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1632
1668
 
1633
1669
  /* ---- the stack: cascading peek sheets; heads peek, the set bleeds to
1634
1670
  the screen's bottom edge, so bottom corners are square ---- */
1635
- /* step = card padding (20) + head (48) + 20 breathing below the title,
1636
- so every peeked strip shows the title with even space above and below */
1671
+ /* step = the single Sheet's peek (sheet.css --sheet-peek): the card's padding
1672
+ (20) + the head (--tap, 48) + the card's gap (--card-gap-rest, 16) = 84.
1673
+ The room under the head is the gap, less than the padding and edge over it,
1674
+ because the words leave their own empty descent under them: so the space
1675
+ under the words is the space over the tallest marks (29.9 / 30.4 at the
1676
+ default bases, 35.9 / 36.4 at --tap-base 3.75rem, Chrome). The head's share
1677
+ is the same on both sides, so that holds whatever --tap-base a theme sets.
1678
+ It was --tap-base × 11/6 (88): the strip grew with --tap-base alone while
1679
+ the room over the head stayed the card's padding, so every px a theme added
1680
+ to --tap-base went under the words (at 3.75rem: a 110 strip, 48 under). */
1637
1681
  /* one track, exactly the stack's own height: an auto track would size itself
1638
1682
  to the tallest sheet's CONTENT (a sheet's `height: 100%` is cyclic while the
1639
1683
  track is being sized), so a long sheet grew the track past the screen and
@@ -1646,7 +1690,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1646
1690
  Lh, 2026-09-11). --_n: how many sheets the stack holds, read from the DOM
1647
1691
  by :has below so the closed geometry needs no script and no per-stack
1648
1692
  declaration. */
1649
- .sheet-stack { display: grid; grid-template-rows: minmax(0, 1fr); --stack-step: calc(var(--tap-base) * 11 / 6); margin-inline: calc(-1 * var(--screen-pad)); --_n: 1; }
1693
+ .sheet-stack { display: grid; grid-template-rows: minmax(0, 1fr); --stack-step: calc(var(--card-pad-rest) + var(--tap) + var(--card-gap-rest)); margin-inline: calc(-1 * var(--screen-pad)); --_n: 1; }
1650
1694
  .sheet-stack > .card {
1651
1695
  --card-gap: var(--sp-5); /* head→content gap = the strip's 20px rhythm */
1652
1696
  }
@@ -1683,7 +1727,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1683
1727
  letter-spacing: var(--track-display);
1684
1728
  /* the FIRST line sits on the centre of the peek strip (--stack-step tall,
1685
1729
  measured from the card's top edge); line two runs under the next card */
1686
- margin-top: calc((var(--stack-step) - 1lh) / 2 - var(--sp-5) - var(--_mark-room)); /* --_mark-room: card.css, the room for the marks over line one */
1730
+ margin-top: calc((var(--stack-step) - 1lh) / 2 - var(--sp-5) - var(--glyph-rise)); /* --glyph-rise: tokens.css, the room for the marks over line one */
1687
1731
  }
1688
1732
  /* fanned stack: a toggle opens the stack wider so every peek shows more */
1689
1733
  .sheet-stack--fanned { --stack-step: calc(var(--tap-base) * 19 / 6); }
@@ -1697,7 +1741,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1697
1741
  /* ---- .sheet-stack--tap — tap a peeked sheet open; a back button returns it. How its sheets move (one property: translate) is
1698
1742
  told over their rules, where they sit, in card.css. ---- */
1699
1743
  .sheet-stack--tap > .card {
1700
- --_back-size: var(--stack-back-size, calc(var(--tap-base) * 2 / 3)); /* read once, shared by the back button and the head's padding below */
1744
+ --_back-size: var(--stack-back-size, var(--icon-lg)); /* read once, shared by the back button and the head's padding below */
1701
1745
  }
1702
1746
 
1703
1747
  /* the GRIP (Lh 2026-10-05): four small dots at the middle of every sheet's top edge — a sign that this card
@@ -2028,7 +2072,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2028
2072
  :is(.step, .sheet-stage, .sticky-answer__sheet) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
2029
2073
  /* the head's floor: a tap, or an h2 line with its Thai-mark padding when the type is bigger than that (a large text-size
2030
2074
  setting on a narrow phone) — the strip and the head read the same number, so the title row is always inside the strip */
2031
- :root { --sheet-head-h: max(var(--tap), calc(var(--fs-h2) * 1.25 + var(--sp-2))); }
2075
+ :root { --sheet-head-h: max(var(--tap), calc(var(--lh-h2) * var(--fs-h2) + var(--sp-2))); }
2032
2076
 
2033
2077
  /* ---- called sheets (Lh, 2026-09-20): a .step whose .page has buttons that each CALL a sheet ----
2034
2078
  .sheet--away = not on the screen: slid all the way out (translate, like every state — the material never
@@ -2832,9 +2876,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2832
2876
  .tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
2833
2877
 
2834
2878
  /* stretch: a date in a head (Lh 2026-10-19) — as tall as the title block beside it and no taller (the head stretches it; size
2835
- containment keeps its own words from adding height). Its height picks the form: short (a one-line title) = two lines, the day name
2836
- over the number and the month on one line; tall (a two-line title) = three lines, day · number · month. It grows no taller than
2837
- its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
2879
+ containment keeps its own words from adding height). Three lines, day · number · month; `--sub-beside` (the app's prop, never its
2880
+ height: a box's size is not a trigger, Lh 2026-10-29) = two lines, the day name over the number and the month on one line. It grows
2881
+ no taller than its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
2838
2882
  .tile-badge--stretch {
2839
2883
  line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property, a ratio here: each line rounds it at its own size (below), and the caps add those lines */
2840
2884
  align-self: stretch;
@@ -2856,10 +2900,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2856
2900
  padding: var(--sp-3); /* the same room on all four sides; the box's min height and width count it */
2857
2901
  }
2858
2902
  .tile-badge--stretch > * { line-height: round(down, calc(var(--tile-badge-line, var(--lh-badge)) * 1em), 1px); white-space: nowrap; } /* a value never breaks at its dash */
2859
- .tile-badge--stretch > :first-child { grid-column: 1 / -1; }
2860
- @container (min-height: 3.5rem) { /* just under the three lines' own height, the most the badge grows to */
2861
- .tile-badge--stretch > * { grid-column: 1 / -1; }
2862
- }
2903
+ .tile-badge--stretch > * { grid-column: 1 / -1; }
2904
+ .tile-badge--stretch.tile-badge--sub-beside > :not(:first-child) { grid-column: auto; } /* the number and the month share the second line */
2863
2905
 
2864
2906
  /* where it sits in a head that leads with the date (card.css): the first cell, as tall as the chips beside it however many rows, so no cap */
2865
2907
  .head:has(> .tile-badge:first-child + .chip-row) > .tile-badge--stretch:first-child { grid-column: 1; grid-row: 1; max-block-size: none; }
@@ -2949,9 +2991,12 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2949
2991
  Lh 2026-09-13) stand on the tap floor: a chip that is a switch grows to --tap here */
2950
2992
  .appbar .chip--pick { min-height: var(--form-tap); }
2951
2993
 
2952
- /* ---- icon button (round) ---- */
2994
+ /* ---- icon button (Btn shape="round") ----
2995
+ ONE size ladder for both shapes (Lh 2026-10-29): a round and a pill of one step are one height, so either stands in for the other in a row.
2996
+ md is --btn-h (= --tap: on --tap-base like the round, never on the words' --fs-base), sm --tap-sm, lg --tap-lg. xl is NOT swap-equal (Lh 2026-10-29): each shape its
2997
+ own, round --tap-xl (68), pill --btn-xl-h (88) */
2953
2998
  .icon-btn {
2954
- width: var(--icon-btn-size, var(--tap)); height: var(--icon-btn-size, var(--tap));
2999
+ width: var(--icon-btn-size, var(--btn-h)); height: var(--icon-btn-size, var(--btn-h));
2955
3000
  flex: none;
2956
3001
  border-radius: var(--icon-btn-radius, var(--r-chip));
2957
3002
  border: var(--border-w) solid var(--icon-btn-border, var(--outline)); /* see .btn — same reason */
@@ -2963,9 +3008,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2963
3008
  font-size: var(--fs-lg);
2964
3009
  line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
2965
3010
  }
2966
- .icon-btn--invert { background: var(--icon-btn-invert-bg, var(--accent)); color: var(--icon-btn-invert-ink, var(--on-accent)); border-color: transparent; }
3011
+ /* a round's primary tone (Btn shape="round" tone="primary" carries both names; `invert` was its name until Lh 2026-10-29): the round's own
3012
+ invert knobs first — the themes' contract — then the pill's primary, so by default both shapes fill alike */
3013
+ :is(.icon-btn--invert, .icon-btn--primary) { background: var(--icon-btn-invert-bg, var(--btn-primary-bg, var(--accent))); color: var(--icon-btn-invert-ink, var(--btn-primary-ink, var(--on-accent))); border-color: transparent; }
2967
3014
  .icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
2968
- /* the bigger round sizes (`IconBtn size`): lg is the hero control's size (--tap-lg), xl the biggest (--tap-xl), both on --tap-base like every size.
3015
+ /* the bigger round sizes (`Btn shape="round" size`): lg is the hero control's size (--tap-lg), xl the biggest (--tap-xl), both on --tap-base like every size.
2969
3016
  What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (7/12, the share of the default 48px
2970
3017
  button's 28px icon), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
2971
3018
  grows with the member's text size, to that ceiling and no further. The default and the sm button keep their icon tokens and their word as before. */
@@ -3020,33 +3067,36 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3020
3067
  background: var(--btn-bg, var(--action-bg));
3021
3068
  color: var(--btn-ink, var(--action-ink));
3022
3069
  border-radius: var(--btn-radius, var(--r-chip));
3023
- padding: var(--btn-pad-y, var(--sp-4)) var(--btn-pad-x, var(--sp-6));
3070
+ padding: var(--btn-pad-y, var(--sp-1)) var(--btn-pad-x, var(--sp-6)); /* the height is the size step's (min-height), not the padding's: a pill and a round of one step stand one height */
3024
3071
  font: var(--type-label);
3025
3072
  font-size: var(--btn-font-size, var(--fs-md));
3026
3073
  display: inline-flex;
3027
3074
  align-items: center;
3028
3075
  justify-content: center;
3029
3076
  gap: var(--btn-gap, var(--sp-2));
3030
- min-height: var(--btn-h);
3077
+ min-height: var(--btn-h); /* md: one tap (--btn-h = --tap), the round's height */
3031
3078
  text-decoration: none; /* .btn works as <a> too */
3032
3079
  }
3033
- /* primary: a Btn and a round IconBtn fill alike, from the same tokens (the palette's primary — orchard's yellow — retunes both) */
3034
- :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-ink, var(--on-accent)); border-color: transparent; }
3080
+ /* the tones (Btn tone), the pill's and the round's alike. primary: the palette's primary (orchard's yellow); the round's reads its invert knobs
3081
+ first, then these (above) */
3082
+ .btn--primary { background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-ink, var(--on-accent)); border-color: transparent; }
3035
3083
  /* quiet keeps a faint outline so it still reads as a button on colored palettes;
3036
3084
  it is ink on whatever it sits on — inherit, or on the dark slot (card--3) it
3037
3085
  would take the light-card action ink and vanish */
3038
- .btn--quiet { background: transparent; color: inherit; border-color: var(--btn-quiet-border, color-mix(in srgb, currentColor 35%, transparent)); }
3039
- .btn--warn { --dark: var(--action-dark); color: var(--btn-warn-ink, var(--signal-warn)); } /* a move to think twice about ("cancel the request"): the signal set's warning, on the button's own paper — its side, not the card's */
3086
+ :is(.btn--quiet, .icon-btn--quiet) { background: transparent; color: inherit; border-color: var(--btn-quiet-border, color-mix(in srgb, currentColor 35%, transparent)); }
3087
+ :is(.btn--warn, .icon-btn--warn) { --dark: var(--action-dark); color: var(--btn-warn-ink, var(--signal-warn)); } /* a move to think twice about ("cancel the request"): the signal set's warning, on the button's own paper — its side, not the card's */
3040
3088
  .btn--block { width: 100%; }
3041
3089
  .btn--form { justify-self: center; align-self: center; margin-inline: auto; padding-inline: var(--btn-form-pad-x, calc(var(--sp-base) * 14.5)); /* 58px: "ส่งรหัส OTP" at 213px, 20% longer than at 40px sides (Lh 2026-09-25) */ } /* a form's button: its words + wide sides, centred in a grid (a step) or a block (Lh 2026-09-25) */
3042
- /* sm (Btn sm, Lh 2026-10-28): one small tap tall (the touch floor, 44), the small words, closer sides — a worded move at a card head's end */
3043
- .btn--sm { min-height: var(--btn-sm-size, var(--form-tap-sm)); padding-block: var(--sp-1); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
3090
+ /* sm (Lh 2026-10-28): one small tap tall (the touch floor, 44, the round sm's), the small words, closer sides — a worded move at a card head's end */
3091
+ .btn--sm { min-height: var(--btn-sm-size, var(--tap-sm)); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
3092
+ /* lg: the hero control's height (--tap-lg, the round lg's) */
3093
+ .btn--lg { min-height: var(--btn-lg-size, var(--tap-lg)); }
3044
3094
  /* xl: the one giant call to action in a tinted card ("Taxi!") */
3045
3095
  .btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
3046
3096
  /* disabled keeps the slot — a control that vanishes moves everything else,
3047
3097
  and a pager whose "previous" disappeared on page one would shift the bar
3048
3098
  under the thumb on every page */
3049
- /* SENDING (Btn / IconBtn sending, Lh 2026-10-28): something goes OUT from the button — for --motion-send its icon swells and tips forward,
3099
+ /* SENDING (Btn sending, Lh 2026-10-28): something goes OUT from the button — for --motion-send its icon swells and tips forward,
3050
3100
  and two rings spread from its edge one after the other (--btn-sending-ink, the accent); then the app swaps the icon or puts the sent thing in.
3051
3101
  Under reduced motion nothing moves (the app is told at once) */
3052
3102
  @media (prefers-reduced-motion: no-preference) {
@@ -3067,29 +3117,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3067
3117
  /* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
3068
3118
  no frame, no padding; the DIM press answer (below) */
3069
3119
  .link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
3070
- /* a Row in a link block with a lead and a meta (Lh 2026-10-28, the place under a map): laid as a led Head is (parts.css) — everything at the TOP,
3071
- the lead at the left as tall as the row, the title with the end (and an arrow) at the right of its first line, the meta on a line of its own
3072
- UNDER BOTH. The Words box gives way (display: contents) so its title and meta stand in the row's grid; the gaps are margins, the four spare
3073
- columns of no width hold the ends. Only here: a list's rows are untouched.
3074
- <a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__title">…</span><span class="words__meta">…</span></span><span class="end">…</span><svg class="icon"/></div></a> */
3075
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) {
3076
- display: grid;
3077
- grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
3078
- grid-template-rows: minmax(min-content, 0);
3079
- grid-auto-rows: auto;
3080
- column-gap: 0;
3081
- row-gap: var(--words-gap, var(--sp-0));
3082
- align-items: start;
3083
- align-content: start;
3084
- }
3085
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .lead { grid-column: 1; grid-row: 1 / 3; margin-inline-end: var(--row-gap, var(--sp-3)); }
3086
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words { display: contents; }
3087
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title { grid-column: 2; grid-row: 1; }
3088
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__meta { grid-column: 2 / -1; grid-row: 2; }
3089
- .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > :nth-child(n + 3) { grid-row: 1; margin-inline-start: var(--row-gap, var(--sp-3)); }
3120
+ /* a Row in a link block with a lead (Lh 2026-10-28, the place under a map): a led line, laid as a led Head is (parts.css "a LED LINE"): the lead
3121
+ at the left, the place and its note ONE flowing block round the end (an End's words and their arrow), which stands at the top right with
3122
+ its centre on the place's x-height middle; the words run under it at full width. Only here: a list's rows are untouched.
3123
+ <a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__room" …>…</span><span class="words__title">…</span><span class="words__meta">…</span></span><span class="line-ends"><span class="end">…<svg class="icon"/></span></span></div></a> */
3124
+ .link-block > .row:has(> .line-ends) { --_led-gap: var(--words-gap, var(--sp-0)); --_led-col-gap: var(--row-gap, var(--sp-3)); --_led-title-font: var(--words-title-font, var(--type-title)); }
3090
3125
  /* a row of buttons sharing the width (twin CTAs inside a card) */
3091
3126
  .btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
3092
- /* round (BtnRow round, Lh 2026-10-24): a few round IconBtns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
3127
+ /* round (BtnRow round, Lh 2026-10-24): a few round Btns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
3093
3128
  so a card's foot stays its status line */
3094
3129
  .btn-row--round { justify-content: center; align-items: center; gap: var(--btn-row-gap, var(--sp-6)); }
3095
3130
  .btn-row > .btn { flex: 1; min-width: 0; }
@@ -3554,7 +3589,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3554
3589
  As tall as the top bar (--header-h), and a step is a MARK, not a control: its round is well under
3555
3590
  the tap floor, so it reads as progress and never as something to press (Lh 2026-10-03). */
3556
3591
  .track {
3557
- --_step: calc(var(--tap-base) * 2 / 3); /* 32 the round of one step */
3592
+ --_step: var(--icon-lg); /* 32 the round of one step */
3558
3593
  --_pad: calc((var(--header-h) - var(--_step)) / 2); /* 14 round + its room = the top bar's height; the end rounds sit concentric in the pill */
3559
3594
  /* the track lays down the accent fill of where it stands (the brand on a light card, the card's ink on the brand card), so it is a
3560
3595
  surface of that fill's side; its steps re-point the accent to its ink, as the brand card slot does (docs/reference.md rule 10) */
@@ -4363,7 +4398,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4363
4398
  min-width: 0;
4364
4399
  padding: var(--bubble-body-pad-y, var(--sp-3)) var(--bubble-body-pad-x, var(--sp-4));
4365
4400
  border-radius: var(--bubble-body-radius, var(--r-card));
4366
- border-bottom-left-radius: var(--r-control);
4401
+ border-bottom-left-radius: var(--bubble-tail-radius, var(--r-tail)); /* the tail: the corner nearest the sender, a corner that points (Lh 2026-10-29: --r-control read round) */
4367
4402
  background: var(--bubble-body-bg, var(--card-2-bg));
4368
4403
  --dark: var(--card-2-dark);
4369
4404
  color: var(--bubble-body-ink, var(--card-ink));
@@ -4372,7 +4407,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4372
4407
  }
4373
4408
  .bubble--right > .bubble__body {
4374
4409
  border-bottom-left-radius: var(--r-card);
4375
- border-bottom-right-radius: var(--r-control);
4410
+ border-bottom-right-radius: var(--bubble-tail-radius, var(--r-tail));
4376
4411
  background: var(--accent);
4377
4412
  color: var(--on-accent);
4378
4413
  text-align: right;
@@ -4506,6 +4541,13 @@ a.bubble { color: inherit; text-decoration: none; }
4506
4541
  .row > .words { min-width: 0; }
4507
4542
  .words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
4508
4543
  .words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
4544
+ /* the ends' room (Lh 2026-10-28): an unseen, inert copy of the ends of a led line (Words renders it at the start of its words when the line hands
4545
+ it them: a led Head, a LinkBlock's Row), floated at their top right, so it is exactly as wide and as tall as the ends whatever they are and
4546
+ the title and the meta run under the real ends. Nothing until a led line lays it out (below, "a LED LINE") */
4547
+ .words__room {
4548
+ display: none; float: right; align-items: flex-start; width: max-content; visibility: hidden; -webkit-user-select: none; user-select: none;
4549
+ letter-spacing: normal; /* a heading's tracking (.t-h2) is inherited and no type class of the ends resets it: the copy would come out narrower than the ends */
4550
+ }
4509
4551
  .words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
4510
4552
  .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
4511
4553
  .row--done > .words > .words__title { color: var(--card-muted); }
@@ -4513,6 +4555,19 @@ a.bubble { color: inherit; text-decoration: none; }
4513
4555
  /* ---- end: the value over its caption, right-aligned at the end of a line ---- */
4514
4556
  .end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
4515
4557
  .row > .end { flex: none; }
4558
+ /* an End of words with an icon in it (a link's arrow: `<End caption="Google Maps"><Icon name="arrow-up-right" /></End>`; Lh 2026-10-29): the two
4559
+ read as ONE. They stand on one line of the caption's type, the icon drawn at the words' size (--icon-xs, the caption's: its drawing about as
4560
+ tall as their x-height, its stroke as heavy as their stem) and set in the line as a letter is: its middle on the words' x-height middle
4561
+ (vertical-align: middle, the caption's own baseline + half its x-height), never at the line's top. The gap between them is a word pair's
4562
+ (--end-icon-gap, --sp-1), well under the gap between the End and anything else on the line (--row-gap / --head-col-gap, --sp-3). An End
4563
+ with a value (over its caption) keeps its lines as they are. */
4564
+ .end:not(:has(> .t-title)):has(> .icon) { display: block; font: var(--type-caption); white-space: nowrap; }
4565
+ .end:not(:has(> .t-title)) > .icon {
4566
+ --icon-size: var(--end-icon-size, var(--icon-xs));
4567
+ --icon-display: inline-block;
4568
+ --icon-align: middle;
4569
+ }
4570
+ .end:not(:has(> .t-title)) > * + .icon { --icon-margin: 0 0 0 var(--end-icon-gap, var(--sp-1)); }
4516
4571
 
4517
4572
  /* ---- head: the first row of a card, a sheet and a stack sheet. A lead, the Words, chips, an end, as its direct children.
4518
4573
  <div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn icon-btn--sm">…</button></div>
@@ -4561,15 +4616,13 @@ a.bubble { color: inherit; text-decoration: none; }
4561
4616
  -webkit-line-clamp: var(--head-title-lines, 3);
4562
4617
  line-clamp: var(--head-title-lines, 3);
4563
4618
  overflow: hidden;
4564
- padding-block: var(--_mark-room) var(--_mark-foot); /* a stacked Thai mark rises over the first line's box, a lower vowel hangs under the last: room inside the clip, given back outside */
4565
- margin-block: calc(-1 * var(--_mark-room)) calc(-1 * var(--_mark-foot));
4566
- --_mark-room: 0.2em;
4567
- --_mark-foot: 0.15em; /* a lower vowel reaches 0.30em under the baseline, a tight line box (1.15) ends 0.175em under it */
4619
+ padding-block: var(--glyph-rise) var(--glyph-drop); /* a stacked Thai mark rises over the first line's box, a lower vowel hangs under the last: room inside the clip, given back outside */
4620
+ margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
4568
4621
  }
4569
4622
 
4570
- .head > .words__title, .head > .words__over-title > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
4571
- .page > .head > h1.words__title, .page > .head > .words__over-title > h1.words__title { font-size: var(--fs-h2); } /* the page's ONE heading on the base (a screen with no TopBar) reads at the card heading's size — h1 is the semantic level, not a bigger face; --fs-h1 is the bar title's size (Lh 2026-09-22) */
4572
- .head > .words__meta { display: block; align-items: initial; gap: initial; } /* a head's caption is text; the flex line with a Dot is a row's */
4623
+ .head > .words__title, .head > .words__over-title > .words__title, .head > .words__flow > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
4624
+ .page > .head > h1.words__title, .page > .head > .words__over-title > h1.words__title, .page > .head > .words__flow > h1.words__title { font-size: var(--fs-h2); } /* the page's ONE heading on the base (a screen with no TopBar) reads at the card heading's size — h1 is the semantic level, not a bigger face; --fs-h1 is the bar title's size (Lh 2026-09-22) */
4625
+ .head > .words__meta, .head > .words__flow > .words__meta { display: block; align-items: initial; gap: initial; } /* a head's caption is text; the flex line with a Dot is a row's */
4573
4626
 
4574
4627
  /* a stage sheet's head (`Head centre`): a round button · the centred title over its meta · a round button. The title and the meta
4575
4628
  stand in the middle column, the buttons span both rows; the 1fr rows keep the pair centred when a button is the taller */
@@ -4629,11 +4682,10 @@ a.bubble { color: inherit; text-decoration: none; }
4629
4682
  .head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
4630
4683
 
4631
4684
  /* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card; re-laid for a phone's width the same day): a `Head` whose
4632
- first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. Everything stands at the TOP.
4633
- Two columns: the lead at the left, as tall as the head; at its right the title, with whatever follows it (an `End`, an `IconBtn`, a `Btn sm`)
4634
- together at the right of the title's first line, and the meta on a line of its own UNDER BOTH, as wide as the title and the ends together, so
4635
- a long meta never wraps in a thin column. No end: the title takes the line. No meta: no second line, no gap, and the one line (title and ends)
4636
- stands in the MIDDLE of the lead. The title is cut at
4685
+ first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead at the left, as tall
4686
+ as the head; at its right the title, and the meta on a line of its own under it, as wide as the title. With ends after the Words (an `End`, a
4687
+ round `Btn`, a `Btn size="sm"`) it is a led line (below): the title and the meta flow round the ends. No end: the title takes the line. No
4688
+ meta: no second line, no gap, and the title (and its ends) stand in the MIDDLE of the lead. The title is cut at
4637
4689
  --head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
4638
4690
  The gaps are margins, not column-gap: the head keeps four spare columns of no width for its ends, so the meta can run to the last (2 / -1).
4639
4691
  The first row is minmax(min-content, 0): a lead taller than title + meta gives its extra room to the meta's row, never between the two lines.
@@ -4649,30 +4701,51 @@ a.bubble { color: inherit; text-decoration: none; }
4649
4701
  }
4650
4702
  .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; margin-inline-end: var(--head-col-gap, var(--sp-3)); }
4651
4703
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title) + .words__meta) > :first-child { grid-row: 1 / 3; }
4652
- /* round buttons at the end (one or two IconBtn of one size, with a meta; Lh 2026-10-28): they stand fixed in the top-right corner OVER the title's
4653
- column, and the title's lines wrap round them as round a float — a line past the buttons' height runs the full width under them; the meta runs
4654
- under all. The room is an empty float at the start of the title, as wide as the buttons and their gaps, as tall as one. An End or a Btn (words
4655
- of no known width), and a head with no meta (centred, below), keep the two-cell line. The DOM order is untouched: the title is read first. */
4656
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) {
4657
- --_head-end: var(--icon-btn-size, var(--tap));
4658
- --_head-ends: 1;
4659
- }
4660
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn--sm):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-end: var(--icon-btn-sm-size, var(--tap-sm)); }
4661
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn ~ .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-ends: 2; }
4662
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; margin-inline-start: 0; }
4663
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn:has(~ .icon-btn) { margin-inline-end: calc(var(--_head-end) + var(--head-col-gap, var(--sp-3))); }
4664
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title {
4665
- /* WebKit draws a float inside the -webkit-box line clamp as a box of its own ABOVE the words, so this title is a plain block: cut at
4666
- --head-title-lines by its height (whole lines, no "…") */
4667
- display: flow-root;
4668
- max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
4669
- }
4670
- .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title::before {
4671
- content: "";
4672
- float: right;
4673
- width: calc(var(--_head-ends) * (var(--_head-end) + var(--head-col-gap, var(--sp-3))));
4674
- height: var(--_head-end);
4704
+ /* a LED LINE (Lh 2026-10-29, the feed's cards): a led `Head` (a `Lead`, an `Avatar` or an `AvatarStack`, then the `Words`, then its ends) and a
4705
+ `LinkBlock`'s `Row` (a `Lead`, the `Words`, its ends), laid by ONE rule whatever ends them (round Btns, a Btn sm, an End's words and their
4706
+ arrow, a time caption and a ⋯). The components hand it three pieces (endRoom.ts): the lead; the words as ONE flowing block, the title then the
4707
+ meta (.words__flow in a head, the .words box in a row), with the ends' room (.words__room, their unseen copy) floated at its top right; and
4708
+ the real ends in one box, .line-ends, over the room.
4709
+ - The title and the meta wrap round the room, so round the ends, and run under them at the full width; the meta follows the title at the
4710
+ words' gap (--head-row-gap / --words-gap), beside the ends or under them, never held down to their height.
4711
+ - The title's FIRST line has its x-height middle on the ends' centre, one line or many (Lh 2026-10-29). Both boxes stand on one baseline
4712
+ (align-self: first baseline): the words' first baseline is the title's first line's; the ends' box sets its baseline half an x-height of
4713
+ the TITLE's type under its middle (its ::before: an empty box 1ex tall in that type, centred among the ends: an empty box's baseline is
4714
+ its bottom). Baseline + ½ex on both sides: the ends' centre meets the title's x-height middle. No metric is written: the browser takes
4715
+ the ex of the title's own font. Whichever stands higher is at the top of the row; the other comes down to meet it.
4716
+ - The lead stands at the left from the top; with no meta, the words and the ends stand in the MIDDLE of the lead.
4717
+ - The title is cut at --head-title-lines and the meta at --head-meta-lines by their height (whole lines, no "…"): a line clamp is a
4718
+ formatting context of its own, which floats stay out of (and WebKit draws a float inside one as a box above the words), and an overflow
4719
+ clip draws no Thai mark past the box unless the box is padded, and padding a box in the flow costs margins that collapse. So the box is
4720
+ cut at whole lines by max-height and its words beyond are cut by clip-path, its edge the glyphs' room (--glyph-rise over, --glyph-drop
4721
+ under) outside the box: the boxes keep no padding and no margin but the words' gap, and the meta follows the title exactly at it.
4722
+ <div class="head"><span class="avatar-stack">…</span><div class="words__flow"><span class="words__room" aria-hidden="true" inert>…copies…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span></div><span class="line-ends"><button class="btn btn--round">…</button></span></div>
4723
+ <a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__room" …>…</span><span class="words__title">…</span><span class="words__meta">…</span></span><span class="line-ends"><span class="end">…<svg class="icon"/></span></span></div></a> */
4724
+ :is(.head, .link-block > .row):has(> .line-ends) {
4725
+ display: grid;
4726
+ grid-template-columns: auto minmax(0, 1fr) auto;
4727
+ grid-template-rows: [lead top] auto [top-end] auto [lead-end];
4728
+ gap: 0;
4729
+ align-items: start;
4730
+ align-content: start;
4675
4731
  }
4732
+ .head:has(> .line-ends):not(:has(> .words__flow > .words__meta)) { grid-template-rows: [lead] auto [top] auto [top-end] auto [lead-end]; }
4733
+ :is(.head, .link-block > .row):has(> .line-ends) > :first-child { grid-column: 1; grid-row: lead / lead-end; margin-inline-end: var(--_led-col-gap); }
4734
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) { grid-column: 2 / -1; grid-row: top / top-end; align-self: first baseline; display: block; min-width: 0; }
4735
+ :is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
4736
+ :is(.head, .link-block > .row):has(> .line-ends) > .line-ends::before { content: ""; flex: none; width: 0; height: 1ex; font: var(--_led-title-font); }
4737
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * { flex: none; }
4738
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * + * { margin-inline-start: var(--_led-col-gap); }
4739
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > .words__room { display: flex; padding-inline-start: var(--_led-col-gap); }
4740
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > :is(.words__title, .words__meta) { display: block; overflow: visible; -webkit-line-clamp: none; line-clamp: none; padding-block: 0; margin-block: 0; clip-path: inset(calc(-1 * var(--glyph-rise)) 0 calc(-1 * var(--glyph-drop))); }
4741
+ :is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > .words__title + .words__meta { margin-block-start: var(--_led-gap); } /* the words' gap, and nothing else between them */
4742
+ /* the head's: its gaps, its title's type (h2, h1, display; the page's h1 at the card heading's size), and the cuts */
4743
+ .head:has(> .line-ends) { --_led-gap: var(--head-row-gap, var(--sp-0)); --_led-col-gap: var(--head-col-gap, var(--sp-3)); --_led-title-font: var(--words-title-font, var(--type-h2)); }
4744
+ .head:has(> .line-ends):has(> .words__flow > .t-h1) { --_led-title-font: var(--words-title-font, var(--type-h1)); }
4745
+ .head:has(> .line-ends):has(> .words__flow > .t-display) { --_led-title-font: var(--words-title-font, var(--type-display)); }
4746
+ .page > .head:has(> .line-ends):has(> .words__flow > h1) > .line-ends::before { font-size: var(--fs-h2); }
4747
+ .head:has(> .line-ends) > .words__flow > .words__title { max-height: calc(var(--head-title-lines, 3) * 1lh); }
4748
+ .head:has(> .line-ends) > .words__flow > .words__meta { overflow-wrap: anywhere; max-height: calc(var(--head-meta-lines, none) * 1lh); } /* none (the default) leaves the calc invalid: no cut */
4676
4749
  /* no meta: one line beside the lead, the title and the ends centred to it, the title still at the left (Lh 2026-10-28) */
4677
4750
  .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)):not(:has(> .words__meta)) { align-items: center; }
4678
4751
  .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; }
@@ -4684,8 +4757,8 @@ a.bubble { color: inherit; text-decoration: none; }
4684
4757
  -webkit-line-clamp: var(--head-meta-lines, none);
4685
4758
  line-clamp: var(--head-meta-lines, none);
4686
4759
  overflow: hidden;
4687
- padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
4688
- margin-block: -0.2em -0.15em;
4760
+ padding-block: var(--glyph-rise) var(--glyph-drop); /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
4761
+ margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
4689
4762
  }
4690
4763
  .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; margin-inline-start: var(--head-col-gap, var(--sp-3)); }
4691
4764
 
@@ -4713,7 +4786,7 @@ a.bubble { color: inherit; text-decoration: none; }
4713
4786
  :is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head::before { content: ""; position: absolute; inset: 0; z-index: var(--z-under-2); background: var(--card-bg); }
4714
4787
  /* the under stamp is absolute at --card-pad from the card's top, so it takes no room in the head: the band is held at least as tall as the stamp
4715
4788
  (--stamp-size wide, 4 : 5) plus --card-pad above and below it, so a short title never leaves the stamp hanging past the band. Words taller grow it as before */
4716
- :is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size, calc(var(--tap) * 2)) * 5 / 4); }
4789
+ :is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size, var(--stamp)) * 5 / 4); }
4717
4790
 
4718
4791
  /* in a sheet stack */
4719
4792
  /* stack headers: uniform — [back?] title left, icons right, one height,
@@ -4940,13 +5013,13 @@ a.bubble { color: inherit; text-decoration: none; }
4940
5013
  whole short row of its own, centred — it never shares the buttons' line */
4941
5014
  .foot--link { flex-wrap: wrap; align-content: end; row-gap: var(--foot-link-gap, var(--sp-1)); }
4942
5015
  .foot__link { flex: 1 0 100%; display: flex; justify-content: center; }
4943
- /* round (Foot round): the foot holds a few round IconBtns, each its own size (they never share the line), as ONE group in the middle with
5016
+ /* round (Foot round): the foot holds a few round Btns, each its own size (they never share the line), as ONE group in the middle with
4944
5017
  a gap that does not follow the card's width. The gap is wider than the Btns' (a miss between two round targets): --foot-gap sets it */
4945
5018
  .foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
4946
5019
  /* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
4947
5020
  .foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
4948
5021
  /* split (Foot split, Lh 2026-10-25): two Btns (or two small Links, below) that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
4949
- the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
5022
+ the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn tone="warn"`
4950
5023
  keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
4951
5024
  Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish.
4952
5025
  A STRIP, not a button row (Lh 2026-10-25): each half is a status row's height (a row's --row-min-h plus the rows' gap, --sp-2 above
@@ -5517,7 +5590,7 @@ a.bubble { color: inherit; text-decoration: none; }
5517
5590
  THE THIRD SIZE (Lh 2026-10-17): `.stamp-book--fill` (below) makes each stamp as wide as its third, the gaps one --screen-pad. */
5518
5591
  .stamp, .stamp-place {
5519
5592
  box-sizing: border-box;
5520
- width: var(--stamp-size, calc(var(--tap) * 2));
5593
+ width: var(--stamp-size, var(--stamp));
5521
5594
  max-width: 100%; /* a holder narrower than a stamp still shows it whole */
5522
5595
  aspect-ratio: 4 / 5;
5523
5596
  margin-inline: auto;
@@ -5530,20 +5603,20 @@ a.bubble { color: inherit; text-decoration: none; }
5530
5603
  /* the contact shadow every stamp has, framed or not (Lh 2026-10-26: contact only; Lh 2026-10-28: darker, sharper — a quarter of the blur, about
5531
5604
  twice the opacity, it was 0 0 var(--border-w) rgb(0 0 0 / 0.28); a sliver of blur stays, a 0-offset drop-shadow with none draws nothing):
5532
5605
  its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
5533
- --_contact: 0 0 calc(var(--border-w) / 4) rgb(0 0 0 / 0.6);
5606
+ --_contact: 0 0 var(--stamp-contact-blur) rgb(0 0 0 / 0.6);
5534
5607
  filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
5535
5608
  rotate: var(--stamp-turn, none);
5536
5609
  animation: var(--stamp-arrive, none);
5537
5610
  }
5538
5611
  .stamp__paper {
5539
- --_pitch: calc(100cqw / 8); /* one tooth: 8 across, 10 down — the holes land whole on every edge. Fewer and larger than a real stamp's: a small stamp's teeth must still read (Lh 2026-10-26, it was 12 × 15; Lh 2026-10-07, it was 20 × 25) */
5540
- --_hole: 3.9cqw;
5612
+ --_pitch: calc(100cqw / var(--stamp-perf-count)); /* one tooth: 8 across, 10 down (a token, no knob: a stamp looks the same at every size, Lh 2026-10-29) — the holes land whole on every edge. Fewer and larger than a real stamp's: a small stamp's teeth must still read (Lh 2026-10-26, it was 12 × 15; Lh 2026-10-07, it was 20 × 25) */
5613
+ --_hole: var(--stamp-perf-hole);
5541
5614
  position: absolute;
5542
5615
  inset: 0;
5543
5616
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
5544
- radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + 0.4cqw)) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
5617
+ radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + var(--stamp-perf-soft))) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
5545
5618
  mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
5546
- radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + 0.4cqw)) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
5619
+ radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + var(--stamp-perf-soft))) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
5547
5620
  }
5548
5621
  /* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
5549
5622
  so the tone runs out to the teeth — the teeth, 4:5, shadow, pictures and words unchanged (Lh 2026-10-26: a stamp is always perforated) */
@@ -5555,40 +5628,40 @@ a.bubble { color: inherit; text-decoration: none; }
5555
5628
  laid over the tone (a darker or lighter shade; transparent = the bare tone). The black contact shadow is off here, unless a theme sets
5556
5629
  --stamp-shadow */
5557
5630
  .stamp--frameless { --_contact: 0 0 0 transparent; --_tone-shade: rgb(0 0 0 / 0.5); }
5558
- .stamp__shade { position: absolute; inset: 0; filter: blur(calc(var(--border-w) / 4)); }
5631
+ .stamp__shade { position: absolute; inset: 0; filter: blur(var(--stamp-contact-blur)); }
5559
5632
  .stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
5560
- .stamp__pic { position: absolute; inset: var(--stamp-frame, 8cqw); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
5633
+ .stamp__pic { position: absolute; inset: var(--stamp-frame, var(--stamp-frame-w)); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
5561
5634
 
5562
5635
  /* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
5563
5636
  A share of the picture area; the foot stays clear for the words. */
5564
5637
  .stamp__art { position: absolute; left: var(--_x); top: var(--_y); width: var(--_w); aspect-ratio: 1; translate: -50% -50%; rotate: var(--_r); }
5565
5638
  .stamp__art > * { display: block; width: 100%; height: 100%; }
5566
- .stamp--1 .stamp__art { --_x: 50%; --_y: 40%; --_w: 72%; --_r: 0deg; }
5567
- .stamp--2 .stamp__art:nth-child(1) { --_x: 37%; --_y: 27%; --_w: 58%; --_r: calc(var(--tilt-base) * -6); }
5568
- .stamp--2 .stamp__art:nth-child(2) { --_x: 63%; --_y: 56%; --_w: 54%; --_r: calc(var(--tilt-base) * 8); }
5569
- .stamp--3 .stamp__art:nth-child(1) { --_x: 30%; --_y: 21%; --_w: 50%; --_r: calc(var(--tilt-base) * -8); }
5570
- .stamp--3 .stamp__art:nth-child(2) { --_x: 71%; --_y: 31%; --_w: 46%; --_r: calc(var(--tilt-base) * 7); }
5571
- .stamp--3 .stamp__art:nth-child(3) { --_x: 47%; --_y: 58%; --_w: 54%; --_r: calc(var(--tilt-base) * -2); }
5572
- .stamp--4 .stamp__art:nth-child(1) { --_x: 29%; --_y: 19%; --_w: 44%; --_r: calc(var(--tilt-base) * -8); }
5573
- .stamp--4 .stamp__art:nth-child(2) { --_x: 71%; --_y: 24%; --_w: 42%; --_r: calc(var(--tilt-base) * 7); }
5574
- .stamp--4 .stamp__art:nth-child(3) { --_x: 31%; --_y: 57%; --_w: 42%; --_r: calc(var(--tilt-base) * 5); }
5575
- .stamp--4 .stamp__art:nth-child(4) { --_x: 70%; --_y: 60%; --_w: 44%; --_r: calc(var(--tilt-base) * -6); }
5639
+ .stamp--1 .stamp__art { --_x: var(--stamp-art-1-1-x); --_y: var(--stamp-art-1-1-y); --_w: var(--stamp-art-1-1-w); --_r: 0deg; }
5640
+ .stamp--2 .stamp__art:nth-child(1) { --_x: var(--stamp-art-2-1-x); --_y: var(--stamp-art-2-1-y); --_w: var(--stamp-art-2-1-w); --_r: calc(var(--tilt-base) * -6); }
5641
+ .stamp--2 .stamp__art:nth-child(2) { --_x: var(--stamp-art-2-2-x); --_y: var(--stamp-art-2-2-y); --_w: var(--stamp-art-2-2-w); --_r: calc(var(--tilt-base) * 8); }
5642
+ .stamp--3 .stamp__art:nth-child(1) { --_x: var(--stamp-art-3-1-x); --_y: var(--stamp-art-3-1-y); --_w: var(--stamp-art-3-1-w); --_r: calc(var(--tilt-base) * -8); }
5643
+ .stamp--3 .stamp__art:nth-child(2) { --_x: var(--stamp-art-3-2-x); --_y: var(--stamp-art-3-2-y); --_w: var(--stamp-art-3-2-w); --_r: calc(var(--tilt-base) * 7); }
5644
+ .stamp--3 .stamp__art:nth-child(3) { --_x: var(--stamp-art-3-3-x); --_y: var(--stamp-art-3-3-y); --_w: var(--stamp-art-3-3-w); --_r: calc(var(--tilt-base) * -2); }
5645
+ .stamp--4 .stamp__art:nth-child(1) { --_x: var(--stamp-art-4-1-x); --_y: var(--stamp-art-4-1-y); --_w: var(--stamp-art-4-1-w); --_r: calc(var(--tilt-base) * -8); }
5646
+ .stamp--4 .stamp__art:nth-child(2) { --_x: var(--stamp-art-4-2-x); --_y: var(--stamp-art-4-2-y); --_w: var(--stamp-art-4-2-w); --_r: calc(var(--tilt-base) * 7); }
5647
+ .stamp--4 .stamp__art:nth-child(3) { --_x: var(--stamp-art-4-3-x); --_y: var(--stamp-art-4-3-y); --_w: var(--stamp-art-4-3-w); --_r: calc(var(--tilt-base) * 5); }
5648
+ .stamp--4 .stamp__art:nth-child(4) { --_x: var(--stamp-art-4-4-x); --_y: var(--stamp-art-4-4-y); --_w: var(--stamp-art-4-4-w); --_r: calc(var(--tilt-base) * -6); }
5576
5649
 
5577
5650
  /* the words on the picture's foot: a small line, then the big name — one line each (clipped sideways only: Thai tone marks stand above the line box) */
5578
- .stamp__cap { position: absolute; inset-inline: 5cqw; bottom: 3.5cqw; display: grid; gap: 0.4cqw; }
5651
+ .stamp__cap { position: absolute; inset-inline: var(--stamp-cap-inset); bottom: var(--stamp-cap-foot); display: grid; gap: var(--stamp-cap-gap); }
5579
5652
  .stamp__words, .stamp__name { display: block; min-width: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
5580
5653
  .stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / round(down, calc(var(--lh-title) * 1em), 1px) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
5581
5654
  .stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / round(down, calc(var(--lh-display) * 1em), 1px) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
5582
- /* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
5583
5655
  /* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
5584
5656
  The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
5585
5657
  .stamp--bare .stamp__cap, .stamp-on .stamp__cap, .post-corner .stamp__cap, .stamp--xs .stamp__cap { display: none; }
5586
- .stamp--bare .stamp__art, .stamp-on .stamp__art, .post-corner .stamp__art, .stamp--xs .stamp__art { top: calc(var(--_y) + 9%); }
5658
+ .stamp--bare .stamp__art, .stamp-on .stamp__art, .post-corner .stamp__art, .stamp--xs .stamp__art { top: calc(var(--_y) + var(--stamp-bare-drop)); }
5587
5659
 
5588
- @container (max-width: 6rem) {
5589
- .stamp__words { display: none; }
5590
- .stamp__name { --_name: 12cqw; }
5591
- }
5660
+ /* the small line shows only on an LG stamp: one wider than the standard size, by the consumer's word (`Stamp lg`, `.stamp--lg`), or a
5661
+ stamp the book makes its third (`.stamp-book--fill`). Every other stamp — the standard size, the small one, one stuck on a note — drops it,
5662
+ and its name grows (Lh 2026-10-29: no layout chosen by a size query; it was `@container (max-width: 6rem)`) */
5663
+ .stamp:not(.stamp--lg, .stamp-book--fill > .stamp-cell > .stamp) .stamp__words { display: none; }
5664
+ .stamp:not(.stamp--lg, .stamp-book--fill > .stamp-cell > .stamp) .stamp__name { --_name: 12cqw; }
5592
5665
 
5593
5666
  /* --xs: the stamp INLINE with a status line (a card's foot: the stamp, "X took it", a round button) — one caption line tall,
5594
5667
  --stamp-xs-size (18.7 × 23.4 at the default bases, one Chip xs tall, on --fs-base: it follows the words it stands with; Lh 2026-10-24).
@@ -5596,7 +5669,7 @@ a.bubble { color: inherit; text-decoration: none; }
5596
5669
  10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
5597
5670
  <span class="stamp stamp--1 stamp--xs">…</span> */
5598
5671
  .stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5599
- .stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
5672
+ .stamp--xs .stamp__pic { inset: var(--stamp-frame, var(--stamp-xs-frame-w)); }
5600
5673
  /* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
5601
5674
  .stamp--held { visibility: hidden; }
5602
5675
 
@@ -5650,7 +5723,7 @@ a.bubble { color: inherit; text-decoration: none; }
5650
5723
  stroke: var(--_edge);
5651
5724
  stroke-width: var(--_dot);
5652
5725
  stroke-linecap: round;
5653
- stroke-dasharray: var(--stamp-place-dash, 0) var(--stamp-place-gap, calc(var(--sp-0) * 3));
5726
+ stroke-dasharray: var(--stamp-place-dash, 0) var(--stamp-place-gap, var(--stamp-place-dot-pitch));
5654
5727
  }
5655
5728
  .card .stamp-place, .post-paper .stamp-place { --_edge: var(--stamp-place-border, var(--card-muted)); color: var(--stamp-place-ink, var(--card-muted)); }
5656
5729
  .stamp-place--faint { --_edge: var(--stamp-place-faint-border, var(--hairline)); }
@@ -5746,9 +5819,9 @@ a.bubble { color: inherit; text-decoration: none; }
5746
5819
  .stamp-on > .stamp { max-width: none; }
5747
5820
  /* --main: the same stuck stamp at the stamp's MAIN size, 96 × 120 (--stamp-size), to cover what it lies on (the owner's call, 2026-10-11: the home's note).
5748
5821
  After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
5749
- .stamp-on--main > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); }
5822
+ .stamp-on--main > .stamp { width: var(--stamp-size, var(--stamp)); }
5750
5823
  .stamp-on--under { top: var(--card-pad, 0); right: var(--card-pad, 0); left: auto; translate: none; z-index: var(--z-under); pointer-events: none; } /* the card's top right corner, below everything the card holds */
5751
- .stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5824
+ .stamp-on--under > .stamp { width: var(--stamp-size, var(--stamp)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
5752
5825
  .stamp-on--move { will-change: transform; } /* its own layer: Safari left the stamp's shadow behind as a trail along the drag when it was painted with the note (seen on the simulator, 2026-10-07) */
5753
5826
  .stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
5754
5827
  .stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
@@ -5811,7 +5884,7 @@ a.bubble { color: inherit; text-decoration: none; }
5811
5884
  filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
5812
5885
  }
5813
5886
  :is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
5814
- :is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + 9%); }
5887
+ :is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + var(--stamp-bare-drop)); }
5815
5888
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
5816
5889
  /* a stamp ON a card lies flat: only the contact shadow (--stamp-shadow), at every size (Lh 2026-10-24; the contact shadow 2026-10-26) — a feed card's lead, a foot row's, xs.
5817
5890
  A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
@@ -6205,6 +6278,11 @@ a.bubble { color: inherit; text-decoration: none; }
6205
6278
  grid-template-columns: repeat(auto-fill, minmax(min(var(--tile-min), 100%), 1fr));
6206
6279
  gap: var(--tile-grid-gap, var(--sp-3));
6207
6280
  }
6281
+ /* two across at every phone width (four picks 2×2). An inline tile's words stand beside the icon while their longest word fits there, else under it (a big text size) */
6282
+ .tile-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
6283
+ .tile-grid--2 > .tile--inline { display: flex; flex-wrap: wrap; gap: var(--tile-text-gap, var(--sp-0)) var(--tile-inline-gap, var(--sp-3)); }
6284
+ .tile-grid--2 > .tile--inline .tile__text { display: grid; gap: var(--tile-text-gap, var(--sp-0)); flex: 1 1 0; min-width: min-content; }
6285
+ .tile-grid--2 > .tile--inline :is(.tile__label, .tile__sub) { overflow-wrap: anywhere; } /* a word longer than the whole tile breaks, never runs out of it */
6208
6286
  .tile-grid--3 { --tile-min: calc(var(--tap-base) * 2); } /* three across on a phone (attachments, upload kinds) */
6209
6287
  /* four across on a phone: small square actions — the icon over a short label, centred (copy · share · draw · save on a sheet) */
6210
6288
  .tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-grid-gap, var(--sp-2)); }
@@ -6438,7 +6516,6 @@ a.bubble { color: inherit; text-decoration: none; }
6438
6516
  sets open={false}).
6439
6517
  Reduced motion: the finished state, no beats; closing fires at once. */
6440
6518
  .modal {
6441
- --drawer-h: calc(var(--tap-base) * 14 / 3);
6442
6519
  position: absolute; /* at the stage's centre, and kept there as it grows: its middle is pinned at 50% and */
6443
6520
  top: 50%; /* translate -50% of its OWN height re-centres it on every height. NOT inset 0 + margin auto + */
6444
6521
  inset-inline: 0; /* align-self: center — Safari 18 ignores align-self on an absolute box in a block container, */