@mistriwork/kit 1.0.0-rc.11 → 1.0.0-rc.12

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 (970) hide show
  1. package/dist/client/actionGrants.d.ts +21 -0
  2. package/dist/client/actionGrants.js +24 -0
  3. package/dist/client/addressMount.d.ts +67 -0
  4. package/dist/client/addressMount.js +136 -0
  5. package/dist/client/app.d.ts +10 -0
  6. package/dist/client/app.js +976 -0
  7. package/dist/client/boot.d.ts +1 -0
  8. package/dist/client/boot.js +37 -0
  9. package/dist/client/brandLook.css +125 -0
  10. package/dist/client/breakdownBatch.d.ts +34 -0
  11. package/dist/client/breakdownBatch.js +115 -0
  12. package/dist/client/bulkActions.d.ts +66 -0
  13. package/dist/client/bulkActions.js +171 -0
  14. package/dist/client/chart.d.ts +20 -0
  15. package/dist/client/chart.js +80 -0
  16. package/dist/client/clauses.d.ts +121 -0
  17. package/dist/client/clauses.js +276 -0
  18. package/dist/client/columns.d.ts +77 -0
  19. package/dist/client/columns.js +102 -0
  20. package/dist/client/components/Accordion.d.ts +26 -0
  21. package/dist/client/components/Accordion.js +44 -0
  22. package/dist/client/components/ApiOperations.d.ts +3 -0
  23. package/dist/client/components/ApiOperations.js +162 -0
  24. package/dist/client/components/AppColumnMenu.d.ts +66 -0
  25. package/dist/client/components/AppColumnMenu.js +59 -0
  26. package/dist/client/components/AppColumnMenuPopups.d.ts +21 -0
  27. package/dist/client/components/AppColumnMenuPopups.js +92 -0
  28. package/dist/client/components/AppFooter.css +17 -0
  29. package/dist/client/components/AppFooter.d.ts +23 -0
  30. package/dist/client/components/AppFooter.js +12 -0
  31. package/dist/client/components/AppIssues.d.ts +4 -0
  32. package/dist/client/components/AppIssues.js +18 -0
  33. package/dist/client/components/AppList.d.ts +20 -0
  34. package/dist/client/components/AppList.js +696 -0
  35. package/dist/client/components/AttachmentList.d.ts +45 -0
  36. package/dist/client/components/AttachmentList.js +178 -0
  37. package/dist/client/components/BoardList.css +9 -0
  38. package/dist/client/components/Breakdown.d.ts +11 -0
  39. package/dist/client/components/Breakdown.js +157 -0
  40. package/dist/client/components/BreakdownRoom.d.ts +4 -0
  41. package/dist/client/components/BreakdownRoom.js +48 -0
  42. package/dist/client/components/CardsList.d.ts +23 -0
  43. package/dist/client/components/CardsList.js +209 -0
  44. package/dist/client/components/Chart.css +165 -0
  45. package/dist/client/components/Chart.d.ts +194 -0
  46. package/dist/client/components/Chart.js +801 -0
  47. package/dist/client/components/ChartFigure.d.ts +82 -0
  48. package/dist/client/components/ChartFigure.js +102 -0
  49. package/dist/client/components/ChartShapes.css +213 -0
  50. package/dist/client/components/ChartShapes.d.ts +63 -0
  51. package/dist/client/components/ChartShapes.js +393 -0
  52. package/dist/client/components/Checklist.css +16 -0
  53. package/dist/client/components/Composer.d.ts +1 -0
  54. package/dist/client/components/Composer.js +331 -0
  55. package/dist/client/components/Content.d.ts +8 -0
  56. package/dist/client/components/Content.js +170 -0
  57. package/dist/client/components/CountedLabel.d.ts +10 -0
  58. package/dist/client/components/CountedLabel.js +26 -0
  59. package/dist/client/components/Crumbs.d.ts +11 -0
  60. package/dist/client/components/Crumbs.js +142 -0
  61. package/dist/client/components/DashboardList.css +7 -0
  62. package/dist/client/components/DashboardList.d.ts +9 -0
  63. package/dist/client/components/DashboardList.js +46 -0
  64. package/dist/client/components/DashboardNote.d.ts +21 -0
  65. package/dist/client/components/DashboardNote.js +22 -0
  66. package/dist/client/components/DateField.css +6 -0
  67. package/dist/client/components/DateField.d.ts +7 -0
  68. package/dist/client/components/DateField.js +27 -0
  69. package/dist/client/components/DefinedFields.d.ts +50 -0
  70. package/dist/client/components/DefinedFields.js +186 -0
  71. package/dist/client/components/DeleteButton.d.ts +30 -0
  72. package/dist/client/components/DeleteButton.js +198 -0
  73. package/dist/client/components/Diagram.d.ts +7 -0
  74. package/dist/client/components/Diagram.js +320 -0
  75. package/dist/client/components/Dressed.d.ts +31 -0
  76. package/dist/client/components/Dressed.js +138 -0
  77. package/dist/client/components/Dropdown.d.ts +14 -0
  78. package/dist/client/components/Dropdown.js +20 -0
  79. package/dist/client/components/EditLayoutButton.d.ts +13 -0
  80. package/dist/client/components/EditLayoutButton.js +7 -0
  81. package/dist/client/components/Editable.d.ts +47 -0
  82. package/dist/client/components/Editable.js +422 -0
  83. package/dist/client/components/ErrorBoundary.d.ts +40 -0
  84. package/dist/client/components/ErrorBoundary.js +41 -0
  85. package/dist/client/components/Export.d.ts +15 -0
  86. package/dist/client/components/Export.js +151 -0
  87. package/dist/client/components/ExportHold.d.ts +18 -0
  88. package/dist/client/components/ExportHold.js +30 -0
  89. package/dist/client/components/FavoriteStar.d.ts +5 -0
  90. package/dist/client/components/FavoriteStar.js +14 -0
  91. package/dist/client/components/FieldArranger.d.ts +28 -0
  92. package/dist/client/components/FieldArranger.js +82 -0
  93. package/dist/client/components/FilePreview.css +20 -0
  94. package/dist/client/components/FilePreview.d.ts +26 -0
  95. package/dist/client/components/FilePreview.js +170 -0
  96. package/dist/client/components/FilterBoxes.d.ts +76 -0
  97. package/dist/client/components/FilterBoxes.js +294 -0
  98. package/dist/client/components/FilterRail.css +100 -0
  99. package/dist/client/components/FilterRail.d.ts +61 -0
  100. package/dist/client/components/FilterRail.js +559 -0
  101. package/dist/client/components/Gallery.d.ts +11 -0
  102. package/dist/client/components/Gallery.js +53 -0
  103. package/dist/client/components/Grid.d.ts +122 -0
  104. package/dist/client/components/Grid.js +1115 -0
  105. package/dist/client/components/GridCellEditor.d.ts +35 -0
  106. package/dist/client/components/GridCellEditor.js +291 -0
  107. package/dist/client/components/GridSelection.d.ts +16 -0
  108. package/dist/client/components/GridSelection.js +28 -0
  109. package/dist/client/components/HelpPanel.d.ts +5 -0
  110. package/dist/client/components/HelpPanel.js +92 -0
  111. package/dist/client/components/History.d.ts +10 -0
  112. package/dist/client/components/History.js +22 -0
  113. package/dist/client/components/Icon.d.ts +31 -0
  114. package/dist/client/components/Icon.js +20 -0
  115. package/dist/client/components/JsonPreview.d.ts +5 -0
  116. package/dist/client/components/JsonPreview.js +25 -0
  117. package/dist/client/components/JsonValue.d.ts +4 -0
  118. package/dist/client/components/JsonValue.js +3 -0
  119. package/dist/client/components/JsonView.css +109 -0
  120. package/dist/client/components/JsonView.d.ts +3 -0
  121. package/dist/client/components/JsonView.js +118 -0
  122. package/dist/client/components/Landing.d.ts +19 -0
  123. package/dist/client/components/Landing.js +55 -0
  124. package/dist/client/components/LandingSurface.css +177 -0
  125. package/dist/client/components/LandingSurface.d.ts +42 -0
  126. package/dist/client/components/LandingSurface.js +108 -0
  127. package/dist/client/components/LayoutBuilder.d.ts +36 -0
  128. package/dist/client/components/LayoutBuilder.js +104 -0
  129. package/dist/client/components/Lightbox.d.ts +29 -0
  130. package/dist/client/components/Lightbox.js +62 -0
  131. package/dist/client/components/ListEmpty.css +13 -0
  132. package/dist/client/components/ListEmpty.d.ts +10 -0
  133. package/dist/client/components/ListEmpty.js +8 -0
  134. package/dist/client/components/ListFilterBar.css +76 -0
  135. package/dist/client/components/ListFilterBar.d.ts +52 -0
  136. package/dist/client/components/ListFilterBar.js +304 -0
  137. package/dist/client/components/LiveNotices.css +105 -0
  138. package/dist/client/components/LiveNotices.d.ts +26 -0
  139. package/dist/client/components/LiveNotices.js +211 -0
  140. package/dist/client/components/MinorMoneyInput.d.ts +26 -0
  141. package/dist/client/components/MinorMoneyInput.js +50 -0
  142. package/dist/client/components/Modal.css +3 -0
  143. package/dist/client/components/MultiStepForm.css +122 -0
  144. package/dist/client/components/MultiStepForm.d.ts +59 -0
  145. package/dist/client/components/MultiStepForm.js +216 -0
  146. package/dist/client/components/NavGlyph.d.ts +14 -0
  147. package/dist/client/components/NavGlyph.js +27 -0
  148. package/dist/client/components/Nested.d.ts +21 -0
  149. package/dist/client/components/Nested.js +86 -0
  150. package/dist/client/components/NewRecord.d.ts +89 -0
  151. package/dist/client/components/NewRecord.js +897 -0
  152. package/dist/client/components/NewRecordButton.d.ts +13 -0
  153. package/dist/client/components/NewRecordButton.js +28 -0
  154. package/dist/client/components/Notes.css +39 -0
  155. package/dist/client/components/Notes.d.ts +59 -0
  156. package/dist/client/components/Notes.js +96 -0
  157. package/dist/client/components/OverflowMenu.d.ts +3 -0
  158. package/dist/client/components/OverflowMenu.js +60 -0
  159. package/dist/client/components/Page.d.ts +52 -0
  160. package/dist/client/components/Page.js +237 -0
  161. package/dist/client/components/PageCurrent.d.ts +38 -0
  162. package/dist/client/components/PageCurrent.js +27 -0
  163. package/dist/client/components/PageEmptyRun.d.ts +18 -0
  164. package/dist/client/components/PageEmptyRun.js +118 -0
  165. package/dist/client/components/PageFields.d.ts +3 -0
  166. package/dist/client/components/PageFields.js +294 -0
  167. package/dist/client/components/PageFlowDiagram.css +193 -0
  168. package/dist/client/components/PageFlowDiagram.d.ts +95 -0
  169. package/dist/client/components/PageFlowDiagram.js +276 -0
  170. package/dist/client/components/PageFlows.css +27 -0
  171. package/dist/client/components/PageFlows.d.ts +54 -0
  172. package/dist/client/components/PageFlows.js +92 -0
  173. package/dist/client/components/PageGroups.d.ts +43 -0
  174. package/dist/client/components/PageGroups.js +123 -0
  175. package/dist/client/components/PageHead.d.ts +28 -0
  176. package/dist/client/components/PageHead.js +279 -0
  177. package/dist/client/components/PageHeadline.d.ts +23 -0
  178. package/dist/client/components/PageHeadline.js +101 -0
  179. package/dist/client/components/PageHistory.d.ts +62 -0
  180. package/dist/client/components/PageHistory.js +160 -0
  181. package/dist/client/components/PageLayout.d.ts +22 -0
  182. package/dist/client/components/PageLayout.js +13 -0
  183. package/dist/client/components/PageMetrics.d.ts +11 -0
  184. package/dist/client/components/PageMetrics.js +252 -0
  185. package/dist/client/components/PageRelated.d.ts +70 -0
  186. package/dist/client/components/PageRelated.js +667 -0
  187. package/dist/client/components/PageRoom.d.ts +37 -0
  188. package/dist/client/components/PageRoom.js +277 -0
  189. package/dist/client/components/PageSectionBox.d.ts +28 -0
  190. package/dist/client/components/PageSectionBox.js +65 -0
  191. package/dist/client/components/PageSections.d.ts +38 -0
  192. package/dist/client/components/PageSections.js +352 -0
  193. package/dist/client/components/PageSkeleton.css +17 -0
  194. package/dist/client/components/PageSkeleton.d.ts +11 -0
  195. package/dist/client/components/PageSkeleton.js +25 -0
  196. package/dist/client/components/PageTimeline.d.ts +2 -0
  197. package/dist/client/components/PageTimeline.js +273 -0
  198. package/dist/client/components/Palette.d.ts +4 -0
  199. package/dist/client/components/Palette.js +176 -0
  200. package/dist/client/components/Peek.d.ts +1 -0
  201. package/dist/client/components/Peek.js +158 -0
  202. package/dist/client/components/PeekPanel.d.ts +16 -0
  203. package/dist/client/components/PeekPanel.js +120 -0
  204. package/dist/client/components/Picker.d.ts +13 -0
  205. package/dist/client/components/Picker.js +33 -0
  206. package/dist/client/components/Prefs.d.ts +3 -0
  207. package/dist/client/components/Prefs.js +121 -0
  208. package/dist/client/components/PresentationSwitch.d.ts +13 -0
  209. package/dist/client/components/PresentationSwitch.js +10 -0
  210. package/dist/client/components/Prompt.d.ts +35 -0
  211. package/dist/client/components/Prompt.js +114 -0
  212. package/dist/client/components/QrCode.css +11 -0
  213. package/dist/client/components/QrCode.d.ts +4 -0
  214. package/dist/client/components/QrCode.js +57 -0
  215. package/dist/client/components/QueueList.css +122 -0
  216. package/dist/client/components/QuickAdd.css +18 -0
  217. package/dist/client/components/QuickAdd.d.ts +11 -0
  218. package/dist/client/components/QuickAdd.js +53 -0
  219. package/dist/client/components/QuickAddOnDemand.d.ts +4 -0
  220. package/dist/client/components/QuickAddOnDemand.js +10 -0
  221. package/dist/client/components/Record.d.ts +36 -0
  222. package/dist/client/components/Record.js +385 -0
  223. package/dist/client/components/RecordGone.d.ts +7 -0
  224. package/dist/client/components/RecordGone.js +22 -0
  225. package/dist/client/components/RecordPicker.d.ts +59 -0
  226. package/dist/client/components/RecordPicker.js +299 -0
  227. package/dist/client/components/RecordSummaries.d.ts +55 -0
  228. package/dist/client/components/RecordSummaries.js +151 -0
  229. package/dist/client/components/RecordTags.d.ts +6 -0
  230. package/dist/client/components/RecordTags.js +119 -0
  231. package/dist/client/components/RecordTrailNav.d.ts +25 -0
  232. package/dist/client/components/RecordTrailNav.js +110 -0
  233. package/dist/client/components/RichText.d.ts +7 -0
  234. package/dist/client/components/RichText.js +82 -0
  235. package/dist/client/components/RichTextEditor.css +202 -0
  236. package/dist/client/components/RichTextEditor.d.ts +33 -0
  237. package/dist/client/components/RichTextEditor.js +348 -0
  238. package/dist/client/components/RichTextField.d.ts +26 -0
  239. package/dist/client/components/RichTextField.js +71 -0
  240. package/dist/client/components/Rooms.d.ts +35 -0
  241. package/dist/client/components/Rooms.js +276 -0
  242. package/dist/client/components/RowActions.d.ts +8 -0
  243. package/dist/client/components/RowActions.js +49 -0
  244. package/dist/client/components/RowHost.d.ts +110 -0
  245. package/dist/client/components/RowHost.js +212 -0
  246. package/dist/client/components/SavedViews.d.ts +25 -0
  247. package/dist/client/components/SavedViews.js +35 -0
  248. package/dist/client/components/SchemaExport.d.ts +15 -0
  249. package/dist/client/components/SchemaExport.js +42 -0
  250. package/dist/client/components/SectionPeriod.css +14 -0
  251. package/dist/client/components/SectionPeriod.d.ts +7 -0
  252. package/dist/client/components/SectionPeriod.js +14 -0
  253. package/dist/client/components/SetFieldDialog.d.ts +12 -0
  254. package/dist/client/components/SetFieldDialog.js +51 -0
  255. package/dist/client/components/Sidebar.d.ts +34 -0
  256. package/dist/client/components/Sidebar.js +398 -0
  257. package/dist/client/components/Skeleton.d.ts +35 -0
  258. package/dist/client/components/Skeleton.js +49 -0
  259. package/dist/client/components/SortMenu.d.ts +20 -0
  260. package/dist/client/components/SortMenu.js +45 -0
  261. package/dist/client/components/SplitListDetail.css +119 -0
  262. package/dist/client/components/SuggestBox.d.ts +29 -0
  263. package/dist/client/components/SuggestBox.js +60 -0
  264. package/dist/client/components/Summary.d.ts +14 -0
  265. package/dist/client/components/Summary.js +93 -0
  266. package/dist/client/components/TableRoom.d.ts +88 -0
  267. package/dist/client/components/TableRoom.js +246 -0
  268. package/dist/client/components/TableView.d.ts +111 -0
  269. package/dist/client/components/TableView.js +324 -0
  270. package/dist/client/components/ThMenu.d.ts +40 -0
  271. package/dist/client/components/ThMenu.js +163 -0
  272. package/dist/client/components/ThemeLab.d.ts +4 -0
  273. package/dist/client/components/ThemeLab.js +67 -0
  274. package/dist/client/components/TimelineSides.css +23 -0
  275. package/dist/client/components/TimelineSides.d.ts +7 -0
  276. package/dist/client/components/TimelineSides.js +9 -0
  277. package/dist/client/components/Tour.d.ts +12 -0
  278. package/dist/client/components/Tour.js +131 -0
  279. package/dist/client/components/Value.d.ts +38 -0
  280. package/dist/client/components/Value.js +172 -0
  281. package/dist/client/components/WorkPanel.d.ts +9 -0
  282. package/dist/client/components/WorkPanel.js +43 -0
  283. package/dist/client/components/WorkflowStatus.d.ts +6 -0
  284. package/dist/client/components/WorkflowStatus.js +44 -0
  285. package/dist/client/components/WriteConfirm.d.ts +4 -0
  286. package/dist/client/components/WriteConfirm.js +27 -0
  287. package/dist/client/components/appColumnMenuModel.d.ts +46 -0
  288. package/dist/client/components/appColumnMenuModel.js +51 -0
  289. package/dist/client/components/appListModel.d.ts +179 -0
  290. package/dist/client/components/appListModel.js +421 -0
  291. package/dist/client/components/appRooms.d.ts +106 -0
  292. package/dist/client/components/appRooms.js +133 -0
  293. package/dist/client/components/autoChart.d.ts +33 -0
  294. package/dist/client/components/autoChart.js +107 -0
  295. package/dist/client/components/avatarPhotos.d.ts +45 -0
  296. package/dist/client/components/avatarPhotos.js +93 -0
  297. package/dist/client/components/besideDetail.d.ts +1 -0
  298. package/dist/client/components/besideDetail.js +10 -0
  299. package/dist/client/components/boardNew.d.ts +2 -0
  300. package/dist/client/components/boardNew.js +8 -0
  301. package/dist/client/components/cardsModel.d.ts +11 -0
  302. package/dist/client/components/cardsModel.js +24 -0
  303. package/dist/client/components/chromeIcons.d.ts +16 -0
  304. package/dist/client/components/chromeIcons.js +16 -0
  305. package/dist/client/components/columnPresentation.d.ts +8 -0
  306. package/dist/client/components/columnPresentation.js +47 -0
  307. package/dist/client/components/componentSlot.d.ts +31 -0
  308. package/dist/client/components/componentSlot.js +76 -0
  309. package/dist/client/components/composerDraft.d.ts +16 -0
  310. package/dist/client/components/composerDraft.js +16 -0
  311. package/dist/client/components/conditionText.d.ts +14 -0
  312. package/dist/client/components/conditionText.js +45 -0
  313. package/dist/client/components/conditionWords.d.ts +37 -0
  314. package/dist/client/components/conditionWords.js +382 -0
  315. package/dist/client/components/crumbSlot.d.ts +14 -0
  316. package/dist/client/components/crumbSlot.js +49 -0
  317. package/dist/client/components/dashboardModel.d.ts +283 -0
  318. package/dist/client/components/dashboardModel.js +415 -0
  319. package/dist/client/components/dashboardParts.d.ts +9 -0
  320. package/dist/client/components/dashboardParts.js +18 -0
  321. package/dist/client/components/diagramModel.d.ts +83 -0
  322. package/dist/client/components/diagramModel.js +211 -0
  323. package/dist/client/components/dueOpen.d.ts +1 -0
  324. package/dist/client/components/dueOpen.js +23 -0
  325. package/dist/client/components/editInteraction.d.ts +20 -0
  326. package/dist/client/components/editInteraction.js +178 -0
  327. package/dist/client/components/favoriteNav.d.ts +6 -0
  328. package/dist/client/components/favoriteNav.js +31 -0
  329. package/dist/client/components/favorites.d.ts +23 -0
  330. package/dist/client/components/favorites.js +86 -0
  331. package/dist/client/components/filePreviewModel.d.ts +18 -0
  332. package/dist/client/components/filePreviewModel.js +21 -0
  333. package/dist/client/components/filterRailModel.d.ts +93 -0
  334. package/dist/client/components/filterRailModel.js +302 -0
  335. package/dist/client/components/formControlsStyle.d.ts +1 -0
  336. package/dist/client/components/formControlsStyle.js +3 -0
  337. package/dist/client/components/formDefaults.d.ts +17 -0
  338. package/dist/client/components/formDefaults.js +128 -0
  339. package/dist/client/components/gridArrange.d.ts +33 -0
  340. package/dist/client/components/gridArrange.js +62 -0
  341. package/dist/client/components/gridCellModel.d.ts +32 -0
  342. package/dist/client/components/gridCellModel.js +42 -0
  343. package/dist/client/components/gridSizing.d.ts +89 -0
  344. package/dist/client/components/gridSizing.js +295 -0
  345. package/dist/client/components/groupMoves.d.ts +44 -0
  346. package/dist/client/components/groupMoves.js +295 -0
  347. package/dist/client/components/groupOrder.d.ts +43 -0
  348. package/dist/client/components/groupOrder.js +63 -0
  349. package/dist/client/components/inputRenderers.d.ts +48 -0
  350. package/dist/client/components/inputRenderers.js +37 -0
  351. package/dist/client/components/intakeStyle.d.ts +2 -0
  352. package/dist/client/components/intakeStyle.js +6 -0
  353. package/dist/client/components/jsonModel.d.ts +98 -0
  354. package/dist/client/components/jsonModel.js +264 -0
  355. package/dist/client/components/listColumn.d.ts +20 -0
  356. package/dist/client/components/listColumn.js +31 -0
  357. package/dist/client/components/listNavigation.d.ts +16 -0
  358. package/dist/client/components/listNavigation.js +14 -0
  359. package/dist/client/components/mentionRows.d.ts +5 -0
  360. package/dist/client/components/mentionRows.js +62 -0
  361. package/dist/client/components/mount.d.ts +55 -0
  362. package/dist/client/components/mount.js +155 -0
  363. package/dist/client/components/myViews.d.ts +54 -0
  364. package/dist/client/components/myViews.js +82 -0
  365. package/dist/client/components/navCounts.d.ts +84 -0
  366. package/dist/client/components/navCounts.js +194 -0
  367. package/dist/client/components/navigationTree.d.ts +52 -0
  368. package/dist/client/components/navigationTree.js +49 -0
  369. package/dist/client/components/newMenuModel.d.ts +27 -0
  370. package/dist/client/components/newMenuModel.js +58 -0
  371. package/dist/client/components/newRecordModel.d.ts +58 -0
  372. package/dist/client/components/newRecordModel.js +232 -0
  373. package/dist/client/components/onDemand.d.ts +30 -0
  374. package/dist/client/components/onDemand.js +121 -0
  375. package/dist/client/components/optimisticMoves.d.ts +21 -0
  376. package/dist/client/components/optimisticMoves.js +145 -0
  377. package/dist/client/components/pageContext.d.ts +154 -0
  378. package/dist/client/components/pageContext.js +47 -0
  379. package/dist/client/components/pageFieldsRead.d.ts +67 -0
  380. package/dist/client/components/pageFieldsRead.js +55 -0
  381. package/dist/client/components/pageModel.d.ts +203 -0
  382. package/dist/client/components/pageModel.js +67 -0
  383. package/dist/client/components/pageStep.d.ts +31 -0
  384. package/dist/client/components/pageStep.js +15 -0
  385. package/dist/client/components/paletteModel.d.ts +9 -0
  386. package/dist/client/components/paletteModel.js +46 -0
  387. package/dist/client/components/pickerStaleness.d.ts +32 -0
  388. package/dist/client/components/pickerStaleness.js +27 -0
  389. package/dist/client/components/placeOrder.d.ts +47 -0
  390. package/dist/client/components/placeOrder.js +71 -0
  391. package/dist/client/components/pointerDrag.d.ts +54 -0
  392. package/dist/client/components/pointerDrag.js +95 -0
  393. package/dist/client/components/presentationFit.d.ts +19 -0
  394. package/dist/client/components/presentationFit.js +32 -0
  395. package/dist/client/components/recordKeys.d.ts +2 -0
  396. package/dist/client/components/recordKeys.js +8 -0
  397. package/dist/client/components/recordSearch.d.ts +31 -0
  398. package/dist/client/components/recordSearch.js +80 -0
  399. package/dist/client/components/recordSurface.d.ts +86 -0
  400. package/dist/client/components/recordSurface.js +267 -0
  401. package/dist/client/components/rowOpens.d.ts +19 -0
  402. package/dist/client/components/rowOpens.js +25 -0
  403. package/dist/client/components/sidebarModel.d.ts +152 -0
  404. package/dist/client/components/sidebarModel.js +372 -0
  405. package/dist/client/components/suggestModel.d.ts +22 -0
  406. package/dist/client/components/suggestModel.js +49 -0
  407. package/dist/client/components/suggestPart.d.ts +4 -0
  408. package/dist/client/components/suggestPart.js +4 -0
  409. package/dist/client/components/textMeasure.d.ts +2 -0
  410. package/dist/client/components/textMeasure.js +35 -0
  411. package/dist/client/components/unknownIcon.d.ts +8 -0
  412. package/dist/client/components/unknownIcon.js +32 -0
  413. package/dist/client/components/useBulkSelection.d.ts +30 -0
  414. package/dist/client/components/useBulkSelection.js +360 -0
  415. package/dist/client/components/useConditionWords.d.ts +17 -0
  416. package/dist/client/components/useConditionWords.js +104 -0
  417. package/dist/client/components/useGridKeyboard.d.ts +32 -0
  418. package/dist/client/components/useGridKeyboard.js +223 -0
  419. package/dist/client/components/useListOrder.d.ts +94 -0
  420. package/dist/client/components/useListOrder.js +294 -0
  421. package/dist/client/components/useMediaQuery.d.ts +10 -0
  422. package/dist/client/components/useMediaQuery.js +45 -0
  423. package/dist/client/components/useMessageLanguage.d.ts +1 -0
  424. package/dist/client/components/useMessageLanguage.js +6 -0
  425. package/dist/client/components/usePins.d.ts +20 -0
  426. package/dist/client/components/usePins.js +66 -0
  427. package/dist/client/components/usePointerDrag.d.ts +72 -0
  428. package/dist/client/components/usePointerDrag.js +553 -0
  429. package/dist/client/components/useRecordInsert.d.ts +42 -0
  430. package/dist/client/components/useRecordInsert.js +145 -0
  431. package/dist/client/components/useRowWindow.d.ts +35 -0
  432. package/dist/client/components/useRowWindow.js +149 -0
  433. package/dist/client/components/useStickyHead.d.ts +17 -0
  434. package/dist/client/components/useStickyHead.js +65 -0
  435. package/dist/client/components/useTabFold.d.ts +32 -0
  436. package/dist/client/components/useTabFold.js +145 -0
  437. package/dist/client/components/valueModel.d.ts +300 -0
  438. package/dist/client/components/valueModel.js +560 -0
  439. package/dist/client/components/valueRenderers.d.ts +36 -0
  440. package/dist/client/components/valueRenderers.js +13 -0
  441. package/dist/client/components/viewLink.d.ts +27 -0
  442. package/dist/client/components/viewLink.js +79 -0
  443. package/dist/client/components/walk.d.ts +14 -0
  444. package/dist/client/components/walk.js +16 -0
  445. package/dist/client/compose.d.ts +8 -0
  446. package/dist/client/compose.js +163 -0
  447. package/dist/client/composedHook.d.ts +20 -0
  448. package/dist/client/composedHook.js +12 -0
  449. package/dist/client/composedReads.d.ts +26 -0
  450. package/dist/client/composedReads.js +183 -0
  451. package/dist/client/composer.css +499 -0
  452. package/dist/client/composer.d.ts +121 -0
  453. package/dist/client/composer.js +1079 -0
  454. package/dist/client/composerEntry.d.ts +1 -0
  455. package/dist/client/composerEntry.js +58 -0
  456. package/dist/client/composerTab.d.ts +6 -0
  457. package/dist/client/composerTab.js +20 -0
  458. package/dist/client/conditions.d.ts +46 -0
  459. package/dist/client/conditions.js +150 -0
  460. package/dist/client/connectionList.d.ts +11 -0
  461. package/dist/client/connectionList.js +146 -0
  462. package/dist/client/connectionScope.d.ts +6 -0
  463. package/dist/client/connectionScope.js +14 -0
  464. package/dist/client/connectionTransition.d.ts +12 -0
  465. package/dist/client/connectionTransition.js +41 -0
  466. package/dist/client/copy/columnMenu/components/AppColumnMenu.d.ts +4 -0
  467. package/dist/client/copy/columnMenu/components/AppColumnMenu.js +6 -0
  468. package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.d.ts +4 -0
  469. package/dist/client/copy/columnMenu/components/AppColumnMenuPopups.js +6 -0
  470. package/dist/client/copy/columnMenu/components/ThMenu.d.ts +35 -0
  471. package/dist/client/copy/columnMenu/components/ThMenu.js +37 -0
  472. package/dist/client/copy/columnMenu/components/appColumnMenuModel.d.ts +10 -0
  473. package/dist/client/copy/columnMenu/components/appColumnMenuModel.js +12 -0
  474. package/dist/client/copy/dashboards/breakdownBatch.d.ts +3 -0
  475. package/dist/client/copy/dashboards/breakdownBatch.js +5 -0
  476. package/dist/client/copy/dashboards/components/Breakdown.d.ts +32 -0
  477. package/dist/client/copy/dashboards/components/Breakdown.js +25 -0
  478. package/dist/client/copy/dashboards/components/BreakdownRoom.d.ts +3 -0
  479. package/dist/client/copy/dashboards/components/BreakdownRoom.js +5 -0
  480. package/dist/client/copy/dashboards/components/Chart.d.ts +26 -0
  481. package/dist/client/copy/dashboards/components/Chart.js +19 -0
  482. package/dist/client/copy/dashboards/components/ChartShapes.d.ts +16 -0
  483. package/dist/client/copy/dashboards/components/ChartShapes.js +12 -0
  484. package/dist/client/copy/dashboards/components/PageMetrics.d.ts +21 -0
  485. package/dist/client/copy/dashboards/components/PageMetrics.js +20 -0
  486. package/dist/client/copy/dashboards/components/SectionPeriod.d.ts +4 -0
  487. package/dist/client/copy/dashboards/components/SectionPeriod.js +6 -0
  488. package/dist/client/copy/dashboards/components/dashboardModel.d.ts +3 -0
  489. package/dist/client/copy/dashboards/components/dashboardModel.js +5 -0
  490. package/dist/client/copy/es.d.ts +11 -0
  491. package/dist/client/copy/es.js +60 -0
  492. package/dist/client/copy/filters/components/FilterBoxes.d.ts +10 -0
  493. package/dist/client/copy/filters/components/FilterBoxes.js +12 -0
  494. package/dist/client/copy/filters/components/FilterRail.d.ts +16 -0
  495. package/dist/client/copy/filters/components/FilterRail.js +18 -0
  496. package/dist/client/copy/filters/components/ListFilterBar.d.ts +9 -0
  497. package/dist/client/copy/filters/components/ListFilterBar.js +11 -0
  498. package/dist/client/copy/filters/components/conditionWords.d.ts +46 -0
  499. package/dist/client/copy/filters/components/conditionWords.js +95 -0
  500. package/dist/client/copy/filters/components/filterRailModel.d.ts +12 -0
  501. package/dist/client/copy/filters/components/filterRailModel.js +14 -0
  502. package/dist/client/copy/forms/components/DateField.d.ts +13 -0
  503. package/dist/client/copy/forms/components/DateField.js +15 -0
  504. package/dist/client/copy/forms/components/MinorMoneyInput.d.ts +4 -0
  505. package/dist/client/copy/forms/components/MinorMoneyInput.js +6 -0
  506. package/dist/client/copy/forms/components/MultiStepForm.d.ts +10 -0
  507. package/dist/client/copy/forms/components/MultiStepForm.js +12 -0
  508. package/dist/client/copy/forms/components/NewRecord.d.ts +29 -0
  509. package/dist/client/copy/forms/components/NewRecord.js +31 -0
  510. package/dist/client/copy/forms/components/NewRecordButton.d.ts +6 -0
  511. package/dist/client/copy/forms/components/NewRecordButton.js +8 -0
  512. package/dist/client/copy/forms/components/Picker.d.ts +4 -0
  513. package/dist/client/copy/forms/components/Picker.js +6 -0
  514. package/dist/client/copy/forms/components/QuickAdd.d.ts +3 -0
  515. package/dist/client/copy/forms/components/QuickAdd.js +5 -0
  516. package/dist/client/copy/forms/components/RecordPicker.d.ts +6 -0
  517. package/dist/client/copy/forms/components/RecordPicker.js +8 -0
  518. package/dist/client/copy/forms/components/RichTextEditor.d.ts +36 -0
  519. package/dist/client/copy/forms/components/RichTextEditor.js +40 -0
  520. package/dist/client/copy/forms/components/RichTextField.d.ts +3 -0
  521. package/dist/client/copy/forms/components/RichTextField.js +5 -0
  522. package/dist/client/copy/forms/components/SetFieldDialog.d.ts +10 -0
  523. package/dist/client/copy/forms/components/SetFieldDialog.js +9 -0
  524. package/dist/client/copy/forms/components/useRecordInsert.d.ts +7 -0
  525. package/dist/client/copy/forms/components/useRecordInsert.js +9 -0
  526. package/dist/client/copy/help/helpContent.d.ts +71 -0
  527. package/dist/client/copy/help/helpContent.js +73 -0
  528. package/dist/client/copy/lists/bulkActions.d.ts +12 -0
  529. package/dist/client/copy/lists/bulkActions.js +14 -0
  530. package/dist/client/copy/lists/components/AppList.d.ts +28 -0
  531. package/dist/client/copy/lists/components/AppList.js +30 -0
  532. package/dist/client/copy/lists/components/CardsList.d.ts +3 -0
  533. package/dist/client/copy/lists/components/CardsList.js +5 -0
  534. package/dist/client/copy/lists/components/Gallery.d.ts +7 -0
  535. package/dist/client/copy/lists/components/Gallery.js +9 -0
  536. package/dist/client/copy/lists/components/Grid.d.ts +30 -0
  537. package/dist/client/copy/lists/components/Grid.js +29 -0
  538. package/dist/client/copy/lists/components/GridCellEditor.d.ts +5 -0
  539. package/dist/client/copy/lists/components/GridCellEditor.js +7 -0
  540. package/dist/client/copy/lists/components/GridSelection.d.ts +4 -0
  541. package/dist/client/copy/lists/components/GridSelection.js +6 -0
  542. package/dist/client/copy/lists/components/Nested.d.ts +7 -0
  543. package/dist/client/copy/lists/components/Nested.js +9 -0
  544. package/dist/client/copy/lists/components/RowActions.d.ts +1 -0
  545. package/dist/client/copy/lists/components/RowActions.js +3 -0
  546. package/dist/client/copy/lists/components/SavedViews.d.ts +5 -0
  547. package/dist/client/copy/lists/components/SavedViews.js +7 -0
  548. package/dist/client/copy/lists/components/SortMenu.d.ts +5 -0
  549. package/dist/client/copy/lists/components/SortMenu.js +7 -0
  550. package/dist/client/copy/lists/components/TableRoom.d.ts +12 -0
  551. package/dist/client/copy/lists/components/TableRoom.js +14 -0
  552. package/dist/client/copy/lists/components/TableView.d.ts +37 -0
  553. package/dist/client/copy/lists/components/TableView.js +39 -0
  554. package/dist/client/copy/lists/components/appListModel.d.ts +6 -0
  555. package/dist/client/copy/lists/components/appListModel.js +5 -0
  556. package/dist/client/copy/lists/components/myViews.d.ts +4 -0
  557. package/dist/client/copy/lists/components/myViews.js +6 -0
  558. package/dist/client/copy/lists/components/placeOrder.d.ts +4 -0
  559. package/dist/client/copy/lists/components/placeOrder.js +6 -0
  560. package/dist/client/copy/lists/components/useBulkSelection.d.ts +20 -0
  561. package/dist/client/copy/lists/components/useBulkSelection.js +16 -0
  562. package/dist/client/copy/lists/components/useListOrder.d.ts +7 -0
  563. package/dist/client/copy/lists/components/useListOrder.js +9 -0
  564. package/dist/client/copy/public/components/appRooms.d.ts +3 -0
  565. package/dist/client/copy/public/components/appRooms.js +5 -0
  566. package/dist/client/copy/record/components/Actions.d.ts +13 -0
  567. package/dist/client/copy/record/components/Actions.js +15 -0
  568. package/dist/client/copy/record/components/AttachmentList.d.ts +23 -0
  569. package/dist/client/copy/record/components/AttachmentList.js +22 -0
  570. package/dist/client/copy/record/components/DeleteButton.d.ts +22 -0
  571. package/dist/client/copy/record/components/DeleteButton.js +24 -0
  572. package/dist/client/copy/record/components/Dressed.d.ts +5 -0
  573. package/dist/client/copy/record/components/Dressed.js +7 -0
  574. package/dist/client/copy/record/components/EditLayoutButton.d.ts +5 -0
  575. package/dist/client/copy/record/components/EditLayoutButton.js +7 -0
  576. package/dist/client/copy/record/components/Editable.d.ts +25 -0
  577. package/dist/client/copy/record/components/Editable.js +24 -0
  578. package/dist/client/copy/record/components/FieldArranger.d.ts +15 -0
  579. package/dist/client/copy/record/components/FieldArranger.js +17 -0
  580. package/dist/client/copy/record/components/FilePreview.d.ts +13 -0
  581. package/dist/client/copy/record/components/FilePreview.js +15 -0
  582. package/dist/client/copy/record/components/JsonPreview.d.ts +3 -0
  583. package/dist/client/copy/record/components/JsonPreview.js +5 -0
  584. package/dist/client/copy/record/components/JsonView.d.ts +12 -0
  585. package/dist/client/copy/record/components/JsonView.js +14 -0
  586. package/dist/client/copy/record/components/LayoutBuilder.d.ts +23 -0
  587. package/dist/client/copy/record/components/LayoutBuilder.js +25 -0
  588. package/dist/client/copy/record/components/Lightbox.d.ts +5 -0
  589. package/dist/client/copy/record/components/Lightbox.js +7 -0
  590. package/dist/client/copy/record/components/LiveNotices.d.ts +33 -0
  591. package/dist/client/copy/record/components/LiveNotices.js +29 -0
  592. package/dist/client/copy/record/components/PageCurrent.d.ts +1 -0
  593. package/dist/client/copy/record/components/PageCurrent.js +3 -0
  594. package/dist/client/copy/record/components/PageEmptyRun.d.ts +3 -0
  595. package/dist/client/copy/record/components/PageEmptyRun.js +5 -0
  596. package/dist/client/copy/record/components/PageFields.d.ts +5 -0
  597. package/dist/client/copy/record/components/PageFields.js +7 -0
  598. package/dist/client/copy/record/components/PageFlowDiagram.d.ts +33 -0
  599. package/dist/client/copy/record/components/PageFlowDiagram.js +37 -0
  600. package/dist/client/copy/record/components/PageFlows.d.ts +20 -0
  601. package/dist/client/copy/record/components/PageFlows.js +22 -0
  602. package/dist/client/copy/record/components/PageGroups.d.ts +12 -0
  603. package/dist/client/copy/record/components/PageGroups.js +14 -0
  604. package/dist/client/copy/record/components/PageHead.d.ts +8 -0
  605. package/dist/client/copy/record/components/PageHead.js +10 -0
  606. package/dist/client/copy/record/components/PageHistory.d.ts +18 -0
  607. package/dist/client/copy/record/components/PageHistory.js +20 -0
  608. package/dist/client/copy/record/components/PageLayout.d.ts +5 -0
  609. package/dist/client/copy/record/components/PageLayout.js +7 -0
  610. package/dist/client/copy/record/components/PageRelated.d.ts +24 -0
  611. package/dist/client/copy/record/components/PageRelated.js +26 -0
  612. package/dist/client/copy/record/components/PageRoom.d.ts +4 -0
  613. package/dist/client/copy/record/components/PageRoom.js +6 -0
  614. package/dist/client/copy/record/components/PageSectionBox.d.ts +6 -0
  615. package/dist/client/copy/record/components/PageSectionBox.js +10 -0
  616. package/dist/client/copy/record/components/PageTimeline.d.ts +9 -0
  617. package/dist/client/copy/record/components/PageTimeline.js +8 -0
  618. package/dist/client/copy/record/components/Peek.d.ts +3 -0
  619. package/dist/client/copy/record/components/Peek.js +5 -0
  620. package/dist/client/copy/record/components/PeekPanel.d.ts +5 -0
  621. package/dist/client/copy/record/components/PeekPanel.js +7 -0
  622. package/dist/client/copy/record/components/QrCode.d.ts +3 -0
  623. package/dist/client/copy/record/components/QrCode.js +5 -0
  624. package/dist/client/copy/record/components/Record.d.ts +19 -0
  625. package/dist/client/copy/record/components/Record.js +21 -0
  626. package/dist/client/copy/record/components/RecordGone.d.ts +4 -0
  627. package/dist/client/copy/record/components/RecordGone.js +6 -0
  628. package/dist/client/copy/record/components/RecordSummaries.d.ts +1 -0
  629. package/dist/client/copy/record/components/RecordSummaries.js +3 -0
  630. package/dist/client/copy/record/components/RecordTags.d.ts +9 -0
  631. package/dist/client/copy/record/components/RecordTags.js +11 -0
  632. package/dist/client/copy/record/components/RecordTrailNav.d.ts +8 -0
  633. package/dist/client/copy/record/components/RecordTrailNav.js +10 -0
  634. package/dist/client/copy/record/components/RichText.d.ts +4 -0
  635. package/dist/client/copy/record/components/RichText.js +6 -0
  636. package/dist/client/copy/record/components/Value.d.ts +4 -0
  637. package/dist/client/copy/record/components/Value.js +6 -0
  638. package/dist/client/copy/record/components/WorkflowStatus.d.ts +7 -0
  639. package/dist/client/copy/record/components/WorkflowStatus.js +9 -0
  640. package/dist/client/copy/record/components/WriteConfirm.d.ts +11 -0
  641. package/dist/client/copy/record/components/WriteConfirm.js +13 -0
  642. package/dist/client/copy/record/components/groupMoves.d.ts +7 -0
  643. package/dist/client/copy/record/components/groupMoves.js +9 -0
  644. package/dist/client/copy/record/components/jsonModel.d.ts +3 -0
  645. package/dist/client/copy/record/components/jsonModel.js +5 -0
  646. package/dist/client/copy/record/components/pageModel.d.ts +5 -0
  647. package/dist/client/copy/record/components/pageModel.js +7 -0
  648. package/dist/client/copy/record/components/recordSurface.d.ts +6 -0
  649. package/dist/client/copy/record/components/recordSurface.js +8 -0
  650. package/dist/client/copy/record/components/valueModel.d.ts +5 -0
  651. package/dist/client/copy/record/components/valueModel.js +7 -0
  652. package/dist/client/copy/record/fileSource.d.ts +3 -0
  653. package/dist/client/copy/record/fileSource.js +5 -0
  654. package/dist/client/copy/record/insert.d.ts +6 -0
  655. package/dist/client/copy/record/insert.js +8 -0
  656. package/dist/client/copy/record/page.d.ts +4 -0
  657. package/dist/client/copy/record/page.js +6 -0
  658. package/dist/client/copy/record/recordEditValidation.d.ts +4 -0
  659. package/dist/client/copy/record/recordEditValidation.js +6 -0
  660. package/dist/client/copy/record/savedPages.d.ts +4 -0
  661. package/dist/client/copy/record/savedPages.js +6 -0
  662. package/dist/client/copy/record/template.d.ts +9 -0
  663. package/dist/client/copy/record/template.js +11 -0
  664. package/dist/client/copy/record/write.d.ts +30 -0
  665. package/dist/client/copy/record/write.js +26 -0
  666. package/dist/client/copy/shell/app.d.ts +27 -0
  667. package/dist/client/copy/shell/app.js +43 -0
  668. package/dist/client/copy/shell/components/AppIssues.d.ts +10 -0
  669. package/dist/client/copy/shell/components/AppIssues.js +9 -0
  670. package/dist/client/copy/shell/components/Crumbs.d.ts +7 -0
  671. package/dist/client/copy/shell/components/Crumbs.js +17 -0
  672. package/dist/client/copy/shell/components/Dropdown.d.ts +3 -0
  673. package/dist/client/copy/shell/components/Dropdown.js +5 -0
  674. package/dist/client/copy/shell/components/ErrorBoundary.d.ts +4 -0
  675. package/dist/client/copy/shell/components/ErrorBoundary.js +6 -0
  676. package/dist/client/copy/shell/components/FavoriteStar.d.ts +4 -0
  677. package/dist/client/copy/shell/components/FavoriteStar.js +6 -0
  678. package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +4 -0
  679. package/dist/client/copy/shell/components/MobileNavDrawer.js +12 -0
  680. package/dist/client/copy/shell/components/OverflowMenu.d.ts +3 -0
  681. package/dist/client/copy/shell/components/OverflowMenu.js +10 -0
  682. package/dist/client/copy/shell/components/Palette.d.ts +15 -0
  683. package/dist/client/copy/shell/components/Palette.js +18 -0
  684. package/dist/client/copy/shell/components/Prefs.d.ts +4 -0
  685. package/dist/client/copy/shell/components/Prefs.js +11 -0
  686. package/dist/client/copy/shell/components/Prompt.d.ts +1 -0
  687. package/dist/client/copy/shell/components/Prompt.js +3 -0
  688. package/dist/client/copy/shell/components/Rooms.d.ts +6 -0
  689. package/dist/client/copy/shell/components/Rooms.js +8 -0
  690. package/dist/client/copy/shell/components/Sidebar.d.ts +7 -0
  691. package/dist/client/copy/shell/components/Sidebar.js +9 -0
  692. package/dist/client/copy/shell/components/Skeleton.d.ts +5 -0
  693. package/dist/client/copy/shell/components/Skeleton.js +7 -0
  694. package/dist/client/copy/shell/components/TopNav.d.ts +4 -0
  695. package/dist/client/copy/shell/components/TopNav.js +12 -0
  696. package/dist/client/copy/shell/components/Tour.d.ts +4 -0
  697. package/dist/client/copy/shell/components/Tour.js +6 -0
  698. package/dist/client/copy/shell/components/newMenuModel.d.ts +3 -0
  699. package/dist/client/copy/shell/components/newMenuModel.js +5 -0
  700. package/dist/client/copy/shell/components/onDemand.d.ts +3 -0
  701. package/dist/client/copy/shell/components/onDemand.js +5 -0
  702. package/dist/client/copy/shell/components/sidebarModel.d.ts +3 -0
  703. package/dist/client/copy/shell/components/sidebarModel.js +5 -0
  704. package/dist/client/copy/shell/connectionList.d.ts +6 -0
  705. package/dist/client/copy/shell/connectionList.js +8 -0
  706. package/dist/client/copy/shell/core.d.ts +16 -0
  707. package/dist/client/copy/shell/core.js +18 -0
  708. package/dist/client/copy/shell/palette.d.ts +6 -0
  709. package/dist/client/copy/shell/palette.js +8 -0
  710. package/dist/client/copy/shell/prompt.d.ts +1 -0
  711. package/dist/client/copy/shell/prompt.js +3 -0
  712. package/dist/client/copy/shell/requestIdentity.d.ts +9 -0
  713. package/dist/client/copy/shell/requestIdentity.js +11 -0
  714. package/dist/client/copy/shell/resourceRequests.d.ts +4 -0
  715. package/dist/client/copy/shell/resourceRequests.js +6 -0
  716. package/dist/client/copy/shell/sessionIdentity.d.ts +11 -0
  717. package/dist/client/copy/shell/sessionIdentity.js +13 -0
  718. package/dist/client/copy/shell/sessionLifecycle.d.ts +5 -0
  719. package/dist/client/copy/shell/sessionLifecycle.js +7 -0
  720. package/dist/client/copy/shell/startup.d.ts +5 -0
  721. package/dist/client/copy/shell/startup.js +7 -0
  722. package/dist/client/copy/shell/theme.d.ts +5 -0
  723. package/dist/client/copy/shell/theme.js +14 -0
  724. package/dist/client/copy/shell/toast.d.ts +3 -0
  725. package/dist/client/copy/shell/toast.js +5 -0
  726. package/dist/client/copy/shell/updateAttempts.d.ts +6 -0
  727. package/dist/client/copy/shell/updateAttempts.js +8 -0
  728. package/dist/client/copy/shell/visualTheme.d.ts +4 -0
  729. package/dist/client/copy/shell/visualTheme.js +6 -0
  730. package/dist/client/copy/workbench/clauses.d.ts +3 -0
  731. package/dist/client/copy/workbench/clauses.js +5 -0
  732. package/dist/client/copy/workbench/components/ApiOperations.d.ts +21 -0
  733. package/dist/client/copy/workbench/components/ApiOperations.js +23 -0
  734. package/dist/client/copy/workbench/components/Composer.d.ts +105 -0
  735. package/dist/client/copy/workbench/components/Composer.js +92 -0
  736. package/dist/client/copy/workbench/components/Diagram.d.ts +56 -0
  737. package/dist/client/copy/workbench/components/Diagram.js +46 -0
  738. package/dist/client/copy/workbench/components/Export.d.ts +26 -0
  739. package/dist/client/copy/workbench/components/Export.js +25 -0
  740. package/dist/client/copy/workbench/components/HelpPanel.d.ts +10 -0
  741. package/dist/client/copy/workbench/components/HelpPanel.js +12 -0
  742. package/dist/client/copy/workbench/components/History.d.ts +11 -0
  743. package/dist/client/copy/workbench/components/History.js +10 -0
  744. package/dist/client/copy/workbench/components/Landing.d.ts +5 -0
  745. package/dist/client/copy/workbench/components/Landing.js +7 -0
  746. package/dist/client/copy/workbench/components/SchemaExport.d.ts +24 -0
  747. package/dist/client/copy/workbench/components/SchemaExport.js +20 -0
  748. package/dist/client/copy/workbench/components/Summary.d.ts +28 -0
  749. package/dist/client/copy/workbench/components/Summary.js +24 -0
  750. package/dist/client/copy/workbench/components/ThemeLab.d.ts +25 -0
  751. package/dist/client/copy/workbench/components/ThemeLab.js +27 -0
  752. package/dist/client/copy/workbench/components/WorkPanel.d.ts +12 -0
  753. package/dist/client/copy/workbench/components/WorkPanel.js +14 -0
  754. package/dist/client/copy/workbench/composer.d.ts +36 -0
  755. package/dist/client/copy/workbench/composer.js +32 -0
  756. package/dist/client/copy/workbench/composerEntry.d.ts +4 -0
  757. package/dist/client/copy/workbench/composerEntry.js +6 -0
  758. package/dist/client/copy/workbench/export.d.ts +8 -0
  759. package/dist/client/copy/workbench/export.js +7 -0
  760. package/dist/client/copy/workbench/filterbar.d.ts +6 -0
  761. package/dist/client/copy/workbench/filterbar.js +8 -0
  762. package/dist/client/copy/workbench/handoff.d.ts +20 -0
  763. package/dist/client/copy/workbench/handoff.js +19 -0
  764. package/dist/client/copy/workbench/help.d.ts +6 -0
  765. package/dist/client/copy/workbench/help.js +8 -0
  766. package/dist/client/copy/workbench/history.d.ts +3 -0
  767. package/dist/client/copy/workbench/history.js +5 -0
  768. package/dist/client/copy/workbench/schemaexport.d.ts +5 -0
  769. package/dist/client/copy/workbench/schemaexport.js +7 -0
  770. package/dist/client/copy/workbench/tour.d.ts +22 -0
  771. package/dist/client/copy/workbench/tour.js +24 -0
  772. package/dist/client/copy/workbench/views.d.ts +6 -0
  773. package/dist/client/copy/workbench/views.js +8 -0
  774. package/dist/client/core.d.ts +312 -0
  775. package/dist/client/core.js +1067 -0
  776. package/dist/client/customThemes.css +43 -0
  777. package/dist/client/dashboard.d.ts +16 -0
  778. package/dist/client/dashboard.js +35 -0
  779. package/dist/client/deeplink.d.ts +64 -0
  780. package/dist/client/deeplink.js +384 -0
  781. package/dist/client/delete.d.ts +8 -0
  782. package/dist/client/delete.js +35 -0
  783. package/dist/client/density.d.ts +8 -0
  784. package/dist/client/density.js +102 -0
  785. package/dist/client/devtoolsEventClient.d.ts +27 -0
  786. package/dist/client/devtoolsEventClient.js +32 -0
  787. package/dist/client/documents.d.ts +9 -0
  788. package/dist/client/documents.js +23 -0
  789. package/dist/client/dom.d.ts +36 -0
  790. package/dist/client/dom.js +232 -0
  791. package/dist/client/draftRecovery.d.ts +16 -0
  792. package/dist/client/draftRecovery.js +56 -0
  793. package/dist/client/export.d.ts +59 -0
  794. package/dist/client/export.js +217 -0
  795. package/dist/client/features.css +2187 -0
  796. package/dist/client/fieldErrors.d.ts +27 -0
  797. package/dist/client/fieldErrors.js +20 -0
  798. package/dist/client/fileSource.d.ts +10 -0
  799. package/dist/client/fileSource.js +115 -0
  800. package/dist/client/filterbar.d.ts +87 -0
  801. package/dist/client/filterbar.js +168 -0
  802. package/dist/client/firstPaint.d.ts +26 -0
  803. package/dist/client/firstPaint.js +102 -0
  804. package/dist/client/fonts/Barlow-OFL.txt +125 -0
  805. package/dist/client/fonts/IBMPlexMono-OFL.txt +104 -0
  806. package/dist/client/fonts/Inter-OFL.txt +92 -0
  807. package/dist/client/fonts/barlow-400.woff2 +0 -0
  808. package/dist/client/fonts/barlow-600.woff2 +0 -0
  809. package/dist/client/fonts/barlow-semi-condensed-700.woff2 +0 -0
  810. package/dist/client/fonts/ibm-plex-mono-400.woff2 +0 -0
  811. package/dist/client/fonts/ibm-plex-mono-500.woff2 +0 -0
  812. package/dist/client/fonts/inter-latin.woff2 +0 -0
  813. package/dist/client/formControls.css +5 -0
  814. package/dist/client/handoff.d.ts +47 -0
  815. package/dist/client/handoff.js +138 -0
  816. package/dist/client/help.css +151 -0
  817. package/dist/client/help.d.ts +20 -0
  818. package/dist/client/help.js +103 -0
  819. package/dist/client/helpContent.d.ts +95 -0
  820. package/dist/client/helpContent.js +661 -0
  821. package/dist/client/history.d.ts +10 -0
  822. package/dist/client/history.js +181 -0
  823. package/dist/client/historyToken.d.ts +18 -0
  824. package/dist/client/historyToken.js +27 -0
  825. package/dist/client/iconWeight.d.ts +16 -0
  826. package/dist/client/iconWeight.js +44 -0
  827. package/dist/client/index.html +244 -0
  828. package/dist/client/insert.d.ts +50 -0
  829. package/dist/client/insert.js +269 -0
  830. package/dist/client/kit.d.ts +7 -0
  831. package/dist/client/kit.js +1 -0
  832. package/dist/client/layoutDraftRecovery.d.ts +8 -0
  833. package/dist/client/layoutDraftRecovery.js +33 -0
  834. package/dist/client/ledgerLook.css +32 -0
  835. package/dist/client/liveReads.d.ts +23 -0
  836. package/dist/client/liveReads.js +38 -0
  837. package/dist/client/liveState.d.ts +94 -0
  838. package/dist/client/liveState.js +212 -0
  839. package/dist/client/locale.d.ts +141 -0
  840. package/dist/client/locale.js +0 -0
  841. package/dist/client/lumenLook.css +1867 -0
  842. package/dist/client/menu.d.ts +49 -0
  843. package/dist/client/menu.js +131 -0
  844. package/dist/client/menuScope.d.ts +6 -0
  845. package/dist/client/menuScope.js +4 -0
  846. package/dist/client/messages.d.ts +240 -0
  847. package/dist/client/messages.js +370 -0
  848. package/dist/client/motionStill.d.ts +1 -0
  849. package/dist/client/motionStill.js +17 -0
  850. package/dist/client/navigationHold.d.ts +37 -0
  851. package/dist/client/navigationHold.js +503 -0
  852. package/dist/client/nested.d.ts +8 -0
  853. package/dist/client/nested.js +26 -0
  854. package/dist/client/ownWrites.d.ts +33 -0
  855. package/dist/client/ownWrites.js +76 -0
  856. package/dist/client/page.css +4052 -0
  857. package/dist/client/page.d.ts +21 -0
  858. package/dist/client/page.js +187 -0
  859. package/dist/client/pagemarks.d.ts +32 -0
  860. package/dist/client/pagemarks.js +98 -0
  861. package/dist/client/palette.d.ts +35 -0
  862. package/dist/client/palette.js +357 -0
  863. package/dist/client/partsLook.css +1047 -0
  864. package/dist/client/peek.d.ts +11 -0
  865. package/dist/client/peek.js +51 -0
  866. package/dist/client/peekpanel.d.ts +26 -0
  867. package/dist/client/peekpanel.js +121 -0
  868. package/dist/client/pendingWork.d.ts +19 -0
  869. package/dist/client/pendingWork.js +36 -0
  870. package/dist/client/pins.d.ts +24 -0
  871. package/dist/client/pins.js +97 -0
  872. package/dist/client/prefs.d.ts +3 -0
  873. package/dist/client/prefs.js +32 -0
  874. package/dist/client/prompt.d.ts +27 -0
  875. package/dist/client/prompt.js +61 -0
  876. package/dist/client/readGathering.d.ts +4 -0
  877. package/dist/client/readGathering.js +23 -0
  878. package/dist/client/recordCompose.d.ts +11 -0
  879. package/dist/client/recordCompose.js +69 -0
  880. package/dist/client/recordDrafts.d.ts +40 -0
  881. package/dist/client/recordDrafts.js +57 -0
  882. package/dist/client/recordEditValidation.d.ts +12 -0
  883. package/dist/client/recordEditValidation.js +52 -0
  884. package/dist/client/recordIntent.d.ts +6 -0
  885. package/dist/client/recordIntent.js +15 -0
  886. package/dist/client/recordPress.d.ts +12 -0
  887. package/dist/client/recordPress.js +84 -0
  888. package/dist/client/recordSource.d.ts +6 -0
  889. package/dist/client/recordSource.js +15 -0
  890. package/dist/client/recordTrail.d.ts +77 -0
  891. package/dist/client/recordTrail.js +101 -0
  892. package/dist/client/recordWriteRefresh.d.ts +74 -0
  893. package/dist/client/recordWriteRefresh.js +284 -0
  894. package/dist/client/relatedRows.d.ts +4 -0
  895. package/dist/client/relatedRows.js +24 -0
  896. package/dist/client/requestIdentity.d.ts +36 -0
  897. package/dist/client/requestIdentity.js +97 -0
  898. package/dist/client/resourceRequests.d.ts +7 -0
  899. package/dist/client/resourceRequests.js +32 -0
  900. package/dist/client/roleLabels.d.ts +7 -0
  901. package/dist/client/roleLabels.js +24 -0
  902. package/dist/client/rowEditing.d.ts +15 -0
  903. package/dist/client/rowEditing.js +36 -0
  904. package/dist/client/sageLook.css +242 -0
  905. package/dist/client/savedPages.d.ts +15 -0
  906. package/dist/client/savedPages.js +123 -0
  907. package/dist/client/schemaexport.d.ts +14 -0
  908. package/dist/client/schemaexport.js +182 -0
  909. package/dist/client/sessionIdentity.d.ts +39 -0
  910. package/dist/client/sessionIdentity.js +255 -0
  911. package/dist/client/sessionLifecycle.d.ts +33 -0
  912. package/dist/client/sessionLifecycle.js +276 -0
  913. package/dist/client/shellHost.d.ts +70 -0
  914. package/dist/client/shellHost.js +92 -0
  915. package/dist/client/shellMain.d.ts +8 -0
  916. package/dist/client/shellMode.d.ts +433 -0
  917. package/dist/client/shellMode.js +68 -0
  918. package/dist/client/shellStart.d.ts +5 -0
  919. package/dist/client/shellStart.js +54 -0
  920. package/dist/client/shells.d.ts +123 -0
  921. package/dist/client/shells.js +1 -0
  922. package/dist/client/sql.css +139 -0
  923. package/dist/client/startup.d.ts +8 -0
  924. package/dist/client/startup.js +85 -0
  925. package/dist/client/startupHold.d.ts +10 -0
  926. package/dist/client/startupHold.js +73 -0
  927. package/dist/client/structure.css +1296 -0
  928. package/dist/client/style.css +3526 -0
  929. package/dist/client/styleImports.d.ts +3 -0
  930. package/dist/client/surfaces.d.ts +18 -0
  931. package/dist/client/surfaces.js +27 -0
  932. package/dist/client/surfacesLook.css +88 -0
  933. package/dist/client/template.d.ts +75 -0
  934. package/dist/client/template.js +403 -0
  935. package/dist/client/theme.d.ts +14 -0
  936. package/dist/client/theme.js +112 -0
  937. package/dist/client/themeFamilies.css +788 -0
  938. package/dist/client/thmenu.d.ts +12 -0
  939. package/dist/client/thmenu.js +94 -0
  940. package/dist/client/toast.d.ts +7 -0
  941. package/dist/client/toast.js +117 -0
  942. package/dist/client/tour.d.ts +8 -0
  943. package/dist/client/tour.js +176 -0
  944. package/dist/client/transport.d.ts +2 -0
  945. package/dist/client/transport.js +13 -0
  946. package/dist/client/typography.d.ts +4 -0
  947. package/dist/client/typography.js +51 -0
  948. package/dist/client/uiBridge.d.ts +57 -0
  949. package/dist/client/uiBridge.js +30 -0
  950. package/dist/client/updateAttempts.d.ts +46 -0
  951. package/dist/client/updateAttempts.js +131 -0
  952. package/dist/client/url.d.ts +74 -0
  953. package/dist/client/url.js +388 -0
  954. package/dist/client/views.d.ts +19 -0
  955. package/dist/client/views.js +133 -0
  956. package/dist/client/visualTheme.d.ts +62 -0
  957. package/dist/client/visualTheme.js +502 -0
  958. package/dist/client/visualThemes.css +421 -0
  959. package/dist/client/workshopLook.css +126 -0
  960. package/dist/client/write.d.ts +100 -0
  961. package/dist/client/write.js +882 -0
  962. package/dist/client/writePaths.d.ts +16 -0
  963. package/dist/client/writePaths.js +35 -0
  964. package/dist/client/yesNoRule.d.ts +12 -0
  965. package/dist/client/yesNoRule.js +39 -0
  966. package/dist/clientFiles.d.ts +11 -4
  967. package/dist/clientFiles.js +16 -12
  968. package/dist/vite.d.ts +136 -0
  969. package/dist/vite.js +571 -0
  970. package/package.json +130 -3
@@ -0,0 +1,3526 @@
1
+ /* The cascade, in order (docs/design.md, Tokens):
2
+ base — the tool's own rules, and the components features.css imports;
3
+ components — the stylesheets a component brings with it;
4
+ kit — the shared dress under every look, and custom themes' token machinery;
5
+ look — each look; theme — what an App's own theme says beyond the menu: its
6
+ parts' styles, its patterns and its own stylesheet (partsLook.css,
7
+ surfacesLook.css, themeStylesheet.ts), over the look it extends;
8
+ structure — layout that no look may move (structure.css);
9
+ print — paper, last.
10
+ A later layer wins whatever its specificity: nothing here out-specifies or
11
+ out-loads another to win. */
12
+ @layer base, components, kit, look, theme, structure, print;
13
+ /* The tokens and the primitives' own rules are @mistriwork/ui's (packages/ui/src): taken into base, ahead of the rules
14
+ here that dress the primitives in place. Its style.css puts them in a layer of their own, for a page that is only
15
+ the primitives; a layer under base would let every element rule here (`button`, `input`) beat a primitive's class,
16
+ so here they are base itself, and a rule here still wins over one of them only by specificity, as it did. */
17
+ @import '@mistriwork/ui/tokens.css' layer(base);
18
+ @import '@mistriwork/ui/primitives.css' layer(base);
19
+
20
+ @layer base {
21
+ * { box-sizing: border-box; }
22
+
23
+ /* A picture's <source>s (imageWidths.ts imageSources) choose the file; the <img> inside is what is laid out and styled. */
24
+ picture { display: contents; }
25
+
26
+ body {
27
+ margin: 0;
28
+ background: var(--ground);
29
+ color: var(--ink);
30
+ font: var(--text-md)/1.5 var(--sans);
31
+ /* The zoom-corrected viewport height, not 100vh: vh units ignore the
32
+ density zoom on the root, so a bare 100vh body rendered 12% taller
33
+ than the window — the window grew a scroll of its own and dragged the
34
+ topbar, the sidebar header and the crumb bar off-screen with it. The
35
+ token is 100vh at compact; density.js divides it by the zoom. */
36
+ height: var(--shell-vh, 100vh);
37
+ display: flex;
38
+ flex-direction: column;
39
+ /* The one radius's larger step, for a panel, the palette and a stat card.
40
+ Declared here, where appnav writes an App's or a look's --radius, so the
41
+ step follows it: Mono's square stays square. A theme's own panel corner
42
+ (`shape.radius.panel`, on the root) wins; the step stops at 20px, the
43
+ most a panel may be, because a control may now be 16px. */
44
+ --radius-lg: var(--panel-radius, min(calc(var(--radius) * 1.5), 20px));
45
+ /* Shape by role (docs/design.md, Shape). These are the database browser's
46
+ own corners; every look points them at its radius (visualThemes.css), so
47
+ a popup, a panel and a dialog are as square or as round as the fields
48
+ beside them. They sit here, beside --radius-lg, for the same reason.
49
+ A surface's lift is the scale's (--shadow-pop, --shadow-panel,
50
+ --shadow-modal); where the browser's own lift was a literal of its own,
51
+ a rule under :where(:root:not([data-visual-theme])) right after the
52
+ surface's keeps it, at the same specificity (test/check-client-shape.mjs). */
53
+ --radius-item: 5px;
54
+ --radius-pop: 8px;
55
+ --radius-panel: 8px;
56
+ --radius-dialog: 10px;
57
+ /* The house ring (docs/design.md, Access). Its ink, `--focus`, is on :root with the accent; a theme may
58
+ thicken it to 3px (`shape.border.focus`, --focus-ring-width on the root), never thin it. */
59
+ --focus-width: var(--focus-ring-width, 2px);
60
+ --focus-offset: 2px;
61
+ /* The ring on the grid, held at its true width under the density zoom. The root's zoom scales a ring declared
62
+ in layout pixels and the browser draws it in whole zoomed pixels: under a zoom below 1 (2px -> 1.79 at 0.895,
63
+ drawn as 1) the ring thins on the screen, where `mistri grade` reads it against C3's 2px. So the width is
64
+ divided by the zoom the root exposes (--density-zoom, density.js) and the ring lands at 2 screen px. Above 1
65
+ (comfortable's 1.12) a plain 2px is 2.24, drawn as 2. Only the rings drawn straight on a table and its cursor
66
+ cell use it; the others are not read as the grid is. */
67
+ --focus-width-true: calc(var(--focus-width) / var(--density-zoom, 1));
68
+ }
69
+
70
+ /* ---------- top bar ---------- */
71
+
72
+ .topbar {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: var(--space-5);
76
+ padding: var(--space-3) var(--space-4h);
77
+ background: var(--surface);
78
+ border-bottom: 1px solid var(--line);
79
+ flex: none;
80
+ }
81
+
82
+ /* The wordmark is a home link, so it has to look pressable without becoming
83
+ a button in the visual sense — no border, no fill, just a hit area. */
84
+ .brand {
85
+ display: flex; align-items: center; gap: var(--space-3); flex: none;
86
+ /* Colour reset explicitly, not just the background. The base button rule
87
+ sets `color: var(--ground)` to sit on an accent fill; unsetting only the fill
88
+ left near-white text on a white bar, visible solely on hover. */
89
+ background: none; border: none; border-radius: var(--radius);
90
+ color: var(--ink);
91
+ padding: var(--space-2) var(--space-2h); margin-left: -6px; cursor: pointer;
92
+ font: inherit;
93
+ }
94
+ .brand:hover .brand-name { color: var(--accent-ink); }
95
+ .brand:hover .brand-mark { border-color: var(--accent); }
96
+
97
+ /* Two linked nodes, which is the whole idea of the tool in 14 pixels. */
98
+ .brand-mark {
99
+ width: 14px; height: 14px; border-radius: 50%;
100
+ border: 2px solid var(--accent);
101
+ position: relative;
102
+ }
103
+ .brand-mark::after {
104
+ content: ""; position: absolute; left: 12px; top: 3px;
105
+ width: 10px; height: 2px; background: var(--accent);
106
+ }
107
+
108
+ .brand-name { font-weight: 620; letter-spacing: -0.01em; color: var(--ink); font-size: var(--text-md); }
109
+ /* An App's short name (`shortName`) is what a phone's bar says, where the full one was cut to "Northwind Fi…"; the
110
+ full name stays in the button, read, so it is still what the button is called. */
111
+ .brand-short { display: none; }
112
+ @media (max-width: 600px) {
113
+ .brand-name:has(.brand-short) .brand-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
114
+ .brand-short { display: inline; }
115
+ }
116
+ /* The connection name, which is also the button that opens Connections.
117
+ Quiet by default — it reads as the label it is — and only takes a box on
118
+ hover, because a permanent button here would compete with the query bar
119
+ for the eye every time the page is looked at. */
120
+ .brand-db {
121
+ color: var(--ink-muted);
122
+ font-family: var(--mono);
123
+ font-size: var(--text-sm);
124
+ padding: var(--space-2) var(--space-2h);
125
+ border: 1px solid transparent;
126
+ border-radius: var(--radius);
127
+ background: none;
128
+ cursor: pointer;
129
+ white-space: nowrap;
130
+ }
131
+ .brand-db:hover { color: var(--ink); border-color: var(--line-strong); }
132
+ .brand-db:focus-visible { color: var(--ink); border-color: var(--line-strong); }
133
+ /* Before a connection is named there is nothing to click, and an empty box
134
+ beside the wordmark reads as a rendering fault. */
135
+ .brand-db:empty { display: none; }
136
+
137
+ .querybar { display: flex; gap: var(--space-2h); flex: 1; min-width: 0; }
138
+
139
+ #query {
140
+ flex: 1; min-width: 0;
141
+ padding: var(--space-3) var(--space-3h);
142
+ font: var(--text-base)/1.4 var(--mono);
143
+ color: var(--ink);
144
+ background: var(--ground);
145
+ border: 1px solid var(--line-control);
146
+ border-radius: var(--radius);
147
+ }
148
+ #query:focus { outline: var(--focus-width) solid var(--focus); outline-offset: -1px; border-color: transparent; }
149
+ /* A placeholder is text and reads at 4.5:1. The browser's own grey was 3.8:1
150
+ on the dark grounds and 4.4:1 on the Workbench's paper. */
151
+ ::placeholder { color: var(--ink-subtle); opacity: 1; }
152
+
153
+ button {
154
+ font: inherit; font-size: var(--text-base);
155
+ padding: var(--space-3) var(--space-4);
156
+ border-radius: var(--radius);
157
+ border: 1px solid transparent;
158
+ background: var(--accent); color: var(--on-accent);
159
+ cursor: pointer;
160
+ }
161
+ button.ghost { background: transparent; color: var(--ink-muted); border-color: var(--line-strong); }
162
+ button.ghost[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
163
+ button:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
164
+ /* In an App, whatever takes the keyboard's focus and names no ring of its own
165
+ wears the house ring (docs/design.md, Access), not the browser's blue: at
166
+ no specificity, so every rule that draws its own still does. The database
167
+ browser keeps the browser's own there. */
168
+ :where(:root[data-visual-theme] :focus-visible) { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
169
+
170
+ /* A form's actions (N05): 24px under the last field, which is more than the
171
+ 20px between fields, so Submit reads as the end of the form rather than one
172
+ more of its rows; the primary last, at the right. On a phone they take the
173
+ form's width, the primary on top where the thumb is (structure.css). */
174
+ .form-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
175
+ @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
176
+ /* Only transform and opacity, which skip layout and paint. Confined to
177
+ deliberate controls — a row you click a hundred times a day should not
178
+ spring. */
179
+ .topbar button, .confirm button, .view-save {
180
+ transition: transform var(--t-press) var(--ease-out),
181
+ background var(--t-hover) var(--ease-out),
182
+ border-color var(--t-hover) var(--ease-out),
183
+ color var(--t-hover) var(--ease-out);
184
+ }
185
+ .topbar button:active, .confirm button:active { transform: scale(0.97); }
186
+ }
187
+
188
+ /* The pane, so the control that edits the statement sits in its corner rather
189
+ than on a row of its own. A persistent full-width row for one button is a
190
+ line of chrome between the query bar and the results, on every page, for an
191
+ action taken occasionally. */
192
+ .explain-pane { position: relative; flex: none; }
193
+ .explain-pane[hidden] { display: none; }
194
+ .explain-edit {
195
+ position: absolute; top: 6px; right: 12px;
196
+ padding: var(--space-1) var(--space-3); border-radius: var(--radius-item);
197
+ background: var(--surface); border: 1px solid var(--line);
198
+ color: var(--ink-muted); cursor: pointer;
199
+ font: var(--text-xs) var(--mono);
200
+ opacity: 0;
201
+ }
202
+ /* Revealed on approach, and always for the keyboard — an affordance nobody can
203
+ tab to is one that does not exist for anyone not using a mouse. */
204
+ .explain-pane:hover .explain-edit,
205
+ .explain-edit:focus-visible { opacity: 1; }
206
+ .explain-edit:hover { color: var(--accent-ink); border-color: var(--accent); }
207
+
208
+ .explain {
209
+ margin: 0; padding: var(--space-3h) var(--space-4h);
210
+ font: var(--text-sm)/1.55 var(--mono);
211
+ background: var(--raised);
212
+ border-bottom: 1px solid var(--line);
213
+ color: var(--ink-muted);
214
+ white-space: pre; overflow-x: auto;
215
+ flex: none;
216
+ }
217
+
218
+ .errors {
219
+ padding: var(--space-3) var(--space-4h); flex: none;
220
+ background: color-mix(in srgb, var(--status-critical) 10%, var(--surface));
221
+ border-bottom: 1px solid var(--line);
222
+ color: var(--status-critical);
223
+ font-size: var(--text-base);
224
+ }
225
+ .errors p { margin: var(--space-1) 0; }
226
+
227
+ /* ---------- layout ---------- */
228
+
229
+ .layout { display: flex; flex: 1; min-height: 0; }
230
+
231
+ .sidebar {
232
+ width: 232px; flex: none;
233
+ border-right: 1px solid var(--line);
234
+ background: var(--surface);
235
+ display: flex; flex-direction: column;
236
+ min-height: 0;
237
+ }
238
+ #table-filter {
239
+ margin: var(--space-3); padding: var(--space-2h) var(--space-3);
240
+ font: var(--text-sm) var(--sans); color: var(--ink);
241
+ background: var(--ground);
242
+ border: 1px solid var(--line-control); border-radius: var(--radius);
243
+ }
244
+ #table-list { list-style: none; margin: 0; padding: 0 var(--space-2h) var(--space-4); overflow-y: auto; flex: 1; }
245
+ #table-list li { margin-bottom: 1px; }
246
+ #table-list button {
247
+ width: 100%; text-align: left;
248
+ background: transparent; color: var(--ink);
249
+ border: none; border-radius: var(--radius);
250
+ padding: var(--space-2) var(--space-3);
251
+ font: var(--text-sm)/1.35 var(--mono);
252
+ display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline;
253
+ }
254
+ #table-list button:hover { background: var(--raised); }
255
+ #table-list button[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
256
+ #table-list .rows { color: var(--nav-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
257
+ #table-list .view-tag { color: var(--status-info); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; }
258
+ /* App nav (--app): group headings between runs of entries, entries the
259
+ connection cannot honour, and the row that flips to the full table list. */
260
+ /* Its line is the capitals' own height (line-height 1, set after the `font` shorthand resets it): a face's
261
+ `normal` leading made the line 12px in Helvetica and 14px in Barlow, and at 14px a folding heading's center
262
+ sat too near the row under it for axe's 24px target spacing (WCAG 2.5.8) wherever the menu is compact. */
263
+ #table-list li.nav-group {
264
+ padding: var(--space-3h) var(--space-3) var(--space-1) calc(8px + var(--nav-group-inset, 0px));
265
+ /* The menu's own muted ink, not the page's: the validator measures
266
+ navMuted against the menu ground at 4.5:1, and the page's muted ink
267
+ on a dark menu ground was faint and unmeasured. */
268
+ color: var(--nav-muted);
269
+ font: var(--text-xs) var(--sans);
270
+ line-height: 1;
271
+ text-transform: uppercase; letter-spacing: 0.06em;
272
+ }
273
+ #table-list .nav-missing { color: var(--ink-muted); }
274
+ /* A heading that folds keeps the plain heading's geometry: the button is the
275
+ heading's own line box, and the chevron hangs into the padding rather than
276
+ growing it. The hit target reaches into the padding above (the heading's
277
+ own space, never the first row below) through ::before, so it stays
278
+ comfortable without moving a row (0.8.9: the toggle made each heading
279
+ 14px taller and pushed Payday's last rooms out of the window). */
280
+ #table-list li.nav-group .nav-group-fold {
281
+ position: relative;
282
+ width: 100%; min-height: 0; padding: 0;
283
+ font: inherit; letter-spacing: inherit; text-transform: inherit;
284
+ color: inherit; background: transparent; border: 0; box-shadow: none;
285
+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
286
+ }
287
+ #table-list li.nav-group .nav-group-fold::before { content: ''; position: absolute; inset: -9px -4px -2px; }
288
+ #table-list li.nav-group .nav-group-fold:hover { color: var(--ink); }
289
+ #table-list .nav-group-chevron { font-size: var(--text-md); flex: none; margin-block: -4px; }
290
+
291
+ /* `scrollbar-gutter: stable` reserves the scrollbar's width whether or not
292
+ it is showing, so content keeps the same right-hand gutter either way —
293
+ without it the bar sits *in* the padding and the page reads as flush
294
+ against the window on that side only. */
295
+ .content {
296
+ /* Keep absolute descendants (including screen-reader labels) inside this
297
+ scroll pane. Anchoring them to the document gives the window a second
298
+ scroll range that can drag the whole pane above a blank viewport. */
299
+ position: relative;
300
+ flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column;
301
+ scrollbar-gutter: stable;
302
+ }
303
+ /* The App's own panes draw no scroll bar.
304
+ CSS cannot ask for "only while scrolling": whether a bar is an overlay that
305
+ fades or a permanent track is the operating system's setting, and a mouse
306
+ attached to a Mac makes it permanent. So a thin themed bar was still a bar
307
+ standing between two panes at all times. What is left is the content itself
308
+ — cut off at the fold, and scrolling by wheel, trackpad, keyboard and touch
309
+ exactly as before. The window's own bar stays the platform's, so a page
310
+ that scrolls as a whole still says so.
311
+ The cost is honest: on a desk where bars are permanent, these panes no
312
+ longer advertise that there is more below. If that reads as too quiet, one
313
+ line here brings a thin themed bar back.
314
+ The navigation rail and a record's feeds are panes too: the nav list, the
315
+ mobile nav, a conversation, the related panel, the peek panel and help. They
316
+ are named under `.app-mode` so the Workbench keeps its own bars. Popups and
317
+ listboxes are not panes — their size follows their content and the bar is
318
+ their only sign of more — so they keep theirs. */
319
+ .content, .filter-rail, .applist-controls, [role="dialog"],
320
+ body.app-mode :is(#table-list, .mobile-nav-list, .timeline-scroll, .related-panel, .peekpanel-body, .help-body) {
321
+ scrollbar-width: none;
322
+ }
323
+
324
+ /* The record grid fills the height so its divider runs the full way down,
325
+ rather than stopping wherever the shorter column happens to end. */
326
+ .content > .record { flex: 1; }
327
+
328
+ /* A navigation swaps finished screens (navigationHold.ts, motion rule 9).
329
+ The screen being left stands as a picture over the part of the pane the
330
+ reader sees (its top and height are set as it is taken; standing in the
331
+ pane's scroll content, it also keeps the pane's scroll range, so nothing
332
+ is clamped under it) while the new room is laid out beneath, measured but
333
+ not shown, until it is complete: hidden rather than undrawn, so nothing it
334
+ measures changes when it appears, and nothing it does as it arrives is a
335
+ layout shift. A room that puts the focus back where the reader's hands
336
+ are (reached from the keyboard, or a refinement: a tab, a filter) is
337
+ transparent instead, because a hidden control cannot take the focus. Not
338
+ hit either way, so a press lands on neither. */
339
+ .content.nav-holding > :not(.nav-held) { visibility: hidden; }
340
+ .content.nav-holding.nav-holding-focusable > :not(.nav-held) { visibility: visible; opacity: 0; }
341
+ /* Except while the page is still starting (index.html hides it whole): a
342
+ room shown through that, transparent, could take the focus, and the hold
343
+ ending before the page was revealed hid it again under the startup rule,
344
+ so the focus fell to the page and the key after it was lost (the
345
+ Workbench grid's first Enter, e2e/workbench-rows.spec.ts). Starting, the
346
+ room is hidden like the rest until the page is revealed. */
347
+ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held) { visibility: hidden; }
348
+ /* Above the arriving room's sticky trail and table borders. */
349
+ .nav-held { position: absolute; z-index: 6; left: 0; right: 0; pointer-events: none; }
350
+ /* Past the budget the wait is said, and nothing moves to say it. */
351
+ .nav-held.nav-held-waiting { opacity: 0.55; }
352
+ .content.nav-holding[aria-busy="true"] { cursor: progress; }
353
+ /* The arriving room, once it is complete: 160ms of opacity and a few pixels
354
+ of settle, for a step to a new place taken with the pointer. It starts
355
+ well above nothing — from zero, the first frame after the swap read as an
356
+ empty pane, the very thing the hold removes. The trail stays still; it
357
+ changed, it did not arrive. */
358
+ @media (prefers-reduced-motion: no-preference) {
359
+ .content.nav-enter > :not(.crumbs-host):not(.nav-held) {
360
+ animation: nav-enter var(--t-popover) var(--ease-out);
361
+ }
362
+ }
363
+ @keyframes nav-enter {
364
+ from { opacity: 0.6; transform: translateY(4px); }
365
+ }
366
+ /* A transform makes its box the containing block of anything fixed inside it: on a phone a record's verbs, a bar
367
+ fixed to the foot of the screen (page.css), rode inside the arriving room and dropped to the foot when the
368
+ step ended, a layout shift of the whole bar. That room arrives by its ink alone. */
369
+ @media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
370
+ body.app-mode .content.nav-enter > :has(.page-head.has-record.is-room > .page-head-actions) { animation-name: nav-enter-ink; }
371
+ }
372
+ @keyframes nav-enter-ink {
373
+ from { opacity: 0.6; }
374
+ }
375
+
376
+ .empty { margin: auto; max-width: 30rem; padding: var(--space-7); text-align: center; }
377
+ .empty h1 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 var(--space-3); }
378
+ .empty p { color: var(--ink-muted); margin: 0; }
379
+
380
+ /* ---------- breadcrumb ---------- */
381
+
382
+ .crumbs {
383
+ display: flex; align-items: baseline; gap: 1px; flex-wrap: wrap;
384
+ padding: var(--space-3) var(--room-inset);
385
+ border-bottom: 1px solid var(--line);
386
+ background: var(--surface);
387
+ font-size: var(--text-sm);
388
+ position: sticky; top: 0; z-index: 2;
389
+ }
390
+ /* The trail's own buttons only: a list's verbs drawn in the bar keep their own dress. */
391
+ .crumbs > button {
392
+ background: none; border: none; padding: var(--space-1) 5px;
393
+ color: var(--link); font: inherit; font-family: var(--mono);
394
+ cursor: pointer; border-radius: min(3px, var(--radius));
395
+ }
396
+ .crumbs > button:hover { background: var(--raised); }
397
+ /* The chevron is the only separator, and it is set lighter and roomier than
398
+ the crumbs so the eye reads it as structure rather than content. */
399
+ .crumbs .sep {
400
+ color: var(--ink-subtle);
401
+ font-size: var(--text-xs);
402
+ padding: 0 var(--space-1h);
403
+ }
404
+ .crumbs .current {
405
+ color: var(--ink); font-weight: 500;
406
+ font-family: var(--mono); padding: var(--space-1) var(--space-2);
407
+ }
408
+ /* On a phone a record's name is wider than the bar: wrapped, it left the
409
+ house and its chevron alone on the first line. It takes the rest of the
410
+ line and ends in an ellipsis; the page's own heading says it in full. */
411
+ @media (max-width: 640px) {
412
+ .crumbs .current { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
413
+ }
414
+
415
+ /* ---------- results table ---------- */
416
+
417
+ /* ---------- tabs ---------- */
418
+
419
+ .tabs { display: flex; flex-shrink: 0; gap: var(--space-1); padding: var(--space-3) var(--space-4h) 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-x: auto; }
420
+ /* A strip that runs past its edge says so: the last tab fades out until the strip is scrolled to its end.
421
+ The timeline is the strip's own scroll, so a strip that fits has no animation and no fade. */
422
+ @supports (animation-timeline: scroll()) {
423
+ @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
424
+ .tabs { animation: tabs-edge linear both; animation-timeline: scroll(self inline); }
425
+ }
426
+ }
427
+ @keyframes tabs-edge {
428
+ from { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
429
+ 90%, to { mask-image: linear-gradient(to right, #000, #000); }
430
+ }
431
+ .tabs-list { display: contents; }
432
+ .tab {
433
+ background: none; border: none; border-bottom: 2px solid transparent;
434
+ color: var(--ink-muted); padding: var(--space-2) var(--space-3h) var(--space-3);
435
+ font: var(--text-sm) var(--sans); border-radius: 0; cursor: pointer;
436
+ /* A tab's name is never broken over lines ("On / the / way" on a phone):
437
+ the row scrolls instead (overflow-x above). */
438
+ white-space: nowrap; flex-shrink: 0;
439
+ }
440
+ .tab:hover { color: var(--ink); }
441
+ .tab[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
442
+
443
+ /* Wider than it was: with the sidebar on the left, 14px of gutter on the
444
+ right reads as none at all beside a panel edge. */
445
+ .panel-pad { padding: var(--space-5) 20px; }
446
+
447
+ .ddl-note { margin: var(--space-4) var(--space-4h) 0; color: var(--ink-muted); font-size: var(--text-sm); }
448
+ .ddl-note strong { color: var(--ink); font-weight: 600; }
449
+ /* The explorer's API tab (ApiOperations.tsx): one form, its boxes in a grid,
450
+ the answer below one hairline — no boxes around either. */
451
+ .api-form { max-width: 100rem; }
452
+ .api-kind { border: 0; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) 20px; }
453
+ .api-kind legend { padding: 0; margin-bottom: var(--space-2h); font-size: var(--text-sm); color: var(--ink-muted); }
454
+ .api-kind label { display: inline-flex; align-items: center; gap: var(--space-2h); }
455
+ .api-kind code, .api-request code { font-family: var(--code); font-size: var(--text-sm); }
456
+ .api-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); column-gap: var(--field-gap); }
457
+ .api-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
458
+ .api-answer { margin-top: 20px; padding-top: var(--space-5); border-top: 1px solid var(--line); }
459
+ .api-request { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-5); margin: 0 0 var(--space-4); overflow-wrap: anywhere; }
460
+ .api-meta { font-size: var(--text-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
461
+ .ddl {
462
+ margin: var(--space-3) var(--space-4h) var(--space-5); padding: var(--space-4) var(--space-4h);
463
+ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
464
+ font: var(--text-sm)/1.6 var(--mono); color: var(--ink);
465
+ white-space: pre; overflow-x: auto;
466
+ }
467
+
468
+ /* ---------- diagram ---------- */
469
+
470
+ /* ---------- diagram: viewport, zoom, focus ---------- */
471
+
472
+ /* No width cap: the diagram is a viewport now, and every pixel of panel it
473
+ does not use is a pixel of schema the reader has to pan to instead. */
474
+ .diagram { max-width: none; }
475
+
476
+ /* A window onto a drawing larger than the window.
477
+
478
+ Given a height rather than left to size to its content: a viewport that
479
+ grows with its content is not a viewport, and the whole point is that the
480
+ picture can be bigger than the space it is read in. */
481
+ .diagram-viewport {
482
+ position: relative;
483
+ height: min(72vh, 760px);
484
+ border: 1px solid var(--line);
485
+ border-radius: var(--radius-panel);
486
+ background: var(--ground);
487
+ overflow: hidden;
488
+ cursor: grab;
489
+ touch-action: none;
490
+ }
491
+ .diagram-viewport.dragging { cursor: grabbing; }
492
+ .diagram-viewport svg { display: block; }
493
+
494
+ .zoom-controls {
495
+ position: absolute; right: 10px; bottom: 10px;
496
+ display: flex; align-items: center; gap: var(--space-2);
497
+ padding: var(--space-2); border-radius: min(7px, var(--radius-pop));
498
+ background: var(--surface); border: 1px solid var(--line);
499
+ box-shadow: var(--shadow-pop);
500
+ }
501
+ :where(:root:not([data-visual-theme])) .zoom-controls { box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); }
502
+ .zoom-controls button { padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
503
+ .zoom-readout {
504
+ min-width: 3.4rem; text-align: center;
505
+ font: var(--text-xs) var(--mono); color: var(--ink-muted);
506
+ font-variant-numeric: tabular-nums;
507
+ }
508
+
509
+ .diagram-head {
510
+ display: flex; align-items: center; gap: var(--space-4h); flex-wrap: wrap;
511
+ margin-bottom: var(--space-4);
512
+ }
513
+ .diagram-head .diagram-title { margin: 0; }
514
+
515
+ .diagram-focus {
516
+ display: flex; align-items: center; gap: var(--space-2h);
517
+ margin-left: auto; justify-content: flex-end;
518
+ /* wrap-reverse so an overflowing row of chips grows upwards. Plain `wrap`
519
+ would push the field itself onto a second line, which is the same
520
+ moving-target problem in the other axis. */
521
+ flex-wrap: wrap-reverse;
522
+ }
523
+ .diagram-focus .picker { flex: none; }
524
+
525
+ /* A field with a menu we draw ourselves. See picker.js for why. */
526
+ .picker { position: relative; }
527
+ .picker-input {
528
+ width: 15rem; max-width: 100%; padding: var(--space-2) var(--space-3);
529
+ border: 1px solid var(--line-control); border-radius: var(--radius);
530
+ background: var(--ground); color: var(--ink);
531
+ font: var(--text-sm) var(--mono);
532
+ }
533
+ .picker-input:focus { outline: none; border-color: var(--focus); }
534
+ .picker-list {
535
+ z-index: 40; max-height: 17rem; overflow-y: auto;
536
+ padding: var(--space-2);
537
+ background: var(--surface);
538
+ border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
539
+ box-shadow: var(--shadow-pop);
540
+ }
541
+ :where(:root:not([data-visual-theme])) .picker-list { box-shadow: 0 8px 28px rgb(0 0 0 / 0.16); }
542
+ .picker-option {
543
+ display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
544
+ padding: var(--space-2h) var(--space-3); border-radius: var(--radius-item); cursor: pointer;
545
+ }
546
+ .picker-option.active { background: var(--accent-soft); }
547
+ .picker-label { font: var(--text-sm) var(--mono); color: var(--ink); }
548
+ .picker-option.active .picker-label { color: var(--accent-ink); }
549
+ .picker-detail { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
550
+ .picker-empty { padding: var(--space-3h); margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
551
+ .diagram-chip {
552
+ display: inline-flex; align-items: center; gap: var(--space-2h);
553
+ padding: var(--space-2) var(--space-3); border-radius: 999px;
554
+ border: 1px solid var(--accent); background: var(--accent-soft);
555
+ color: var(--accent-ink); font: var(--text-xs) var(--mono); cursor: pointer;
556
+ }
557
+ .diagram-chip .chip-x { opacity: 0.6; }
558
+ .diagram-chip:hover .chip-x { opacity: 1; }
559
+ .diagram-clear { font-size: var(--text-xs); }
560
+
561
+ /* ---------- command palette ---------- */
562
+
563
+ .palette-backdrop {
564
+ /* Above everything it can be opened from.
565
+
566
+ ⌘K is bound at the document with capture, so it fires whatever is on
567
+ screen — and at 60 it opened *underneath* the SQL panel (75), the
568
+ connection manager (80) and the page builder (85). The result was a
569
+ focused text field nobody could see, swallowing keystrokes meant for the
570
+ surface in front of it. Whatever the palette can open over, it opens
571
+ above. */
572
+ position: fixed; inset: 0; z-index: 100;
573
+ background: rgb(0 0 0 / 0.28);
574
+ display: grid; place-content: start center;
575
+ padding-top: 12vh;
576
+ }
577
+ /* As tall as its results, up to 62vh (the backdrop's grid packs it to the start):
578
+ stretched by a flex row, it stood at 62vh over six results and a blank half.
579
+ It hangs from 12vh, so a list that grows as records arrive moves nothing above it. */
580
+ .palette {
581
+ width: min(620px, 92vw); max-height: 62vh;
582
+ display: flex; flex-direction: column;
583
+ background: var(--surface);
584
+ border: 1px solid var(--line-strong);
585
+ border-radius: var(--radius-dialog);
586
+ box-shadow: var(--shadow-modal);
587
+ overflow: hidden;
588
+ }
589
+ :where(:root:not([data-visual-theme])) .palette { box-shadow: 0 18px 60px rgb(0 0 0 / 0.28); }
590
+ .palette-input {
591
+ padding: var(--space-4h) var(--space-5);
592
+ border: none; border-bottom: 1px solid var(--line);
593
+ background: none; color: var(--ink);
594
+ font: var(--text-md) var(--mono);
595
+ }
596
+ /* The outline is dropped because the palette's own frame is the focus
597
+ indicator while it is the only thing focusable — but Tab can move to a
598
+ result and back, and coming back to an input with no indicator at all is
599
+ the caret being somewhere nobody can see. */
600
+ .palette-input:focus { outline: none; border-bottom-color: var(--accent); }
601
+ .palette-list { overflow-y: auto; padding: var(--space-2h); }
602
+ .palette-item {
603
+ display: grid; grid-template-columns: 4.6rem 1fr auto;
604
+ align-items: baseline; gap: var(--space-3h);
605
+ padding: var(--space-3) var(--space-3h); border-radius: var(--radius); cursor: pointer;
606
+ }
607
+ .palette-item.active { background: var(--accent-soft); }
608
+ .palette-kind {
609
+ font: var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
610
+ color: var(--ink-subtle);
611
+ }
612
+ .palette-kind.kind-view, .palette-kind.kind-filter { color: var(--link); }
613
+ .palette-kind.kind-recent { color: var(--ink-subtle); }
614
+ .palette-kind.kind-action { color: var(--accent-ink); }
615
+ .palette-kind.kind-page { color: var(--accent-ink); }
616
+ .palette-kind.kind-sql { color: var(--status-info); }
617
+ .palette-label {
618
+ font: var(--text-base) var(--mono); color: var(--ink);
619
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
620
+ }
621
+ .palette-item.active .palette-label { color: var(--accent-ink); }
622
+ .palette-detail { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
623
+ .palette-empty { padding: var(--space-5); margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
624
+
625
+ /* ---------- the sidebar toggle ---------- */
626
+
627
+ /* Header controls that are not the primary action: an icon's worth of space
628
+ each, no outline until you reach for them. The outlined-rectangle treatment
629
+ is reserved for Run and for the mode, which are the two things in the header
630
+ worth reading every time. */
631
+ .icon-button {
632
+ padding: var(--space-2) var(--space-3); border-radius: var(--radius);
633
+ background: none; border: 1px solid transparent;
634
+ color: var(--ink-muted); cursor: pointer;
635
+ font: var(--text-xs) var(--mono);
636
+ }
637
+ .icon-button:hover { color: var(--accent-ink); border-color: var(--line); background: var(--surface); }
638
+ .icon-button[aria-expanded="true"],
639
+ .icon-button[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
640
+
641
+ .more-list {
642
+ z-index: 70; min-width: 15rem; padding: var(--space-2);
643
+ max-width: var(--available-width, calc(100vw - 16px));
644
+ max-height: var(--available-height, 80dvh); overflow-y: auto; overscroll-behavior: contain;
645
+ background: var(--surface);
646
+ border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
647
+ box-shadow: var(--shadow-pop);
648
+ }
649
+ :where(:root:not([data-visual-theme])) .more-list { box-shadow: 0 10px 34px rgb(0 0 0 / 0.18); }
650
+ .more-item {
651
+ display: grid; grid-template-columns: 1.1rem 1fr auto;
652
+ align-items: baseline; gap: var(--space-3);
653
+ padding: var(--space-3) var(--space-3); border-radius: var(--radius-item); cursor: pointer;
654
+ font: var(--text-sm) var(--mono); color: var(--ink);
655
+ }
656
+ .more-item:hover, .more-item:focus { background: var(--accent-soft); outline: none; }
657
+ .more-item:focus .more-label { color: var(--accent-ink); }
658
+ /* The keyboard's place in a list wears the house ring. A tinted row was its
659
+ only mark — 1.04:1 on a look's white, 1.12:1 on the Workbench's, where a
660
+ focus indicator needs 3:1 — and the board's and the grip's menus, whose
661
+ rows are transparent, drew none. Where the options take focus (a menu, a
662
+ Select) the ring is the keyboard's alone; where the box keeps focus (the
663
+ palette, a picker, the query's completions) the lit option is the focus. */
664
+ :is(.more-item, .dd-option):focus-visible,
665
+ :is(.dd-option, .palette-item, .picker-option, .ac-item).active:not(:focus) { outline: var(--focus-width) solid var(--focus); outline-offset: -2px; }
666
+ .more-item.no-tick { grid-template-columns: 1fr auto; }
667
+ .more-tick { color: var(--accent-ink); font-size: var(--text-xs); }
668
+ .more-detail { font-size: var(--text-xs); color: var(--ink-subtle); min-width: 0; margin-inline-start: var(--space-3); text-align: end; overflow-wrap: anywhere; }
669
+ @media (max-width: 700px) {
670
+ .more-item { grid-template-columns: 1.1rem minmax(0, 1fr); }
671
+ .more-item.no-tick { grid-template-columns: minmax(0, 1fr); }
672
+ .more-label { overflow-wrap: anywhere; }
673
+ .more-detail { display: none; }
674
+ }
675
+
676
+ /* The collapse control sits in the sidebar, on the filter field's row. */
677
+ .sidebar-filter-row { display: flex; align-items: center; gap: var(--space-2h); margin: var(--space-3); }
678
+ .sidebar-filter-row #table-filter { margin: 0; flex: 1; min-width: 0; }
679
+ /* An icon inside a flex button is a flex item, and shrinks: the gear went to
680
+ two pixels wide while keeping its full height, which reads as a stray
681
+ vertical line rather than a control. The `width` attribute on an `<svg>` is
682
+ only a hint once flexbox is doing the sizing. */
683
+ .conn-manage svg,
684
+ .sidebar-collapse svg,
685
+ .sidebar-reveal svg { flex: none; display: block; }
686
+
687
+ /* `--ink-subtle` is a mid-grey at half alpha — the token for a rule between
688
+ things, not for a control somebody has to find. These are the two controls
689
+ a first-time reader is least likely to notice and most likely to want, so
690
+ they are drawn at the same strength as the text they sit beside, with a hit
691
+ area big enough to be one. */
692
+ .sidebar-collapse {
693
+ flex: none; display: inline-flex; align-items: center; justify-content: center;
694
+ width: 28px; height: 28px; line-height: 1;
695
+ background: none; border: 1px solid transparent; border-radius: var(--radius);
696
+ color: var(--ink-muted); cursor: pointer;
697
+ }
698
+ .sidebar-collapse:hover { color: var(--ink); border-color: var(--line); background: var(--raised); }
699
+
700
+ /* And the way back sits where the sidebar was. */
701
+ .sidebar-reveal {
702
+ display: none;
703
+ align-self: flex-start; flex: none;
704
+ /* Room on every side: it sat hard against the window edge with its focus
705
+ ring clipped by it, and hard against the content on the other. */
706
+ margin: var(--space-3h) var(--space-3h) 0; line-height: 1;
707
+ /* No `display` here: the rule above says `none`, and the one that reveals
708
+ this button is the one that decides how it is laid out. Setting
709
+ `inline-flex` in the base rule overrode that `none` and left the button
710
+ on screen beside the sidebar it exists to bring back. */
711
+ align-items: center; justify-content: center;
712
+ width: 28px; height: 28px;
713
+ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
714
+ color: var(--ink-muted); cursor: pointer;
715
+ }
716
+ .sidebar-reveal:hover { color: var(--ink); border-color: var(--accent); }
717
+ /* Drawn inside its own box, so the ring cannot be cut off by the edge of the
718
+ window the button is pinned to. */
719
+ .sidebar-reveal:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -2px; }
720
+
721
+ /* The fold is the desktop sidebar's. The phone drawer's nav carries `.sidebar`
722
+ too, and the stored fold must never empty it. */
723
+ body.sidebar-hidden .sidebar:not(.mobile-nav-sidebar) { display: none; }
724
+ body.sidebar-hidden .sidebar-reveal { display: inline-flex; }
725
+ .sidebar-reveal-label { display: none; }
726
+
727
+ /* Menu icons (NavGlyph.tsx): an entry's declared icon before its words, in
728
+ the words' ink but quieter, until the entry is the current one. An App
729
+ that declares none draws nothing here. */
730
+ #table-list .nav-icon { flex: none; width: 15px; height: 15px; align-self: center; color: var(--nav-muted); }
731
+ #table-list button[aria-current="true"] .nav-icon { color: inherit; }
732
+ #table-list :is(.nav-icon, .nav-dot) + .nav-label { flex: 1; min-width: 0; }
733
+ /* Stand-ins for entries without an icon exist for the folded rail alone. */
734
+ .nav-rail-only { display: none; }
735
+
736
+ /* The icon rail (`ui.shell.rail`): folding leaves the sidebar as a column of
737
+ its entries' marks instead of hiding it. The words stay in the tree,
738
+ visually hidden, as each button's accessible name; a hovered mark says it
739
+ (its title). Group headings become rules between runs of marks. */
740
+ body.app-nav-rail.sidebar-hidden .sidebar:not(.mobile-nav-sidebar) { display: flex; width: 56px; }
741
+ body.app-nav-rail.sidebar-hidden .sidebar-reveal { display: none; }
742
+ body.app-nav-rail.sidebar-hidden #table-filter { display: none; }
743
+ body.app-nav-rail.sidebar-hidden .sidebar-filter-row { justify-content: center; margin: var(--space-3) 0; }
744
+ /* The list scrolls, and the words below leave the flow: it must be their
745
+ containing block, or they are placed against an ancestor outside the scroll
746
+ area and a long menu stretches the whole page. */
747
+ body.app-nav-rail.sidebar-hidden #table-list { padding: 0 var(--space-3) var(--space-4); position: relative; }
748
+ body.app-nav-rail.sidebar-hidden #table-list button { justify-content: center; align-items: center; padding: var(--space-3) 0; }
749
+ body.app-nav-rail.sidebar-hidden #table-list .nav-icon { width: 18px; height: 18px; }
750
+ body.app-nav-rail.sidebar-hidden #table-list .nav-rail-only { display: inline-flex; }
751
+ body.app-nav-rail.sidebar-hidden #table-list .nav-initial {
752
+ width: 18px; height: 18px; align-items: center; justify-content: center;
753
+ font: 600 var(--text-xs)/1 var(--sans); color: var(--ink-muted);
754
+ border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.75);
755
+ }
756
+ body.app-nav-rail.sidebar-hidden #table-list button[aria-current="true"] .nav-initial { color: inherit; border-color: currentColor; }
757
+ body.app-nav-rail.sidebar-hidden #table-list :is(.rows, .view-tag) { display: none; }
758
+ body.app-nav-rail.sidebar-hidden #table-list :is(.nav-label, li.nav-group > span) {
759
+ position: absolute; width: 1px; height: 1px; overflow: hidden;
760
+ clip-path: inset(50%); white-space: nowrap;
761
+ }
762
+ body.app-nav-rail.sidebar-hidden #table-list li.nav-group { padding: 0; margin: var(--space-2h) var(--space-2); border-top: 1px solid var(--line); }
763
+ body.app-nav-rail.sidebar-hidden #table-list li.nav-group:first-child { border-top: none; margin: 0; }
764
+
765
+ @media (max-width: 600px) {
766
+ body:not(.app-mode) .topbar { flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
767
+ body:not(.app-mode) .topbar .brand { min-width: 0; max-width: 100%; }
768
+ body:not(.app-mode) .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
769
+ body:not(.app-mode) .brand-db { max-width: 100%; overflow-wrap: anywhere; }
770
+ body:not(.app-mode) .conn-picker { min-width: 0; max-width: 100%; }
771
+ body:not(.app-mode) .topbar-actions { margin-left: auto; }
772
+ body:not(.app-mode) .topbar button { min-height: 44px; }
773
+ body:not(.app-mode) .querybar { flex-basis: 100%; order: 1; }
774
+ body:not(.app-mode) .layout { flex-direction: column; }
775
+ body:not(.app-mode) .sidebar {
776
+ width: 100%; max-height: min(22rem, 45%); flex: none;
777
+ border-right: 0; border-bottom: 1px solid var(--line);
778
+ }
779
+ body:not(.app-mode) .sidebar-filter-row { margin: var(--space-2h) var(--space-4); }
780
+ body:not(.app-mode) #table-filter,
781
+ body:not(.app-mode) #table-list button { min-height: 44px; }
782
+ body:not(.app-mode) .sidebar-collapse { width: 44px; height: 44px; }
783
+ body:not(.app-mode) .sidebar-reveal { width: auto; height: 44px; padding: 0 var(--space-4); gap: var(--space-3); margin: var(--space-2h) var(--space-4); }
784
+ body:not(.app-mode) .sidebar-reveal-label { display: inline; }
785
+ body:not(.app-mode) .content { min-height: 0; }
786
+ body:not(.app-mode) .fields { grid-template-columns: minmax(0, 1fr); }
787
+ body:not(.app-mode) .field { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: var(--space-4); }
788
+ body:not(.app-mode) .field > * { min-width: 0; overflow-wrap: anywhere; }
789
+ body:not(.app-mode) .record-heading { flex-wrap: wrap; }
790
+ body:not(.app-mode) .record-heading > span { min-width: 0; overflow-wrap: anywhere; }
791
+ body:not(.app-mode) .errors { overflow-wrap: anywhere; }
792
+ }
793
+
794
+ .diagram svg { display: block; overflow: visible; }
795
+ /* Opened nodes make the picture wider than the panel; it scrolls rather than
796
+ shrinking the type to fit. */
797
+ .node > rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
798
+ .node text { font: var(--text-sm) var(--mono); fill: var(--ink); }
799
+ .node-head { cursor: pointer; }
800
+ .node-head-hit { fill: transparent; stroke: none; }
801
+ .node:hover > rect { stroke: var(--accent); }
802
+ .node-head:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
803
+ .node-focus > rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
804
+ .node-focus .node-head text { fill: var(--accent); }
805
+ .node-head text { font-weight: 600; }
806
+
807
+ /* The column list. Quieter than the table name it sits under — it is there to
808
+ be scanned for a name you already have in mind, not read top to bottom. */
809
+ .node-rule { stroke: var(--line); stroke-width: 1; }
810
+ .node-field { font-size: var(--text-xs); fill: var(--ink-muted); }
811
+ .node-field.is-key { fill: var(--ink); }
812
+ .node-field.is-ref { fill: var(--accent); }
813
+ .node-type { font-size: var(--text-xs); fill: var(--ink-subtle); }
814
+ .node-more { cursor: pointer; }
815
+ .node-more-hit { fill: transparent; stroke: none; }
816
+ .node-more text { font-size: var(--text-xs); fill: var(--ink-subtle); }
817
+ .node-more:hover text { fill: var(--accent); }
818
+ .node-more:hover .node-more-hit { fill: var(--accent-soft); }
819
+ .node-more:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 1px; }
820
+ .edge { fill: none; stroke: var(--line-strong); stroke-width: 1.25; }
821
+ .edge-head { fill: var(--line-strong); }
822
+ .edge-label { font: var(--text-xs) var(--mono); fill: var(--ink-muted); }
823
+ .diagram-legend { margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--ink-subtle); font-family: var(--mono); }
824
+ .diagram-legend span { color: var(--ink-muted); }
825
+
826
+ .result-head {
827
+ display: flex; align-items: baseline; gap: var(--space-4);
828
+ padding: var(--space-3h) var(--space-4h) var(--space-2h);
829
+ color: var(--ink-muted); font-size: var(--text-sm);
830
+ }
831
+ .result-head .result-title { margin: 0; font: 600 calc(15px * var(--type-k)) var(--mono); color: var(--ink); letter-spacing: -0.01em; }
832
+ .result-head .stat { font-variant-numeric: tabular-nums; }
833
+
834
+ /* No horizontal padding on the scrollport.
835
+
836
+ `position: sticky; left: 0` pins to the *padding* edge, so a scrollport with
837
+ 14px of left padding leaves a 14px strip that pinned cells do not cover and
838
+ scrolled content passes under — the tail of a column showing through beside
839
+ the frozen one. The inset moves into the edge cells, where it is the same
840
+ 14px and covers nothing. */
841
+ .table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; padding: 0 0 var(--space-4h); }
842
+ .table-wrap > table.grid-fit { table-layout: fixed; max-width: none; }
843
+ /* The edge fade that stands in for the hidden scroll bar: a table wider than its room fades out over the side that
844
+ has more, so a column is never cut off without saying so. A mask, so it changes no layout and takes no room. */
845
+ .table-wrap[data-more] {
846
+ --fade-start: 0px; --fade-end: 0px;
847
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
848
+ mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
849
+ }
850
+ .table-wrap[data-more~="start"] { --fade-start: 24px; }
851
+ .table-wrap[data-more~="end"] { --fade-end: 24px; }
852
+ th:first-child, td:first-child { padding-left: var(--space-4h); }
853
+ th:last-child, td:last-child { padding-right: var(--space-4h); }
854
+ th:first-child .th-sort { padding-left: 0; }
855
+ /* A room-level grid: the gutter moves from the edge cells to the wrap,
856
+ so the scroll region stops 14px short of both edges instead of running
857
+ flush into the window on the right while the sidebar softened the
858
+ left. Text stays on the line the heads use. */
859
+ .grid-inset > .table-wrap { margin-inline: var(--space-4h); }
860
+ .grid-inset > .table-wrap th:first-child, .grid-inset > .table-wrap td:first-child { padding-left: 0; }
861
+ .grid-inset > .table-wrap th:last-child, .grid-inset > .table-wrap td:last-child { padding-right: 0; }
862
+
863
+ /* Columns frozen against a sideways scroll. The `left` on each is measured
864
+ after layout — see applyPins — because it is the width of everything before
865
+ it, which the browser knows and this file cannot. */
866
+ .pinned {
867
+ position: sticky;
868
+ z-index: 1;
869
+ background: var(--ground);
870
+ }
871
+ thead .pinned { z-index: 3; background: var(--surface); }
872
+ tbody tr:hover .pinned { background: var(--accent-soft); }
873
+ /* One seam, on the rightmost frozen column, rather than a line per column. */
874
+ .pinned-edge { box-shadow: 1px 0 0 var(--line-strong); }
875
+ .table-wrap:not([data-scrolled]) .pinned-edge { box-shadow: none; }
876
+ table { border-collapse: collapse; width: 100%; font: var(--text-sm) var(--mono); }
877
+ th, td {
878
+ text-align: left; padding: 5px var(--space-3h);
879
+ border-bottom: 1px solid var(--line);
880
+ white-space: nowrap; max-width: 30rem;
881
+ overflow: hidden; text-overflow: ellipsis;
882
+ }
883
+ th {
884
+ position: sticky; top: 0;
885
+ /* Above the pinned body cells, which carry `z-index: 1` so they float over
886
+ the columns they freeze past. Without this, scrolling down slid the
887
+ frozen `id` column over its own heading — two sticky things, both
888
+ stacked, and the one that should win by being the header did not. */
889
+ z-index: 2;
890
+ background: var(--surface); color: var(--ink-muted);
891
+ font-weight: 600; font-size: var(--text-xs);
892
+ text-transform: uppercase; letter-spacing: 0.05em;
893
+ border-bottom: 1px solid var(--line-strong);
894
+ padding: 0;
895
+ }
896
+ th.sorted { color: var(--accent-ink); border-bottom-color: var(--accent); }
897
+ /* An App's table that fits its width is no sideways scroller, so its head
898
+ sticks to the page under the trail rather than to a box that never scrolls
899
+ (useStickyHead); once stuck it takes a soft ground and a hairline of its
900
+ own, since a collapsed border stays behind with the table. */
901
+ .app-mode .table-wrap[data-fits] { overflow: visible; }
902
+ .app-mode .table-wrap[data-fits] th { top: var(--head-top, 0px); }
903
+ .app-mode .table-wrap[data-stuck] th {
904
+ background: color-mix(in srgb, var(--raised) 55%, var(--surface));
905
+ box-shadow: inset 0 -1px 0 var(--line);
906
+ }
907
+
908
+ /* The header splits into two controls: the label sorts, the caret filters.
909
+ One click target doing both would make every attempt to filter a sort. */
910
+ /* A fitted grid sizes a head by counting its characters (gridSizing.ts), and
911
+ a wider system face than the one it was counted in — Linux's, for the same
912
+ `system-ui` — ran "WAREHOUSE" past its column. The label then pushed the
913
+ caret out under the next head, clipped below a usable target. The caret
914
+ is the control that must stay whole; the label gives way, with an
915
+ ellipsis, inside the column it was given. */
916
+ .th-controls { display: inline-flex; align-items: center; vertical-align: middle; max-width: 100%; }
917
+ .th-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
918
+ /* An App's head wraps at its words, to two lines, before its column widens (gridSizing.ts sizes the floor to the
919
+ two-line width): a wide list then fits its room instead of scrolling sideways under single-line heads. The head
920
+ and its row grow by a line; the label breaks only between words, and the clamp is the guard for a head set in
921
+ a column nothing sized. */
922
+ .app-mode .th-sort { white-space: normal; text-align: start; }
923
+ .app-mode .th-label {
924
+ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
925
+ white-space: normal; overflow-wrap: normal; word-break: normal;
926
+ }
927
+ /* A value the room set on two lines (gridSizing.ts, after the heads wrapped and before anything is cut): it breaks
928
+ at its words and is kept whole, and a link inside it wraps with it. */
929
+ .app-mode td.wraps { white-space: normal; overflow-wrap: normal; word-break: normal; text-overflow: clip; }
930
+ .app-mode td.wraps :is(.ref-jump, .cell-text) { white-space: normal; }
931
+ /* The row's name over its folded columns (Grid.tsx `more`) is its own line, cut by default: set on two lines, it wraps
932
+ as the cell does, not "Review security questionn…" over a detail line that wrapped beneath it (G187). */
933
+ .app-mode td.wraps .cell-main { white-space: normal; text-overflow: clip; }
934
+ .th-sort {
935
+ display: inline-flex; align-items: center; gap: var(--space-2); flex: 0 1 auto; min-width: 0;
936
+ background: none; border: none; border-radius: 0;
937
+ color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
938
+ padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3h); cursor: pointer; white-space: nowrap;
939
+ /* A head's sort is a target: 24px at the least (WCAG 2.5.8), where a small head's padding left it 23. */
940
+ min-height: 24px;
941
+ }
942
+ .th-sort:hover { color: var(--accent-ink); }
943
+ .th-arrow { color: var(--accent-ink); }
944
+ /* Not disabled-looking, just not offered: the column reads normally, it simply
945
+ does not respond to a click. Greying the label out would say the column
946
+ itself is unavailable, which is not what is being said. */
947
+ .th-sort.not-sortable { cursor: default; opacity: 1; }
948
+ .th-sort.not-sortable:hover { color: inherit; }
949
+ /* Marked unavailable rather than disabled, so the sentence saying why is
950
+ reachable by keyboard — see the header in table.js. The browser no longer
951
+ greys it for us, so it is greyed here. */
952
+ .th-sort[aria-disabled="true"] { cursor: default; color: var(--ink-subtle); }
953
+ .th-sort[aria-disabled="true"]:hover { color: var(--ink-subtle); }
954
+ /* The default order is shown, not announced: an arrow the same shape as a
955
+ chosen sort, drawn faintly enough to read as "this happened" rather than
956
+ "you did this". */
957
+ .sorted-default .th-arrow { color: var(--ink-subtle); }
958
+ /* An estimate is a button, because there is something to do about it. */
959
+ .stat-estimate {
960
+ background: none; border: 1px solid transparent; border-radius: var(--radius-item);
961
+ padding: 1px var(--space-2h); cursor: pointer;
962
+ font: inherit; color: var(--status-info);
963
+ }
964
+ .stat-estimate:hover { border-color: var(--status-info); background: color-mix(in srgb, var(--status-info) 10%, transparent); }
965
+
966
+ .stat-order {
967
+ background: none; border: 1px solid transparent; border-radius: var(--radius-item);
968
+ padding: 1px var(--space-2h); cursor: pointer;
969
+ font: inherit; color: var(--ink-subtle);
970
+ }
971
+ .stat-order:hover { color: var(--accent-ink); border-color: var(--line); }
972
+ .th-filter {
973
+ display: inline-flex; align-items: center; justify-content: center; flex: none;
974
+ width: 24px; min-height: 24px;
975
+ background: none; border: none; border-radius: min(3px, var(--radius));
976
+ color: var(--ink-subtle); cursor: pointer;
977
+ padding: 0; line-height: 1;
978
+ }
979
+ .th-filter-icon {
980
+ display: block; width: 6px; height: 6px;
981
+ border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
982
+ transform: translateY(-1.5px) rotate(45deg);
983
+ }
984
+ .th-filter:hover { color: var(--accent-ink); background: var(--accent-soft); }
985
+ /* Where a pointer can hover, a head's menu caret waits for its head: it stands just past the label's end, on the head's
986
+ own ground, while the head is hovered or holds focus or its menu is open, and is gone otherwise. Over the label
987
+ it took half of a short one ("Name"): a click there opened the menu instead of sorting. A label too long for
988
+ its head gives up the caret's width. A caret on every
989
+ head was a column of marks down the table's top, and the room each reserved (gridSizing.ts) went to heads while
990
+ the names in the rows were cut. The caret reserves no room of its own: it lies over the padding past the label, so a
991
+ head the column fits is never cut for it ("Co…" in an 80px column whose values fit). On touch it stays, beside the
992
+ label, which gives way as before. */
993
+ @media (hover: hover) {
994
+ .th-controls { background: inherit; }
995
+ /* The controls stand inside their own head, never past it: placed against the head (sticky, so its containing
996
+ block), at its trailing edge inside the resizer's 16px, and at its leading edge for a figure's head, set to the
997
+ right, whose label leaves that side bare. A caret standing past its label's end, or before it in the last head,
998
+ lay over the NEIGHBOUR's label and answered its pointer ("TOTAL" read "AL" under the last head's moves). */
999
+ .th-controls > .th-filter {
1000
+ position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%);
1001
+ background: inherit; opacity: 0;
1002
+ }
1003
+ th:is(:hover, :focus-within) .th-controls > .th-filter, .th-controls > .th-filter[aria-expanded="true"] { opacity: 1; }
1004
+ .align-right > .th-controls > .th-filter { right: auto; left: 0; }
1005
+ /* A head whose label fills it (a sorted figure, a head wrapped to the least its column allows) has no bare side:
1006
+ the controls then lie over the label's end, and only while the head is hovered or focused, which is raised above
1007
+ its neighbours so they, not the neighbour, answer there. */
1008
+ th:has(> .th-controls):is(:hover, :focus-within) { z-index: 3; }
1009
+ /* Stacked: the caret over the label's sort, the sort over the move buttons. Where a head's label fills it the moves
1010
+ are under the sort (reached by the keyboard) and the click meant for the sort sorts; the caret is the one control
1011
+ with no other way in, so it stays on top. The controls are their own stacking context, drawn on their head's
1012
+ ground, and the moves sit in it beneath the flow (below): the caret, positioned, already paints over the sort.
1013
+ The sort is not given a stacking context of its own to rise over them: a transparent layer of label text was
1014
+ composited one way on the list and another in the navigation's held picture of it (navigationHold.ts), and on
1015
+ Linux, where Chromium draws text with subpixel color on one and gray on the other, the heads' labels changed
1016
+ under the reader as a record was opened. */
1017
+ .th-controls { isolation: isolate; }
1018
+ }
1019
+
1020
+ .align-right .th-sort { padding-left: var(--space-2); padding-right: 0; }
1021
+ /* A head's own arrangement, beside its sort: the column's move buttons
1022
+ and the resizer on its trailing edge (Grid.tsx). The moves wait with
1023
+ the filter caret — quiet until the head is hovered or holds focus, and
1024
+ always there on touch — and draw at the caret's 24px, with a finger's
1025
+ 44px hit area on a coarse pointer, as the chrome's small controls do
1026
+ (structure.css). The resizer's line shows the same way, its handle
1027
+ inset to its own head's trailing edge: a handle straddling the edge
1028
+ reaches into the neighbour's head and overlaps the neighbour's sort
1029
+ control (grade's overlap check caught exactly that on a list's first
1030
+ two columns), and a click near the edge would then answer the wrong
1031
+ control. No
1032
+ transition anywhere here: a width or an order lands where it is put,
1033
+ so reduced motion needs nothing special. */
1034
+ .th-moves { display: contents; }
1035
+ .th-move {
1036
+ display: inline-flex; align-items: center; justify-content: center; flex: none;
1037
+ width: 24px; min-height: 24px;
1038
+ background: none; border: none; border-radius: min(3px, var(--radius));
1039
+ color: var(--ink-subtle); cursor: pointer;
1040
+ padding: 0; line-height: 1; opacity: 0;
1041
+ }
1042
+ /* The arrows are drawn here, not typed into the button: a glyph in the markup is text, and the head's text is its label. */
1043
+ .th-move-left::before { content: '‹'; }
1044
+ .th-move-right::before { content: '›'; }
1045
+ .th-move:disabled { cursor: default; }
1046
+ .th-move:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
1047
+ th:focus-within .th-move { opacity: 1; }
1048
+ .th-resizer {
1049
+ position: absolute; top: 0; bottom: 0; right: 0; width: var(--space-4);
1050
+ cursor: col-resize; touch-action: none;
1051
+ }
1052
+ .th-resizer::before {
1053
+ content: ''; position: absolute; top: var(--space-2); bottom: var(--space-2); left: 50%; width: 1px;
1054
+ background: var(--line-strong); opacity: 0;
1055
+ }
1056
+ .th-resizer:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
1057
+ @media (hover: hover) {
1058
+ th:is(:hover, :focus-within) .th-move { opacity: 1; }
1059
+ /* Out of the head's flow, as the filter caret is, and inside the head as it is: beside the caret where the head has
1060
+ one, toward the label, so a fitted head loses no room to them (gridSizing.ts reserves none). A figure's stand
1061
+ at the leading edge, mirrored. While hidden they answer no pointer (they stay focusable, and focus-within shows
1062
+ them), and no ground is painted until the head is hovered or holds focus. */
1063
+ .th-moves {
1064
+ display: flex; position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%);
1065
+ z-index: -1; pointer-events: none;
1066
+ }
1067
+ th:is(:hover, :focus-within) .th-moves { pointer-events: auto; background: inherit; }
1068
+ .th-controls:has(> .th-filter) > .th-moves { right: calc(var(--space-4) + 24px); }
1069
+ .align-right > .th-controls > .th-moves { right: auto; left: 0; }
1070
+ .align-right > .th-controls:has(> .th-filter) > .th-moves { left: 24px; }
1071
+ .th-move:not(:disabled):hover { color: var(--accent-ink); background: var(--accent-soft); }
1072
+ th:is(:hover, :focus-within) .th-resizer::before, .th-resizer:hover::before { opacity: 1; }
1073
+ }
1074
+ @media (hover: none) {
1075
+ .th-move { opacity: 1; }
1076
+ .th-resizer::before { opacity: 1; }
1077
+ }
1078
+ @media (pointer: coarse) {
1079
+ .th-move { position: relative; }
1080
+ .th-move::after {
1081
+ content: ''; position: absolute; left: 50%; top: 50%;
1082
+ width: max(100%, 44px); height: max(100%, 44px);
1083
+ transform: translate(-50%, -50%);
1084
+ }
1085
+ .th-resizer::after {
1086
+ content: ''; position: absolute; left: 50%; top: 50%;
1087
+ width: max(100%, 44px); height: max(100%, 44px);
1088
+ transform: translate(-50%, -50%);
1089
+ }
1090
+ }
1091
+ /* A figure's head ends where its figures end: the cell's own padding, nothing more (the last column's is 14px, above). */
1092
+ th.align-right:not(:last-child) { padding-right: var(--space-3h); }
1093
+ /* ...and its resizer stops at the same line: wider, it lay over the label's last pixels and answered a click meant for the sort. */
1094
+ th.align-right:not(:last-child) .th-resizer { width: var(--space-3h); }
1095
+ /* A text head's controls end where its resizer begins, the same way: the head keeps the resizer's 12px as its own
1096
+ padding, and the sort, whose trailing room that strip now is, keeps none of its own. With no padding there, a sort
1097
+ filling its head ran under the resizer: a reference's arrow, and the sort's arrow beside it, at the floor its column
1098
+ is given at 768px ("Engineer→↑"), and a field report's grade found "Customer→" and "Resize Customer column" drawn
1099
+ over each other. The last head's own 14px already holds its resizer, except in a grid inset from its edges. */
1100
+ :is(th:not(:last-child), .grid-inset > .table-wrap th:last-child):not(.align-right):has(> .th-resizer) { padding-right: var(--space-4); }
1101
+ :is(th:not(:last-child), .grid-inset > .table-wrap th:last-child):not(.align-right):has(> .th-resizer) .th-sort { padding-right: 0; }
1102
+
1103
+ .th-menu {
1104
+ /* Placed by the positioner (Base UI) under the header that opened it. */
1105
+ position: relative; z-index: 40;
1106
+ min-width: 15rem; max-width: 24rem; max-height: 20rem; overflow-y: auto;
1107
+ background: var(--surface);
1108
+ border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
1109
+ box-shadow: var(--shadow-pop);
1110
+ padding: var(--space-2);
1111
+ }
1112
+ :where(:root:not([data-visual-theme])) .th-menu { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
1113
+ @media (prefers-reduced-motion: no-preference) {
1114
+ .th-menu {
1115
+ transform-origin: top center;
1116
+ transition: opacity var(--t-popover) var(--ease-out), transform var(--t-popover) var(--ease-out);
1117
+ @starting-style { opacity: 0; transform: scale(0.97) translateY(-4px); }
1118
+ }
1119
+ }
1120
+ .th-menu-item {
1121
+ width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
1122
+ background: none; border: none; border-radius: var(--radius-item);
1123
+ padding: var(--space-2) var(--space-3); cursor: pointer; text-align: left;
1124
+ text-transform: none; letter-spacing: 0;
1125
+ }
1126
+ .th-menu-item:hover, .th-menu-item[data-highlighted] { background: var(--raised); }
1127
+ .th-menu-label { font: var(--text-sm) var(--mono); color: var(--ink); }
1128
+ .th-menu-typed .th-menu-label { color: var(--link); }
1129
+ /* An App's Pin column: last, and in the dimmer ink — it arranges the view, it does not narrow it. */
1130
+ .th-menu-quiet .th-menu-label { color: var(--ink-muted); }
1131
+ .th-menu-sep { height: 1px; background: var(--line); margin: var(--space-2) var(--space-1); }
1132
+ .th-menu-cond { font: var(--text-xs) var(--mono); color: var(--ink-subtle); flex: none; }
1133
+ /* An App's Clear filter says what it takes off, in words, on a line of its own under the verb. */
1134
+ .th-menu-item:has(.th-menu-said) { flex-direction: column; align-items: flex-start; gap: 1px; }
1135
+ .th-menu-said { font: var(--text-xs) var(--sans); color: var(--ink-muted); max-width: 34ch; overflow-wrap: anywhere; }
1136
+ th .pk { color: var(--status-info); }
1137
+ th .fk { color: var(--accent-ink); }
1138
+ /* Only where a click goes somewhere. A pointer over a row that does nothing
1139
+ advertises an action the row does not have. */
1140
+ tbody tr { cursor: default; }
1141
+ tbody tr.clickable { cursor: pointer; }
1142
+ tbody tr.clickable:hover { background: var(--accent-soft); }
1143
+
1144
+ /* Alignment is set per column by the renderer and applied to the header too,
1145
+ so a label always sits over its own values. */
1146
+ .align-left { text-align: left; }
1147
+ .align-right { text-align: right; }
1148
+ .align-center { text-align: center; }
1149
+
1150
+ td.mono { font-family: var(--mono); }
1151
+ td.num { font-variant-numeric: tabular-nums; }
1152
+ td.null { color: var(--ink-subtle); font-style: italic; }
1153
+ td.bool .yes { color: var(--accent-ink); }
1154
+ /* `false` is a value, and was drawn in the token for absence — the same
1155
+ `--ink-subtle` as `null`, a mid-grey at half alpha, with only an italic to
1156
+ tell them apart. In a database browser those are two very different facts
1157
+ about a row, and the negative one was the harder of the two to see at all.
1158
+ It reads as present-and-negative now; `null` keeps the faint italic,
1159
+ because absence is the thing that should recede. */
1160
+ td.bool .no { color: var(--ink-muted); }
1161
+ td.reflink { color: var(--link); }
1162
+ td .ref { color: var(--link); text-decoration: underline; text-decoration-style: dotted; }
1163
+
1164
+ /* Paging sits on the right, under the end of the table, where the eye
1165
+ already is after reading a row across. */
1166
+ .pager {
1167
+ display: flex; gap: var(--space-4); align-items: center; justify-content: space-between;
1168
+ padding: 0 var(--space-4h) var(--space-5); color: var(--ink-muted); font-size: var(--text-sm);
1169
+ flex-wrap: wrap;
1170
+ }
1171
+ /* How you are reading the table, on the left; where you are in it, on the
1172
+ right. The size is not a step through the result, so it does not sit among
1173
+ the buttons that are. */
1174
+ .pager-size { display: flex; gap: var(--space-2h); align-items: center; }
1175
+ /* Narrow: the list is four two-or-three-digit numbers, and the shared control
1176
+ is sized for connection names. */
1177
+ .pager-size .dd { min-width: 0; }
1178
+ .pager-size .dd-button { padding: var(--space-1h) var(--space-2h); }
1179
+ .pager-size .dd-list { min-width: 0; }
1180
+ .pager-steps { margin-inline-start: auto; }
1181
+ .pager .page-label { display: flex; gap: var(--space-2h); align-items: center; flex-wrap: wrap; }
1182
+ @media (max-width: 600px) {
1183
+ .pager-workbench.step-control { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
1184
+ .pager-workbench.step-control .page-label { grid-column: 1 / -1; grid-row: 1; justify-content: center; border-inline-start: 0; }
1185
+ .pager-workbench.step-control > .step-button { border-block-start: 1px solid var(--line); }
1186
+ .pager-workbench.step-control > .step-button:nth-child(4) { border-inline-start: 0; }
1187
+ }
1188
+ /* Wide enough for four digits without growing as the number does — a control
1189
+ that resizes while you read it is a control that moves under the cursor. */
1190
+ .page-input {
1191
+ width: 5.5ch; text-align: right;
1192
+ font: inherit; font-family: var(--mono);
1193
+ color: var(--ink); background: var(--ground);
1194
+ border: 1px solid var(--line-control); border-radius: var(--radius);
1195
+ padding: var(--space-1h) var(--space-2);
1196
+ }
1197
+ /* A step that cannot be taken says so by looking unavailable rather than by
1198
+ vanishing: buttons that come and go make the row jump as you page. */
1199
+ .pager .ghost[disabled] { opacity: 0.4; cursor: default; }
1200
+
1201
+ /* One quiet frame for a step, its position and the next step. The outer
1202
+ radius belongs to the look; the segments have no button frames of their
1203
+ own. Text can wrap rather than clip a translated label or a large count. */
1204
+ .step-control {
1205
+ display: inline-flex; align-items: stretch; gap: 0;
1206
+ min-inline-size: 0; max-inline-size: 100%;
1207
+ border: 1px solid var(--line); border-radius: var(--radius);
1208
+ background: var(--surface); color: var(--ink-muted); overflow: hidden;
1209
+ }
1210
+ .step-control > .step-button {
1211
+ display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2h);
1212
+ flex: 0 1 auto; padding: var(--space-2h) var(--space-3h); border: 0;
1213
+ background: transparent; color: var(--ink-muted); box-shadow: none;
1214
+ font: inherit; line-height: 1.4;
1215
+ }
1216
+ .step-control > :not(:first-child) { border-inline-start: 1px solid var(--line); }
1217
+ .step-control .tw-icon, .crumb-back .tw-icon { flex: none; }
1218
+ .step-control:dir(rtl) .tw-icon, .crumb-back:dir(rtl) .tw-icon { transform: scaleX(-1); }
1219
+ .step-label { min-inline-size: 0; overflow-wrap: anywhere; }
1220
+ .step-position {
1221
+ display: flex; align-items: center; justify-content: center;
1222
+ min-inline-size: 0; padding: var(--space-2h) var(--space-3h); text-align: center;
1223
+ font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
1224
+ }
1225
+ .step-control > .step-button:hover:not(:disabled) { color: var(--accent-ink); background: var(--raised); }
1226
+ .step-control > .step-button:disabled { opacity: 0.4; cursor: default; }
1227
+ .step-control > .step-button:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -3px; }
1228
+ .step-control .page-input:focus-visible { outline-offset: 0; }
1229
+
1230
+ /* The database browser's controls stand at one height. Its filter row,
1231
+ pager and record head mixed 26, 28, 32 and 36px — 6px of padding on
1232
+ differently sized faces — so a row of them never lined up. Scoped to the
1233
+ browser (no look attribute): an App keeps its look's own sizes. */
1234
+ :root:not([data-visual-theme]) :is(.applist-quick, .applist-go, .applist-toggle, .applist-field .dd-button, .pager .ghost, .pager-size .dd-button, .page-input) {
1235
+ box-sizing: border-box; height: 30px; padding-block: 0;
1236
+ }
1237
+ :root:not([data-visual-theme]) :is(.applist-field .dd-button, .applist-go, .applist-toggle, .pager .ghost) { display: inline-flex; align-items: center; }
1238
+ /* The record's head: its name, then small buttons of one weight. "As a page →"
1239
+ and "Copy for agent" took the heading's bold beside a Layout half their size. */
1240
+ :root:not([data-visual-theme]) :is(.record-heading > button, .record-heading .record-layout, .record-heading .record-trail-step) {
1241
+ box-sizing: border-box; height: 28px; padding: 0 var(--space-3h);
1242
+ display: inline-flex; align-items: center; font: 500 var(--text-sm) var(--sans);
1243
+ }
1244
+
1245
+ /* ---------- record view ---------- */
1246
+
1247
+ /* The record is one surface, not a tray of cards.
1248
+
1249
+ Rounded panels floating in padding read as app chrome; the result grid
1250
+ beside them is edge-to-edge with a hairline header, and the two views of
1251
+ the same database should not look like they came from different tools. The
1252
+ panels now sit flush, divided by a rule, with the same sticky header
1253
+ treatment the grid uses. */
1254
+ .record {
1255
+ display: grid; gap: 0;
1256
+ /* The reference panel needs a fixed-ish column, not a proportional one: its
1257
+ content is a handful of short rows however wide the window is, so giving
1258
+ it a third of a large screen leaves a column of nothing beside a field
1259
+ list that has to scroll. */
1260
+ grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
1261
+ align-items: stretch;
1262
+ }
1263
+ @media (max-width: 900px) { .record { grid-template-columns: minmax(0, 1fr); } }
1264
+
1265
+ .panel { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
1266
+ .panel:last-child { border-right: none; }
1267
+ @media (max-width: 900px) {
1268
+ .panel { border-right: none; border-bottom: 1px solid var(--line); }
1269
+ }
1270
+ .panel > h3, .panel > .record-heading, .panel > .related-title {
1271
+ margin: 0; padding: var(--space-3h) var(--space-4h);
1272
+ font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: 0.09em;
1273
+ color: var(--ink-muted);
1274
+ background: var(--surface);
1275
+ border-bottom: 1px solid var(--line);
1276
+ position: sticky; top: 0; z-index: 1;
1277
+ }
1278
+
1279
+ /* ---------- record fields ----------
1280
+
1281
+ Grouped into sections, because a twenty-seven column table as one flat list
1282
+ is technically complete and practically unreadable: identity, links, values
1283
+ and bookkeeping all carry equal weight, so nothing carries any. */
1284
+
1285
+ .field-groups { padding: var(--space-4) 0 var(--space-5); }
1286
+ .field-group-plain { padding-top: var(--space-2); }
1287
+ /* Divided by space, not by rules.
1288
+
1289
+ Every section already announces itself with a heading, so a border on top
1290
+ of that is the same boundary drawn twice — and with five sections the
1291
+ panel reads as a stack of boxes rather than one record. Whitespace is the
1292
+ quieter separator and the heading does the work. */
1293
+ .field-group + .field-group { margin-top: var(--space-6); }
1294
+ .field-group-head {
1295
+ width: 100%; display: flex; align-items: baseline; gap: var(--space-3);
1296
+ background: none; border: none; border-radius: 0;
1297
+ padding: var(--space-1) var(--space-4h) var(--space-3);
1298
+ font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: 0.09em;
1299
+ color: var(--ink-muted); cursor: pointer; text-align: left;
1300
+ }
1301
+ .field-group-head:hover { color: var(--ink); }
1302
+ .field-group-caret { font-size: var(--text-xs); color: var(--ink-subtle); }
1303
+ .field-group-count {
1304
+ margin-left: auto; font-variant-numeric: tabular-nums;
1305
+ color: var(--ink-subtle); font-size: var(--text-xs); letter-spacing: 0;
1306
+ }
1307
+ .field-group.collapsed .fields { display: none; }
1308
+ .field-group.collapsed .field-group-caret { transform: rotate(-90deg); }
1309
+ @media (prefers-reduced-motion: no-preference) {
1310
+ .field-group-caret { transition: transform var(--t-press) var(--ease-out); display: inline-block; }
1311
+ }
1312
+
1313
+ /* Fields flow into as many columns as fit.
1314
+
1315
+ A twenty-seven column record in one narrow column is a scroll with empty
1316
+ space beside it. `auto-fill` with a minimum means the layout answers the
1317
+ question itself: wide window, two or three columns; narrow window, one.
1318
+ No breakpoint to keep in step with the panel's own width. */
1319
+ .fields {
1320
+ margin: 0; padding: 0 0 var(--space-1);
1321
+ display: grid;
1322
+ grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
1323
+ /* Columns need a real gutter, not a hairline. At 4px the right-hand value
1324
+ of one column sat almost against the left-hand label of the next, and
1325
+ the eye could not tell which label a value belonged to. */
1326
+ column-gap: 28px;
1327
+ }
1328
+
1329
+ /* At most two columns, however wide the window.
1330
+
1331
+ `max(24rem, 45%)` does both jobs in one expression: the percentage means
1332
+ only two tracks can ever fit, and the absolute minimum means a narrow panel
1333
+ drops to one rather than to two unreadably thin ones. Three columns looked
1334
+ efficient on a wide screen and was not — a four-field table spread its
1335
+ fields across the full width, so reading one row meant crossing the whole
1336
+ monitor to pair a label with its value. */
1337
+ .fields { grid-template-columns: repeat(auto-fill, minmax(max(21rem, 45%), 1fr)); }
1338
+ .field {
1339
+ display: grid; grid-template-columns: minmax(8rem, 38%) 1fr; gap: var(--space-5);
1340
+ padding: var(--space-2h) var(--space-4h); align-items: baseline;
1341
+ border-left: 2px solid transparent;
1342
+ min-width: 0;
1343
+ }
1344
+ /* Anything that needs room takes the full width rather than being squeezed
1345
+ into a column and wrapping to six lines. */
1346
+ .field:has(.long-value) { grid-column: 1 / -1; }
1347
+ .field:hover { background: var(--raised); border-left-color: var(--line-strong); }
1348
+ .field-ref:hover { border-left-color: var(--accent); }
1349
+ /* Three levels, and they have to be distinguishable at a glance:
1350
+
1351
+ value 13px, --ink what you came to read
1352
+ label 12px, --ink-muted what it is called
1353
+ type 10px, --ink-subtle what it is
1354
+
1355
+ Before this the label was 12px and the value 12.5px in the same colour, so
1356
+ a field read as one undifferentiated string and the eye had to parse it.
1357
+ Half a pixel is not a hierarchy. */
1358
+ /* Labels wrap rather than truncate. `work_order_id integer` clipped to
1359
+ `work_order_id integer…` hides the one thing the annotation was there to
1360
+ say, and a column name is not something the reader can guess the rest of. */
1361
+ .field dt {
1362
+ color: var(--ink-muted); font: var(--text-sm)/1.5 var(--mono);
1363
+ letter-spacing: -0.005em;
1364
+ min-width: 0; overflow-wrap: anywhere;
1365
+ }
1366
+ .field dd {
1367
+ margin: 0; font: var(--text-base)/1.5 var(--mono); color: var(--ink);
1368
+ word-break: break-word;
1369
+ }
1370
+ /* Prose escapes the monospace. Names read better in the interface face, and
1371
+ nothing is lost — there is no column of them to line up. */
1372
+ .field dd .prose { font-family: var(--sans); font-size: var(--text-base); letter-spacing: -0.003em; }
1373
+ .long-value.prose { font-family: var(--sans); font-size: var(--text-base); }
1374
+ /* A masked value (display format "masked") and a long unbroken token: quiet,
1375
+ in the key face, never wider than their box — ciphertext walled the page. */
1376
+ .value-masked { font-family: var(--mono); color: var(--ink-muted); letter-spacing: 0.08em; }
1377
+ .value-opaque { font-family: var(--mono); color: var(--ink-muted); overflow-wrap: anywhere; }
1378
+ .value-opaque-open { display: block; max-width: 100%; }
1379
+ .value-opaque-more { margin-inline-start: var(--space-2); padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-family: var(--sans); font-size: var(--text-sm); cursor: pointer; }
1380
+ .value-opaque-more:hover { text-decoration: underline; }
1381
+ .field dd.null { color: var(--ink-subtle); font-style: italic; }
1382
+ .field .type { color: var(--ink-subtle); font-size: var(--text-xs); margin-left: var(--space-3); }
1383
+ .field .pk {
1384
+ color: var(--status-info); font-size: var(--text-xs); margin-left: var(--space-2);
1385
+ text-transform: uppercase; letter-spacing: 0.05em;
1386
+ }
1387
+ .field .req {
1388
+ color: var(--ink-subtle); font-size: var(--text-xs); margin-left: var(--space-2);
1389
+ text-transform: uppercase; letter-spacing: 0.05em;
1390
+ }
1391
+
1392
+ /* Values render as what they are, matching the grid. Two views of the same
1393
+ value should not disagree about its type. */
1394
+ .bool-value.yes { color: var(--accent-ink); }
1395
+ .bool-value.no { color: var(--ink-muted); }
1396
+ .num-value { font-variant-numeric: tabular-nums; }
1397
+ .date-value { color: var(--ink); }
1398
+ /* A due date passed on a row still open (dueOpen.ts): the warning tone, in the text alone. */
1399
+ .date-value.overdue { color: var(--status-warning); }
1400
+ .long-value {
1401
+ white-space: pre-wrap; line-height: 1.55;
1402
+ background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
1403
+ padding: var(--space-3) var(--space-3h); max-height: 14rem; overflow-y: auto;
1404
+ /* A reading measure: prose at an ultrawide's full width is a line
1405
+ nobody's eye can carry back to the start of the next. */
1406
+ max-width: 70rem;
1407
+ }
1408
+
1409
+ /* A foreign key reads as one control: the value it holds, and where it goes. */
1410
+ .ref-jump {
1411
+ display: inline-flex; align-items: baseline; gap: var(--space-3);
1412
+ background: var(--ground); border: 1px solid var(--line); border-radius: 999px;
1413
+ padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3h); cursor: pointer;
1414
+ font: var(--text-sm) var(--mono); color: var(--ink);
1415
+ }
1416
+ .ref-jump:hover { border-color: var(--accent); background: var(--accent-soft); }
1417
+ .ref-jump-value { font-variant-numeric: tabular-nums; }
1418
+ .ref-jump-table {
1419
+ color: var(--ink-muted); font-size: var(--text-xs);
1420
+ background: var(--raised); border-radius: 999px; padding: 1px var(--space-3);
1421
+ }
1422
+ .ref-jump:hover .ref-jump-table { color: var(--accent-ink); }
1423
+
1424
+ /* The unfold-in-place caret and its card are gone — the card pushed the
1425
+ fields around it out of reading order and clipped against its column.
1426
+ The hover peek and the click-through carry the same answers without
1427
+ moving anything; see refJump in value.js. */
1428
+
1429
+ @media (prefers-reduced-motion: no-preference) {
1430
+ .ref-jump, .field { transition: border-color var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out); }
1431
+ }
1432
+
1433
+ /* The Referenced-by panel is gone: the relationship tabs on the record carry
1434
+ its counts, its navigation and the rows themselves, so keeping it meant
1435
+ saying the same thing twice in two places. Its one unique job — showing a
1436
+ relationship that has no rows — moved to a disabled tab. */
1437
+
1438
+
1439
+ .loading { padding: var(--space-3h) var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); }
1440
+
1441
+ /* ---------- placeholders ---------- */
1442
+
1443
+ /* One bar, one sweep.
1444
+
1445
+ The animation is a single moving highlight rather than a pulse of the whole
1446
+ block: a pulse makes a page of placeholders throb in unison, which draws
1447
+ more attention than the content it is standing in for. Every bar shares one
1448
+ timeline, so the sweep reads as one surface being revealed rather than
1449
+ forty independent flickers. */
1450
+ .sk-bar {
1451
+ display: block;
1452
+ border-radius: min(3px, var(--radius));
1453
+ background: var(--raised);
1454
+ background-image: linear-gradient(
1455
+ 90deg,
1456
+ transparent 0%,
1457
+ color-mix(in srgb, var(--ink-subtle) 12%, transparent) 50%,
1458
+ transparent 100%
1459
+ );
1460
+ background-size: 240px 100%;
1461
+ background-repeat: no-repeat;
1462
+ animation: sk-sweep 1.25s linear infinite; /* motion-ok: a placeholder sweep is a wait, not decoration (rule 10) */
1463
+ }
1464
+
1465
+ @keyframes sk-sweep {
1466
+ from { background-position: -240px 0; }
1467
+ to { background-position: calc(100% + 240px) 0; }
1468
+ }
1469
+
1470
+ /* Motion is the decoration here, not the information — the shapes already say
1471
+ what is coming, so removing the sweep costs nothing. */
1472
+ @media (prefers-reduced-motion: reduce) {
1473
+ .sk-bar { animation: none; background-image: none; }
1474
+ }
1475
+
1476
+ .sk-grid { padding: var(--space-2) var(--space-4) var(--space-4); }
1477
+ .sk-row {
1478
+ display: grid;
1479
+ grid-template-columns: repeat(var(--sk-cols), minmax(0, 1fr));
1480
+ gap: var(--space-5); align-items: center;
1481
+ padding: var(--space-3) var(--space-1);
1482
+ border-bottom: 1px solid var(--line);
1483
+ }
1484
+ .sk-head { border-bottom-color: var(--line-strong); }
1485
+ /* A look whose rows are taller than the bars says how tall (--sk-row-h, --sk-head-h), so the placeholder
1486
+ rows stand where the real ones will and the page does not move when they arrive. */
1487
+ .sk-row { box-sizing: border-box; min-height: var(--sk-row-h, 0px); }
1488
+ .sk-head { min-height: var(--sk-head-h, 0px); }
1489
+ /* Placeholder rows sit at the same rhythm as real ones, so the grid does not
1490
+ change height when the data arrives. */
1491
+ .sk-row .sk-bar { justify-self: stretch; }
1492
+
1493
+ .sk-record { padding: var(--space-2) var(--space-6) var(--space-6); }
1494
+ .sk-section { padding: var(--space-4h) 0 var(--space-2); }
1495
+ .sk-section > .sk-bar { margin-bottom: var(--space-4); }
1496
+ .sk-fields {
1497
+ display: grid;
1498
+ grid-template-columns: repeat(auto-fit, minmax(max(21rem, 45%), 1fr));
1499
+ gap: var(--space-1) 40px;
1500
+ }
1501
+ .sk-field {
1502
+ display: grid; grid-template-columns: 11rem minmax(0, 1fr);
1503
+ align-items: center; gap: var(--space-4);
1504
+ padding: var(--space-3) 0;
1505
+ }
1506
+
1507
+ .sk-related { padding: var(--space-2h) 0; }
1508
+ .sk-related-item {
1509
+ display: grid; grid-template-columns: minmax(2.4rem, auto) 1fr;
1510
+ align-items: center; gap: var(--space-4);
1511
+ padding: var(--space-3) var(--space-4h);
1512
+ }
1513
+ .sk-related-names { display: flex; flex-direction: column; gap: var(--space-2); }
1514
+ .note { padding: var(--space-3h) var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); margin: 0; }
1515
+
1516
+ /* Deliberately no transition on table rows. A hover you trigger continuously
1517
+ while reading should be instant; a fade makes the pointer feel like it is
1518
+ dragging the highlight behind it. */
1519
+
1520
+ /* ---------- write mode ----------
1521
+
1522
+ The indicator has to be visible without being looked for, so it rings the
1523
+ whole window rather than sitting quietly in a corner. */
1524
+
1525
+ .topbar-actions { display: flex; gap: var(--space-2h); flex: none; }
1526
+
1527
+ /* An icon's footprint, a mode's weight.
1528
+
1529
+ Read only is the resting state and gets no chrome at all; write mode gets a
1530
+ ring and a tint in the danger colour. The difference between them has to be
1531
+ readable at a glance from the corner of the eye — this is the control that
1532
+ says whether a keystroke can change the database. */
1533
+ button.mode {
1534
+ padding: var(--space-2) var(--space-3); border-radius: var(--radius); line-height: 1;
1535
+ background: transparent; color: var(--ink-muted);
1536
+ border: 1px solid transparent;
1537
+ font-size: var(--text-base); cursor: pointer;
1538
+ }
1539
+ button.mode:hover { border-color: var(--line); background: var(--surface); }
1540
+ button.mode[aria-pressed="true"] {
1541
+ background: color-mix(in srgb, var(--status-critical) 14%, transparent);
1542
+ border-color: var(--status-critical);
1543
+ }
1544
+
1545
+ body.write-mode { box-shadow: inset 0 0 0 3px var(--status-critical); }
1546
+ body.write-mode .topbar { border-bottom-color: var(--status-critical); }
1547
+
1548
+ button.danger { background: var(--status-critical); color: var(--surface); border-color: var(--status-critical); }
1549
+
1550
+ /* ---------- dialogs ---------- */
1551
+
1552
+ .confirm {
1553
+ border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
1554
+ background: var(--surface); color: var(--ink);
1555
+ /* Sized to its content, a one-line prompt shrank to the width of its
1556
+ buttons; a floor keeps every dialog a dialog. */
1557
+ min-width: min(24rem, calc(100vw - 32px - 46px)); max-width: 34rem; padding: 20px 22px;
1558
+ font: var(--text-md)/1.55 var(--sans);
1559
+ }
1560
+ .confirm-backdrop { background: rgb(0 0 0 / 0.45); }
1561
+ @media (prefers-reduced-motion: no-preference) {
1562
+ .confirm {
1563
+ /* A modal appears in the middle of the viewport rather than out of a
1564
+ trigger, so it is the one popover that keeps a centre origin. */
1565
+ transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out);
1566
+ @starting-style { opacity: 0; transform: scale(0.97); }
1567
+ }
1568
+ .confirm-backdrop {
1569
+ transition: background var(--t-panel) var(--ease-out);
1570
+ @starting-style { background: rgb(0 0 0 / 0); }
1571
+ }
1572
+ }
1573
+ .confirm h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); letter-spacing: -0.01em; }
1574
+ .confirm p { margin: 0 0 var(--space-3h); color: var(--ink-muted); }
1575
+ .confirm strong { color: var(--ink); font-family: var(--mono); font-size: var(--text-base); }
1576
+ .confirm-terms { margin: 0 0 var(--space-4h); padding-left: var(--space-5); color: var(--ink-muted); font-size: var(--text-base); }
1577
+ .confirm-terms li { margin-bottom: var(--space-1h); }
1578
+ /* 24px above the actions, as a form's: they close the dialog's question rather than stand as one more row of it. */
1579
+ .confirm-actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-6); }
1580
+ .confirm-fields { display: grid; gap: var(--space-5); }
1581
+ .confirm h2 + :is(.form-field, .confirm-fields) { margin-top: var(--space-4h); }
1582
+ .confirm-diff { width: 100%; margin-bottom: var(--space-4); font: var(--text-sm) var(--mono); }
1583
+ .confirm-diff th { text-align: left; color: var(--ink-muted); font-weight: 500; width: 5rem; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); position: static; background: none; border: none; }
1584
+ .confirm-diff td { border: none; }
1585
+ .confirm-diff td.null { color: var(--ink-subtle); font-style: italic; }
1586
+ .action-confirm { width: min(34rem, calc(100% - 24px)); }
1587
+ .action-confirm p, .action-confirm .confirm-diff :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
1588
+ .action-confirm .confirm-diff { table-layout: fixed; }
1589
+ .confirm-params { font: var(--text-xs) var(--mono); color: var(--ink-subtle); margin: var(--space-2h) 0 0; }
1590
+ .confirm .ddl { margin: 0; }
1591
+
1592
+ /* ---------- cell editor ---------- */
1593
+
1594
+ .edit-field-surface { display: contents; }
1595
+ .edit-field-error { display: block; margin-top: var(--space-2); color: var(--status-critical); font: var(--text-sm)/1.4 var(--sans); }
1596
+ .edit-field-surface [aria-invalid="true"] { border-color: var(--status-critical); }
1597
+
1598
+ .cell-edit {
1599
+ width: 100%; min-width: 0; min-height: 32px; padding: var(--space-2) var(--space-3);
1600
+ font: var(--text-sm) var(--mono); color: var(--ink);
1601
+ background: var(--ground);
1602
+ border: 1px solid var(--line-control); border-radius: min(2px, var(--radius));
1603
+ }
1604
+ .cell-edit:focus { outline: var(--focus-width) solid var(--focus); outline-offset: -1px; border-color: transparent; }
1605
+ .cell-edit-control { min-width: 0; }
1606
+ .cell-edit-control .dd-button, .cell-edit-control .picker { width: 100%; min-height: 32px; border-radius: min(2px, var(--radius)); }
1607
+ .cell-edit-control.dirty .dd-button, .cell-edit-control.dirty .picker, .cell-edit-control.dirty .date-field-input { border-color: var(--status-warning); background: var(--status-warning-soft, var(--raised)); }
1608
+ .cell-edit-control.saved .dd-button, .cell-edit-control.saved .picker, .cell-edit-control.saved .date-field-input { border-color: var(--status-good); }
1609
+
1610
+ .record-presentation, .record-summaries { display: none; }
1611
+ .more-group-label { padding: var(--space-3) var(--space-4) var(--space-2); color: var(--ink-muted); font: 600 var(--text-xs) var(--sans); }
1612
+ /* Records stand in for the grid on a phone only. At 1024px — a tablet, or a
1613
+ laptop with the side menu open — a grid of five or six columns still fits,
1614
+ and every list turned into a stack of cards with a Records/Table switch. */
1615
+ @media (max-width: 760px) {
1616
+ .responsive-results .record-presentation { display: flex; justify-content: flex-end; gap: 0; margin: var(--space-3) var(--space-5) var(--space-3); }
1617
+ /* A segmented pair of marks, not a second row of tabs under the view tabs. */
1618
+ .presentation-seg {
1619
+ display: inline-flex; align-items: center; justify-content: center;
1620
+ min-width: 40px; min-height: 32px; padding: 0 var(--space-3);
1621
+ border: 1px solid var(--line-control); background: transparent; color: var(--ink-muted);
1622
+ }
1623
+ .presentation-seg:first-child { border-radius: var(--radius-item) 0 0 var(--radius-item); }
1624
+ .presentation-seg:last-child { border-radius: 0 var(--radius-item) var(--radius-item) 0; margin-inline-start: -1px; }
1625
+ .presentation-seg[aria-pressed="true"] { background: var(--raised); color: var(--accent-ink); border-color: var(--accent); position: relative; }
1626
+ .presentation-seg:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 1px; }
1627
+ .responsive-results.show-records .result-table { display: none; }
1628
+ .responsive-results.show-records .record-summaries { display: block; }
1629
+ .record-summaries { margin: 0; padding: 0 var(--space-5); list-style: none; }
1630
+ /* A summary is two lines: the record's name, then its facts on one
1631
+ wrapping line, each caption beside its value as a queue's are. Stacked
1632
+ two across under their captions, a summary took 230px and three filled
1633
+ a phone's screen. */
1634
+ .record-summary { padding: var(--space-3h) 0 var(--space-4); border-top: 1px solid var(--line); }
1635
+ .record-summary:last-child { border-bottom: 1px solid var(--line); }
1636
+ .record-summary.is-navigable { cursor: pointer; }
1637
+ .record-summary.is-navigable:active { background: var(--raised); }
1638
+ .record-summary-title { display: block; width: 100%; min-height: 32px; padding: var(--space-1h) 0; border: 0; border-radius: 0; background: none; text-align: left; font: 600 calc(15px * var(--type-k))/1.45 var(--sans); letter-spacing: 0; color: var(--ink); overflow-wrap: anywhere; }
1639
+ .record-summary-title:hover:not(:disabled) { color: var(--accent-ink); }
1640
+ .record-summary dl { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--field-gap); margin: var(--space-1) 0 0; }
1641
+ /* A fact wraps whole, never its caption from its value. */
1642
+ .record-summary dl > div { display: flex; align-items: baseline; gap: var(--space-2h); min-width: 0; max-width: 100%; }
1643
+ .record-summary dt { flex: none; font: 500 var(--text-sm)/1.5 var(--sans); color: var(--ink-muted); }
1644
+ .record-summary dd { min-width: 0; margin: 0; font: var(--text-md)/1.45 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
1645
+ /* A dashboard's list stands on its section's edge, where the section's title does. */
1646
+ .dash-list .record-summaries { padding: 0; }
1647
+ }
1648
+ .cell-edit[data-null="true"] { font-style: italic; }
1649
+
1650
+ /* ---------- toast ---------- */
1651
+
1652
+ .toast {
1653
+ /* An overlay, not a row: in-flow it pushed the whole page 40px down and
1654
+ yanked it back on dismiss — mid-read, the line you were on moved. */
1655
+ position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
1656
+ z-index: 260; max-width: min(40rem, 90vw);
1657
+ padding: var(--space-3) var(--space-4h);
1658
+ font-size: var(--text-base);
1659
+ border: 1px solid var(--line);
1660
+ border-radius: var(--radius);
1661
+ box-shadow: var(--shadow-pop);
1662
+ background: var(--raised); color: var(--ink-muted);
1663
+ }
1664
+ :where(:root:not([data-visual-theme])) .toast { box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); }
1665
+ @media (prefers-reduced-motion: no-preference) {
1666
+ .toast {
1667
+ /* A transition rather than a keyframe: transitions retarget mid-flight,
1668
+ keyframes restart from zero, and a second toast arriving during the
1669
+ first would otherwise jump. translateY in percent so the distance is
1670
+ the element's own height whatever it contains. */
1671
+ transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out);
1672
+ @starting-style { opacity: 0; transform: translateY(-100%); }
1673
+ }
1674
+ }
1675
+ .toast-ok { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); }
1676
+ .toast-error { background: color-mix(in srgb, var(--status-critical) 12%, var(--surface)); color: var(--status-critical); }
1677
+ body.app-mode .toast {
1678
+ top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
1679
+ left: auto; right: 20px; transform: none; margin: 0;
1680
+ width: max-content; min-width: 300px; max-width: min(420px, calc(100% - 40px));
1681
+ box-sizing: border-box; overflow-wrap: anywhere; gap: var(--space-3h);
1682
+ padding: var(--space-3) var(--space-3h) var(--space-3) var(--space-4h); font: 500 var(--text-base)/20px var(--sans);
1683
+ background: var(--surface); color: var(--ink);
1684
+ box-shadow: var(--shadow-pop);
1685
+ }
1686
+ :where(:root:not([data-visual-theme])) body.app-mode .toast { box-shadow: 0 6px 24px rgb(0 0 0 / 0.14); }
1687
+ body.app-mode .toast-message { flex: 1; min-width: 0; }
1688
+ body.app-mode .toast-icon {
1689
+ display: grid; place-items: center; flex: 0 0 22px; height: 22px;
1690
+ border-radius: min(var(--radius, 4px), 4px);
1691
+ background: var(--raised); color: var(--ink-muted); font-weight: 700;
1692
+ }
1693
+ body.app-mode .toast-ok .toast-icon { background: color-mix(in srgb, var(--status-good) 12%, var(--surface)); color: var(--status-good); }
1694
+ body.app-mode .toast-error .toast-icon { background: color-mix(in srgb, var(--status-critical) 12%, var(--surface)); color: var(--status-critical); }
1695
+ body.app-mode .toast-action {
1696
+ min-height: 32px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius);
1697
+ color: var(--ink); font: 600 var(--text-base)/20px var(--sans); text-decoration: underline; text-underline-offset: 3px;
1698
+ }
1699
+ body.app-mode .toast-dismiss {
1700
+ display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px;
1701
+ padding: 0; border: 0; background: none; color: var(--ink-muted); font: var(--text-xl)/1 var(--sans);
1702
+ }
1703
+ body.app-mode .toast-dismiss:hover { background: var(--raised); color: var(--ink); }
1704
+ body.app-mode:has(.pending-dock) .toast { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
1705
+ body.app-mode:has(.pending-dock.pending-uncertain) .toast { bottom: calc(35dvh + 24px + env(safe-area-inset-bottom, 0px)); }
1706
+ @media (max-width: 600px) {
1707
+ body.app-mode .toast {
1708
+ left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
1709
+ width: auto; min-width: 0; max-width: none; padding: var(--space-2h) var(--space-3) var(--space-2h) var(--space-4); gap: var(--space-2h);
1710
+ }
1711
+ body.app-mode .toast-action { min-height: 44px; }
1712
+ body.app-mode .toast-dismiss { flex-basis: 44px; width: 44px; height: 44px; }
1713
+ /* A record room's verbs are a bar at the screen's foot here (page.css): a notice stands above the bar, never over
1714
+ the verbs it reports on. A pointer resting on a notice holds it, so one over them kept them out of reach. A
1715
+ free-form page's own row of verbs at the foot says so (`<Row foot>`, data-foot-actions) and is treated alike. */
1716
+ body.app-mode:has(.page-head.has-record.is-room > .page-head-actions, [data-foot-actions]) .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
1717
+ body.app-mode:has(.page-head.has-record.is-room > .page-head-actions, [data-foot-actions]):has(.pending-dock) .toast { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
1718
+ body.app-mode:has(.page-head.has-record.is-room > .page-head-actions, [data-foot-actions]):has(.pending-dock.pending-uncertain) .toast {
1719
+ bottom: calc(35dvh + 24px + env(safe-area-inset-bottom, 0px));
1720
+ }
1721
+ }
1722
+
1723
+ /* ---------- schema diagram ---------- */
1724
+
1725
+ /* ---------- landing ---------- */
1726
+
1727
+ .landing-heading {
1728
+ margin: 0 0 var(--space-3h);
1729
+ font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: 0.07em;
1730
+ color: var(--ink-muted);
1731
+ }
1732
+ .landing-chips { display: flex; flex-wrap: wrap; gap: var(--space-2h); }
1733
+ /* One line, not two: the name and what makes it worth starting from read
1734
+ as a sentence, and stacking them doubled the height of the one block that
1735
+ pushed this card past its cap. */
1736
+ .landing-chip {
1737
+ display: flex; align-items: baseline; gap: var(--space-3);
1738
+ background: var(--surface); border: 1px solid var(--line);
1739
+ border-radius: min(3px, var(--radius)); padding: var(--space-2) var(--space-3h); cursor: pointer; text-align: left;
1740
+ }
1741
+ .landing-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
1742
+ .landing-chip-name { font: var(--text-sm) var(--sans); color: var(--ink); }
1743
+ .landing-chip-table { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
1744
+ .landing-chip:hover .landing-chip-name { color: var(--accent-ink); }
1745
+
1746
+ /* Where to start: the tables this database is actually built around, with
1747
+ their sizes. Clicking one runs it, which is also the first syntax lesson. */
1748
+ .landing-starts { margin-top: var(--space-5); padding-top: var(--space-4h); border-top: 1px solid var(--line); }
1749
+ .landing-starts-head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-3h); }
1750
+ .landing-starts-head .shape-label { margin: 0; }
1751
+ /* Also used before the query-reference panel and its stylesheet are loaded. */
1752
+ .help-more { font-size: var(--text-xs); padding: var(--space-1h) var(--space-3); }
1753
+ .start-chip .landing-chip-table { display: flex; gap: var(--space-2h); align-items: baseline; }
1754
+ .start-rows { color: var(--ink-muted); }
1755
+
1756
+ /* ---------- find a value ---------- */
1757
+
1758
+ .find-value .conn-inner { max-width: 44rem; }
1759
+ .find-note { margin: 0 0 var(--space-4); font: var(--text-xs) var(--sans); color: var(--ink-subtle); max-width: 46ch; }
1760
+ .find-input {
1761
+ width: 100%; padding: var(--space-3) var(--space-4);
1762
+ font: var(--text-base) var(--mono); color: var(--ink);
1763
+ background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius);
1764
+ }
1765
+ .find-input:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -1px; }
1766
+ .find-results { margin-top: var(--space-4h); max-height: 26rem; overflow-y: auto; }
1767
+ .find-group + .find-group { margin-top: var(--space-4h); }
1768
+ .find-group-head {
1769
+ display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-2h);
1770
+ font: 600 var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
1771
+ color: var(--ink-muted);
1772
+ }
1773
+ .find-count { color: var(--ink-subtle); }
1774
+ .find-hit {
1775
+ display: flex; align-items: baseline; gap: var(--space-3h); width: 100%;
1776
+ padding: var(--space-2) var(--space-3h); text-align: left; cursor: pointer;
1777
+ background: none; border: 1px solid transparent; border-radius: var(--radius);
1778
+ }
1779
+ .find-hit:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--line); }
1780
+ .find-hit:disabled { cursor: default; opacity: 0.7; }
1781
+ .find-hit-columns { flex: 0 0 9rem; font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
1782
+ .find-hit-value { font: var(--text-sm) var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1783
+ /* What the sweep could not do, in the colour of a caveat rather than a result. */
1784
+ .find-warn { color: var(--status-warning); }
1785
+
1786
+ /* ---------- check the shape ---------- */
1787
+
1788
+ .shape-check .conn-inner { max-width: 46rem; }
1789
+ .shape-check-group + .shape-check-group { margin-top: var(--space-5); }
1790
+ .shape-check-table {
1791
+ display: flex; align-items: baseline; gap: var(--space-3);
1792
+ padding: var(--space-1h) var(--space-2h); margin: 0 0 var(--space-2h) -6px; cursor: pointer;
1793
+ background: none; border: 1px solid transparent; border-radius: var(--radius);
1794
+ font: 600 var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
1795
+ color: var(--ink);
1796
+ }
1797
+ .shape-check-table:hover { border-color: var(--line); background: var(--raised); color: var(--accent-ink); }
1798
+ .shape-check-count { color: var(--ink-subtle); font-weight: 400; }
1799
+ .shape-check-rule-group {
1800
+ margin: 0 0 var(--space-3h); padding-left: var(--space-3h);
1801
+ border-left: 2px solid var(--line);
1802
+ }
1803
+ .shape-check-rule-group.tone-high { border-left-color: var(--status-critical); }
1804
+ .shape-check-rule-group.tone-medium { border-left-color: var(--status-warning); }
1805
+ /* The cost, once per rule; then the columns it applies to, indented under
1806
+ it in the tool's own voice — a column and an arrow, nothing else. */
1807
+ .shape-check-why {
1808
+ display: flex; gap: var(--space-3); align-items: baseline; margin: 0 0 var(--space-1h);
1809
+ font: var(--text-sm) var(--sans); color: var(--ink-muted);
1810
+ }
1811
+ .shape-check-rule { flex: 0 0 10.5rem; font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
1812
+ .shape-check-item {
1813
+ margin: 0 0 var(--space-1) 10.5rem; padding-left: var(--space-3);
1814
+ font: var(--text-sm) var(--mono); color: var(--ink);
1815
+ }
1816
+
1817
+ /* ---------- pages, on the home screen ---------- */
1818
+
1819
+ /* Two columns, and one when there is only one card to show.
1820
+
1821
+ `:only-child` is the whole first-run rule: a database nobody has worked in
1822
+ yet has no work to resume, `workPanel` returns nothing rather than an empty
1823
+ card, and the schema takes the full width without anything having to decide
1824
+ that it should. */
1825
+ /* The work column takes the width it needs, up to a share of the page; the
1826
+ schema takes the rest. Equal halves stranded a column on a fresh browser,
1827
+ where "your work" is one short list and the summary beside it is six lines
1828
+ of prose — half a screen of nothing next to something that wanted the
1829
+ room. */
1830
+ /* `stretch`, not `start`: two cards of different heights side by side read
1831
+ as one card and one offcut. Equal height costs the shorter one some space
1832
+ at the bottom, which is what a column of a row looks like. */
1833
+ .landing-top {
1834
+ display: grid; gap: var(--space-5); align-items: stretch;
1835
+ /* The database on the left, where reading starts and where the answer for
1836
+ everyone is; your work beside it, in a bounded column — every line in
1837
+ that card wraps, so `fit-content` resolves to min-content and collapses
1838
+ it to a sliver, while an equal half strands a screen of nothing. */
1839
+ grid-template-columns: minmax(0, 1fr) minmax(17rem, 27rem);
1840
+ margin-bottom: var(--space-5);
1841
+ }
1842
+ .landing-top > :only-child { grid-column: 1 / -1; }
1843
+ .landing-top > .shape { max-width: none; margin: 0; }
1844
+ /* Under a third of the window, whatever is in them.
1845
+
1846
+ Both cards grow with their content — a wide schema has more to say, and
1847
+ "your work" gains a line every time you open a record — so a row that
1848
+ sizes to its content is a row that eventually owns the screen. The cap is
1849
+ on the row, and each card scrolls its own overflow: the diagram below is
1850
+ what the page is for, and it should never be pushed off by a list of
1851
+ things you did yesterday.
1852
+
1853
+ 30vh rather than a quarter: a quarter cut the schema summary's own lines
1854
+ on a laptop, and the summary is the part a first-time reader needs whole. */
1855
+ .landing-top > .shape {
1856
+ max-height: 30vh;
1857
+ overflow-y: auto;
1858
+ /* A scroll that reaches the end stops there rather than carrying on down
1859
+ the page, which is what makes a scrolling panel usable inside one. */
1860
+ overscroll-behavior: contain;
1861
+ /* A shadow at whichever edge has more behind it.
1862
+
1863
+ A capped panel clips, and a clipped row reads as broken rather than as
1864
+ "there is more" — the cut lands mid-chip and looks like a rendering
1865
+ fault. The two `local` gradients scroll with the content and cover the
1866
+ shadows when the content is at that end; the two fixed ones show
1867
+ through when it is not. No script, and nothing to show when the card
1868
+ does not scroll at all, which is the case this has to get right. */
1869
+ background:
1870
+ linear-gradient(var(--surface) 30%, rgb(0 0 0 / 0)) top / 100% 14px no-repeat local,
1871
+ linear-gradient(rgb(0 0 0 / 0), var(--surface) 70%) bottom / 100% 14px no-repeat local,
1872
+ radial-gradient(farthest-side at 50% 0, rgb(0 0 0 / 0.09), rgb(0 0 0 / 0)) top / 100% 6px no-repeat,
1873
+ radial-gradient(farthest-side at 50% 100%, rgb(0 0 0 / 0.09), rgb(0 0 0 / 0)) bottom / 100% 6px no-repeat,
1874
+ var(--surface);
1875
+ }
1876
+ /* Each card answers to its own width, not the window's.
1877
+
1878
+ The label gutter is 9.5rem, which is a quarter of a column and a tenth of
1879
+ a page — so the same rule that reads well full-width squeezes the content
1880
+ into a ribbon beside it. A container query lets the card stack its labels
1881
+ when *it* is narrow, whatever the window is doing. */
1882
+ .landing-top > .shape { container-type: inline-size; }
1883
+ /* Scoped through `.landing-top` so these beat the base rules whatever order
1884
+ the file happens to put them in — the plain `.shape-label` is defined a
1885
+ thousand lines further down, and would otherwise win on cascade order. */
1886
+ @container (max-width: 34rem) {
1887
+ .landing-top .shape-line { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
1888
+ .landing-top .shape-label { text-align: left; }
1889
+ }
1890
+ /* Two columns of a schema summary and a work list stop being readable well
1891
+ before the window does — the label column alone is 9.5rem. */
1892
+ @media (max-width: 1180px) { .landing-top { grid-template-columns: minmax(0, 1fr); } }
1893
+
1894
+ /* The same card as the schema summary beside it — including no margin of its
1895
+ own. It carried `margin-bottom: 16px` from when it was a full-width band
1896
+ below the schema, and that rule sits after the `.landing-top > .shape`
1897
+ reset at equal specificity, so it won: the row stretched both cards to the
1898
+ same box, then this card gave 16px of its box back and ended short. The
1899
+ gap and the row's own margin do the spacing now. */
1900
+ .landing-pages .landing-heading { margin-bottom: var(--space-4); }
1901
+
1902
+ /* Links on a line, not cards in a grid. Wrapping, so a long list of recent
1903
+ records fills the width it has rather than forcing a scroll. */
1904
+ .landing-links { display: flex; flex-wrap: wrap; gap: var(--space-2h) var(--space-4h); align-items: baseline; }
1905
+ /* Positions read one per row — each is a sentence, not a word. */
1906
+ .landing-rows { flex-direction: column; align-items: flex-start; gap: var(--space-1h); }
1907
+ .landing-link {
1908
+ display: inline-flex; align-items: baseline; gap: var(--space-2h);
1909
+ padding: 1px var(--space-2); margin: 0 -4px; cursor: pointer;
1910
+ background: none; border: none; border-radius: min(2px, var(--radius));
1911
+ font: var(--text-sm) var(--mono); color: var(--link);
1912
+ text-align: left;
1913
+ }
1914
+ .landing-link:hover { background: var(--accent-soft); color: var(--accent-ink); }
1915
+ .landing-link:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -1px; }
1916
+ .landing-link-detail { color: var(--ink-subtle); font-size: var(--text-xs); }
1917
+ .landing-all .landing-page-filter { margin-bottom: var(--space-2h); }
1918
+ .landing-page-filter {
1919
+ flex: 0 1 14rem; min-width: 8rem;
1920
+ padding: var(--space-2) var(--space-3h); font: var(--text-xs) var(--mono);
1921
+ background: var(--surface); color: var(--ink);
1922
+ border: 1px solid var(--line-control); border-radius: var(--radius);
1923
+ }
1924
+ .landing-page-filter:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -1px; }
1925
+
1926
+ /* Scrollable rather than capped: forty pages is where finding one matters
1927
+ more than seeing all of them, and a "+31 more" is a dead end. */
1928
+ /* Rows, not a panel: a grey block inside a card is a second card, and the
1929
+ list is short enough that its own border adds nothing but an edge. No
1930
+ height of its own either — the card is the scroller now, and a scroller
1931
+ inside a scroller is two things to fight with. */
1932
+ .landing-page-list { max-width: 38rem; }
1933
+ .landing-page {
1934
+ display: flex; align-items: baseline; gap: var(--space-3h); width: 100%;
1935
+ padding: var(--space-2h); margin-left: -6px; text-align: left; cursor: pointer;
1936
+ background: none; border: none; border-bottom: 1px solid var(--line);
1937
+ }
1938
+ .landing-page:last-child { border-bottom: none; }
1939
+ .landing-page:hover { background: var(--accent-soft); }
1940
+ .landing-page:hover .landing-page-name { color: var(--accent-ink); }
1941
+ .landing-page-name { flex: 1 1 auto; font: var(--text-sm) var(--sans); color: var(--ink); }
1942
+ .landing-page-base { font: var(--text-xs) var(--mono); color: var(--ink-muted); }
1943
+ .landing-page-source { font: var(--text-xs) var(--mono); color: var(--ink-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
1944
+ .landing-page-list .note { margin: 0; padding: var(--space-3) var(--space-4); }
1945
+
1946
+ /* The star beside a page's name. Quiet until it means something. */
1947
+ .page-pin {
1948
+ padding: var(--space-1) var(--space-2h); font-size: var(--text-md); line-height: 1;
1949
+ color: var(--ink-subtle); border-color: transparent; background: none;
1950
+ }
1951
+ .page-pin:hover { color: var(--ink); border-color: var(--line); }
1952
+ .page-pin.is-pinned { color: var(--status-warning); }
1953
+
1954
+ .diagram-title { margin: 0 0 var(--space-4h); font: 600 var(--text-lg) var(--mono); letter-spacing: -0.01em; }
1955
+
1956
+ .node-view rect { stroke-dasharray: 4 3; }
1957
+ .node.dim { opacity: 0.22; }
1958
+ .node.lit rect { stroke: var(--accent); stroke-width: 2; fill: var(--accent-soft); }
1959
+ .node.lit text { fill: var(--accent); font-weight: 600; }
1960
+ .schema-edges path.dim { opacity: 0.1; }
1961
+ @media (prefers-reduced-motion: no-preference) {
1962
+ .node, .schema-edges path { transition: opacity var(--t-hover) var(--ease-out); }
1963
+ }
1964
+
1965
+ /* With no referring tables there is no second panel, so the fields should
1966
+ use the width rather than leaving a column of nothing beside them. */
1967
+ .record-solo { grid-template-columns: minmax(0, 1fr); }
1968
+
1969
+ /* ---------- connection picker ---------- */
1970
+
1971
+ /* In the top bar now, so it sizes to its content rather than filling a
1972
+ sidebar column: a dropdown stretched across the header would read as a
1973
+ second query bar. Capped, because a connection named after a URL should
1974
+ not push the query bar off the screen. */
1975
+ .conn-picker { display: flex; gap: var(--space-2h); align-items: center; flex: none; }
1976
+ .conn-picker .dd { min-width: 0; max-width: 200px; }
1977
+ .conn-picker[hidden] { display: none; }
1978
+
1979
+ .field-stack { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3h); }
1980
+ .field-stack span { font-size: var(--text-sm); color: var(--ink-muted); }
1981
+
1982
+ /* ---------- saved filters ---------- */
1983
+
1984
+ .views {
1985
+ display: flex; align-items: center; gap: var(--space-2h); flex-wrap: wrap;
1986
+ padding: var(--space-3) var(--space-4h) 0;
1987
+ }
1988
+ /* Saved filters on the left, what the query currently says on the right, with
1989
+ room between them: one is a thing you chose to keep, the other is the state
1990
+ of this moment, and running them together reads as one list of eight things. */
1991
+ .views .clause:first-of-type { margin-left: var(--space-3h); }
1992
+ .view-tab-wrap {
1993
+ display: inline-flex; align-items: stretch;
1994
+ border: 1px solid var(--line); border-radius: 999px;
1995
+ overflow: hidden;
1996
+ }
1997
+ .view-tab-wrap.active { border-color: var(--accent); background: var(--accent-soft); }
1998
+ .view-tab {
1999
+ background: none; border: none; border-radius: 0;
2000
+ color: var(--ink-muted); padding: var(--space-1h) var(--space-3h);
2001
+ font: var(--text-sm) var(--sans); cursor: pointer;
2002
+ }
2003
+ .views > .view-tab {
2004
+ border: 1px solid var(--line); border-radius: 999px;
2005
+ }
2006
+ .view-tab[aria-pressed="true"] { color: var(--accent-ink); font-weight: 600; }
2007
+ .view-tab:hover { color: var(--ink); }
2008
+ .view-remove {
2009
+ background: none; border: none; border-radius: 0;
2010
+ color: var(--ink-subtle); cursor: pointer;
2011
+ padding: var(--space-1h) var(--space-3) var(--space-1h) var(--space-1); font-size: var(--text-base); line-height: 1;
2012
+ }
2013
+ .view-remove:hover { color: var(--status-critical); }
2014
+ .view-save {
2015
+ background: none; border: 1px dashed var(--line-strong); border-radius: 999px;
2016
+ color: var(--ink-muted); padding: var(--space-1h) var(--space-3h); font: var(--text-sm) var(--sans); cursor: pointer;
2017
+ }
2018
+ .view-save:hover { border-color: var(--accent); color: var(--accent-ink); border-style: solid; }
2019
+
2020
+ /* What the query currently says, one chip per clause.
2021
+
2022
+ These had no rules at all: the label and the value ran together as
2023
+ "showingname, country_code", and the remove button fell back to the app's
2024
+ default button — a filled accent square twice the height of the chip it
2025
+ was supposed to sit inside.
2026
+
2027
+ Deliberately quieter than a saved view beside it. A saved filter is
2028
+ something you chose to keep; a clause chip is the state of this moment,
2029
+ and it should read as a description of the result with a way off rather
2030
+ than as a control competing with the tabs. */
2031
+ .clause {
2032
+ display: inline-flex; align-items: baseline; gap: 5px;
2033
+ padding: var(--space-1) var(--space-2) var(--space-1) 9px;
2034
+ border: 1px solid var(--line); border-radius: 999px;
2035
+ background: var(--raised);
2036
+ max-width: 22rem;
2037
+ }
2038
+ .clause-label {
2039
+ font: var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
2040
+ color: var(--ink-subtle); flex: none;
2041
+ }
2042
+ /* The value is the part worth reading, so it gets the room and the ellipsis:
2043
+ a `where` chip on a long `in (...)` list must not push the rest off the
2044
+ row. The full text is on the title. */
2045
+ .clause-text {
2046
+ font: var(--text-xs) var(--mono); color: var(--ink-muted);
2047
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2048
+ }
2049
+ .clause-remove {
2050
+ flex: none;
2051
+ background: none; border: none;
2052
+ padding: 0 var(--space-2); border-radius: 999px;
2053
+ font-size: var(--text-base); line-height: 1; cursor: pointer;
2054
+ color: var(--ink-subtle);
2055
+ }
2056
+ .clause-remove:hover { color: var(--status-critical); }
2057
+ .clause-remove:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 1px; }
2058
+
2059
+ /* ---------- themed listbox ---------- */
2060
+
2061
+ :where(:root:not([data-visual-theme])) .dd-list { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
2062
+ /* The popup takes focus so the keyboard works from the first arrow; the
2063
+ highlighted option is the visible focus, not a ring around the box. */
2064
+ .dd-popup:focus, .dd-popup:focus-visible, .more-list:focus, .more-list:focus-visible { outline: none; }
2065
+ /* Every popup that holds its menu's focus while an item carries the highlight:
2066
+ the item says where the keyboard is, so the popup draws no ring round
2067
+ itself — it drew the browser's blue one round the column menu, in an
2068
+ App and in the Workbench alike. */
2069
+ :is(.th-menu, .tn-pop, .export-menu, .page-actions-popup, .picker-popup, .pb-menu, .pb-send-menu, .date-field-popup, .account-menu-popup):focus-visible { outline: none; }
2070
+ /* A menu item's keyboard ring is drawn inside the item. The house ring sits 2px
2071
+ outside, which in a tight menu ran across the rule above and below and into
2072
+ the neighbouring rows; hover is the background alone and draws no ring. */
2073
+ :is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus-visible {
2074
+ outline: var(--focus-width) solid var(--focus);
2075
+ outline-offset: calc(var(--focus-width) * -1);
2076
+ }
2077
+ :is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus:not(:focus-visible) { outline: none; }
2078
+
2079
+
2080
+ /* ---------- a row another person changed ---------- */
2081
+
2082
+ /* Tinted, held a moment so it is seen, then faded over --t-changed to what the row is (docs/design.md, rule 11): a
2083
+ grid's cells, and a card, a queue's row or a board's card itself. The tint is the look's own accent mixed into its
2084
+ surface, read where it is drawn, so an App's brand and the dark scheme tint in their own color. Two names for one
2085
+ fade, so a row changed twice running restarts it. Nothing moves; reduced motion draws no tint. */
2086
+ @media (prefers-reduced-motion: no-preference) {
2087
+ :is(tr.row-changed-1 > td, .row-changed-1:not(tr)) { animation: row-changed-1 var(--t-changed) var(--ease-out); }
2088
+ :is(tr.row-changed-2 > td, .row-changed-2:not(tr)) { animation: row-changed-2 var(--t-changed) var(--ease-out); }
2089
+ @keyframes row-changed-1 { from, 25% { background-color: color-mix(in srgb, var(--changed-hue) var(--changed-mix), var(--surface)); } }
2090
+ @keyframes row-changed-2 { from, 25% { background-color: color-mix(in srgb, var(--changed-hue) var(--changed-mix), var(--surface)); } }
2091
+ }
2092
+
2093
+ /* ---------- pending edits ---------- */
2094
+
2095
+ .pending {
2096
+ display: flex; align-items: center; gap: var(--space-3h); flex-wrap: wrap;
2097
+ padding: var(--space-3) var(--space-4);
2098
+ background: color-mix(in srgb, var(--status-critical) 10%, var(--surface));
2099
+ border-bottom: 1px solid var(--line);
2100
+ }
2101
+ .pending-count { font-size: var(--text-sm); font-weight: 600; color: var(--status-critical); }
2102
+ .pending-cols {
2103
+ flex: 1; min-width: 0;
2104
+ font: var(--text-xs) var(--mono); color: var(--ink-muted);
2105
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2106
+ }
2107
+ .pending button { padding: var(--space-2) var(--space-3h); font-size: var(--text-sm); }
2108
+ .pending-uncertain { display: block; overflow-wrap: anywhere; }
2109
+ .pending-uncertain p { margin: 0 0 var(--space-3); }
2110
+ .pending-uncertain dl { margin: var(--space-3) 0 0; }
2111
+ .pending-uncertain dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); padding: var(--space-2) 0; }
2112
+ .pending-uncertain dd { margin: 0; white-space: pre-wrap; }
2113
+
2114
+ /* Reserve the dock's scroll clearance even when clean, so staging never
2115
+ changes document geometry. The portal escapes record overflow containers. */
2116
+ body.app-mode .page-head.has-record + .page-body { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
2117
+ .pending-dock {
2118
+ position: fixed; z-index: 50;
2119
+ inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
2120
+ width: auto; max-width: 760px; margin-inline: auto;
2121
+ box-sizing: border-box; padding: var(--space-4) var(--space-5);
2122
+ background: var(--surface); border: 1px solid var(--line);
2123
+ border-radius: var(--radius, 6px);
2124
+ box-shadow: var(--shadow-pop);
2125
+ }
2126
+ :where(:root:not([data-visual-theme])) .pending-dock { box-shadow: 0 4px 20px rgb(0 0 0 / 0.16); }
2127
+ .pending-dock .pending-count { color: var(--ink); }
2128
+ .pending-dock button { min-height: 40px; }
2129
+ .pending-dock .primary { min-width: 116px; }
2130
+ .pending-status-icon { display: inline-block; margin-right: var(--space-3); color: var(--status-good); }
2131
+ .pending-status-icon.is-error { color: var(--status-critical); }
2132
+ .pending-error { flex-basis: 100%; margin: 0; color: var(--status-critical); overflow-wrap: anywhere; }
2133
+ .pending-dock.pending-uncertain { max-height: 35dvh; overflow-y: auto; }
2134
+ .pending-recovery { max-height: 40dvh; overflow-y: auto; }
2135
+ .pending-recovery > :is(.pending-count, details, p) { flex-basis: 100%; grid-column: 1 / -1; }
2136
+ .pending-recovery dl { margin: var(--space-3) 0; }
2137
+ .pending-recovery dd { margin: var(--space-2) 0 var(--space-4); overflow-wrap: anywhere; }
2138
+ @media (max-width: 600px) {
2139
+ .pending-dock:not(.pending-uncertain) {
2140
+ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3);
2141
+ padding: var(--space-3h) var(--space-4);
2142
+ }
2143
+ .pending-dock .pending-count { grid-column: 1 / -1; }
2144
+ .pending-dock .pending-cols { display: none; }
2145
+ .pending-dock .pending-error { grid-column: 1 / -1; }
2146
+ .pending-dock button { min-height: 44px; }
2147
+ }
2148
+
2149
+ .cell-edit.dirty {
2150
+ border-color: var(--status-critical);
2151
+ background: color-mix(in srgb, var(--status-critical) 7%, var(--ground));
2152
+ }
2153
+
2154
+ .confirm-wide { max-width: 42rem; }
2155
+ .confirm-diff td { padding: var(--space-1h) var(--space-3) var(--space-1h) 0; vertical-align: baseline; }
2156
+ .diff-col { font: var(--text-sm) var(--mono); color: var(--ink); }
2157
+ .diff-from { color: var(--ink-muted); text-decoration: line-through; }
2158
+ .diff-arrow { color: var(--ink-subtle); padding: 0 var(--space-2); }
2159
+ .diff-to { color: var(--ink); font-weight: 600; }
2160
+ .confirm-diff .null { font-style: italic; text-decoration: none; color: var(--ink-subtle); }
2161
+ .diff-type { color: var(--ink-subtle); font: var(--text-xs) var(--mono); margin-left: var(--space-3); }
2162
+
2163
+ /* The table a row crumb belongs to, shown only when the walk changed table.
2164
+
2165
+ No punctuation between the table and the label. The trail already uses a
2166
+ chevron to separate crumbs, and a second separator inside a crumb competes
2167
+ with it — `work_order › WO-100002 › customer · Blackwood Joinery` reads as
2168
+ four things at one level rather than three, one of which is qualified.
2169
+ Size and colour do the binding instead: the table is smaller, lighter and
2170
+ sits on the baseline as a qualifier, the label carries the weight. */
2171
+ .crumb-table {
2172
+ /* --ink-muted, not --ink-subtle: faint carries 50% alpha, which at this
2173
+ size disappears rather than recedes. The qualifier has to be readable —
2174
+ it is the answer to "what am I looking at" — it just should not compete
2175
+ with the label. Size and weight do that; opacity was doing too much. */
2176
+ color: var(--ink-muted);
2177
+ font-size: var(--text-xs);
2178
+ margin-right: 5px;
2179
+ }
2180
+ .crumbs button:hover .crumb-table { color: var(--ink); }
2181
+ /* An App's table is a step of its own, quiet beside the record it qualifies. */
2182
+ .crumb-table-step { color: var(--ink-muted); font-family: var(--mono); padding: var(--space-1) var(--space-2); }
2183
+
2184
+ /* Two states can apply to the same row and they must not look alike: the
2185
+ table you are *on*, and the row Enter would open. Before this they were a
2186
+ soft tint and a slightly different soft tint, so arrowing through the list
2187
+ left you unable to tell which one was armed.
2188
+
2189
+ The keyboard highlight wins outright wherever both apply — it describes
2190
+ what is about to happen, which matters more than what already has. */
2191
+ /* One indicator, used for both "this is the table you are looking at" and
2192
+ "this is where the keyboard is". They are the same row almost all the time,
2193
+ and giving the current table a fainter version of the same treatment made
2194
+ the strong one read as a different kind of thing rather than as the same
2195
+ thing with focus. It is the tint and the accent's ink: the 3px bar it also
2196
+ carried down the row's side is the side-tab mark docs/design.md refuses,
2197
+ and on a rounded row it drew a "(" crescent. */
2198
+ #table-list button[aria-current="true"],
2199
+ #table-list button.active {
2200
+ background: var(--accent-soft);
2201
+ color: var(--accent-ink);
2202
+ }
2203
+
2204
+ /* Where the keyboard is, the row also wears the house ring, inset
2205
+ (docs/design.md, Access): with the side bar gone the tint and the ink
2206
+ would be the only difference, and a tint alone is not an indicator. */
2207
+ #table-list button:focus-visible {
2208
+ outline: var(--focus-width) solid var(--focus);
2209
+ outline-offset: -2px;
2210
+ background: var(--accent-soft);
2211
+ color: var(--accent-ink);
2212
+ }
2213
+ /* While the cursor is away from the table on screen, the on-screen table's
2214
+ marker steps back to a whisper, its ink alone. One "you are here" at a
2215
+ time: during a quick run down the list the debounced preview lags the
2216
+ cursor, and both rows wearing the full treatment reads as two tables
2217
+ selected. */
2218
+ #table-list.skimming button[aria-current="true"]:not(.active) {
2219
+ background: none;
2220
+ color: var(--accent-ink);
2221
+ }
2222
+
2223
+ /* Names what the highlight means, so the affordance does not have to be
2224
+ inferred from a colour. */
2225
+ /* Only on a row you have not opened yet. On the table already on screen,
2226
+ "press Enter" would be an instruction to do what has been done. */
2227
+ #table-list button.active:not([aria-current="true"])::after {
2228
+ content: "↵";
2229
+ margin-left: auto;
2230
+ padding-left: var(--space-3);
2231
+ color: var(--accent-ink);
2232
+ font-size: var(--text-xs);
2233
+ }
2234
+
2235
+ /* The new-row form: the schema as a column of labelled boxes. */
2236
+ .insert-dialog { max-width: 34rem; width: calc(100vw - 48px); }
2237
+ .command-form { width: min(34rem, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; border-radius: var(--radius); }
2238
+ .command-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--field-gap); }
2239
+ .command-field { display: grid; gap: var(--space-2h); min-width: 0; }
2240
+ .command-field .field-control { width: 100%; box-sizing: border-box; }
2241
+ .command-field input[type="checkbox"] { width: auto; justify-self: start; }
2242
+ .command-field textarea { resize: vertical; }
2243
+ .command-help { color: var(--ink-muted); font-size: var(--text-sm); }
2244
+ /* A group is a section of the form: a hairline seams it from what comes
2245
+ before and its label heads it, the way a record page's sections read — no
2246
+ box around it. A repeating group's rows are seamed the same way, each with
2247
+ its number and its Remove, and Add row follows the last. The legend floats
2248
+ so it sits under the hairline, not in it. */
2249
+ .command-group { border: 0; border-top: 1px solid var(--line); margin: 0; padding: var(--space-4h) 0 0; min-width: 0; }
2250
+ .command-group > legend { float: left; width: 100%; padding: 0; font: 600 var(--text-base) var(--sans); color: var(--ink); }
2251
+ .command-group-body { clear: both; display: grid; gap: var(--space-4h); padding-top: var(--space-3); min-width: 0; }
2252
+ .command-row { display: grid; gap: var(--space-4h); padding-bottom: var(--space-4h); border-bottom: 1px solid var(--line); min-width: 0; }
2253
+ .command-row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
2254
+ .command-row-number { font: 500 var(--text-xs) var(--mono); color: var(--ink-muted); }
2255
+ .command-repeat-actions { display: flex; gap: var(--space-3); }
2256
+ .command-choices { display: flex; flex-wrap: wrap; gap: var(--space-2h) var(--space-5); }
2257
+ .command-choice { display: inline-flex; align-items: center; gap: var(--space-2h); font: var(--text-base) var(--sans); color: var(--ink); }
2258
+ .command-choice input { margin: 0; accent-color: var(--accent); }
2259
+ .command-form .command-feedback { min-height: 3em; margin: 20px 0 0; color: var(--ink-muted); font-size: var(--text-base); overflow-wrap: anywhere; }
2260
+ /* "Ready to submit" is said to a screen reader and not drawn: the primary button says it, and the line stood as filler. */
2261
+ .command-feedback[data-phase="ready"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
2262
+ .command-feedback[data-phase="success"] { color: var(--status-good); }
2263
+ .command-feedback[data-phase="error"] { color: var(--status-critical); }
2264
+ .command-feedback[data-phase="unknown"] { color: var(--status-warning); }
2265
+ .command-form .confirm-actions { flex-wrap: wrap; }
2266
+ .insert-lede { margin: var(--space-2) 0 var(--space-4); font-size: var(--text-sm); color: var(--ink-muted); }
2267
+ .insert-fields {
2268
+ border: 0; margin: 0; padding: 0; min-width: 0;
2269
+ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); max-height: 55vh; overflow-y: auto; padding-right: var(--space-2);
2270
+ }
2271
+ .insert-group { border: 0; margin: 0; padding: 0; min-width: 0; }
2272
+ .insert-group + .insert-group { margin-top: var(--space-4); }
2273
+ .insert-group legend { width: 100%; margin: 0 0 var(--space-3); padding: 0 0 var(--space-2); border-bottom: 1px solid var(--line); font: 600 var(--text-xs) var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
2274
+ .insert-group-fields { display: grid; gap: var(--space-3); }
2275
+ /* Label beside value, on the value's first line: centred, a textarea's label
2276
+ floated in the middle of its box, apart from the words it names. */
2277
+ /* Every field is a grid of its own, so a `1fr` column took its control's
2278
+ min-content as a floor: the typeahead's (a flex-wrap box with a basis and
2279
+ padding) was wider than the rest, the label column gave way and its
2280
+ control began 16px left of its neighbours. `minmax(0, 1fr)` keeps the label
2281
+ column one width down a form and every control on the same left edge and
2282
+ width; a control that must not shrink says so itself (the date's floor). */
2283
+ .insert-field { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: var(--space-3h); align-items: baseline; }
2284
+ .insert-field > :is(.insert-input, .picker, .dd, .dd-button) { min-width: 0; box-sizing: border-box; }
2285
+ .insert-field > .insert-input, .insert-field > .picker { width: 100%; }
2286
+ .insert-field label { font: var(--text-sm) var(--mono); color: var(--ink); overflow-wrap: anywhere; }
2287
+ .insert-field .type { margin-left: var(--space-2h); color: var(--ink-subtle); font-size: var(--text-xs); }
2288
+ .insert-input {
2289
+ padding: var(--space-2) var(--space-3); font: var(--text-base) var(--mono);
2290
+ background: var(--surface); color: var(--ink);
2291
+ border: 1px solid var(--line-control); border-radius: var(--radius); min-width: 0;
2292
+ }
2293
+ .insert-input:focus { outline: none; border-color: var(--focus); }
2294
+ .insert-problem { margin: var(--space-3h) 0 0; color: var(--status-critical); font-size: var(--text-sm); overflow-wrap: anywhere; }
2295
+ .insert-status { margin: var(--space-3h) 0 0; color: var(--ink-muted); font-size: var(--text-sm); }
2296
+ .insert-form button:disabled, .newpanel .peekpanel-close:disabled { opacity: 0.45; cursor: not-allowed; }
2297
+ @media (max-width: 700px) {
2298
+ .insert-field { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
2299
+ }
2300
+
2301
+ /* A field that just landed. Green for a couple of seconds, then gone — a
2302
+ confirmation you have to dismiss is a confirmation you learn to ignore. */
2303
+ .cell-edit.saved {
2304
+ border-color: var(--accent);
2305
+ background: var(--accent-soft);
2306
+ }
2307
+ @media (prefers-reduced-motion: no-preference) {
2308
+ .cell-edit { transition: border-color var(--t-popover) var(--ease-out), background var(--t-popover) var(--ease-out); }
2309
+ }
2310
+
2311
+ /* ---------- query autocomplete ---------- */
2312
+
2313
+ .querybar { position: relative; }
2314
+ .ac {
2315
+ position: absolute; z-index: 30; top: calc(100% + 4px); left: 0;
2316
+ min-width: 22rem; max-width: 34rem; max-height: 19rem; overflow-y: auto;
2317
+ background: var(--surface);
2318
+ border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
2319
+ box-shadow: var(--shadow-pop);
2320
+ padding: var(--space-2);
2321
+ }
2322
+ :where(:root:not([data-visual-theme])) .ac { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
2323
+ .ac[hidden] { display: none; }
2324
+ @media (prefers-reduced-motion: no-preference) {
2325
+ .ac {
2326
+ transform-origin: top left;
2327
+ transition: opacity var(--t-popover) var(--ease-out), transform var(--t-popover) var(--ease-out);
2328
+ @starting-style { opacity: 0; transform: scale(0.97) translateY(-4px); }
2329
+ }
2330
+ }
2331
+ .ac-item {
2332
+ display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
2333
+ padding: var(--space-2) var(--space-3); border-radius: var(--radius-item); cursor: pointer;
2334
+ }
2335
+ .ac-item:hover, .ac-item.active { background: var(--raised); }
2336
+ /* A Shift-extended run, where the clause takes a list. Accented rather than
2337
+ grey so the range is distinguishable from the cursor sitting on one item —
2338
+ the two states look identical if both are just "shaded". */
2339
+ .ac-item.picked { background: var(--accent-soft); color: var(--accent-ink); }
2340
+ .ac-item.picked .ac-detail { color: var(--accent-ink); opacity: 0.7; }
2341
+ .ac-item.picked.active { box-shadow: inset 2px 0 0 var(--accent); }
2342
+ .ac-label { font: var(--text-sm) var(--mono); color: var(--ink); }
2343
+ .ac-detail { font: var(--text-xs) var(--mono); color: var(--ink-muted); flex: none; }
2344
+ /* Kind is carried by colour on the label, so the list scans by category
2345
+ without needing a column of icons. */
2346
+ .kind-table .ac-label { color: var(--accent-ink); }
2347
+ .kind-op .ac-label { color: var(--status-info); }
2348
+ .kind-kw .ac-label { color: var(--status-warning); }
2349
+ .kind-value .ac-label { color: var(--link); }
2350
+
2351
+ /* Virtualised rows: the spacers are layout only and must never be styled as
2352
+ content, or the striping and hover follow them. */
2353
+ .virtual-spacer, .virtual-spacer:hover { background: none; cursor: default; }
2354
+ .virtual-note { color: var(--ink-subtle); font-size: var(--text-xs); padding: var(--space-3) var(--space-4h) 0; }
2355
+
2356
+ /* ---------- children on the record page ----------
2357
+
2358
+ The Referenced-by panel is the index — counts, and a way to jump. These are
2359
+ the data. A record that says "5 parts" and makes you click to see them is
2360
+ answering a question nobody asked; reading them is usually why the record
2361
+ was opened. */
2362
+
2363
+ .record-children {
2364
+ grid-column: 1 / -1;
2365
+ border-top: 1px solid var(--line);
2366
+ }
2367
+ /* The relationship index, in its own column.
2368
+
2369
+ It spent a while as a horizontal strip under the record, which put the list
2370
+ of what a row connects to below a screenful of fields — so finding out what
2371
+ a record relates to meant scrolling past the record. A column keeps it in
2372
+ view, and a vertical list has room for a dozen relationships where a tab
2373
+ strip wraps to three rows. */
2374
+
2375
+ /* Stays in view while the record scrolls.
2376
+
2377
+ It is a navigator, not part of the record, and a navigator that scrolls
2378
+ away leaves you paging back up to change what you are looking at. Anchored
2379
+ to the top of the grid rather than stretched, so `position: sticky` has a
2380
+ box shorter than the scroller to stick within. */
2381
+ .related-panel {
2382
+ display: flex; flex-direction: column;
2383
+ position: sticky; top: 0; align-self: start;
2384
+ max-height: var(--shell-vh, 100vh); overflow-y: auto;
2385
+ }
2386
+ .related-list { display: flex; flex-direction: column; padding: var(--space-2h) 0; }
2387
+ /* The rail's own header, which is the panel heading plus one control.
2388
+
2389
+ `.panel > h3` styles a heading that *is* the header; here the heading is
2390
+ inside one, so the sticky, the ground and the rule move out to the wrapper
2391
+ and the heading keeps only its type. Without that the header scrolls away and
2392
+ the list runs under the trail above it. */
2393
+ .related-head {
2394
+ display: flex; align-items: center; gap: var(--space-3);
2395
+ padding: var(--space-2) var(--space-4h) var(--space-2);
2396
+ background: var(--surface);
2397
+ border-bottom: 1px solid var(--line);
2398
+ position: sticky; top: 0; z-index: 1;
2399
+ }
2400
+ .related-head > .related-title {
2401
+ margin: 0; padding: var(--space-2h) 0;
2402
+ font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: 0.09em;
2403
+ color: var(--ink-muted);
2404
+ }
2405
+ /* Quiet until wanted: the list is what the rail is for, and the control that
2406
+ shortens it should not compete with the first row of it. */
2407
+ .related-empties {
2408
+ margin-left: auto; flex: none;
2409
+ padding: var(--space-1) var(--space-3); font: var(--text-xs) var(--mono);
2410
+ color: var(--ink-subtle); border-color: transparent; background: none;
2411
+ }
2412
+ .related-empties:hover { color: var(--accent-ink); border-color: var(--line); }
2413
+ .related-list.hide-empty .related-item.empty { display: none; }
2414
+
2415
+
2416
+
2417
+ /* Pushed to the far end of the trail, where it is out of the way of reading
2418
+ the trail itself but lands under the cursor after a click on the last
2419
+ crumb. */
2420
+ .crumbs .crumb-back {
2421
+ margin-left: auto;
2422
+ display: inline-flex; align-items: center; gap: var(--space-2h);
2423
+ max-inline-size: 100%; padding: var(--space-2h) var(--space-3h); border-radius: var(--radius-item);
2424
+ font: var(--text-xs) var(--mono); color: var(--ink-muted);
2425
+ background: none; border: 1px solid transparent; cursor: pointer;
2426
+ }
2427
+ .crumbs .crumb-back:hover { color: var(--accent-ink); background: var(--raised); }
2428
+ .crumbs .crumb-back:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -3px; }
2429
+ .crumbs .crumb-back > span { min-inline-size: 0; overflow-wrap: anywhere; }
2430
+ /* With a list's verbs at the bar's end, both took an auto margin and split the
2431
+ free space: Back floated mid-bar. Back keeps the end; the verbs follow it. */
2432
+ .crumbs .crumb-back + .crumb-tools { margin-left: var(--space-3); }
2433
+
2434
+ .related-item {
2435
+ display: grid; grid-template-columns: minmax(2.4rem, auto) 1fr;
2436
+ align-items: center; gap: var(--space-4);
2437
+ /* A grid inside a <button> inherits the UA stylesheet's centring, which
2438
+ sizes each row to its own content and then centres it — so a row with a
2439
+ shorter table name sat further right than the one under it. Every row
2440
+ starts at the same edge whether it has rows behind it or not. */
2441
+ width: 100%; justify-content: start;
2442
+ background: none; border: none; border-radius: 0;
2443
+ border-left: 2px solid transparent;
2444
+ padding: 9px var(--space-4h); text-align: left; cursor: pointer;
2445
+ }
2446
+ .related-item:hover:not([disabled]) { background: var(--accent-soft); }
2447
+ .related-item[aria-selected="true"] {
2448
+ background: var(--accent-soft);
2449
+ border-left-color: var(--accent);
2450
+ }
2451
+ .related-item[disabled] { cursor: default; opacity: 0.55; }
2452
+
2453
+ .related-count {
2454
+ font: 600 var(--text-lg) var(--mono); color: var(--accent-ink);
2455
+ font-variant-numeric: tabular-nums; text-align: right;
2456
+ letter-spacing: -0.02em;
2457
+ }
2458
+ .related-item.empty .related-count { color: var(--ink-subtle); font-weight: 400; }
2459
+ .related-names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
2460
+ .related-table {
2461
+ font: var(--text-sm) var(--mono); color: var(--ink);
2462
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2463
+ }
2464
+ .related-item.empty .related-table { color: var(--ink-muted); }
2465
+ .related-via {
2466
+ font: var(--text-xs) var(--mono); color: var(--ink-subtle);
2467
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2468
+ }
2469
+
2470
+ /* Separated by space and its own heading rather than a rule. On a
2471
+ four-field record a border here was the third horizontal line in a page
2472
+ with almost nothing in it, which reads as fragments rather than a record. */
2473
+ .record-children { grid-column: 1 / -1; margin-top: var(--space-3h); }
2474
+
2475
+ /* Room to breathe at the end. Content ending flush against the bottom edge
2476
+ reads as cut off rather than finished, and on a scrolled page there is no
2477
+ signal that you have reached the end of it. */
2478
+ .record { padding-bottom: calc(var(--space-8) + var(--space-4)); }
2479
+ .record .panel { padding-bottom: var(--space-4); }
2480
+ /* The Workbench's record: the room at the end is the panels' own, not the record's. Padding on the record left a band
2481
+ at the foot where the page's ground showed, with the columns' rule and the rail stopping 64px short of the pane. */
2482
+ body:not(.app-mode) .record { padding-bottom: 0; background: var(--surface); }
2483
+ body:not(.app-mode) .record .panel { padding-bottom: calc(var(--space-8) + var(--space-4)); }
2484
+ /* Stacked, the first panel is followed by the next, and a gap that wide between them is not room at the end. */
2485
+ @media (max-width: 900px) { body:not(.app-mode) .record .panel:not(:last-child) { padding-bottom: var(--space-4); } }
2486
+
2487
+ /* A record has a measure; a table does not.
2488
+
2489
+ On a wide window with the table list hidden, a four-field record was spread
2490
+ across two thousand pixels — the label at one edge and its value at the
2491
+ other, with the eye having to travel the whole way to pair them. Capped and
2492
+ centred, the pairs stay together. Tables are left alone: columns of data
2493
+ genuinely want every pixel, and a table is scanned down rather than read
2494
+ across. */
2495
+ .record {
2496
+ width: 100%;
2497
+ max-width: 1500px;
2498
+ margin-inline: auto;
2499
+ }
2500
+
2501
+ .record-child-head {
2502
+ display: flex; align-items: baseline; gap: var(--space-3h);
2503
+ padding: var(--space-4) var(--space-4h) var(--space-2h);
2504
+ }
2505
+ .record-child-head .record-child-title {
2506
+ margin: 0;
2507
+ font: 600 var(--text-xs) var(--sans); text-transform: uppercase; letter-spacing: 0.09em;
2508
+ color: var(--ink-muted);
2509
+ }
2510
+ .record-child-via { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
2511
+ .record-child-head button { margin-left: auto; padding: var(--space-1h) var(--space-3h); font-size: var(--text-xs); }
2512
+
2513
+ /* Embedded grids sit tighter than the main one: they are a supporting detail
2514
+ on a page, not the thing being read. */
2515
+ /* Embedded tables read at the same size as the ones on their own page.
2516
+
2517
+ They were shrunk on the theory that a table inside a record is secondary.
2518
+ It is not — a work order's parts are the reason the record was opened, and
2519
+ setting them two points smaller than the same rows in a table view says the
2520
+ opposite. The only thing an embedded table gives up is the surrounding
2521
+ chrome. */
2522
+ .grid-compact table { font-size: inherit; }
2523
+
2524
+ .child-pager {
2525
+ display: flex; align-items: center; gap: var(--space-3);
2526
+ padding: var(--space-3h) var(--space-1) 0;
2527
+ }
2528
+ .child-range {
2529
+ margin-right: auto;
2530
+ font-size: var(--text-xs); color: var(--ink-muted);
2531
+ font-variant-numeric: tabular-nums;
2532
+ }
2533
+
2534
+ /* ---------- record layout builder ---------- */
2535
+
2536
+ .record-heading { display: flex; align-items: center; gap: var(--space-3h); }
2537
+ /* The outer nav can take its own row in a narrow record header; its compact
2538
+ segmented control stays together. Keyboard steps move nothing. */
2539
+ .record-trail { display: inline-flex; align-items: center; margin-inline-start: auto; flex: 0 1 auto; min-width: 0; max-width: 100%; }
2540
+ .record-trail .step-control {
2541
+ font-size: var(--type-ui); gap: var(--space-1); border: 0;
2542
+ background: transparent; overflow: visible;
2543
+ }
2544
+ .record-trail .step-control > :not(:first-child) { border-inline-start: 0; }
2545
+ /* Quiet by the faint ink, which reads at 4.5:1; faded to .72 it was 3.1:1. */
2546
+ .record-trail-at { min-width: 7ch; padding-inline: var(--space-2h); text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-subtle); }
2547
+ .help-here { font-weight: 400; opacity: .6; }
2548
+ .record-layout {
2549
+ margin-left: auto; padding: var(--space-1h) var(--space-3h); font-size: var(--text-xs);
2550
+ display: inline-flex; align-items: center; gap: var(--space-3);
2551
+ }
2552
+ .record-layout.is-custom { border-color: var(--accent); color: var(--accent-ink); }
2553
+ .record-layout-name {
2554
+ padding-left: var(--space-3); border-left: 1px solid var(--line);
2555
+ color: var(--ink-muted); max-width: 12rem;
2556
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2557
+ }
2558
+
2559
+ /* The layout's own name, edited in place in the builder's header. */
2560
+ .tpl-title { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
2561
+ .tpl-eyebrow {
2562
+ font: var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
2563
+ color: var(--ink-subtle);
2564
+ }
2565
+ .tpl-name {
2566
+ flex: 1 1 8rem; min-width: 0; max-width: 100%;
2567
+ padding: var(--space-1) var(--space-2h); margin: 0 -6px;
2568
+ border: 1px solid transparent; border-radius: var(--radius-item);
2569
+ background: none; color: var(--ink);
2570
+ font: 600 calc(15px * var(--type-k)) var(--mono); letter-spacing: 0;
2571
+ }
2572
+ .tpl-name:hover { border-color: var(--line); }
2573
+ .tpl-name:focus { outline: none; border-color: var(--focus); background: var(--ground); }
2574
+ .tpl-for { font: var(--text-xs) var(--mono); color: var(--ink-subtle); overflow-wrap: anywhere; }
2575
+
2576
+ /* A drawer, not an overlay.
2577
+
2578
+ The builder used to cover the screen, which meant configuring a record
2579
+ layout while unable to see the record. Every change had to be committed
2580
+ before it could be judged. As a drawer the record stays beside it and
2581
+ re-renders on every toggle, so the preview is the actual page rather than
2582
+ a representation of it. */
2583
+ .tpl {
2584
+ position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
2585
+ width: min(420px, 42vw);
2586
+ background: var(--surface);
2587
+ border-left: 1px solid var(--line-strong);
2588
+ box-shadow: var(--shadow-panel);
2589
+ display: flex; flex-direction: column;
2590
+ }
2591
+ :where(:root:not([data-visual-theme])) .tpl { box-shadow: -8px 0 24px rgb(0 0 0 / 0.10); }
2592
+ /* The page gives up the width rather than being covered by it. */
2593
+ body.editing-layout .layout { padding-right: min(420px, 42vw); }
2594
+ body.editing-layout .record { grid-template-columns: minmax(0, 1fr); }
2595
+ body.editing-layout .record-heading { flex-wrap: wrap; }
2596
+ body.editing-layout .record-heading > span { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; }
2597
+ @media (max-width: 700px) {
2598
+ .tpl { width: 100%; border-left: 0; }
2599
+ body.editing-layout .layout { padding-right: 0; }
2600
+ .tpl-title { display: grid; grid-template-columns: minmax(0, 1fr); }
2601
+ .tpl-name { width: 100%; margin: 0; }
2602
+ .tpl-section-head { flex-wrap: wrap; }
2603
+ .tpl-section-name { overflow-wrap: anywhere; }
2604
+ }
2605
+
2606
+ .tpl-head {
2607
+ padding: var(--space-4h) var(--space-5) var(--space-4);
2608
+ border-bottom: 1px solid var(--line);
2609
+ display: flex; flex-direction: column; gap: var(--space-2h);
2610
+ }
2611
+ .tpl-head h2 { margin: 0; font: 600 var(--text-base) var(--sans); letter-spacing: -0.01em; }
2612
+ .tpl-lede { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.45; }
2613
+ .tpl-head-actions { display: flex; gap: var(--space-2h); flex-wrap: wrap; margin-top: var(--space-1); }
2614
+ .tpl-head-actions button { padding: var(--space-2) var(--space-3h); font-size: var(--text-sm); }
2615
+ .tpl-error, .tpl-recovery p { margin: 0; font-size: var(--text-sm); overflow-wrap: anywhere; }
2616
+ .tpl-error { color: var(--status-critical); }
2617
+ .tpl-recovery { padding-block: var(--space-3); border-block: 1px solid var(--line); }
2618
+ .tpl-body[inert] { opacity: 0.6; }
2619
+
2620
+ .tpl-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-4h) var(--space-7); }
2621
+
2622
+ .tpl-section { border: 1px solid var(--line); border-radius: var(--radius-panel); margin-bottom: var(--space-3); background: var(--ground); }
2623
+ .tpl-section.off { opacity: 0.55; }
2624
+ .tpl-section-head {
2625
+ display: flex; align-items: center; gap: var(--space-3h);
2626
+ padding: var(--space-3h) var(--space-4);
2627
+ border-bottom: 1px solid var(--line);
2628
+ }
2629
+ .tpl-section.off .tpl-section-head { border-bottom: none; }
2630
+ .tpl-toggle { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
2631
+ .tpl-section-name { font: 600 var(--text-sm) var(--sans); color: var(--ink); }
2632
+ .tpl-section-kind { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
2633
+ .tpl-section-actions { margin-left: auto; display: flex; gap: var(--space-1); }
2634
+ .tpl-move {
2635
+ background: none; border: none; border-radius: min(4px, var(--radius));
2636
+ color: var(--ink-muted); cursor: pointer; padding: var(--space-1h) var(--space-3); font-size: var(--text-xs);
2637
+ }
2638
+ .tpl-move:hover:not([disabled]) { color: var(--accent-ink); background: var(--accent-soft); }
2639
+ .tpl-move[disabled] { color: var(--ink-subtle); cursor: default; }
2640
+
2641
+ /* The shared arranger (page.css, `.pb-*`) inside a layout card.
2642
+
2643
+ It is drawn there to hang off a builder row — no top border, its own tint,
2644
+ rounded at the bottom only — and a card already provides all three. So it
2645
+ keeps its contents and gives up its box. */
2646
+ .tpl-section .pb-panel {
2647
+ margin: 0; padding: var(--space-3) var(--space-3h) var(--space-3h);
2648
+ background: none; border: none; border-radius: 0;
2649
+ }
2650
+ .tpl-section .pb-arrange { max-height: none; }
2651
+
2652
+ .tpl-rows {
2653
+ display: flex; align-items: center; gap: var(--space-3);
2654
+ padding: var(--space-2) var(--space-4) var(--space-4); font-size: var(--text-sm); color: var(--ink-muted);
2655
+ }
2656
+ .tpl-rows input {
2657
+ width: 4.5rem; padding: var(--space-2) var(--space-3);
2658
+ font: var(--text-sm) var(--mono); color: var(--ink);
2659
+ background: var(--ground); border: 1px solid var(--line-control); border-radius: var(--radius);
2660
+ }
2661
+
2662
+ /* ---------- agent console ---------- */
2663
+
2664
+ .agent-body { display: grid; grid-template-columns: 15rem 1fr; gap: var(--space-6); padding-top: var(--space-5); }
2665
+ .agent-tools { display: flex; flex-direction: column; gap: var(--space-1); align-self: start; }
2666
+ .agent-tool {
2667
+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
2668
+ padding: var(--space-2h) var(--space-3h); border: none; background: none; border-radius: var(--radius);
2669
+ font: var(--text-base) var(--mono); color: var(--ink); cursor: pointer; text-align: left;
2670
+ }
2671
+ .agent-tool:hover { background: var(--raised); }
2672
+ .agent-tool.active { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 3px 0 0 var(--accent); }
2673
+ .agent-badge {
2674
+ font: 600 var(--text-xs) var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
2675
+ padding: 1px var(--space-2h); border-radius: var(--radius-panel); border: 1px solid var(--line);
2676
+ color: var(--ink-muted);
2677
+ }
2678
+ .agent-badge.tone-ok { color: var(--accent-ink); border-color: var(--accent-soft); }
2679
+ .agent-badge.tone-warn { color: var(--status-warning); }
2680
+ .agent-badge.tone-bad { color: var(--status-critical); }
2681
+ .agent-desc-row { display: flex; align-items: center; gap: var(--space-3); }
2682
+ .agent-desc-row h3 { margin: 0; font: 600 calc(15px * var(--type-k)) var(--mono); }
2683
+ .agent-desc { margin: var(--space-2h) 0 var(--space-4h); max-width: 68ch; font-size: var(--text-sm); color: var(--ink-muted); }
2684
+ .agent-field { display: grid; grid-template-columns: 10rem 1fr; gap: var(--space-3h); align-items: start; margin-bottom: var(--space-3); max-width: 44rem; }
2685
+ .agent-field label { font: var(--text-sm) var(--mono); padding-top: var(--space-2h); }
2686
+ .agent-field label .req { margin-left: var(--space-2h); }
2687
+ .agent-input {
2688
+ padding: var(--space-2) var(--space-3); font: var(--text-base) var(--mono);
2689
+ background: var(--surface); color: var(--ink);
2690
+ border: 1px solid var(--line-control); border-radius: var(--radius); min-width: 0; width: 100%;
2691
+ }
2692
+ .agent-input:focus { outline: none; border-color: var(--focus); }
2693
+ .agent-run-row { margin: var(--space-3h) 0 var(--space-5); }
2694
+ .agent-stats { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-2h); }
2695
+ .agent-answer {
2696
+ margin: 0; padding: var(--space-4h) var(--space-5); overflow: auto; max-height: 46vh;
2697
+ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
2698
+ font: var(--text-sm)/1.55 var(--mono); color: var(--ink);
2699
+ }
2700
+ .agent-answer-error { color: var(--status-critical); border-color: var(--status-critical); }
2701
+ .agent-error { color: var(--status-critical); font: var(--text-sm) var(--mono); }
2702
+ .agent-links { display: flex; flex-wrap: wrap; gap: var(--space-2h); margin-top: var(--space-3); }
2703
+ .agent-transcript { margin-top: var(--space-6); border-top: 1px solid var(--line); padding-top: var(--space-3h); }
2704
+ .agent-transcript h4 { margin: 0 0 var(--space-2h); font: 600 var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-subtle); }
2705
+ .agent-past {
2706
+ display: flex; gap: var(--space-4); align-items: baseline; width: 100%;
2707
+ padding: var(--space-2) var(--space-3); border: none; background: none; border-radius: var(--radius);
2708
+ font: var(--text-sm) var(--mono); color: var(--ink-muted); cursor: pointer; text-align: left;
2709
+ }
2710
+ .agent-past:hover { background: var(--raised); }
2711
+ .agent-past-tool { color: var(--ink); font-weight: 600; flex: none; }
2712
+ .agent-past-args { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2713
+ .agent-past-cost { margin-left: auto; flex: none; color: var(--ink-subtle); }
2714
+ @media (max-width: 800px) {
2715
+ .agent-body { grid-template-columns: 1fr; }
2716
+ .agent-tools { flex-direction: row; flex-wrap: wrap; }
2717
+ .agent-field { grid-template-columns: 1fr; gap: var(--space-1); }
2718
+ }
2719
+
2720
+ /* ---------- connection manager ---------- */
2721
+
2722
+ /* A place, not a dropdown. Full-screen because managing connections is a task
2723
+ you finish and leave rather than something you do in passing. */
2724
+ .conn-manager {
2725
+ position: fixed; inset: 0; z-index: 80;
2726
+ background: var(--ground);
2727
+ overflow-y: auto;
2728
+ }
2729
+ .conn-inner { max-width: 1040px; margin: 0 auto; padding: var(--space-7) var(--space-6) 60px; }
2730
+
2731
+ .conn-head {
2732
+ display: flex; align-items: flex-start; gap: 20px;
2733
+ padding-bottom: var(--space-5);
2734
+ border-bottom: 1px solid var(--line);
2735
+ }
2736
+ .diagram-scope { font-size: var(--text-xs); padding: 1px var(--space-3); }
2737
+
2738
+ .conn-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4h); }
2739
+ .conn-brand-name { font: 600 var(--text-base) var(--mono); letter-spacing: -0.01em; color: var(--ink-muted); }
2740
+ .conn-head h2 { margin: 0 0 var(--space-2); font: 600 calc(19px * var(--type-k)) var(--mono); letter-spacing: -0.015em; }
2741
+ .conn-lede { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); max-width: 46ch; }
2742
+ .conn-head-actions { margin-left: auto; display: flex; gap: var(--space-3); flex: none; }
2743
+
2744
+ .conn-manage {
2745
+ flex: none; display: inline-flex; align-items: center; justify-content: center;
2746
+ width: 28px; height: 28px; line-height: 1;
2747
+ background: none; border: 1px solid transparent; border-radius: var(--radius);
2748
+ color: var(--ink-muted); cursor: pointer;
2749
+ }
2750
+ .conn-manage:hover { color: var(--ink); border-color: var(--line); background: var(--raised); }
2751
+
2752
+ .conn-toolbar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) 0 var(--space-3); }
2753
+ .conn-filter {
2754
+ flex: 1; max-width: 22rem; padding: var(--space-2h) var(--space-3h);
2755
+ border: 1px solid var(--line-control); border-radius: var(--radius);
2756
+ background: var(--surface); color: var(--ink);
2757
+ font: var(--text-sm) var(--mono);
2758
+ }
2759
+ .conn-filter:focus { outline: none; border-color: var(--focus); }
2760
+ .conn-count { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
2761
+
2762
+ /* One connection, one line.
2763
+
2764
+ Cards were legible and did not scale: at 170px each, fifty connections is
2765
+ eight thousand pixels of scrolling to find one name. Nothing was dropped to
2766
+ get to forty — what moved is the actions, which are the same four on every
2767
+ row and so do not need fifty permanent copies. */
2768
+ .conn-list { display: flex; flex-direction: column; }
2769
+
2770
+ .conn-row {
2771
+ display: grid;
2772
+ grid-template-columns: 8px minmax(8rem, auto) minmax(0, 1fr) auto 6rem auto;
2773
+ align-items: center; gap: var(--space-4h);
2774
+ padding: var(--space-3) var(--space-4);
2775
+ border-bottom: 1px solid var(--line);
2776
+ cursor: pointer;
2777
+ }
2778
+ .conn-row:hover { background: var(--surface); }
2779
+ .conn-row.cursor, .conn-row:focus-visible {
2780
+ outline: none;
2781
+ background: var(--accent-soft);
2782
+ box-shadow: inset 3px 0 0 var(--focus);
2783
+ }
2784
+ .conn-row.active { background: var(--accent-soft); }
2785
+ .conn-row.failed { background: color-mix(in srgb, var(--status-critical) 5%, transparent); }
2786
+
2787
+ /* State as a dot: three values that need to be scannable down a column of
2788
+ fifty, where a word would be read fifty times. The word is still there at
2789
+ the end of the row for anyone who wants it. */
2790
+ .conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-subtle); }
2791
+ .conn-dot.ok { background: var(--accent); }
2792
+ .conn-dot.bad { background: var(--status-critical); }
2793
+ .conn-dot.idle { background: var(--line-strong); }
2794
+ /* Reading a schema is a wait worth showing: a Postgres catalog query across
2795
+ sixty tables takes long enough to notice, and a remote database much
2796
+ longer. */
2797
+ .conn-dot.busy { background: var(--status-info); animation: conn-pulse 1s ease-in-out infinite; } /* motion-ok: a wait, not decoration (rule 10) */
2798
+ @keyframes conn-pulse { 50% { opacity: 0.25; } }
2799
+ @media (prefers-reduced-motion: reduce) { .conn-dot.busy { animation: none; } }
2800
+
2801
+ .conn-name { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; }
2802
+ .conn-name-text {
2803
+ font: var(--text-base) var(--mono); color: var(--ink);
2804
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2805
+ }
2806
+ .conn-row.active .conn-name-text { color: var(--accent-ink); font-weight: 600; }
2807
+
2808
+ .conn-detail {
2809
+ font: var(--text-xs) var(--mono); color: var(--ink-subtle);
2810
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2811
+ }
2812
+ .conn-meta { display: flex; gap: var(--space-2); flex: none; }
2813
+ .conn-badge {
2814
+ padding: 1px var(--space-2h); border-radius: 999px;
2815
+ border: 1px solid var(--line); color: var(--ink-subtle);
2816
+ font: var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
2817
+ white-space: nowrap;
2818
+ }
2819
+ .conn-badge.current { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
2820
+ .conn-badge.source-session { border-color: var(--status-info); color: var(--status-info); }
2821
+ /* A boundary, not a status: coloured like the other warnings so it reads as
2822
+ a fact about what this connection will do rather than a label. */
2823
+ .conn-badge.shape-only { border-color: var(--status-warning, var(--status-info)); color: var(--status-warning, var(--status-info)); }
2824
+
2825
+ .conn-status { font: var(--text-xs) var(--mono); text-align: right; }
2826
+ .conn-status.ok { color: var(--ink-muted); }
2827
+ .conn-status.bad { color: var(--status-critical); }
2828
+ .conn-status.idle { color: var(--ink-subtle); }
2829
+ .conn-status.busy { color: var(--status-info); }
2830
+
2831
+ /* Revealed on approach. Kept in the layout at all times so the row does not
2832
+ reflow when they appear — only their visibility changes. */
2833
+ .conn-actions { display: flex; gap: var(--space-2); flex: none; visibility: hidden; }
2834
+ .conn-row:hover .conn-actions,
2835
+ .conn-row:focus-within .conn-actions,
2836
+ .conn-row.cursor .conn-actions { visibility: visible; }
2837
+ .conn-action {
2838
+ padding: var(--space-1h) var(--space-3); border-radius: var(--radius-item);
2839
+ background: none; border: 1px solid var(--line);
2840
+ color: var(--ink-muted); cursor: pointer;
2841
+ font: var(--text-xs) var(--mono); white-space: nowrap;
2842
+ }
2843
+ .conn-action:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--surface); }
2844
+ /* The action becomes a label while it runs, so it cannot be pressed twice and
2845
+ the row does not change width when it does. */
2846
+ .conn-action.working { border-color: transparent; color: var(--status-info); cursor: default; }
2847
+ /* Kept visible while working even without a hover, or the row would go quiet
2848
+ the moment the pointer left it. */
2849
+ .conn-row.busy .conn-actions { visibility: visible; }
2850
+ .conn-remove { color: var(--status-critical); }
2851
+ .conn-remove:hover { color: var(--status-critical); border-color: var(--status-critical); background: color-mix(in srgb, var(--status-critical) 10%, transparent); }
2852
+
2853
+ /* The reason a row is red, under it. A one-line list has nowhere else to put
2854
+ an error, and an error hidden in a tooltip is an error nobody reads. */
2855
+ .conn-error, .conn-warning {
2856
+ grid-column: 2 / -1;
2857
+ margin: var(--space-1) 0 var(--space-2); font: var(--text-xs) var(--mono);
2858
+ }
2859
+ .conn-error { color: var(--status-critical); }
2860
+ .conn-warning { color: var(--status-info); }
2861
+
2862
+ .conn-note {
2863
+ margin-top: var(--space-6); padding-top: var(--space-5);
2864
+ border-top: 1px solid var(--line);
2865
+ font-size: var(--text-sm); color: var(--ink-muted);
2866
+ }
2867
+ .conn-note p { margin: 0 0 var(--space-3); }
2868
+ .conn-note ul { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
2869
+ .conn-note li { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-subtle); }
2870
+
2871
+ /* ---------- deleting a row ---------- */
2872
+
2873
+ .record-delete { color: var(--status-critical); font-size: var(--text-xs); padding: var(--space-1h) var(--space-3h); }
2874
+ .record-delete:hover { border-color: var(--status-critical); background: color-mix(in srgb, var(--status-critical) 10%, transparent); }
2875
+
2876
+ /* The impact report. Each line leads with the consequence rather than the
2877
+ count, because "3 rows in invoice_line" is not an answer to "what happens if
2878
+ I delete this" and "3 rows will be deleted too" is. */
2879
+ .delete-impact { margin: var(--space-3h) 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2h); }
2880
+ .delete-impact li {
2881
+ display: flex; align-items: baseline; gap: var(--space-3h);
2882
+ padding: var(--space-3) var(--space-3h); border-radius: var(--radius);
2883
+ border-left: 3px solid var(--line);
2884
+ background: var(--raised);
2885
+ font: var(--text-sm)/1.5 var(--mono);
2886
+ }
2887
+ .impact-what { flex: 1; }
2888
+ .impact-rule { font-size: var(--text-xs); color: var(--ink-subtle); white-space: nowrap; }
2889
+ /* Three tones for three outcomes, so the shape of the answer reads before the
2890
+ words do. */
2891
+ .impact-bad { border-left-color: var(--status-critical); }
2892
+ .impact-bad .impact-what { color: var(--status-critical); }
2893
+ .impact-warn { border-left-color: var(--status-info); }
2894
+ .impact-stop { border-left-color: var(--ink-muted); }
2895
+ .impact-unknown { border-left-color: var(--ink-subtle); }
2896
+
2897
+ .delete-note, .delete-blocked {
2898
+ margin: var(--space-3h) 0 0; font-size: var(--text-xs); color: var(--ink-muted); line-height: 1.5;
2899
+ }
2900
+ .delete-blocked { color: var(--status-info); }
2901
+ .delete-confirm { max-width: 34rem; }
2902
+
2903
+ /* A toast can carry one thing to do about it — see `toast` in core.js. */
2904
+ .toast { display: flex; align-items: center; gap: var(--space-4); }
2905
+ /* Restores what `display: flex` took away.
2906
+
2907
+ `hidden` is how core.js dismisses a toast, and it works by way of the user
2908
+ agent's `[hidden] { display: none }` — which any `display` declaration in a
2909
+ stylesheet outranks. So every toast was hidden in the accessibility tree,
2910
+ still on screen, and stayed there until the next one replaced it. */
2911
+ .toast[hidden] { display: none; }
2912
+ .toast-action {
2913
+ flex: none; padding: var(--space-1h) var(--space-3h); border-radius: var(--radius-item);
2914
+ background: none; border: 1px solid currentColor;
2915
+ color: inherit; cursor: pointer; font: var(--text-xs) var(--mono);
2916
+ }
2917
+ .toast-action:hover { background: color-mix(in srgb, currentColor 15%, transparent); }
2918
+ /* An error stays until it is dismissed, so the Workbench's toast needs the
2919
+ close an App's always had. */
2920
+ .toast-dismiss {
2921
+ flex: none; min-width: 24px; min-height: 24px; padding: 0 var(--space-2);
2922
+ background: none; border: 0; color: inherit; cursor: pointer; font: var(--text-lg)/1 var(--sans);
2923
+ }
2924
+ .toast-dismiss:hover { background: color-mix(in srgb, currentColor 15%, transparent); }
2925
+
2926
+ /* ---------- a row's children, opened in place ---------- */
2927
+
2928
+ .expander-cell { width: 1.9rem; padding-left: var(--space-3h); padding-right: 0; }
2929
+ .expander {
2930
+ padding: 0 var(--space-2); line-height: 1;
2931
+ background: none; border: none;
2932
+ color: var(--ink-subtle); cursor: pointer;
2933
+ font-size: var(--text-xs);
2934
+ }
2935
+ .expander:hover { color: var(--accent-ink); }
2936
+ tr.expanded .expander { color: var(--accent-ink); }
2937
+ /* The row stays visibly attached to what it opened. */
2938
+ tr.expanded > td { border-bottom-color: transparent; background: var(--accent-soft); }
2939
+
2940
+ .detail-row > td { padding: 0; background: var(--raised); }
2941
+ .detail-cell {
2942
+ padding: var(--space-4) var(--space-5) var(--space-5) var(--space-7) !important;
2943
+ border-bottom: 1px solid var(--line-strong);
2944
+ /* Its own scroll, so a wide child table does not widen the parent — every
2945
+ column of which would then be laid out around data it has nothing to do
2946
+ with. */
2947
+ max-width: 100%;
2948
+ }
2949
+ .detail-section + .detail-section { margin-top: var(--space-5); }
2950
+ .detail-head { display: flex; align-items: baseline; gap: var(--space-3h); margin-bottom: var(--space-2h); }
2951
+ .detail-head h4 {
2952
+ margin: 0; font: 600 var(--text-xs) var(--mono);
2953
+ text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted);
2954
+ }
2955
+ .detail-via { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
2956
+ .detail-count {
2957
+ font: var(--text-xs) var(--mono); color: var(--accent-ink);
2958
+ font-variant-numeric: tabular-nums;
2959
+ }
2960
+ /* Beside the count, not banished to the far right.
2961
+
2962
+ `margin-left: auto` pushed it to the edge of a full-width head, which was
2963
+ fine when the child table underneath was also full width. Now that a child
2964
+ table is only as wide as it needs, a "See all" a thousand pixels to the
2965
+ right of the last column belongs to nothing the eye can see — it reads as
2966
+ page furniture rather than as this section's control. */
2967
+ .detail-all { margin-left: var(--space-2); font-size: var(--text-xs); padding: var(--space-1) var(--space-3); }
2968
+ /* The inner grid keeps its own inset rather than inheriting the page's. */
2969
+ .detail-cell .table-wrap { padding: 0; }
2970
+ /* The child's width must not reach the parent.
2971
+
2972
+ A table sized to its contents inside a cell with `colspan` hands its
2973
+ preferred width *up*: a thirteen-column child made the outer table 2834px
2974
+ wide and put a horizontal scrollbar on the whole page. `contain:
2975
+ inline-size` sizes this box from its parent as though it had no contents,
2976
+ so a wide child scrolls inside its own strip and the result above it stays
2977
+ where it was. */
2978
+ .detail-cell .table-wrap { contain: inline-size; }
2979
+
2980
+ /* A child table is as wide as its contents, not as wide as the window.
2981
+
2982
+ `width: 100%` is right for the result you asked for and wrong for a table
2983
+ nested inside it: six narrow columns stretched across seventeen hundred
2984
+ pixels put `ID` in the middle of the row with nothing either side of it,
2985
+ and four such tables under one row each spread their columns to different
2986
+ places. Sized to content they pack left, start at the same edge, and read
2987
+ as a group of small tables rather than as four sparse ones.
2988
+
2989
+ Wider than the container is still possible — a child with twenty columns —
2990
+ and `.table-wrap` already scrolls, which is what the outer table does too. */
2991
+ /* As wide as its contents, but never wider than the row it sits in.
2992
+
2993
+ `width: auto` alone let a thirteen-column child sprawl to nearly three
2994
+ thousand pixels, giving every expanded row its own horizontal scrollbar to
2995
+ fight. The cap brings the wide ones back to the container, where their
2996
+ columns compress exactly as a top-level result's do, and leaves the narrow
2997
+ ones — the common case, and the one that looked scattered — at their own
2998
+ width. */
2999
+ .detail-cell table { width: auto; max-width: 100%; }
3000
+ /* Tighter than the 30rem a top-level result allows. A description column that
3001
+ takes half the width of a nested table is the same spreading problem in one
3002
+ column instead of all of them. */
3003
+ .detail-cell th, .detail-cell td { max-width: 18rem; }
3004
+
3005
+ /* A child table's header is not a peer of the page's.
3006
+
3007
+ Both were `--surface` on `--line-strong`, so a nested header read as
3008
+ another top-level one and the two competed for the same rank — worst where
3009
+ an expanded row sits directly under the real header and the eye has to work
3010
+ out which columns belong to which table. The inner one takes the tinted
3011
+ ground it is sitting on and a hairline in the ordinary border colour: still
3012
+ legibly a header, plainly the quieter of the two. */
3013
+ .detail-cell thead th {
3014
+ /* A step away from the ground it sits on, not the same colour as it.
3015
+
3016
+ Plain `--raised` *is* the expanded row's background, so the header
3017
+ dissolved into its own container and the child table lost its top edge.
3018
+ Mixed toward the text colour instead, which darkens it in the light
3019
+ theme and lightens it in the dark one — a raised strip either way, and
3020
+ one step quieter than the page's own header rather than level with it. */
3021
+ background: color-mix(in srgb, var(--ink) 7%, var(--raised));
3022
+ border-bottom: 1px solid var(--line-strong);
3023
+ color: var(--ink-muted);
3024
+ font-size: calc(10.5px * var(--type-k));
3025
+ }
3026
+ .detail-cell thead th.sorted { color: var(--accent-ink); border-bottom-color: var(--accent); }
3027
+ /* Sticky belongs to the page's header, not to a table nested three rows down:
3028
+ an inner header pinning itself to the top of the scroller detaches from the
3029
+ rows it names. */
3030
+ .detail-cell thead th { position: relative; }
3031
+ .detail-cell .pinned { background: color-mix(in srgb, var(--ink) 7%, var(--raised)); }
3032
+
3033
+ /* ---------- what is in this database ---------- */
3034
+
3035
+ /* Barely rounded. A 10px radius on a card full of monospace tables reads as
3036
+ a decade-old dashboard; the tabs went square for the same reason, and a
3037
+ hairline of curvature is enough to say "card" without saying "widget". */
3038
+ /* Room to breathe. Twelve pixels of padding around eleven lines of 10px
3039
+ monospace reads as congested however carefully the lines are spaced. */
3040
+ .shape {
3041
+ max-width: 62rem;
3042
+ margin: 0 0 var(--space-5);
3043
+ padding: var(--space-5) 20px;
3044
+ background: var(--surface);
3045
+ border: 1px solid var(--line);
3046
+ border-radius: min(3px, var(--radius));
3047
+ }
3048
+ .shape-head { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
3049
+ .shape-body { margin-top: var(--space-4); }
3050
+
3051
+ /* The title is the control. A separate chevron would be one more thing in a
3052
+ row whose whole problem is how much it holds; the row already reads as the
3053
+ card's header, so clicking it folds the card. */
3054
+ .shape-toggle {
3055
+ margin: 0; padding: 0; border: none; background: none; cursor: pointer;
3056
+ font: 600 var(--text-lg) var(--mono); letter-spacing: -0.015em; color: var(--ink);
3057
+ display: flex; align-items: baseline; gap: 7px;
3058
+ }
3059
+ .shape-toggle::before {
3060
+ content: "▾"; font-size: var(--text-xs); color: var(--ink-subtle);
3061
+ }
3062
+ /* The chevron still turns when motion is reduced — it is a state indicator,
3063
+ not decoration. Only the turning is animated, and only where animation is
3064
+ welcome. */
3065
+ @media (prefers-reduced-motion: no-preference) {
3066
+ .shape-toggle::before { transition: transform var(--t-hover) var(--ease-out); }
3067
+ }
3068
+ .shape-toggle:hover { color: var(--accent-ink); }
3069
+ .shape-toggle:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 3px; border-radius: min(4px, var(--radius)); }
3070
+ .shape-counts { font: var(--text-xs) var(--mono); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
3071
+ .shape-start { margin-left: auto; font-size: var(--text-xs); }
3072
+
3073
+ .shape-closed .shape-body { display: none; }
3074
+ .shape-closed .shape-toggle::before { transform: rotate(-90deg); }
3075
+ /* Collapsed, the card is one line, so the padding that framed five lines of
3076
+ prose reads as a box drawn around a sentence. */
3077
+ .shape-closed { padding: var(--space-3) var(--space-5); }
3078
+ /* Only worth saying when the lines that said it in full are hidden. */
3079
+ .shape-gist { display: none; font: var(--text-xs) var(--mono); color: var(--ink-muted); }
3080
+ .shape-closed .shape-gist { display: inline; }
3081
+
3082
+ .shape-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
3083
+ /* A label column, so the four claims read as four answers to four questions
3084
+ rather than as a paragraph that happens to have been split. */
3085
+ .shape-line { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--space-4h); align-items: baseline; }
3086
+ @media (max-width: 640px) { .shape-line { grid-template-columns: 1fr; gap: var(--space-1); } }
3087
+ .shape-label {
3088
+ font: var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
3089
+ color: var(--ink-subtle); text-align: right;
3090
+ }
3091
+ @media (max-width: 640px) { .shape-label { text-align: left; } }
3092
+ .shape-says { font: var(--text-sm)/1.55 var(--mono); color: var(--ink-muted); }
3093
+
3094
+ /* Every table named is a way in. A summary you cannot act on is a paragraph to
3095
+ read and then leave. */
3096
+ .shape-link {
3097
+ padding: 1px var(--space-2); margin: 0 -1px; border-radius: min(4px, var(--radius));
3098
+ background: none; border: none;
3099
+ color: var(--accent-ink); cursor: pointer;
3100
+ font: inherit;
3101
+ }
3102
+ .shape-link:hover { background: var(--accent-soft); text-decoration: underline; }
3103
+ .shape-arrow { color: var(--ink-subtle); }
3104
+
3105
+ /* ---------- the keyboard cursor on a result ---------- */
3106
+
3107
+ /* One tab stop for the whole grid; the cursor moves inside it with the arrow
3108
+ keys. A hundred and sixty tab stops between the query bar and whatever is
3109
+ after it is not navigation. */
3110
+ .result table:focus { outline: none; }
3111
+ .result table:focus-visible { outline: var(--focus-width-true) solid var(--focus); outline-offset: -2px; }
3112
+
3113
+ /* An inset ring rather than a background fill: the cell already carries
3114
+ meaning through colour — null is dim, numbers align right, references are
3115
+ chips — and painting over it to say "you are here" costs more than it
3116
+ says. */
3117
+ .cell-cursor {
3118
+ outline: var(--focus-width-true) solid var(--focus);
3119
+ outline-offset: -2px;
3120
+ border-radius: min(3px, var(--radius));
3121
+ }
3122
+
3123
+ /* Copy needs an acknowledgement: the clipboard is somewhere else, so without
3124
+ one the key press has no visible effect at all. */
3125
+ .cell-copied { background: var(--accent-soft); }
3126
+ @media (prefers-reduced-motion: no-preference) {
3127
+ .cell-copied { transition: background var(--t-hover) var(--ease-out); }
3128
+ }
3129
+
3130
+
3131
+ /* The expand-every-row control, in the header cell above the expanders. It is
3132
+ the same glyph as the row's own, one rank quieter, so it reads as "all of
3133
+ these" rather than as a different kind of control. */
3134
+ .expand-all { color: var(--ink-subtle); }
3135
+ .expand-all:hover { color: var(--accent-ink); }
3136
+ .expand-all.working { opacity: 0.5; cursor: progress; }
3137
+
3138
+ /* The trail's root. Quiet like the crumbs beside it — it is a step in the
3139
+ trail, not a button competing with one — but always present, which is the
3140
+ whole point of it. */
3141
+ /* Full-strength, not dimmed like the crumbs beside it. It is the one thing in
3142
+ the trail that is a control rather than a step, and the whole reason it was
3143
+ added is that the way home was not noticeable. */
3144
+ .crumb-home {
3145
+ display: inline-flex; align-items: center;
3146
+ /* The row is baseline-aligned, which is right for the text crumbs and
3147
+ meaningless for an icon — an SVG has no baseline to sit on, so it hung
3148
+ above the line it was supposed to be part of. Centred against the line
3149
+ box instead. */
3150
+ align-self: center;
3151
+ color: var(--ink);
3152
+ padding: var(--space-1) var(--space-2);
3153
+ border-radius: var(--radius);
3154
+ }
3155
+ /* Inline SVG sits on the text baseline by default and leaves descender space
3156
+ under it, which is the other half of the same misalignment. */
3157
+ .crumb-home svg { display: block; }
3158
+ .crumb-home:hover { background: var(--raised); }
3159
+ .crumb-home:hover { color: var(--accent-ink); }
3160
+
3161
+ /* Clauses that describe a query which did not run.
3162
+
3163
+ Not an error colour — the banner above already says what is wrong, and
3164
+ painting the chips red would claim each of them is the fault. They are
3165
+ simply not in effect, and look it. The × on each still works: removing the
3166
+ clause that broke the query is the fix. */
3167
+ .views.not-in-effect .clause { opacity: 0.55; }
3168
+ .views .view-save[disabled] { opacity: 0.45; cursor: default; }
3169
+
3170
+ /* ---------- the connection dialog ---------- */
3171
+
3172
+ .conn-dialog { min-width: min(560px, 92vw); }
3173
+ /* Two ways of saying the same thing, so they read as one control with two
3174
+ faces rather than as two separate forms. */
3175
+ .conn-tabs { display: flex; gap: var(--space-2); margin: var(--space-2) 0 var(--space-4); }
3176
+ .conn-tab {
3177
+ background: none; border: 1px solid transparent; border-radius: var(--radius);
3178
+ padding: var(--space-2) var(--space-3h); font: inherit; font-size: var(--text-sm);
3179
+ color: var(--ink-muted); cursor: pointer;
3180
+ }
3181
+ .conn-tab:hover { color: var(--ink); }
3182
+ .conn-tab.active { color: var(--ink); border-color: var(--line-strong); background: var(--raised); }
3183
+ /* Host and port sit together, as they are read; the rest take a line each. */
3184
+ /* Host and port share a row, because they are read as one thing. Everything
3185
+ else takes the width.
3186
+
3187
+ Keyed on which field it is rather than on its position: this was written as
3188
+ `nth-child` while the driver picker was the first child, and moving that
3189
+ picker out of the grid shifted every index — so the rule went on describing
3190
+ a layout that no longer existed and paired the wrong two boxes. A selector
3191
+ that survives reordering is worth the `:has`. */
3192
+ .conn-parts { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-3h) var(--space-4); }
3193
+ .conn-parts > .field-stack { grid-column: 1 / -1; }
3194
+ .conn-parts > .field-stack:has(input[aria-label='Host']) { grid-column: 1 / 2; }
3195
+ .conn-parts > .field-stack:has(input[aria-label='Port']) { grid-column: 2 / 3; }
3196
+ /* A password source is a choice, so it sits with the field it decides. */
3197
+ .conn-secret-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3h); }
3198
+ .conn-tabs-small { margin: 0; }
3199
+ .conn-tabs-small .conn-tab { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
3200
+ .conn-secret-note { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--ink-subtle); }
3201
+
3202
+ .conn-preview-row {
3203
+ display: flex; gap: var(--space-3); align-items: baseline;
3204
+ margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-muted);
3205
+ }
3206
+
3207
+ /* `hidden` is a UA rule and any explicit `display` beats it, so the row above
3208
+ has to say so itself. It is set now that the row only appears when it has
3209
+ something to add — a password the box above is holding back. */
3210
+ .conn-preview-row[hidden] { display: none; }
3211
+ /* Wraps rather than scrolls: the point of the preview is being able to read
3212
+ the whole thing before saving it. */
3213
+ .conn-preview {
3214
+ font-family: var(--mono); color: var(--ink);
3215
+ word-break: break-all; background: var(--raised);
3216
+ border: 1px solid var(--rule, var(--line)); border-radius: min(3px, var(--radius)); padding: 1px var(--space-2);
3217
+ }
3218
+
3219
+ /* ---------- the query modal (⌘/) ---------- */
3220
+
3221
+ /* Same z-index as the palette, for the same reason: it is bound at the
3222
+ document with capture, so it can be opened over anything and must never
3223
+ open underneath it. */
3224
+ .ask-backdrop {
3225
+ position: fixed; inset: 0; z-index: 100;
3226
+ background: rgb(0 0 0 / 0.28);
3227
+ display: flex; justify-content: center;
3228
+ padding-top: 18vh;
3229
+ }
3230
+ /* Wider than the palette. The palette shows a list of short names; this holds
3231
+ a sentence, and the whole reason it exists is that the header's bar is too
3232
+ narrow for one. */
3233
+ .ask {
3234
+ /* A sibling of its scrim now (Base UI), so the box takes the place the
3235
+ scrim's flex layout used to give it: 18vh down, centred. */
3236
+ position: fixed; top: 18vh; left: 0; right: 0; margin: 0 auto; z-index: 100;
3237
+ width: min(760px, 94vw); height: fit-content;
3238
+ background: var(--surface);
3239
+ border: 1px solid var(--line-strong);
3240
+ border-radius: var(--radius-dialog);
3241
+ box-shadow: var(--shadow-modal);
3242
+ overflow: hidden;
3243
+ }
3244
+ :where(:root:not([data-visual-theme])) .ask { box-shadow: 0 18px 60px rgb(0 0 0 / 0.28); }
3245
+ .ask-input {
3246
+ display: block; width: 100%;
3247
+ padding: var(--space-4h) var(--space-5);
3248
+ border: none; border-bottom: 1px solid var(--line);
3249
+ background: none; color: var(--ink);
3250
+ font: var(--text-md)/1.5 var(--mono);
3251
+ resize: none;
3252
+ }
3253
+ .ask-input:focus { outline: none; border-bottom-color: var(--accent); }
3254
+ .ask-foot {
3255
+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
3256
+ padding: var(--space-3) var(--space-5);
3257
+ font-size: var(--text-sm); color: var(--ink-muted);
3258
+ }
3259
+ .ask-hint code {
3260
+ font-family: var(--mono);
3261
+ color: var(--ink);
3262
+ }
3263
+ .ask-keys { color: var(--ink-subtle); white-space: nowrap; }
3264
+
3265
+ /* "or fill in the parts" — a rule with the words sitting in the gap.
3266
+
3267
+ The two shapes are alternatives, and a plain gap between them reads as one
3268
+ long form where the second half continues the first. The line says choose,
3269
+ without a control to click. */
3270
+ .conn-or {
3271
+ display: flex;
3272
+ align-items: center;
3273
+ gap: var(--space-3h);
3274
+ margin: var(--space-4h) 0 var(--space-4);
3275
+ color: var(--ink-muted);
3276
+ font-size: var(--text-sm);
3277
+ }
3278
+
3279
+ .conn-or::before,
3280
+ .conn-or::after {
3281
+ content: "";
3282
+ flex: 1;
3283
+ border-top: 1px solid var(--line);
3284
+ }
3285
+
3286
+ /* ---------- what the Test button answered ----------
3287
+
3288
+ This was a grey `<p class="note">` between two fields, in the same colour
3289
+ as the fine print under it — so the one line on the form that answers a
3290
+ question somebody just asked read as more static help. It is a block with
3291
+ a mark now, coloured by outcome, sitting against the buttons that produced
3292
+ it. */
3293
+ .conn-result {
3294
+ display: flex;
3295
+ gap: 9px;
3296
+ align-items: flex-start;
3297
+ margin: var(--space-4h) 0 0;
3298
+ padding: 9px 11px;
3299
+ border: 1px solid var(--line);
3300
+ border-left-width: 3px;
3301
+ border-radius: var(--radius);
3302
+ background: var(--raised);
3303
+ font-size: var(--text-sm);
3304
+ line-height: 1.5;
3305
+ }
3306
+
3307
+ .conn-result[hidden] { display: none; }
3308
+ .conn-result.ok { border-left-color: var(--accent); }
3309
+ .conn-result.bad { border-left-color: var(--status-critical); }
3310
+
3311
+ .conn-result-mark { font-weight: 700; line-height: 1.4; }
3312
+ .conn-result.ok .conn-result-mark { color: var(--accent-ink); }
3313
+ .conn-result.bad .conn-result-mark { color: var(--status-critical); }
3314
+
3315
+ .conn-result-text { margin: 0; color: var(--ink); }
3316
+
3317
+ /* The warning the server works out and the form used to drop on the floor.
3318
+ "Password from inline" is a fact; this is why anyone should care. */
3319
+ .conn-result-detail {
3320
+ margin: var(--space-1h) 0 0;
3321
+ color: var(--status-warning);
3322
+ font-size: var(--text-sm);
3323
+ }
3324
+
3325
+ /* A line under a field saying what it is for, rather than a placeholder that
3326
+ vanishes the moment somebody types into it. */
3327
+ .field-hint {
3328
+ display: block;
3329
+ margin-top: var(--space-2);
3330
+ font-size: var(--text-xs);
3331
+ line-height: 1.45;
3332
+ color: var(--ink-muted);
3333
+ }
3334
+
3335
+ /* A paste with no `://` in it. The name tablewalk prints for a connection is
3336
+ its public URL form, so pasting one back is an ordinary thing to do — and
3337
+ it lands in the file-path branch. Which driver it wants is the one thing
3338
+ the string does not say, so it is asked rather than guessed. */
3339
+ .conn-scheme-hint {
3340
+ display: flex;
3341
+ flex-wrap: wrap;
3342
+ align-items: center;
3343
+ gap: var(--space-2h);
3344
+ margin: var(--space-2) 0 0;
3345
+ font-size: var(--text-xs);
3346
+ color: var(--status-warning);
3347
+ }
3348
+
3349
+ .conn-scheme-hint[hidden] { display: none; }
3350
+
3351
+ .conn-scheme-fix {
3352
+ font: var(--text-xs) var(--mono);
3353
+ padding: 1px var(--space-3);
3354
+ border: 1px solid var(--line-strong);
3355
+ border-radius: min(4px, var(--radius));
3356
+ background: var(--surface);
3357
+ color: var(--ink);
3358
+ cursor: pointer;
3359
+ }
3360
+
3361
+ .conn-scheme-fix:hover { border-color: var(--accent); color: var(--accent-ink); }
3362
+
3363
+ /* The note under the form about what happens to this connection, and to the
3364
+ password in it. It was `--ink-subtle`, a mid-grey at half alpha meant for a
3365
+ rule between things — too quiet for a line that carries a guarantee about
3366
+ where a secret ends up. */
3367
+ .conn-fineprint {
3368
+ margin: var(--space-3h) 0 0;
3369
+ font-size: var(--text-xs);
3370
+ line-height: 1.5;
3371
+ color: var(--ink-muted);
3372
+ }
3373
+
3374
+ /* Tenant selection has no identity or policy state of its own. */
3375
+ .tenant-chooser {
3376
+ width: 100%; max-width: 36rem; min-width: 0; margin: 40px auto; padding: var(--space-6);
3377
+ color: var(--ink); font: var(--text-md)/1.5 var(--sans); overflow-wrap: anywhere;
3378
+ }
3379
+ .tenant-chooser h1 { margin: 0 0 20px; font-size: calc(22px * var(--type-k)); line-height: 1.3; }
3380
+ .tenant-chooser-app { margin: 0 0 var(--space-3); color: var(--ink-muted); }
3381
+ .tenant-chooser-current, .tenant-chooser-note { margin: 0 0 var(--space-5); color: var(--ink-muted); }
3382
+ .tenant-chooser-note bdi { overflow-wrap: anywhere; }
3383
+ .tenant-chooser-current bdi { color: var(--ink); font-family: var(--mono); }
3384
+ .tenant-chooser-error { margin: 0 0 var(--space-5); color: var(--status-critical); white-space: pre-wrap; }
3385
+ .tenant-chooser-list { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
3386
+ .tenant-chooser-choice {
3387
+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
3388
+ width: 100%; min-height: 44px; padding: var(--space-3h) var(--space-4); text-align: left; white-space: normal;
3389
+ }
3390
+ .tenant-chooser-choice bdi { min-width: 0; color: var(--ink); font-family: var(--mono); overflow-wrap: anywhere; }
3391
+ .tenant-chooser-current-mark { flex: none; color: var(--ink-muted); font: var(--text-sm) var(--sans); }
3392
+ /* A sandbox's mark: a tone chip that keeps its word whole where the name beside it is cut. */
3393
+ .tenant-sandbox-mark { flex: none; display: inline-block; padding: 0 var(--space-2h); border-radius: min(3px, var(--radius)); font: var(--text-sm)/1.7 var(--sans); white-space: nowrap; }
3394
+ .tenant-chooser-choice:not(:disabled):hover { background: var(--accent-soft); border-color: var(--accent); }
3395
+ .tenant-chooser-choice[aria-current="true"] { border-color: var(--accent); }
3396
+ .tenant-chooser-retry { margin-top: 20px; }
3397
+ .tenant-chooser button:disabled, .tenant-chooser-actions button:disabled, .tenant-control-trigger:disabled { cursor: default; opacity: 0.6; }
3398
+ .tenant-control { display: inline-flex; min-width: 0; }
3399
+ .tenant-control-trigger { display: inline-flex; align-items: center; gap: var(--space-2h); max-width: 16rem; }
3400
+ .tenant-control-trigger > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
3401
+ .tenant-control-trigger > :last-child { flex: none; }
3402
+ .tenant-chooser-dialog {
3403
+ width: min(36rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
3404
+ background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
3405
+ border-radius: var(--radius); box-shadow: var(--shadow-modal);
3406
+ }
3407
+ .tenant-chooser-dialog-backdrop { background: var(--scrim); }
3408
+ .tenant-chooser-dialog .tenant-chooser { margin: 0; }
3409
+ .tenant-chooser-actions { display: flex; justify-content: flex-end; padding: 0 var(--space-6) var(--space-6); }
3410
+ /* What the bar offers beside the control is the dialog's too, and only on a
3411
+ phone, where the bar is the one row design.md gives it and the control is
3412
+ the account menu's. */
3413
+ .tenant-chooser-elsewhere { display: none; }
3414
+ @media (max-width: 700px) {
3415
+ .tenant-chooser { margin: 20px auto; padding: 20px var(--space-4h); }
3416
+ .tenant-chooser-actions { flex-wrap: wrap; gap: var(--space-3); padding: 0 var(--space-4h) 20px; }
3417
+ .tenant-chooser-elsewhere { display: inline-flex; margin-right: auto; }
3418
+ }
3419
+ .workspace-opening { margin: 0; padding: 40px var(--space-6); color: var(--ink-muted); }
3420
+ .tenant-pending .sidebar,
3421
+ .tenant-pending #topnav,
3422
+ .tenant-pending #querybar,
3423
+ .tenant-pending #sql-toggle,
3424
+ .tenant-pending #search-button,
3425
+ .tenant-pending #explain-pane,
3426
+ .tenant-pending #errors { display: none !important; }
3427
+
3428
+ /* Suspension preserves mounted forms, including portals, behind an opaque
3429
+ top-layer recovery surface. No motion: private data disappears immediately. */
3430
+ body.tenant-suspended > :not(.tenant-renewal-overlay),
3431
+ body.tenant-suspended > :not(.tenant-renewal-overlay) * { visibility: hidden !important; }
3432
+ .tenant-renewal-overlay,
3433
+ .tenant-renewal-overlay::backdrop { background: var(--ground); color: var(--ink); }
3434
+ .tenant-renewal-overlay {
3435
+ position: fixed; inset: 0; margin: 0; width: 100%; height: 100%;
3436
+ max-width: none; max-height: none; box-sizing: border-box;
3437
+ border: 0; padding: 40px var(--space-6); font-family: var(--sans);
3438
+ }
3439
+ .tenant-renewal-overlay[open] { display: grid; place-items: center; }
3440
+ .tenant-renewal-panel { width: 100%; max-width: 36rem; }
3441
+ .tenant-renewal-panel h1 { margin: 0 0 20px; font-size: 1.25rem; }
3442
+ .tenant-renewal-panel p { color: var(--ink-muted); line-height: 1.5; margin: 0 0 20px; }
3443
+ .tenant-renewal-panel button[aria-disabled="true"] { opacity: 0.6; cursor: default; }
3444
+
3445
+ /* Off screen until it holds the focus, then over the top bar's corner: the
3446
+ first Tab says it, the second leaves it. */
3447
+ .skip-link {
3448
+ position: fixed; left: 8px; top: 8px; z-index: 400;
3449
+ padding: var(--space-3) var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius);
3450
+ background: var(--surface); color: var(--ink); font: 600 var(--text-base)/20px var(--sans);
3451
+ transform: translateY(calc(-100% - 16px));
3452
+ }
3453
+ .skip-link:focus { transform: none; outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
3454
+ /* The pane takes the focus only from the skip link or the sidebar's
3455
+ ArrowRight; the room it holds already says where the keyboard is. */
3456
+ #content:focus { outline: none; }
3457
+
3458
+ /* Named for assistive technology, not drawn: a label the layout already says
3459
+ another way (a section titled by its one field). */
3460
+ .visually-hidden {
3461
+ position: absolute;
3462
+ width: 1px;
3463
+ height: 1px;
3464
+ margin: -1px;
3465
+ padding: 0;
3466
+ overflow: hidden;
3467
+ clip-path: inset(50%);
3468
+ white-space: nowrap;
3469
+ border: 0;
3470
+ }
3471
+
3472
+ /* ---------- on paper ---------- */
3473
+
3474
+ /* A record or a list printed is its content. The page is let out of the
3475
+ fixed-height shell — on screen the pane scrolls inside it, and paper would
3476
+ stop at one window's worth. Nothing that operates the screen prints, and
3477
+ its hiding outranks a look's own display rule for the same bar. Ink is the
3478
+ system's on white whatever the look or the mode: a dark look printed
3479
+ without its ground would be light ink on white paper. Rows, fields and
3480
+ sections stay whole across a sheet and a heading stays with what it heads;
3481
+ a hidden tab panel takes no room, so a record prints the tab it is on. */
3482
+ }
3483
+
3484
+ /* These are the segmented control's structure, not a look's typography or
3485
+ corner shape. A generic themed button must not round its interior seams
3486
+ or shrink its target; the containing frame keeps that theme's radius. */
3487
+ @layer structure {
3488
+ .step-control > .step-button { border-radius: 0; min-block-size: 36px; min-inline-size: 36px; }
3489
+ .record-trail .step-control > .step-button { border-radius: var(--radius-item); }
3490
+ .crumbs .crumb-back { min-block-size: 36px; }
3491
+ @media (pointer: coarse) {
3492
+ .step-control > .step-button, .crumbs .crumb-back { min-block-size: 44px; min-inline-size: 44px; }
3493
+ .step-control .page-input { min-block-size: 44px; }
3494
+ }
3495
+ }
3496
+
3497
+ /* Paper is last: ink on white in every look and mode. */
3498
+ @layer print {
3499
+ @media print {
3500
+ :root { color-scheme: light; }
3501
+ body { height: auto; display: block; background: Canvas; color: CanvasText; }
3502
+ .layout, .content { display: block; }
3503
+ .content { overflow: visible; }
3504
+ /* The skip link is the keyboard's way past the bars, and paper has no keyboard: kept off screen by a transform,
3505
+ it was still a fixed box in the print tree, and "Skip to content" came out on the PDF. */
3506
+ .skip-link, .topbar, .sidebar, #querybar, #toast, .crumb-tools, .page-head-actions, .page-pending, .pending-dock, .applist-controls,
3507
+ .pager, .quick-add, .page-related-create, .inline-edit-button, .date-field-trigger { display: none !important; }
3508
+ .page-tabpanel[hidden] { display: none; }
3509
+ /* The trail is the walk's, not the sheet's: sticky, it printed over a record's first lines (a quote's
3510
+ letterhead). A list's title rides in it (crumb-note), so a list keeps that, in the flow, and a record
3511
+ prints none of it. */
3512
+ .crumb-home, .crumbs .sep, .crumb-table-step, .crumbs > button, .crumbs > .current, .record-trail { display: none !important; }
3513
+ .crumbs { position: static; padding-inline: 0; border-bottom: 0; background: none; }
3514
+ .crumbs:has(> .crumb-note:empty) { display: none; }
3515
+ .page-layout { display: block; }
3516
+ .page-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: var(--space-6); padding-top: var(--space-6); }
3517
+ .page-section, .page-field, .page-sheet-row, .timeline-row, .pbd-row, .chart-stacked-row, tr { break-inside: avoid; }
3518
+ h1, h2, h3, .page-section-head, .page-section-title { break-after: avoid; }
3519
+ }
3520
+ }
3521
+
3522
+ /* A display rule's `face`: the column's values in the face it names, over the look's choice. The grid drops its
3523
+ own `mono` for these cells, so the cell is not fighting a more specific rule. */
3524
+ td.face-data, .face-data, .face-data .prose { font-family: var(--mono); }
3525
+ td.face-ui, .face-ui, .face-ui .prose { font-family: var(--sans); }
3526
+ td.face-code, .face-code, .face-code .prose { font-family: var(--code); }