@usableapp/cardds 0.7.177 → 0.7.179

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 (56) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/css/actions.css +11 -8
  3. package/css/base.css +13 -2
  4. package/css/card.css +39 -7
  5. package/css/layover.css +87 -10
  6. package/css/lists.css +69 -3
  7. package/css/media.css +33 -0
  8. package/css/palette.css +7 -0
  9. package/css/parts.css +27 -1
  10. package/css/tokens.css +9 -2
  11. package/dist/actions/Btn.d.ts +6 -2
  12. package/dist/actions/Btn.js +5 -2
  13. package/dist/cardds.css +295 -33
  14. package/dist/cards/CardParts.d.ts +12 -5
  15. package/dist/cards/CardParts.js +8 -7
  16. package/dist/cards/FeedPost.d.ts +31 -0
  17. package/dist/cards/FeedPost.js +14 -0
  18. package/dist/cards/inkGrounds.js +1 -1
  19. package/dist/catalog.json +1 -1
  20. package/dist/index.d.ts +5 -0
  21. package/dist/index.js +5 -0
  22. package/dist/layover/Popup.d.ts +23 -0
  23. package/dist/layover/Popup.js +15 -0
  24. package/dist/lists/Bubble.d.ts +25 -6
  25. package/dist/lists/Bubble.js +17 -8
  26. package/dist/lists/Row.d.ts +19 -4
  27. package/dist/lists/Row.js +8 -6
  28. package/dist/media/Mosaic.d.ts +4 -3
  29. package/dist/media/Mosaic.js +8 -4
  30. package/dist/media/Thumb.d.ts +14 -0
  31. package/dist/media/Thumb.js +12 -0
  32. package/dist/parts/Foot.d.ts +7 -2
  33. package/dist/parts/Foot.js +4 -3
  34. package/dist/parts/Lead.d.ts +7 -1
  35. package/dist/parts/Lead.js +3 -2
  36. package/dist/scaffold/Centre.d.ts +1 -1
  37. package/dist/scaffold/Centre.js +1 -1
  38. package/dist/scaffold/Panes.d.ts +1 -0
  39. package/dist/scaffold/Panes.js +1 -0
  40. package/dist/sheets/Modal.d.ts +1 -1
  41. package/dist/sheets/Modal.js +1 -1
  42. package/dist/templates/Splash.d.ts +1 -1
  43. package/dist/templates/Splash.js +1 -1
  44. package/dist/type/Phrase.d.ts +9 -0
  45. package/dist/type/Phrase.js +11 -0
  46. package/dist/type/Strong.d.ts +7 -0
  47. package/dist/type/Strong.js +9 -0
  48. package/dist/type/Text.d.ts +5 -1
  49. package/dist/type/Text.js +7 -3
  50. package/dist/type/icons.d.ts +1 -1
  51. package/dist/type/icons.js +2 -2
  52. package/docs/reference.md +101 -4
  53. package/icons.svg +1 -0
  54. package/lib/catalog.mjs +1 -1
  55. package/lint/rules.mjs +2 -2
  56. package/package.json +1 -1
package/dist/cardds.css CHANGED
@@ -85,7 +85,9 @@
85
85
  --screen-w: 34.375rem; /* 550: the column's CAP — .screen, .action-bar, .sheet-stage. On a phone the screen is the device, edge to edge —
86
86
  also a phone set to a small display size, a fold's outer screen (540 was seen, Lh 2026-10-01); the cap only keeps
87
87
  a tablet / desktop window to a phone-sized column. Was 25rem (a 412px phone showed a strip each side), then 30rem */
88
- --screen-centre: 40%; /* the human centre of a screen: the middle of its top four fifths — the bottom fifth is the thumb's (Lh, 2026-09-10). .card--centre sits here */
88
+ --centre-at: 0.4; /* the human centre, as a share: 40% down a screen AND 40% down a box that stands on it (Lh, 2026-09-10, 2026-11-18) */
89
+ --screen-centre: calc(var(--centre-at) * 100%); /* the human centre of a screen: the middle of its top four fifths — the bottom fifth is the thumb's. A centred box's top is here */
90
+ --centre-lift: calc(-1 * var(--screen-centre)); /* a centred box's translate: its own 40% point (not its middle) lands on --screen-centre. A translate % is of the box's own height */
89
91
 
90
92
  /* ---- the four bases: what a project retunes (Lh, 2026-09-20) ----
91
93
  Every size token below is multiplier × its family's base. A project sets a BASE
@@ -404,6 +406,9 @@
404
406
  --signal-info-onlight: #2e5c98;
405
407
  /* highlights (Lh 2026-09-25): four atmosphere colours a palette may set for decoration — a count, a mark, a chart dot; the wireframe keeps them grey */
406
408
  --highlight-1: #3d3d3d; --highlight-2: #8a8a8a; --highlight-3: #5f5f5f; --highlight-4: #b0b0b0;
409
+ /* tones (cardds#219): six fills for a small box that carries the ondark ink (a `Lead tone`), to tell kinds of thing apart. Colour lives in palette.css only, so the
410
+ wireframe keeps six greys — darkened so white holds 4.5:1 on each (a project's theme may set them) */
411
+ --tone-blue: #111111; --tone-green: #2b2b2b; --tone-amber: #444444; --tone-red: #595959; --tone-pink: #666666; --tone-violet: #737373;
407
412
  --signal-error-onlight: #af2525; /* something went wrong — a field's edge, the words that say what */
408
413
  /* on a dark ground no shade of one hue holds 4.5:1 on every palette's dark fill and stays itself: a signal there is the ondark ink,
409
414
  and the icon and the words carry the meaning. A palette may give its own (orchard) */
@@ -412,7 +417,9 @@
412
417
  /* derived tints — read the element's own ink, so they work on any slot */
413
418
  --outline: var(--action-border); /* control edges (palette.css softens) */
414
419
  --hairline: color-mix(in srgb, currentColor 18%, transparent); /* dividers inside cards */
420
+ --hairline-soft: color-mix(in srgb, currentColor 10%, transparent); /* a line that only has to be seen: the rule under a joined row */
415
421
  --ink-tint: color-mix(in srgb, currentColor 12%, transparent); /* hover, rails, rests */
422
+ --unread-bg: color-mix(in srgb, currentColor 4%, transparent); /* a very light grey over any ground: a row never read (Row unread) */
416
423
  --ink-rail: color-mix(in srgb, currentColor 30%, transparent); /* todo steps, ghost edges */
417
424
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent); /* calendar marks */
418
425
  --accent-wash: color-mix(in srgb, var(--accent) 22%, var(--action-bg)); /* the same wash laid on the paper of fields and buttons, opaque: a soft chip reads the same on any card (Chip soft) */
@@ -483,7 +490,7 @@
483
490
  tile) takes its ground's side: `--dark: inherit`. inkGrounds() measures it; docs/reference.md "Ink follows its ground" */
484
491
  :where(body, [data-palette], [data-mode], .card, .tile, .modal__drawer, .postcard__front, .postcard__back, .sticky, .post-paper,
485
492
  .float-bar__pill, .snackbar__body, .track, .tile-badge, .avatar, .bubble__body, .map__hint, .map__pin, .sheet--paper > :is(.body, .foot),
486
- .postcard__band, .track__step, .toggle, .chip, .btn--warn, .card__face, .card--bands > :is(.head, .foot), .card--bands > .card__face > :is(.head, .foot)) {
493
+ .postcard__band, .track__step, .toggle, .chip, .btn--warn, .card__face, .card--bands > :is(.head, .foot), .card--bands > .card__face > :is(.head, .foot), .popup) {
487
494
  --card-ink: color-mix(in srgb, var(--ink-ondark) calc(var(--dark) * 100%), var(--ink-onlight));
488
495
  --card-muted: color-mix(in srgb, var(--ink-ondark-muted) calc(var(--dark) * 100%), var(--ink-onlight-muted));
489
496
  --on-accent: color-mix(in srgb, var(--ink-ondark) calc(var(--accent-dark) * 100%), var(--ink-onlight));
@@ -636,6 +643,13 @@
636
643
  --dot-a: #dd9787; --dot-b: #b08a5a;
637
644
  }
638
645
 
646
+ /* TONES (cardds#219): the six fills of a `Lead tone`, a white icon on a colour to tell kinds of thing apart — in coloured mode, whatever the palette (a project's own
647
+ `data-palette` too). Each holds the ondark ink at 4.5:1 or more on every palette cardds ships, the dimmest ink (clay's #f4efe4) included; the lowest is blue on clay, 4.74.
648
+ A project whose own ondark ink is dimmer than that retunes the tone it fails (inkGrounds() names it), or sets it in its theme.css. The wireframe's are greys (tokens.css) */
649
+ [data-palette] {
650
+ --tone-blue: #2a6f9e; --tone-green: #52613d; --tone-amber: #8a5a12; --tone-red: #c22d12; --tone-pink: #b8285e; --tone-violet: #5b4a8a;
651
+ }
652
+
639
653
  /* Colored palettes trade wireframe outlines for soft elevation. */
640
654
  [data-palette] :is(.card, .band-stack) { box-shadow: var(--shadow-card); }
641
655
  /* COLOURED MODE is the attribute, whatever its value: a project with colours of its own (the five
@@ -840,6 +854,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
840
854
 
841
855
  .t-muted { color: var(--card-muted); } /* the muted words of whatever it stands on: the screen, a card of any tone, a drawer */
842
856
  .t-caps { text-transform: uppercase; }
857
+ /* ---- strong: some words heavier INSIDE running text (cardds#229) ----
858
+ <p class="t-caption"><strong class="strong">Noi</strong> • asked for a ride</p> Weight only: the size, ink and line are the text's. */
859
+ .strong { font-weight: var(--strong-weight, var(--fw-bold)); }
860
+ /* ---- the corner word of a Text (cardds#229): one short word at the top end, the first line runs round it, the rest is full width ----
861
+ <span class="t-caption t-lines t-lines--3"><span class="t-corner-flow"><span class="t-corner">5 min</span>words…</span></span>
862
+ The flow is a block of its own: the cut (`-webkit-box`) turns its direct children into flex items, which ignore a float. */
863
+ .t-corner-flow { display: block; }
864
+ .t-corner { float: inline-end; margin-inline-start: var(--text-corner-gap, var(--sp-2)); color: var(--text-corner-ink, var(--card-muted)); }
843
865
  /* ---- mark: a highlighter stroke over a word INSIDE running text (a sender's name in a greeting) ----
844
866
  <p class="t-body"><mark class="mark">ธนาคารเวลา</mark> ส่งแสตมป์ดวงแรกให้คุณ</p>
845
867
  The words keep their ink and their size; the stroke is the signal washed thin, drawn as a pen would: unlike corners, the ink
@@ -862,6 +884,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
862
884
  .mark--warn { --_bg: color-mix(in srgb, var(--signal-warn) 30%, transparent); }
863
885
  .mark--error { --_bg: color-mix(in srgb, var(--signal-error) 30%, transparent); }
864
886
  .mark--info { --_bg: color-mix(in srgb, var(--signal-info) 30%, transparent); }
887
+ /* a phrase that is not split (Phrase, cardds#224): an inline-block is one unit, so the line breaks before it or after it, never inside it; sized to its own words,
888
+ and never wider than the box it stands in (a phrase longer than that breaks inside itself rather than run out of the box). Nothing is clipped or hidden */
889
+ .phrase { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
865
890
  .grow { flex: 1; min-width: 0; } /* the child that takes the remaining row space */
866
891
  /* read, not shown (Lh 2026-09-23): words a screen reader needs — a page's h1 the design leaves out — kept in the page, taking no room.
867
892
  The 1px is the one the platform needs to keep it in the accessibility tree, not a length of the design. */
@@ -937,10 +962,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
937
962
  .screen--fill > .screen__centre {
938
963
  position: absolute;
939
964
  top: var(--screen-centre);
940
- translate: 0 -50%;
965
+ translate: 0 var(--centre-lift); /* its own 40% point on --screen-centre, as a .card--centre (card.css) */
941
966
  /* the cap: as a .card--centre's (card.css, which says why) */
942
967
  --_lead: 0rem;
943
- max-height: calc(2 * min(var(--screen-centre) - var(--_lead) - var(--screen-gap), 100% - var(--screen-centre) - var(--bar-reserve)));
968
+ max-height: min((var(--screen-centre) - var(--_lead) - var(--screen-gap)) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
944
969
  overflow-y: auto;
945
970
  overscroll-behavior: contain;
946
971
  }
@@ -1105,6 +1130,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1105
1130
 
1106
1131
  .card__media { border-radius: var(--card-media-radius, var(--r-media)); overflow: hidden; position: relative; } /* relative: corner badges */
1107
1132
  .card__media > img { width: 100%; height: auto; object-fit: cover; }
1133
+ /* a full-width picture outside a card (CardMedia full, cardds#226): the holder's width, the corner --r-media, the picture's own ratio — one taller than --card-media-max-ratio
1134
+ (height ÷ width, default 1.25 = 4:5) is cut at its middle. The wrapper is the container the cap is measured in (cqw = its width) */
1135
+ .card__media--full { container-type: inline-size; width: 100%; }
1136
+ .card__media--full > img { display: block; max-height: calc(100cqw * var(--card-media-max-ratio, 1.25)); object-position: center; }
1137
+ .card__media--full > .ph { min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
1108
1138
  /* media beside (MediaBeside, Lh 2026-10-28): the words, and at their end a small square picture, the media's corner, cropped to fill it */
1109
1139
  .media-beside { display: grid; grid-template-columns: minmax(0, 1fr) var(--media-beside-size, calc(var(--tap) * 3 / 2)); gap: var(--media-beside-gap, var(--sp-3)); align-items: start; }
1110
1140
  .media-beside__words { display: grid; gap: var(--sp-1); min-width: 0; }
@@ -1220,8 +1250,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1220
1250
  Where the centre of a phone IS, to the person holding it: the bottom fifth is
1221
1251
  the thumb's — the bar, the controls — so what is meant to be read sits at the
1222
1252
  middle of the four fifths above it, --screen-centre (40%) down the screen, not
1223
- at 50%. (Lh, 2026-09-10.) Any screen with one
1224
- card and nothing else to read may.
1253
+ at 50%. (Lh, 2026-09-10.) The card stands on that line by ITS OWN 40% point,
1254
+ not its middle (Lh, 2026-11-18): the point 40% down the card is the point 40%
1255
+ down the screen, so the card's middle is a tenth of its height under the
1256
+ line, still over the screen's own middle (--centre-lift). Any screen with one card and nothing else to read may.
1225
1257
  <div class="screen screen--fill"><header class="topbar">…</header><article class="card card--centre">…</article></div>
1226
1258
  <div class="action-bar">…</div>
1227
1259
  The card hugs its words and keeps the screen's inset. It is capped so that it
@@ -1230,14 +1262,15 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1230
1262
  .card--centre {
1231
1263
  position: absolute;
1232
1264
  top: var(--screen-centre);
1233
- translate: 0 -50%;
1234
- /* the cap: twice the room above the centre (the title bar's height, when
1235
- one is there, and the screen's gap), or twice the room below it (the
1236
- bar's reserve) — whichever is less. --_lead is the title bar's height
1265
+ translate: 0 var(--centre-lift);
1266
+ /* the cap: the room above the centre (the title bar's height, when one is
1267
+ there, and the screen's gap) is the card's 40% above its point, so the card
1268
+ may be that room / 0.4 tall; the room below it (the bar's reserve) is its 60%,
1269
+ so that room / 0.6 — whichever is less. --_lead is the title bar's height
1237
1270
  only on a screen that HAS one: without a .topbar/.appbar before it the
1238
1271
  block keeps that room (a card and its pager under it needs it on a short phone; Lh, 2026-09-11). */
1239
1272
  --_lead: 0rem;
1240
- max-height: calc(2 * min(var(--screen-centre) - var(--_lead) - var(--screen-gap), 100% - var(--screen-centre) - var(--bar-reserve)));
1273
+ max-height: min((var(--screen-centre) - var(--_lead) - var(--screen-gap)) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
1241
1274
  overflow-y: auto;
1242
1275
  overscroll-behavior: contain;
1243
1276
  }
@@ -1311,6 +1344,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1311
1344
 
1312
1345
  /* ---- card list: rows, each row its own boundary ---- */
1313
1346
  .card-list { display: grid; gap: var(--card-list-gap, var(--sp-3)); }
1347
+ /* thin (`CardList thin`, cardds#213, a feed — Lh 2026-11-17 "ก การ์ดบาง"): every card in the list thinner by its three rest values, set for the
1348
+ list's cards alone (a card reads them as `--card-pad` / `--card-gap` / its corner, so its variants and parts follow); a card outside, and a
1349
+ `Thread` standing between the cards, do not change */
1350
+ .card-list--thin > .card {
1351
+ --card-pad-rest: var(--card-list-thin-pad, var(--sp-4));
1352
+ --card-gap-rest: var(--card-list-thin-gap, var(--sp-5));
1353
+ --r-card: var(--card-list-thin-radius, var(--r-base));
1354
+ }
1314
1355
 
1315
1356
  .card--row {
1316
1357
  border-radius: var(--card-row-radius, var(--r-card-row)); /* small: the big card's corner in proportion, not its size */
@@ -1379,6 +1420,22 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1379
1420
  .feed-card { row-gap: 0; }
1380
1421
  .feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
1381
1422
  .feed-card__lead { display: grid; } /* placed by the head's align-items: top with a caption, middle without (parts.css) */ /* a Stamp here is the small one, 48 × 60 (stamp.css) */
1423
+ /* FeedPost (cardds#213, Lh 2026-11-17 "ก การ์ดบาง"): ONE post in a feed — head · words · a picture full width · the moves (a BtnGroup frame).
1424
+ GROUPS: the head's lines --sp-1 apart, the post's parts --sp-5 (the card's gap, so a thin CardList's cards and its posts read alike).
1425
+ The head: the author bold in the label's size, ` · time` small and muted on the same line, how it came under them (the Head's meta).
1426
+ The picture: full width at its own shape, cut in its middle past the tallest shape the post allows (width / height, 4 / 3; on a sheet
1427
+ an app sets 4 / 5) — the box is a size container, so the cap is a share of its own width (cqi, iOS 16).
1428
+ <article class="card feed-post"><div class="head"><span class="avatar">…</span><h2 class="words__title">Somsri<span class="feed-post__time"> · 40 min</span></h2>…</div>
1429
+ <p class="t-body">…</p><div class="feed-post__media"><img …></div><div class="icon-btn-group" role="group">…</div></article> */
1430
+ .feed-post { --card-gap: var(--feed-post-gap, var(--sp-5)); }
1431
+ .feed-post > .head {
1432
+ --head-row-gap: var(--sp-1);
1433
+ --words-title-font: var(--fw-bold) var(--fs-label) / round(down, calc(var(--lh-label) * 1em), 1px) var(--face-label);
1434
+ }
1435
+ .feed-post__time { font: var(--type-caption); color: var(--card-muted); }
1436
+ .feed-post__media { container-type: inline-size; border-radius: var(--r-media); overflow: hidden; }
1437
+ .feed-post__media > * { display: block; width: 100%; max-height: calc(100cqi / (var(--feed-post-media-ratio, 4 / 3))); object-fit: cover; object-position: center; border-radius: inherit; }
1438
+ .feed-post__media > img { height: auto; }
1382
1439
  /* FeedEnd (Lh 2026-10-29): the end of a feed — a drawn cat, its tail wagging, and a caption. Quiet: the ground's muted ink. */
1383
1440
  .feed-end { display: grid; justify-items: center; gap: var(--sp-2); padding-block: var(--sp-4); color: var(--feed-end-ink, var(--on-surface-muted)); text-align: center; }
1384
1441
  .feed-end__cat { width: var(--feed-end-size, var(--stamp)); height: auto; }
@@ -3136,7 +3193,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3136
3193
  .icon-btn-line__words { font: var(--type-label); text-align: center; min-width: 0; }
3137
3194
  .icon-btn-line > .icon-btn-group--form { margin-inline: 0; }
3138
3195
  .icon-btn-group > .icon-btn[aria-pressed="true"] { background: var(--icon-btn-group-on-bg, var(--accent)); color: var(--icon-btn-group-on-ink, var(--on-accent)); } /* `select`: a pressed button STAYS filled (Lh 2026-09-29) */
3139
- .icon-btn-group > .icon-btn:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
3196
+ .icon-btn-group > .icon-btn:active:not(:disabled, [aria-disabled="true"]) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
3197
+ /* a share DONE ALREADY (`Btn aria-disabled`, cardds#213: a post passed on) fades with the press list's `--off` and takes no dim; pressed and done (its
3198
+ value still on) it is the pressed fill, faded */
3140
3199
 
3141
3200
  /* fab: the square floating action, bottom-right of a stage or screen */
3142
3201
  .fab { width: var(--fab); height: var(--fab); border-radius: var(--r-card); position: absolute; right: var(--sp-4); bottom: calc(var(--sp-5) + var(--bar-h) + var(--sp-3) + var(--safe-bottom)); box-shadow: var(--shadow-float); z-index: var(--z-fab); }
@@ -3501,18 +3560,19 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3501
3560
  dims only when the finger is on the card itself, never while it is on one of those.
3502
3561
  .t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds. It is WORDS, so it neither
3503
3562
  dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below).
3563
+ .thumb (cardds#232) = a `Thumb`, a small square photo that is a button: it GIVES (scale) like a tile, and has the focus ring.
3504
3564
  .bubble--press (Lh 2026-10-28) = a chat `Bubble` that is a link (`href`) or pressed (`onClick`): a message is as wide as a row, so it DIMS.
3505
3565
  .link-block (Lh 2026-10-28) = a `LinkBlock`, a few pieces of a card's content as one link: as wide as the card, it DIMS.
3506
3566
  .card--folds > .head (Lh 2026-10-29) = the head of a `Card folds`: a tap opens or folds the card, so it DIMS (pointer and :active only —
3507
3567
  the focus ring is the card's, from its unseen open button, card.css). A control in the head keeps its own press. */
3508
3568
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
3509
3569
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3510
- a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .count-in__cancel) {
3570
+ a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .count-in__cancel, .thumb) {
3511
3571
  cursor: pointer;
3512
3572
  touch-action: manipulation;
3513
3573
  transition: scale var(--motion-press) var(--ease-out);
3514
3574
  }
3515
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block) {
3575
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block, .row--todo) {
3516
3576
  cursor: pointer;
3517
3577
  touch-action: manipulation;
3518
3578
  transition: opacity var(--motion-press) var(--ease-out);
@@ -3527,8 +3587,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3527
3587
  }
3528
3588
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
3529
3589
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3530
- a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
3531
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3590
+ a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .thumb):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
3591
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block, .row--todo):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3532
3592
  .card--press:active:has(:is(a[href], button, [role=button], input, select, textarea, summary):active) { opacity: 1; } /* the finger is on a link or a button inside: that one answers, the card stays */
3533
3593
  .card--folds > .head:active:has(:is(a[href], button, [role=button], input, select, textarea, summary):active) { opacity: 1; } /* a button in a folding card's head answers itself, the head stays */
3534
3594
  /* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
@@ -3538,17 +3598,17 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3538
3598
  /* the focus ring: on the control, or on the label that wraps a hidden input (chip, tile, file button, a row that is a label, a card that is a label round its radio) */
3539
3599
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
3540
3600
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3541
- a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
3601
+ a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .thumb):focus-visible,
3542
3602
  :where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
3543
3603
  :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more, .bubble--press, .link-block):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
3544
3604
  /* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
3545
3605
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
3546
3606
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3547
- a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .toggle-field, .post-box__edge):is(:disabled, [aria-disabled="true"]),
3607
+ a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .thumb, a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .toggle-field, .post-box__edge):is(:disabled, [aria-disabled="true"]),
3548
3608
  :where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn, label.row):has(:disabled) { cursor: default; }
3549
3609
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
3550
3610
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3551
- a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):not(.link):is(:disabled, [aria-disabled="true"]),
3611
+ a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .thumb):not(.link):is(:disabled, [aria-disabled="true"]),
3552
3612
  :where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn):has(:disabled) { opacity: var(--off); }
3553
3613
  .sheet-stack--tap > .card > .head > :is(h1, h2, h3):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); } /* the keyboard's way into a stack sheet */
3554
3614
  @media (prefers-reduced-motion: reduce) { :root { --press-scale: 1; } } /* the give goes; the dim, the shade and the focus ring stay */
@@ -4417,6 +4477,15 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4417
4477
  Space BETWEEN rows is .rows' gap; a lone row as card content takes the card's
4418
4478
  gap. (.row--flush, which zeroed the old padding, is gone — every row is flush.) */
4419
4479
  .row--lg { min-height: var(--row-lg-min-h, var(--fab)); } /* menu rows: a taller target, round arrow at the end; .rows gives them more air */
4480
+ /* a lead as tall as N lines of the words beside it (Row leadLines, cardds#229): the stamp N lines tall at its 4:5 shape, a Lead a square as wide as that stamp, the row's
4481
+ centring puts it in the middle of the height. The line is the level's own (body, or caption with `leadText="caption"`), so it follows the text size */
4482
+ .row--lead-1 { --_lead-n: 1; }
4483
+ .row--lead-2 { --_lead-n: 2; }
4484
+ .row--lead-3 { --_lead-n: 3; }
4485
+ .row--lead-lines { --_lead-line: round(down, calc(var(--lh-body) * var(--fs-body)), 1px); --_lead-w: calc(var(--_lead-n) * var(--_lead-line) * 4 / 5); }
4486
+ .row--lead-caption { --_lead-line: round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px); }
4487
+ .row--lead-lines > .avatar-stack { --stamp-sm-size: var(--_lead-w); }
4488
+ .row--lead-lines > .lead { --lead-size: var(--_lead-w); }
4420
4489
  /* a row that EXPANDS (Lh 2026-09-22): the row is a <details>' summary, what it shows comes out under it —
4421
4490
  who liked a postcard, the rest of a list. An end chevron turns when open. The app owns the list.
4422
4491
  <details class="row-expand"><summary class="row">…lead · body · end…</summary><div class="row-expand__more">…</div></details> */
@@ -4442,6 +4511,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4442
4511
  display: grid;
4443
4512
  place-items: center;
4444
4513
  }
4514
+ /* a checklist item still to do (`Row todo`, cardds#223): the tick's place and size, empty and dashed; the words fade (the ring too, the one ink): not done yet, not active.
4515
+ The row is a link or a button (the press list in actions.css): the whole row is the target. The circle is drawn, never a control. */
4516
+ .row--todo { --_todo-fade: color-mix(in srgb, var(--card-ink) 40%, transparent); --_todo-ink: var(--row-todo-ink, var(--_todo-fade)); }
4517
+ .row__todo {
4518
+ width: var(--row-done-size, var(--tap-sm));
4519
+ height: var(--row-done-size, var(--tap-sm));
4520
+ flex: none;
4521
+ margin-left: auto;
4522
+ border-radius: 50%;
4523
+ border: var(--border-w) dashed var(--row-todo-ring, var(--_todo-ink));
4524
+ }
4445
4525
 
4446
4526
  /* rows: a list of rows separated by hairlines */
4447
4527
  .rows { display: grid; --rows-gap: var(--sp-4); row-gap: var(--rows-gap); }
@@ -4459,6 +4539,18 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4459
4539
  border-top: var(--border-w) solid var(--hairline);
4460
4540
  }
4461
4541
 
4542
+ /* a row not yet seen (`Row unread`, cardds#219): the whole row takes a very light grey fill, the token --unread-bg (4% of the ink over any ground) */
4543
+ .row--unread { background: var(--row-unread-bg, var(--unread-bg)); }
4544
+
4545
+ /* joined rows (`Rows joined`, cardds#219): no gap, every row a band edge to edge with its padding and a border under it (the last too), so a row with a fill
4546
+ touches the next and reads as a band. The between-rows hairline is not drawn (the border is the line); a list for a holder that fills its width (a Popup) */
4547
+ .rows.rows--joined { --rows-gap: 0rem; }
4548
+ .rows--joined > .row + .row::before { display: none; }
4549
+ .rows--joined > :is(.row, .row-expand) { border-bottom: var(--rows-joined-border-w, var(--px)) solid var(--rows-joined-border, var(--hairline-soft)); } /* thin and faint (Lh 2026-11-18: the dark line was too strong): was --border-w at --hairline */
4550
+ .rows--joined > .row, .rows--joined > .row-expand > summary { padding: var(--rows-joined-pad-y, var(--sp-3)) var(--rows-joined-pad-x, var(--sp-4)); }
4551
+ .rows--joined > .row-expand > .row-expand__more { padding: 0 var(--rows-joined-pad-x, var(--sp-4)) var(--rows-joined-pad-y, var(--sp-3)); }
4552
+ .rows--joined > .rows__head { padding: var(--rows-joined-pad-y, var(--sp-3)) var(--rows-joined-pad-x, var(--sp-4)) 0; }
4553
+
4462
4554
  /* ---- kv: label left, value right ----
4463
4555
  <dl class="kv"><div class="kv__row"><dt class="kv__key">Pay with</dt><dd class="kv__val">GHO</dd></div>…</dl> */
4464
4556
  .kv { margin: 0; display: grid; }
@@ -4492,6 +4584,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4492
4584
  the round Btn hangs up from it at the end corner while the reader is away from the end */
4493
4585
  .thread__end { position: sticky; bottom: 0; height: 0; margin-top: calc(-1 * var(--thread-gap, var(--sp-4))); display: grid; justify-items: end; z-index: 1; }
4494
4586
  .thread__jump { translate: 0 calc(-100% - var(--thread-jump-at, var(--sp-3))); }
4587
+ /* a Thread standing in a CardList between its cards (a feed, cardds#214): a bubble is no card, so it needs more room than the gap between two
4588
+ cards, the same over it and under it (the end room above is a chat's, for the bar under it) */
4589
+ .card-list > .thread { padding-block: var(--thread-room-size, var(--sp-4)); }
4495
4590
  .bubble__author + *::before { content: "·"; margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
4496
4591
  .bubble__author:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
4497
4592
  .bubble__day:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); } /* the day, then the time: "Dec 4 8:15" */
@@ -4518,20 +4613,51 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4518
4613
  font: var(--bubble-body-font, var(--type-body));
4519
4614
  overflow-wrap: anywhere;
4520
4615
  }
4521
- .bubble--right > .bubble__body {
4616
+ .bubble--right .bubble__body {
4522
4617
  border-bottom-left-radius: var(--r-card);
4523
4618
  border-bottom-right-radius: var(--bubble-tail-radius, var(--r-tail));
4524
4619
  background: var(--accent);
4620
+ --dark: var(--accent-dark); /* the accent fill's side: the muted ink of its quote follows it */
4525
4621
  color: var(--on-accent);
4526
4622
  text-align: right;
4527
4623
  }
4624
+ /* the line of the message this one answers (Bubble quote, cardds#227): first inside the body, over the words, one line cut with "…", a rule at its start as the
4625
+ MessageBar's quote has; its words and rule are the muted ink of the body's ground, so fainter than the words on a theirs and a mine bubble alike */
4626
+ .bubble__quote {
4627
+ display: block;
4628
+ margin-bottom: var(--sp-1);
4629
+ padding-inline-start: var(--sp-3);
4630
+ border-inline-start: var(--sp-1) solid var(--bubble-quote-rule-ink, var(--card-muted));
4631
+ font: var(--type-caption);
4632
+ color: var(--bubble-quote-ink, var(--card-muted));
4633
+ white-space: nowrap;
4634
+ overflow: hidden;
4635
+ text-overflow: ellipsis;
4636
+ text-align: start;
4637
+ }
4528
4638
  .bubble__meta { display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); font: var(--bubble-meta-font, var(--type-caption)); color: var(--bubble-meta-ink, var(--card-muted)); }
4529
4639
  .bubble--right > .bubble__meta { justify-self: end; }
4530
- .bubble__meta > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
4640
+ .bubble__meta > .icon, .bubble__time > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
4641
+ /* the line ABOVE the message (Bubble metaAbove, cardds#214): who sent it, read before the words — lead · name · time on one line, the bubble
4642
+ under it from the start edge (not led in beside the lead: that left a few words a line). The line comes first in the markup (the reader hears
4643
+ who, then what), the same meta line as below the message and its separators. The bubble hugs its words however long the line is
4644
+ (justify-items), and the line never wraps: the name gives way with "…", the lead and the time keep their size. Under the line --sp-2. */
4645
+ .bubble--meta-above { row-gap: var(--bubble-meta-above-gap, var(--sp-2)); justify-items: start; }
4646
+ .bubble--meta-above.bubble--right { justify-items: end; }
4647
+ .bubble--meta-above > .bubble__meta { min-width: 0; max-width: 100%; }
4648
+ .bubble__lead { flex: none; display: flex; margin-inline-end: var(--bubble-lead-gap, var(--sp-1)); } /* on top of the line's gap */
4649
+ .bubble--meta-above .bubble__author { flex: 0 1 auto; min-width: 0; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; white-space: nowrap; font: var(--bubble-author-font, var(--type-label)); color: var(--bubble-author-ink, var(--card-ink)); } /* clip SIDEWAYS only: hidden cut the Thai tone marks over the line */
4650
+ .bubble__time { flex: none; display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); white-space: nowrap; }
4651
+ /* the message with one round button of the app beside it (Bubble action, cardds#214): a row of the message and the button, the button on the
4652
+ side the thread's middle is (after theirs, before mine), centred on the message's height. The bubble's 75% cap holds both */
4653
+ .bubble__row { display: flex; align-items: center; gap: var(--bubble-action-gap, var(--sp-2)); min-width: 0; max-width: 100%; }
4654
+ .bubble--right .bubble__row { flex-direction: row-reverse; }
4655
+ .bubble__row > .bubble__body { flex: 0 1 auto; }
4656
+ .bubble__action { flex: none; display: grid; }
4531
4657
  /* a bubble that is a link or is pressed (Bubble href / onClick, Lh 2026-10-28): the press answer is the DIM (actions.css), no underline */
4532
4658
  a.bubble { color: inherit; text-decoration: none; }
4533
4659
  /* highlighted (Bubble highlighted): the message the member is looking at, a ring a hair outside its body */
4534
- .bubble--highlighted > .bubble__body { outline: var(--sp-0) solid var(--bubble-highlighted-ink, var(--accent)); outline-offset: var(--sp-0); }
4660
+ .bubble--highlighted .bubble__body { outline: var(--sp-0) solid var(--bubble-highlighted-ink, var(--accent)); outline-offset: var(--sp-0); }
4535
4661
 
4536
4662
  /* ---- timeline: a hairline with date chips, entries to the right ----
4537
4663
  <ol class="timeline"><li class="timeline__item"><span class="timeline__mark">Wed 14</span><p class="t-body">…</p></li>…</ol> */
@@ -4649,6 +4775,17 @@ a.bubble { color: inherit; text-decoration: none; }
4649
4775
  }
4650
4776
  .feed-card > .head:has(> .t-caption) > .lead { grid-row: span 2; }
4651
4777
 
4778
+ /* a filled lead (`Lead tone`, cardds#219): one colour of the set (tokens.css greys, palette.css colours), no outline (its border colour is clear, in a row card too), the ondark ink on it. It declares its side (dark)
4779
+ so inkGrounds() reads it as a dark ground, and names the ink itself: its ground is its own fill, not the card's */
4780
+ .lead--tone, :is(.card--row, .feed-card > .head) > .lead--tone { border-color: transparent; }
4781
+ .lead--tone { --dark: 1; background: var(--lead-bg, var(--_lead-fill)); color: var(--lead-ink, var(--ink-ondark)); }
4782
+ .lead--blue { --_lead-fill: var(--tone-blue); }
4783
+ .lead--green { --_lead-fill: var(--tone-green); }
4784
+ .lead--amber { --_lead-fill: var(--tone-amber); }
4785
+ .lead--red { --_lead-fill: var(--tone-red); }
4786
+ .lead--pink { --_lead-fill: var(--tone-pink); }
4787
+ .lead--violet { --_lead-fill: var(--tone-violet); }
4788
+
4652
4789
  /* ---- words: the title over its meta, taking the room between the lead and the end ---- */
4653
4790
  .words { flex: 1; display: grid; gap: var(--words-gap, var(--sp-0)); }
4654
4791
  .row > .words { min-width: 0; }
@@ -4663,7 +4800,8 @@ a.bubble { color: inherit; text-decoration: none; }
4663
4800
  }
4664
4801
  .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)); }
4665
4802
  .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
4666
- .row--done > .words > .words__title { color: var(--card-muted); }
4803
+ .row--done:not(.row--full-ink) > .words > .words__title { color: var(--card-muted); }
4804
+ .row--todo > .words > :is(.words__title, .words__meta) { color: var(--_todo-ink); } /* a to-do line fades: title and second line (Row todo, cardds#223) */
4667
4805
 
4668
4806
  /* ---- end: the value over its caption, right-aligned at the end of a line ---- */
4669
4807
  .end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
@@ -5234,6 +5372,20 @@ a.bubble { color: inherit; text-decoration: none; }
5234
5372
  :is(.sheet--peek, .sheet--away) > .foot { translate: 0 0; visibility: hidden; transition: translate var(--motion-sheet) var(--ease), visibility 0s var(--ease-linear) var(--motion-sheet); }
5235
5373
  /* a paper sheet's foot is paper, as its body is: the words read the controls' side */
5236
5374
  .sheet--paper > .foot { --card-bg: var(--action-bg); --dark: var(--action-dark); color: var(--foot-ink, var(--card-ink)); }
5375
+ /* layer (Foot layer, cardds#214): the strip behind a sheet's foot — the foot's own height and the room round it, --_foot, the strip the body stops above —
5376
+ has a ground of its own, edge to edge, so the foot reads as a layer apart from the words that scroll behind it. Painted on the foot's own layer, as the
5377
+ strip is (above): no padding, margin or height is added, so the body stops where it did. The ground is the sheet's, a little darker (8% of the dark ink
5378
+ over --card-bg: opaque, as the strip must be, and darker on a dark sheet too); the rule over it is the first --rule-w of the strip (a border would stand at the
5379
+ top of the sheet-tall layer). What stands on the strip keeps its own look: a MessageBar's box is still the paper. Knobs --foot-layer-bg, --foot-layer-rule-ink */
5380
+ .sheet > .foot.foot--layer {
5381
+ --_layer-bg: color-mix(in srgb, var(--ink-onlight) 8%, var(--card-bg));
5382
+ background-image:
5383
+ linear-gradient(var(--foot-layer-rule-ink, var(--hairline)), var(--foot-layer-rule-ink, var(--hairline))),
5384
+ linear-gradient(var(--foot-layer-bg, var(--_layer-bg)), var(--foot-layer-bg, var(--_layer-bg)));
5385
+ background-position: left 0 bottom calc(var(--_foot) - var(--rule-w)), left 0 bottom 0;
5386
+ background-size: 100% var(--rule-w), 100% var(--_foot);
5387
+ background-repeat: no-repeat;
5388
+ }
5237
5389
 
5238
5390
  /* ---- css/sticky.css — sticky note, its field, tone chooser, thread of posts, pile ---- */
5239
5391
  /* cardds — sticky notes: the paper note, the field written on it, the tone chooser, notes stuck on a page, a thread of posts, the answer note.
@@ -6502,6 +6654,39 @@ a.bubble { color: inherit; text-decoration: none; }
6502
6654
  .mosaic > :first-child { grid-row: span 2; }
6503
6655
  .mosaic > * { min-height: 0; border-radius: 0; } /* opacity/border-width here were no-ops: .ph restates its own below, and nothing else in a mosaic carries either by default */
6504
6656
  .mosaic > img { width: 100%; height: 100%; object-fit: cover; }
6657
+ /* two photos (cardds#226): side by side, one row, equally tall */
6658
+ .mosaic--2 { grid-template-columns: 1fr 1fr; }
6659
+ .mosaic--2 > :first-child { grid-row: auto; }
6660
+ /* four or more: the small lower photo is darkened with "+n", n the photos not shown. The darkening is the scrim twice (75% black): one scrim is 3.9:1 under white words over a white photo, two are 10.4:1 */
6661
+ .mosaic__more-cell { position: relative; display: grid; }
6662
+ .mosaic__more-cell > :first-child { width: 100%; height: 100%; min-height: 0; border-radius: 0; object-fit: cover; }
6663
+ .mosaic__more {
6664
+ position: absolute; inset: 0; display: grid; place-items: center;
6665
+ background: linear-gradient(var(--mosaic-more-bg, var(--scrim)), var(--mosaic-more-bg, var(--scrim))), var(--mosaic-more-bg, var(--scrim));
6666
+ color: var(--mosaic-more-ink, var(--ink-ondark));
6667
+ font: var(--mosaic-more-font, var(--type-title));
6668
+ }
6669
+
6670
+ /* ---- thumb: one small square photo that can be pressed, and the grid it stands in (cardds#232) ----
6671
+ <div class="thumb-grid"><button class="thumb" aria-label="Photo 1"><img src="…" alt=""></button>…</div>
6672
+ The photo only — no words over or under it. The whole square is the control (its press is the shared list at the end of actions.css). */
6673
+ .thumb-grid {
6674
+ display: grid;
6675
+ grid-template-columns: repeat(var(--thumb-grid-cols, 5), minmax(0, 1fr)); /* five to a row; the squares grow with the width they stand in */
6676
+ gap: var(--thumb-grid-gap, var(--sp-2));
6677
+ }
6678
+ .thumb {
6679
+ display: block;
6680
+ aspect-ratio: 1;
6681
+ min-width: 0;
6682
+ padding: 0;
6683
+ border: 0;
6684
+ background: none;
6685
+ color: inherit;
6686
+ border-radius: var(--thumb-radius, var(--r-control));
6687
+ overflow: hidden;
6688
+ }
6689
+ .thumb > img, .thumb > .ph { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; }
6505
6690
 
6506
6691
  /* ---- postcard: a member's introduction in the shape of a cover card — the photo fills it,
6507
6692
  the band at the bottom names it; tap the photo to turn it over (Lh 2026-09-12; reshaped 2026-09-22) ----
@@ -6631,8 +6816,8 @@ a.bubble { color: inherit; text-decoration: none; }
6631
6816
  1. the card drops in from above the stage to the screen's centre — its
6632
6817
  drawer still inside it, height 0: nothing of the ask shows yet
6633
6818
  2. the drawer comes out of the card's bottom edge while the lift moves
6634
- up, both at once: the card grows from its centre, which never moves
6635
- (the modal centres itself — absolute, margin auto; a growing card keeps its middle where it is)
6819
+ up, both at once: the card grows about its 40% point, which never moves
6820
+ (the modal stands itself on --screen-centre — absolute, margin auto; a growing card keeps that point where it is)
6636
6821
  Closing: <Modal open onClosed> — set open={false} and the Modal component plays the
6637
6822
  same animations in reverse (Animation.reverse() on each — nothing duplicated), then
6638
6823
  calls onClosed for the app to unmount the stage. Modal no longer knows its own
@@ -6640,14 +6825,16 @@ a.bubble { color: inherit; text-decoration: none; }
6640
6825
  sets open={false}).
6641
6826
  Reduced motion: the finished state, no beats; closing fires at once. */
6642
6827
  .modal {
6643
- position: absolute; /* at the stage's centre, and kept there as it grows: its middle is pinned at 50% and */
6644
- top: 50%; /* translate -50% of its OWN height re-centres it on every height. NOT inset 0 + margin auto + */
6828
+ position: absolute; /* at the stage's centre, and kept there as it grows: its 40% point is pinned at --screen-centre and */
6829
+ top: var(--screen-centre); /* translate -40% of its OWN height (--centre-lift) re-seats it on every height. NOT inset 0 + margin auto + */
6645
6830
  inset-inline: 0; /* align-self: center — Safari 18 ignores align-self on an absolute box in a block container, */
6646
6831
  margin-inline: auto; /* so the card stretched to the whole stage (iOS 18.6, Lh 2026-09-24); nor height: fit-content */
6647
- translate: 0 -50%;
6832
+ translate: 0 var(--centre-lift);
6648
6833
  width: calc(100% - 2 * var(--screen-pad));
6649
6834
  z-index: var(--z-over-2); /* over the dim stage's scrim (z 1) */
6650
- max-height: calc(100cqh - 2 * var(--sp-5)); /* cqh: the stage (a size container) */
6835
+ /* the cap, as a .card--centre's (card.css): its 40% above the point must clear the top bar's line (--_top) and the screen's gap, its 60% below
6836
+ must stay out of the bar's room (--bar-reserve); past that the body scrolls (the drawer keeps its height). % of the stage: it is the box it stands in */
6837
+ max-height: min((var(--screen-centre) - var(--_top, 0rem) - var(--screen-gap, var(--sp-5))) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
6651
6838
  padding: 0; /* the parts pad themselves */
6652
6839
  border: 0; /* no frame on the modal (Lh 2026-09-16) — its edge is the shadow */
6653
6840
  display: flex; /* a column: the lift shrinks (and scrolls) under max-height, the drawer keeps its height. NOT a grid */
@@ -6693,8 +6880,8 @@ a.bubble { color: inherit; text-decoration: none; }
6693
6880
  .modal { animation: modal-drop calc(2 * var(--motion-sheet)) var(--ease) both; }
6694
6881
  .modal__drawer { animation: modal-open calc(2 * var(--motion-sheet)) var(--ease) both; }
6695
6882
  @keyframes modal-drop {
6696
- 0% { translate: 0 calc(-50% - 100cqh); } /* above the stage */
6697
- 50%, 100% { translate: 0 -50%; } /* 1. at the centre — and it stays: beat 2 is the drawer's */
6883
+ 0% { translate: 0 calc(var(--centre-lift) - 100cqh); } /* above the stage */
6884
+ 50%, 100% { translate: 0 var(--centre-lift); } /* 1. at the centre — and it stays: beat 2 is the drawer's */
6698
6885
  }
6699
6886
  @keyframes modal-open {
6700
6887
  0%, 50% { height: 0; padding-block: 0; } /* inside the card */
@@ -6772,6 +6959,81 @@ a.bubble { color: inherit; text-decoration: none; }
6772
6959
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 calc(-1 * var(--sp-2)); } }
6773
6960
  }
6774
6961
 
6962
+ /* ---- popup: a panel hung under the button that opens it — a head and `Rows joined` flush to its edges (cardds#219) ----
6963
+ <button class="btn" popovertarget="inbox">…</button>
6964
+ <div class="popup popup--end" id="inbox" popover role="group"><div class="popup__head"><span class="words">…</span><button class="btn">Read all</button></div>
6965
+ <div class="rows rows--joined"><a class="row">…</a>…</div></div>
6966
+ Native popover, as .menu: light dismiss, Esc, top layer, anchored to its invoker where anchor positioning exists. It is a paper of its own (the card-1 ground, so
6967
+ the words on it follow that side), never wider than the room it has less its two margins, and scrolls inside itself when the room under the button is short: the head
6968
+ is sticky, opaque, so a row's fill passes under it. Without anchor positioning (iOS before 26) it hangs under the top bar: the margin from the screen's start edge,
6969
+ or from its end edge (a margin in) with .popup--end. .popup--end = the button is at the screen's right: the popup's right edge is --sp-2 in from the button's, it grows leftwards (as .menu--end), its far margin kept by max-width.
6970
+ Narrower than the cards under it (cardds#222, Lh 2026-11-17: "ซ้อนกันเกินไป"): a card stands --screen-pad in from the screen, so the popup stands --sp-2 in from the card's edge on the button's side and --sp-6 in on the far side — the card's edge shows on both. */
6971
+ .popup {
6972
+ --card-bg: var(--card-1-bg); /* the paper's own slot (a ring, a fold reads it); its side, the inks follow (tokens.css) */
6973
+ --dark: var(--card-1-dark);
6974
+ --_popup-w: calc(var(--tap-base) * 8); /* 384: the widest it grows */
6975
+ --_popup-max-h: calc(var(--tap-base) * 12); /* 576: the tallest it grows, short screens aside */
6976
+ --_popup-room: calc(100dvh - var(--safe-top) - var(--header-h) - var(--sp-2) - var(--popup-margin, var(--sp-3))); /* the room under the top bar; anchored, what is under the button (below) */
6977
+ --_popup-near: calc(var(--screen-pad) + var(--sp-2)); /* from the screen's edge, the button's side: --sp-2 inside the card's edge */
6978
+ --_popup-far: calc(var(--screen-pad) + var(--sp-6)); /* from the screen's edge, the far side: --sp-6 inside the card's edge */
6979
+ --_popup-m-near: var(--popup-margin, var(--_popup-near));
6980
+ --_popup-m-far: var(--popup-margin, var(--_popup-far));
6981
+ display: none; /* explicit closed state — never display on the base rule */
6982
+ margin: 0;
6983
+ padding: 0;
6984
+ inset: auto;
6985
+ inset-block-start: calc(var(--safe-top) + var(--header-h) + var(--sp-2));
6986
+ inset-inline-start: var(--_popup-m-near);
6987
+ width: var(--popup-w, var(--_popup-w));
6988
+ max-width: calc(100% - var(--_popup-m-near) - var(--_popup-m-far));
6989
+ max-height: min(var(--popup-max-h, var(--_popup-max-h)), var(--_popup-room));
6990
+ overflow-y: auto;
6991
+ overscroll-behavior: contain;
6992
+ background: var(--popup-bg, var(--card-bg));
6993
+ color: var(--card-ink);
6994
+ border: var(--border-w) solid var(--popup-border, var(--card-border));
6995
+ border-radius: var(--popup-radius, var(--r-card));
6996
+ box-shadow: var(--popup-shadow, var(--shadow-float));
6997
+ }
6998
+ .popup:popover-open { display: block; }
6999
+ .popup.\:popover-open { display: block; } /* the polyfill's open (iOS 16.4), its own rule as .menu's */
7000
+ .popup--end { inset-inline-start: auto; inset-inline-end: var(--_popup-m-near); }
7001
+ .popup__head {
7002
+ position: sticky;
7003
+ inset-block-start: 0;
7004
+ z-index: var(--z-over);
7005
+ display: flex;
7006
+ align-items: center;
7007
+ gap: var(--popup-head-gap, var(--sp-3));
7008
+ padding: var(--popup-pad-y, var(--sp-3)) var(--popup-pad-x, var(--sp-4));
7009
+ background: var(--popup-bg, var(--card-bg)); /* opaque: what scrolls under it is hidden, a row's fill too */
7010
+ border-bottom: var(--border-w) solid var(--hairline);
7011
+ }
7012
+ .popup__head > .words { flex: 1; min-width: 0; }
7013
+ .popup__head > :not(.words) { flex: none; }
7014
+ @supports (anchor-name: --a) {
7015
+ .popup[popover] {
7016
+ position-area: block-end span-inline-end; /* from the button's start edge, rightwards */
7017
+ inset: auto;
7018
+ margin-block: var(--sp-2) var(--popup-margin, var(--sp-3));
7019
+ --_popup-near: var(--sp-2); /* the area starts at the button, whose edge is the card's: the margin is measured from it */
7020
+ margin-inline: var(--_popup-m-near) var(--_popup-m-far);
7021
+ --_popup-room: calc(100% - var(--sp-2) - var(--popup-margin, var(--sp-3))); /* % of the area under the button */
7022
+ position-try-fallbacks: flip-block;
7023
+ }
7024
+ .popup--end[popover] { position-area: block-end span-inline-start; margin-inline: var(--_popup-m-far) var(--_popup-m-near); } /* the button's right edge, leftwards (as .menu--end): the area starts at the screen's left, so the far margin is from the screen */
7025
+ }
7026
+ @media (prefers-reduced-motion: no-preference) {
7027
+ .popup[popover] {
7028
+ opacity: 0;
7029
+ translate: 0 calc(-1 * var(--sp-2));
7030
+ transition: display var(--motion-quick) allow-discrete, overlay var(--motion-quick) allow-discrete, opacity var(--motion-quick), translate var(--motion-quick);
7031
+ }
7032
+ .popup:popover-open { opacity: 1; translate: 0 0; }
7033
+ .popup.\:popover-open { opacity: 1; translate: 0 0; }
7034
+ @starting-style { .popup:popover-open { opacity: 0; translate: 0 calc(-1 * var(--sp-2)); } }
7035
+ }
7036
+
6775
7037
  /* ---- banner: ONE band — the line that opens it and the body share one ground (Lh 2026-09-24: "ปุ่มกับเนื้อหาใช้พื้นที่เดียวกัน") ----
6776
7038
  <details class="banner"><summary class="banner__summary">Save 2 h… <svg class="icon icon--xs"/></summary>
6777
7039
  <div class="banner__body">…</div></details>
@@ -6900,12 +7162,12 @@ a.bubble { color: inherit; text-decoration: none; }
6900
7162
  /* ---- splash: the app's mark at the human centre while it boots (Lh 2026-09-24) ----
6901
7163
  <section class="screen screen--fill splash"><div class="splash__group"><div class="splash__mark">{the app's lottie/img}</div>
6902
7164
  <p class="splash__text">…</p></div></section>
6903
- The group's MIDDLE is on --screen-centre (40% down), the same line a centred card uses. The mark is the app's own content —
7165
+ The group's own 40% point is on --screen-centre (40% down), the same line a centred card uses. The mark is the app's own content —
6904
7166
  a lottie box often carries empty room around its drawing — the app sets the knobs below, cardds does not guess it. */
6905
7167
  .splash { position: relative; background: var(--splash-bg, var(--surface)); transition: opacity var(--motion-sheet) var(--ease); }
6906
7168
  .splash--leaving { opacity: 0; }
6907
7169
  .splash__group {
6908
- position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 -50%;
7170
+ position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 var(--centre-lift);
6909
7171
  display: grid; justify-items: center; gap: var(--splash-gap, var(--sp-4)); text-align: center;
6910
7172
  }
6911
7173
  .splash__mark { width: var(--splash-mark-w, 60%); max-width: 100%; translate: var(--splash-mark-x, 0) var(--splash-mark-y, 0); }