@mistriwork/kit 1.0.0-rc.57 → 1.0.0-rc.59

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 (158) hide show
  1. package/dist/client/app.js +14 -2
  2. package/dist/client/audience.d.ts +1 -0
  3. package/dist/client/audience.js +10 -0
  4. package/dist/client/brandLook.css +49 -1
  5. package/dist/client/components/AppColumnMenuPopups.js +41 -11
  6. package/dist/client/components/AppList.d.ts +3 -1
  7. package/dist/client/components/AppList.js +77 -15
  8. package/dist/client/components/CardsList.js +14 -1
  9. package/dist/client/components/Chart.css +4 -0
  10. package/dist/client/components/Chart.d.ts +4 -4
  11. package/dist/client/components/Chart.js +30 -9
  12. package/dist/client/components/Content.js +3 -1
  13. package/dist/client/components/DateField.css +1 -1
  14. package/dist/client/components/DateField.js +1 -0
  15. package/dist/client/components/DefinedFields.js +2 -2
  16. package/dist/client/components/Diagram.css +82 -0
  17. package/dist/client/components/Diagram.d.ts +1 -0
  18. package/dist/client/components/Diagram.js +1 -0
  19. package/dist/client/components/Dressed.js +1 -1
  20. package/dist/client/components/Editable.js +7 -3
  21. package/dist/client/components/Export.js +1 -1
  22. package/dist/client/components/FilterBoxes.js +2 -2
  23. package/dist/client/components/FilterRail.css +1 -1
  24. package/dist/client/components/FilterRail.js +6 -4
  25. package/dist/client/components/Gallery.css +171 -0
  26. package/dist/client/components/Gallery.d.ts +1 -0
  27. package/dist/client/components/Gallery.js +1 -0
  28. package/dist/client/components/Grid.d.ts +2 -1
  29. package/dist/client/components/Grid.js +78 -24
  30. package/dist/client/components/GridCellEditor.js +4 -2
  31. package/dist/client/components/GridSelection.d.ts +4 -1
  32. package/dist/client/components/GridSelection.js +20 -3
  33. package/dist/client/components/LandingSurface.css +2 -2
  34. package/dist/client/components/LayoutBuilder.css +225 -0
  35. package/dist/client/components/LayoutBuilder.d.ts +1 -0
  36. package/dist/client/components/LayoutBuilder.js +1 -0
  37. package/dist/client/components/ListColumns.d.ts +12 -0
  38. package/dist/client/components/ListColumns.js +61 -0
  39. package/dist/client/components/ListFilterBar.css +39 -14
  40. package/dist/client/components/ListFilterBar.js +39 -23
  41. package/dist/client/components/MultiStepForm.css +22 -22
  42. package/dist/client/components/NewRecord.js +120 -104
  43. package/dist/client/components/Notes.css +9 -0
  44. package/dist/client/components/Notes.d.ts +6 -2
  45. package/dist/client/components/Notes.js +10 -6
  46. package/dist/client/components/OverflowMenu.js +16 -11
  47. package/dist/client/components/PageFields.js +19 -4
  48. package/dist/client/components/PageRelated.d.ts +8 -1
  49. package/dist/client/components/PageRelated.js +46 -33
  50. package/dist/client/components/PageSections.js +18 -5
  51. package/dist/client/components/Palette.js +1 -1
  52. package/dist/client/components/Prefs.d.ts +10 -0
  53. package/dist/client/components/Prefs.js +33 -23
  54. package/dist/client/components/PresentationSwitch.js +4 -0
  55. package/dist/client/components/Prompt.js +4 -4
  56. package/dist/client/components/RecordGone.js +4 -4
  57. package/dist/client/components/RecordPicker.js +24 -6
  58. package/dist/client/components/RecordSummaries.js +31 -5
  59. package/dist/client/components/RecordTrailNav.js +4 -0
  60. package/dist/client/components/RichTextEditor.css +2 -2
  61. package/dist/client/components/RichTextEditor.js +18 -19
  62. package/dist/client/components/Rooms.js +22 -4
  63. package/dist/client/components/SectionPeriod.css +1 -1
  64. package/dist/client/components/SetFieldDialog.js +1 -1
  65. package/dist/client/components/Sidebar.js +8 -5
  66. package/dist/client/components/SuggestBox.js +2 -2
  67. package/dist/client/components/TableRoom.d.ts +5 -1
  68. package/dist/client/components/TableRoom.js +29 -10
  69. package/dist/client/components/TableView.js +1 -1
  70. package/dist/client/components/ThMenu.js +26 -15
  71. package/dist/client/components/Tour.css +96 -0
  72. package/dist/client/components/Tour.d.ts +1 -0
  73. package/dist/client/components/Tour.js +1 -0
  74. package/dist/client/components/TreePicker.css +1 -1
  75. package/dist/client/components/TreePicker.js +27 -20
  76. package/dist/client/components/Value.js +4 -1
  77. package/dist/client/components/WorkflowStatus.js +8 -4
  78. package/dist/client/components/appListModel.d.ts +4 -0
  79. package/dist/client/components/appRooms.d.ts +2 -0
  80. package/dist/client/components/appRooms.js +2 -0
  81. package/dist/client/components/boardNew.d.ts +5 -0
  82. package/dist/client/components/boardNew.js +5 -0
  83. package/dist/client/components/conditionWords.d.ts +10 -0
  84. package/dist/client/components/conditionWords.js +20 -0
  85. package/dist/client/components/dashboardModel.d.ts +8 -0
  86. package/dist/client/components/dashboardModel.js +28 -1
  87. package/dist/client/components/editInteraction.d.ts +1 -1
  88. package/dist/client/components/editInteraction.js +1 -1
  89. package/dist/client/components/gridSizing.d.ts +14 -20
  90. package/dist/client/components/gridSizing.js +147 -108
  91. package/dist/client/components/pageContext.d.ts +3 -2
  92. package/dist/client/components/pageModel.d.ts +2 -0
  93. package/dist/client/components/pickerStaleness.d.ts +11 -1
  94. package/dist/client/components/pickerStaleness.js +12 -2
  95. package/dist/client/components/rowTitle.d.ts +2 -0
  96. package/dist/client/components/rowTitle.js +10 -0
  97. package/dist/client/components/textMeasure.js +72 -3
  98. package/dist/client/components/useConditionWords.d.ts +5 -0
  99. package/dist/client/components/useConditionWords.js +3 -1
  100. package/dist/client/components/useGridKeyboard.js +5 -0
  101. package/dist/client/components/valueModel.d.ts +1 -0
  102. package/dist/client/components/valueModel.js +39 -4
  103. package/dist/client/composer.css +2 -2
  104. package/dist/client/copy/es.js +3 -3
  105. package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
  106. package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
  107. package/dist/client/copy/forms/components/DateField.d.ts +2 -0
  108. package/dist/client/copy/forms/components/DateField.js +2 -0
  109. package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
  110. package/dist/client/copy/forms/components/NewRecord.js +2 -0
  111. package/dist/client/copy/lists/components/AppList.d.ts +2 -0
  112. package/dist/client/copy/lists/components/AppList.js +2 -0
  113. package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
  114. package/dist/client/copy/lists/components/GridSelection.js +1 -0
  115. package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
  116. package/dist/client/copy/lists/components/ListColumns.js +7 -0
  117. package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
  118. package/dist/client/copy/lists/components/TableRoom.js +3 -1
  119. package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
  120. package/dist/client/copy/record/components/PageHistory.js +4 -2
  121. package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
  122. package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
  123. package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
  124. package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
  125. package/dist/client/customThemes.css +3 -3
  126. package/dist/client/dom.js +5 -5
  127. package/dist/client/features.css +216 -356
  128. package/dist/client/fonts/Manrope-OFL.txt +93 -0
  129. package/dist/client/fonts/faces.css +10 -1
  130. package/dist/client/fonts/manrope-latin.woff2 +0 -0
  131. package/dist/client/formControls.css +4 -4
  132. package/dist/client/help.css +2 -2
  133. package/dist/client/ledgerLook.css +28 -0
  134. package/dist/client/locale.d.ts +2 -10
  135. package/dist/client/locale.js +0 -0
  136. package/dist/client/lumenLook.css +295 -105
  137. package/dist/client/manropeFace.css +32 -0
  138. package/dist/client/messages.d.ts +3 -3
  139. package/dist/client/messages.js +3 -3
  140. package/dist/client/page.css +98 -354
  141. package/dist/client/palette.js +31 -6
  142. package/dist/client/partsLook.css +60 -60
  143. package/dist/client/sageLook.css +101 -32
  144. package/dist/client/shellHost.d.ts +2 -2
  145. package/dist/client/shellHost.js +2 -2
  146. package/dist/client/shellMode.d.ts +9 -0
  147. package/dist/client/shellMode.js +2 -0
  148. package/dist/client/structure.css +281 -201
  149. package/dist/client/style.css +75 -224
  150. package/dist/client/themeFamilies.css +471 -66
  151. package/dist/client/tilesLook.css +502 -0
  152. package/dist/client/visualTheme.js +5 -2
  153. package/dist/client/visualThemes.css +38 -34
  154. package/dist/client/workbenchLook.css +12 -12
  155. package/dist/client/workshopLook.css +3 -8
  156. package/dist/vite.d.ts +1 -20
  157. package/dist/vite.js +33 -3
  158. package/package.json +8 -7
@@ -55,21 +55,21 @@
55
55
  it replaces rather than like a form control, because it is still the name
56
56
  of what you are looking at — the caret is the only thing saying there is
57
57
  more than one of them. */
58
- .page-title-pick .dd-button {
58
+ .page-title-pick [data-slot='select-trigger'] {
59
59
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
60
60
  border-color: transparent;
61
61
  background: none;
62
62
  }
63
- .page-title-pick .dd-value {
63
+ .page-title-pick [data-slot='select-value'] {
64
64
  font: 620 calc(17px * var(--type-k)) var(--mono);
65
65
  letter-spacing: -0.01em;
66
66
  color: var(--ink);
67
67
  }
68
- .page-title-pick .dd-button:hover {
68
+ .page-title-pick [data-slot='select-trigger']:hover {
69
69
  border-color: var(--line);
70
70
  background: var(--raised);
71
71
  }
72
- .page-title-pick .dd-list {
72
+ .page-title-pick :is([data-slot='select-content'], [data-slot='menu-content']) {
73
73
  min-width: 16rem;
74
74
  }
75
75
  /* The Edit control to the far right; everything else keeps to the left, so
@@ -167,14 +167,17 @@
167
167
  .page-section .table-wrap {
168
168
  padding-bottom: 0;
169
169
  }
170
- /* A table's first column starts on its section's heading, not 14px in from it (a room has one content edge). The
171
- edge cells keep their 14px, which is what a frozen column needs (style.css, .table-wrap): the wrap itself
172
- reaches out by that much on its start side only, so the text sits on the heading's line and nothing stands past the section's far edge.
173
- A section that is a box (Lumen's card, Sage's panel) sets its own bleed and keeps the inset it gives. */
170
+ /* A table starts on its section's heading, not 14px in from it and not 14px out (a room has one content edge): its
171
+ first column's words and the rules under its rows both begin on the heading's line, as a room's own grid does
172
+ (style.css, .grid-inset). The wrap reached out by the first cell's 14px to put the words there, which left every
173
+ rule starting left of the title it stands under. A section that is a box (Lumen's card, Sage's panel) sets its own
174
+ bleed and keeps the inset it gives. */
174
175
  .page-section .table-wrap {
175
- margin-inline-start: -14px;
176
176
  max-width: none;
177
177
  }
178
+ .page-section .table-wrap :is(th, td):where(:not([data-slot])):first-child {
179
+ padding-left: 0;
180
+ }
178
181
  /* A section's table scrolls sideways only; it grows to its rows. `overflow-x: auto` alone makes it a vertical scroller
179
182
  too, and a sliver of vertical overflow (a row a pixel taller in another font, Lumen's card) let it take a wheel
180
183
  turned over it and keep it, so the record stopped short of its end (e2e/scrolling.spec.ts, on an iPad). */
@@ -641,7 +644,7 @@
641
644
  then how you are reading it. Without a record the page name stays the
642
645
  heading, because then it is the room. */
643
646
  .page-head.has-record .page-title,
644
- .page-head.has-record .page-title-pick .dd-value {
647
+ .page-head.has-record .page-title-pick [data-slot='select-value'] {
645
648
  font: 500 var(--text-xs) var(--mono);
646
649
  text-transform: uppercase;
647
650
  letter-spacing: 0.06em;
@@ -692,7 +695,7 @@
692
695
  .page-action {
693
696
  font-size: var(--text-sm);
694
697
  padding: var(--space-2) var(--space-4);
695
- min-height: 30px;
698
+ min-height: var(--control-h-sm);
696
699
  }
697
700
  button.ghost.page-action {
698
701
  color: var(--ink);
@@ -1226,7 +1229,7 @@
1226
1229
  font: var(--text-xs) var(--sans);
1227
1230
  color: var(--ink-muted);
1228
1231
  }
1229
- .page-preview.modal {
1232
+ .page-preview[data-slot='dialog-content'][data-kind='modal'] {
1230
1233
  width: 1400px;
1231
1234
  max-width: calc(100% - 24px);
1232
1235
  height: 90%;
@@ -1239,7 +1242,7 @@
1239
1242
  background: var(--surface);
1240
1243
  color: var(--ink);
1241
1244
  }
1242
- :where(:root:not([data-visual-theme])) .page-preview.modal {
1245
+ :where(:root:not([data-visual-theme])) .page-preview[data-slot='dialog-content'][data-kind='modal'] {
1243
1246
  border-radius: 6px;
1244
1247
  }
1245
1248
  .page-preview-head {
@@ -1288,14 +1291,6 @@
1288
1291
  opacity: 0.55;
1289
1292
  cursor: wait;
1290
1293
  }
1291
-
1292
- .pb-label {
1293
- font: var(--text-xs) var(--mono);
1294
- text-transform: uppercase;
1295
- letter-spacing: 0.06em;
1296
- color: var(--ink-subtle);
1297
- flex: none;
1298
- }
1299
1294
  .pb-name-row {
1300
1295
  display: flex;
1301
1296
  align-items: center;
@@ -1325,7 +1320,7 @@
1325
1320
  font: var(--text-base) var(--sans);
1326
1321
  border-radius: 0;
1327
1322
  }
1328
- .page-field .cell-edit-control :is(.dd-button, .date-field-input) {
1323
+ .page-field .cell-edit-control :is([data-slot='select-trigger'],:is([data-slot='date-field'] > [data-slot='input'])) {
1329
1324
  font: var(--text-base) var(--sans);
1330
1325
  }
1331
1326
  .pb-advanced {
@@ -1348,15 +1343,15 @@
1348
1343
  with its own type and its own corners, in a dialog that has neither. It is
1349
1344
  the one control a page cannot style, which is exactly why this codebase
1350
1345
  already had a replacement; the builder was simply not using it. */
1351
- .pb-section .dd {
1346
+ .pb-section [data-slot='dropdown'] {
1352
1347
  flex: none;
1353
1348
  }
1354
- .pb-section .dd-button {
1349
+ .pb-section [data-slot='select-trigger'] {
1355
1350
  padding: var(--space-2) var(--space-3);
1356
1351
  font: var(--text-xs) var(--mono);
1357
1352
  min-width: 5.5rem;
1358
1353
  }
1359
- .pb-section .dd-list {
1354
+ .pb-section :is([data-slot='select-content'], [data-slot='menu-content']) {
1360
1355
  min-width: 12rem;
1361
1356
  }
1362
1357
 
@@ -1441,9 +1436,6 @@
1441
1436
  opacity: 0.3;
1442
1437
  cursor: default;
1443
1438
  }
1444
- .pb-remove:hover {
1445
- color: var(--status-critical);
1446
- }
1447
1439
 
1448
1440
  .pb-add {
1449
1441
  display: flex;
@@ -1545,9 +1537,6 @@
1545
1537
  align-items: center;
1546
1538
  gap: var(--space-3);
1547
1539
  }
1548
- .pb-spacer {
1549
- flex: 1 1 auto;
1550
- }
1551
1540
  .pb-json {
1552
1541
  font-size: var(--text-xs);
1553
1542
  }
@@ -1561,29 +1550,6 @@
1561
1550
  flex-direction: column;
1562
1551
  }
1563
1552
 
1564
- .pb-panel {
1565
- margin: 0 var(--space-3) var(--space-1);
1566
- padding: var(--space-3) var(--space-3h) var(--space-3h);
1567
- background: var(--raised);
1568
- border: 1px solid var(--line);
1569
- border-top: none;
1570
- border-radius: 0 0 var(--radius) var(--radius);
1571
- }
1572
- .pb-panel-head {
1573
- display: flex;
1574
- align-items: baseline;
1575
- gap: var(--space-3);
1576
- margin-bottom: var(--space-2h);
1577
- }
1578
- .pb-panel-head button {
1579
- padding: var(--space-1) var(--space-3);
1580
- font-size: var(--text-xs);
1581
- }
1582
- .pb-field-count {
1583
- font: var(--text-xs) var(--mono);
1584
- color: var(--ink-subtle);
1585
- }
1586
-
1587
1553
  /* Several across, because forty names in one column is a scroll and the names
1588
1554
  are short enough to read three or four abreast. */
1589
1555
  .pb-field-grid {
@@ -1611,114 +1577,6 @@
1611
1577
  flex: none;
1612
1578
  margin: 0;
1613
1579
  }
1614
- .pb-field-name {
1615
- font: var(--text-sm) var(--mono);
1616
- color: var(--ink);
1617
- overflow: hidden;
1618
- text-overflow: ellipsis;
1619
- white-space: nowrap;
1620
- }
1621
- .pb-field-type {
1622
- font: var(--text-xs) var(--mono);
1623
- color: var(--ink-subtle);
1624
- flex: none;
1625
- }
1626
-
1627
- /* The fields on a group, laid out the way the page will lay them out — same
1628
- column count, same order — so arranging them is done on a picture of the
1629
- result rather than on a list that has to be imagined into one. */
1630
- .pb-arrange {
1631
- display: grid;
1632
- gap: var(--space-1) var(--space-3h);
1633
- max-height: 34vh;
1634
- overflow-y: auto;
1635
- margin-bottom: var(--space-3);
1636
- }
1637
- .pb-arrange-row {
1638
- display: flex;
1639
- align-items: baseline;
1640
- gap: var(--space-3);
1641
- padding: var(--space-1h) var(--space-2) var(--space-1h) var(--space-1);
1642
- border-radius: var(--radius);
1643
- background: var(--surface);
1644
- border: 1px solid var(--line);
1645
- cursor: grab;
1646
- min-width: 0;
1647
- position: relative;
1648
- }
1649
- .pb-arrange-row:focus-visible {
1650
- outline: var(--focus-width) solid var(--focus);
1651
- outline-offset: 1px;
1652
- }
1653
- .pb-arrange-row.dragging {
1654
- opacity: 0.45;
1655
- cursor: grabbing;
1656
- }
1657
- .pb-arrange-row .pb-field-name {
1658
- flex: 1;
1659
- }
1660
- .pb-grip {
1661
- font: var(--text-sm) var(--mono);
1662
- color: var(--ink-subtle);
1663
- letter-spacing: -1px;
1664
- flex: none;
1665
- transform: rotate(90deg);
1666
- }
1667
- .pb-arrange-row .pb-send,
1668
- .pb-arrange-row .pb-remove {
1669
- flex: none;
1670
- padding: 0 var(--space-2);
1671
- font-size: var(--text-xs);
1672
- line-height: 1.6;
1673
- opacity: 0;
1674
- }
1675
- @media (prefers-reduced-motion: no-preference) {
1676
- .pb-arrange-row .pb-send,
1677
- .pb-arrange-row .pb-remove {
1678
- transition: opacity var(--t-hover) var(--ease-out);
1679
- }
1680
- }
1681
- .pb-arrange-row:hover .pb-send,
1682
- .pb-arrange-row:hover .pb-remove,
1683
- .pb-arrange-row:focus-within .pb-send,
1684
- .pb-arrange-row:focus-within .pb-remove {
1685
- opacity: 1;
1686
- }
1687
-
1688
- /* Which group to send a field to, opened in the row itself: a dialog here
1689
- would cover the arrangement being made. */
1690
- .pb-send-menu {
1691
- position: absolute;
1692
- z-index: 3;
1693
- top: 100%;
1694
- right: 0;
1695
- display: flex;
1696
- flex-direction: column;
1697
- background: var(--surface);
1698
- border: 1px solid var(--line);
1699
- border-radius: var(--radius);
1700
- padding: var(--space-1h);
1701
- gap: var(--space-1);
1702
- box-shadow: var(--shadow, var(--shadow-pop));
1703
- }
1704
- .pb-send-menu button {
1705
- font-size: var(--text-xs);
1706
- text-align: left;
1707
- white-space: nowrap;
1708
- }
1709
-
1710
- /* Everything not on the page, as chips: short names, many of them, and each
1711
- one click from being added. */
1712
- .pb-pool {
1713
- display: flex;
1714
- flex-wrap: wrap;
1715
- align-items: baseline;
1716
- gap: var(--space-2);
1717
- }
1718
- .pb-add-field {
1719
- font: var(--text-xs) var(--mono);
1720
- padding: var(--space-1) var(--space-3);
1721
- }
1722
1580
 
1723
1581
  /* A hidden section keeps its row and stops looking live. */
1724
1582
  .pb-section.pb-hidden {
@@ -2230,6 +2088,27 @@
2230
2088
  outline: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line));
2231
2089
  outline-offset: -1px;
2232
2090
  }
2091
+ /* The ways off the road (cancelled, returned): said quietly under the steps, apart from them, since none is the next
2092
+ step. The one the record ended in is in the ink. */
2093
+ .workflow-outcomes {
2094
+ display: flex;
2095
+ flex-wrap: wrap;
2096
+ gap: var(--space-2) var(--space-4);
2097
+ list-style: none;
2098
+ padding: 0;
2099
+ margin: var(--space-3) 0 0;
2100
+ font-size: var(--text-sm);
2101
+ color: var(--ink-muted);
2102
+ }
2103
+ /* Named, so two words under a road do not read as strays: the list's own name, said once before them. */
2104
+ .workflow-outcomes::before {
2105
+ content: attr(aria-label);
2106
+ color: var(--ink-subtle);
2107
+ }
2108
+ .workflow-outcomes li[aria-current='step'] {
2109
+ color: var(--ink);
2110
+ font-weight: 600;
2111
+ }
2233
2112
  .workflow-unmapped {
2234
2113
  margin: var(--space-3) 0 0;
2235
2114
  font-size: var(--text-base);
@@ -2294,6 +2173,16 @@
2294
2173
  text-overflow: clip;
2295
2174
  overflow-wrap: anywhere;
2296
2175
  }
2176
+ /* A figure's note (`notes`): one quiet line under it, in the text face at the caption's size whatever the figure
2177
+ is set in, so "3 charges open" is read as words about the number and never as a second number. */
2178
+ .page-field-summary .page-field > dd > .page-field-note {
2179
+ display: block;
2180
+ margin-top: var(--space-2);
2181
+ font: 400 var(--text-sm)/1.4 var(--sans);
2182
+ letter-spacing: 0;
2183
+ color: var(--ink-muted);
2184
+ font-variant-numeric: normal;
2185
+ }
2297
2186
  /* Prose under its section's title (a description): a paragraph, not a figure. */
2298
2187
  .page-field-summary .page-field.page-field-prose > dd {
2299
2188
  font: 400 calc(15px * var(--type-k))/1.55 var(--sans);
@@ -2530,21 +2419,6 @@
2530
2419
  gap: var(--space-3h);
2531
2420
  min-width: 0;
2532
2421
  }
2533
- .gallery-lead {
2534
- position: relative;
2535
- display: block;
2536
- width: 100%;
2537
- padding: 0;
2538
- aspect-ratio: 4 / 3;
2539
- overflow: hidden;
2540
- /* Held short enough that the thumbnails show under it on a laptop screen:
2541
- the height the screen has left under the title, as a 4:3 width. The
2542
- zoom-corrected height, since vh units ignore the density zoom. */
2543
- max-width: min(100%, calc((var(--shell-vh, 100vh) - 400px) * 4 / 3));
2544
- border: 1px solid var(--line);
2545
- border-radius: var(--radius);
2546
- background: var(--raised);
2547
- }
2548
2422
  /* Beside an offer card the gallery leads the page, so its photo takes the
2549
2423
  column's width in a 16:9 frame (covered, centred): as wide as the room and
2550
2424
  still short enough for the thumbnails above the fold. The thumbnails and
@@ -2556,164 +2430,12 @@
2556
2430
  max-width: min(100%, calc((var(--shell-vh, 100vh) - 380px) * 16 / 9));
2557
2431
  }
2558
2432
  }
2559
- /* What opens the photo: a button over the frame, stopping at the steps' columns (a step's 40px at 10px from the
2560
- edge, and its hit area's 2px either side) so a step and the photo are side by side, never one over the other. */
2561
- .gallery-open {
2562
- position: absolute;
2563
- inset: 0;
2564
- padding: 0;
2565
- border: 0;
2566
- border-radius: inherit;
2567
- background: transparent;
2568
- cursor: zoom-in;
2569
- }
2570
- .gallery-lead.has-steps > .gallery-open {
2571
- inset: 0 56px;
2572
- }
2573
- .gallery-open:focus-visible {
2574
- outline: none;
2575
- }
2576
- .gallery-lead:has(> .gallery-open:focus-visible) {
2577
- outline: var(--focus-width) solid var(--focus);
2578
- outline-offset: 2px;
2579
- }
2580
- .gallery-lead-image {
2581
- display: block;
2582
- width: 100%;
2583
- height: 100%;
2584
- object-fit: cover;
2585
- }
2586
- .gallery-count {
2587
- position: absolute;
2588
- right: 10px;
2589
- bottom: 10px;
2590
- padding: var(--space-1h) var(--space-3);
2591
- border-radius: 999px;
2592
- background: var(--lightbox-ground);
2593
- color: var(--lightbox-ink);
2594
- font: 500 var(--text-sm) var(--sans);
2595
- font-variant-numeric: tabular-nums;
2596
- }
2597
- /* The lead's previous and next: square, on the photo stage's scrim, at the
2598
- photo's middle. Quiet until the stage is hovered or holds focus where a
2599
- pointer can hover; always there on touch, where nothing hovers. */
2600
- .gallery-stage {
2601
- position: relative;
2602
- min-width: 0;
2603
- }
2604
- .gallery-step {
2605
- position: absolute;
2606
- top: 50%;
2607
- translate: 0 -50%;
2608
- display: grid;
2609
- place-items: center;
2610
- width: 40px;
2611
- height: 40px;
2612
- padding: 0;
2613
- border: 0;
2614
- border-radius: var(--radius);
2615
- background: var(--lightbox-ground);
2616
- color: var(--lightbox-ink);
2617
- cursor: pointer;
2618
- }
2619
- /* On a touch screen a step's 40px takes a 44px hit area, as the chrome's small controls do (structure.css); it
2620
- reaches 2px past the step, short of the photo's button. */
2621
- @media (pointer: coarse) {
2622
- .gallery-step::after {
2623
- content: '';
2624
- position: absolute;
2625
- left: 50%;
2626
- top: 50%;
2627
- width: 44px;
2628
- height: 44px;
2629
- transform: translate(-50%, -50%);
2630
- }
2631
- }
2632
- .gallery-step.is-prev {
2633
- left: 10px;
2634
- }
2635
- .gallery-step.is-next {
2636
- right: 10px;
2637
- }
2638
- .gallery-step:focus-visible {
2639
- outline: var(--focus-width) solid var(--focus);
2640
- outline-offset: 2px;
2641
- }
2642
- @media (hover: hover) {
2643
- .gallery-step {
2644
- opacity: 0;
2645
- }
2646
- .gallery-stage:hover .gallery-step,
2647
- .gallery-stage:focus-within .gallery-step {
2648
- opacity: 1;
2649
- }
2650
- }
2651
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
2652
- .gallery-step {
2653
- transition: opacity var(--t-hover) var(--ease-out);
2654
- }
2655
- }
2656
- .gallery-caption {
2657
- margin: 0;
2658
- color: var(--ink-muted);
2659
- font-size: var(--text-base);
2660
- }
2661
- .gallery-strip {
2662
- display: flex;
2663
- gap: var(--space-3);
2664
- overflow-x: auto;
2665
- padding: var(--space-1);
2666
- scrollbar-width: thin;
2667
- }
2668
- .gallery-thumb {
2669
- flex: none;
2670
- width: 96px;
2671
- aspect-ratio: 4 / 3;
2672
- padding: 0;
2673
- overflow: hidden;
2674
- cursor: pointer;
2675
- border: 1px solid var(--line);
2676
- border-radius: calc(var(--radius) - 2px);
2677
- background: var(--raised);
2678
- opacity: 0.78;
2679
- transition:
2680
- opacity var(--t-hover) var(--ease-out),
2681
- border-color var(--t-hover) var(--ease-out);
2682
- }
2683
- .gallery-thumb img {
2684
- display: block;
2685
- width: 100%;
2686
- height: 100%;
2687
- object-fit: cover;
2688
- }
2689
- .gallery-thumb:hover {
2690
- opacity: 1;
2691
- }
2692
- .gallery-thumb[aria-current='true'] {
2693
- opacity: 1;
2694
- border-color: var(--accent);
2695
- box-shadow: 0 0 0 1px var(--accent);
2696
- }
2697
- .gallery-thumb:focus-visible {
2698
- outline: var(--focus-width) solid var(--focus);
2699
- outline-offset: 2px;
2700
- }
2701
- @media (max-width: 600px) {
2702
- .gallery-thumb {
2703
- width: 72px;
2704
- }
2705
- }
2706
- @media (prefers-reduced-motion: reduce) {
2707
- .gallery-thumb {
2708
- transition: none;
2709
- }
2710
- }
2711
2433
 
2712
2434
  /* The lightbox: the photo on a deep ground that is the same in both themes,
2713
2435
  because a photograph is judged against dark, whatever the page is. The
2714
2436
  ground and its ink are tokens (style.css); the box enters with the
2715
2437
  popover's fade where motion is welcome and leaves at once. */
2716
- .lightbox-backdrop {
2438
+ [data-slot='dialog-backdrop'][data-for='lightbox'] {
2717
2439
  position: fixed;
2718
2440
  inset: 0;
2719
2441
  z-index: 400;
@@ -2848,13 +2570,11 @@
2848
2570
  }
2849
2571
  }
2850
2572
  @media (prefers-reduced-motion: no-preference) {
2851
- .lightbox,
2852
- .lightbox-backdrop {
2573
+ .lightbox,[data-slot='dialog-backdrop'][data-for='lightbox'] {
2853
2574
  transition: opacity var(--t-popover) var(--ease-out);
2854
2575
  }
2855
2576
  @starting-style {
2856
- .lightbox,
2857
- .lightbox-backdrop {
2577
+ .lightbox,[data-slot='dialog-backdrop'][data-for='lightbox'] {
2858
2578
  opacity: 0;
2859
2579
  }
2860
2580
  }
@@ -3256,7 +2976,7 @@
3256
2976
  align-items: flex-end;
3257
2977
  gap: var(--space-3);
3258
2978
  }
3259
- .attachments-rename .form-field {
2979
+ .attachments-rename [data-slot='field'] {
3260
2980
  flex: 1 1 14rem;
3261
2981
  min-width: 0;
3262
2982
  margin: 0;
@@ -3438,6 +3158,15 @@
3438
3158
  .page-fact .date-value {
3439
3159
  font: inherit;
3440
3160
  }
3161
+ /* A record is where the exact day is read: its head says the date and the day from today quiet beside it
3162
+ ("Nov 8, 2026 · 7 days ago"). A list keeps the short form, the date its title. */
3163
+ .page-fact .date-value.relative[data-date]:not(.overdue) {
3164
+ color: var(--ink-muted);
3165
+ }
3166
+ .page-fact .date-value.relative[data-date]::before {
3167
+ content: attr(data-date) ' · ';
3168
+ color: var(--ink);
3169
+ }
3441
3170
  .page-fact-caption {
3442
3171
  color: var(--ink-muted);
3443
3172
  white-space: pre;
@@ -3724,11 +3453,12 @@
3724
3453
  background: var(--surface);
3725
3454
  min-width: 0;
3726
3455
  }
3456
+ /* The caption says what the card is of ("Home", "Resident") and the title under it which one: a quiet label
3457
+ over a name, in every look. Set as a section's head it was a second title over the first, and the aside's
3458
+ three of them outweighed the page's own sections. */
3727
3459
  .page-card-caption {
3728
3460
  margin: 0;
3729
- font: 600 var(--text-xs) var(--sans);
3730
- text-transform: uppercase;
3731
- letter-spacing: var(--track-caps, 0.05em);
3461
+ font: 600 var(--text-sm)/1.4 var(--sans);
3732
3462
  color: var(--ink-muted);
3733
3463
  }
3734
3464
  .page-card-title {
@@ -3737,21 +3467,33 @@
3737
3467
  letter-spacing: var(--track-title, -0.012em);
3738
3468
  overflow-wrap: anywhere;
3739
3469
  }
3470
+ /* A person's card: the disc their name wears in a list stands before it, centred on the name's first line. */
3471
+ .page-card-title.has-avatar {
3472
+ display: flex;
3473
+ align-items: center;
3474
+ gap: var(--space-3);
3475
+ }
3476
+ .page-card-title.has-avatar > .avatar {
3477
+ flex: none;
3478
+ }
3479
+ /* The card's facts are a list of properties: each a row, its caption in a column of its own so the values
3480
+ start on one edge and are read down. Two across under their captions, three facts stood as one and a half
3481
+ rows and no edge ran through them. */
3740
3482
  .page-card-facts {
3741
3483
  display: grid;
3742
- grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
3743
- gap: var(--space-4) var(--space-5);
3484
+ gap: var(--space-3);
3744
3485
  margin: 0;
3745
3486
  }
3746
3487
  .page-card-fact {
3488
+ display: grid;
3489
+ grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
3490
+ column-gap: var(--space-4);
3491
+ align-items: baseline;
3747
3492
  min-width: 0;
3748
3493
  }
3749
- /* An address is read whole or cut with an ellipsis (its title says the rest), never broken mid-word across two lines
3750
- in a column of 8rem: an email takes the card's row. */
3751
- .page-card-fact:has(> dd > a.value-link:is([href^='mailto:'], [href^='http']):not(.value-address)) {
3752
- grid-column: 1 / -1;
3753
- }
3754
- /* A postal address is not cut: it stands on its own lines (Value.tsx). */
3494
+ /* An address breaks only where its parts meet (Value.tsx marks them), so it is read whole on two lines in a
3495
+ narrow column; a part wider than the column is cut with an ellipsis and never broken mid-word (its title says
3496
+ the rest). A postal address is not cut: it stands on its own lines (Value.tsx). */
3755
3497
  .page-card-fact > dd > a.value-link:is([href^='mailto:'], [href^='http']):not(.value-address) {
3756
3498
  display: block;
3757
3499
  overflow: hidden;
@@ -3759,13 +3501,15 @@
3759
3501
  white-space: nowrap;
3760
3502
  }
3761
3503
  .page-card-fact > dt {
3762
- font: 500 var(--text-sm) var(--sans);
3504
+ font: 400 var(--text-base)/1.45 var(--sans);
3763
3505
  color: var(--ink-muted);
3764
3506
  }
3765
3507
  .page-card-fact > dd {
3766
- margin: var(--space-1) 0 0;
3767
- font-size: var(--text-md);
3508
+ margin: 0;
3509
+ font-size: var(--text-base);
3510
+ line-height: 1.45;
3768
3511
  overflow-wrap: anywhere;
3512
+ font-variant-numeric: tabular-nums;
3769
3513
  }
3770
3514
  .page-card-foot {
3771
3515
  margin: var(--space-2) 0 0;
@@ -3791,10 +3535,10 @@
3791
3535
  text-decoration: underline;
3792
3536
  text-underline-offset: 3px;
3793
3537
  }
3794
- /* "View home →" is a way on, as a section's "View all" is (features.css): muted, its arrow always, the ink and the
3795
- underline under the pointer. */
3538
+ /* "View home →" is the way on from the card, and the one link in it that is not a value: it is set in the link
3539
+ colour so it is found, its arrow always, and underlined under the pointer. */
3796
3540
  button.ref-jump.page-card-more {
3797
- color: var(--ink-muted);
3541
+ color: var(--link);
3798
3542
  font: 500 var(--text-base) var(--sans);
3799
3543
  }
3800
3544
  button.ref-jump.page-card-more::after {
@@ -3802,7 +3546,7 @@
3802
3546
  }
3803
3547
  button.ref-jump.page-card-more:hover {
3804
3548
  background: none;
3805
- color: var(--ink);
3549
+ color: var(--link);
3806
3550
  text-decoration: underline;
3807
3551
  text-underline-offset: 3px;
3808
3552
  }
@@ -3954,7 +3698,7 @@
3954
3698
  }
3955
3699
  /* On a filled verb the faint ink is near the fill, unseen: the hint takes the button's own ink, whatever the look
3956
3700
  fills it with, and stays quieter than the verb by its size and face, never by opacity. */
3957
- :is(.btn-primary, .btn-danger) .key-hint {
3701
+ :is([data-slot='button'][data-variant='solid'],[data-slot='button'][data-variant='destructive']) .key-hint {
3958
3702
  color: inherit;
3959
3703
  opacity: 1;
3960
3704
  }