@bigmistqke/workpad 0.0.0-stage → 0.18.1

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 (277) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +781 -2
  3. package/bin/workpad.ts +1526 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/taggedTemplateLiteral.js +5 -0
  5. package/dist/bin/workpad.js +1202 -0
  6. package/dist/client/runtime.js +1194 -0
  7. package/dist/define.js +27 -0
  8. package/dist/plugins/alert/README.md +18 -0
  9. package/dist/plugins/alert/index.js +40 -0
  10. package/dist/plugins/alert/public/style.css +40 -0
  11. package/dist/plugins/ansi/README.md +36 -0
  12. package/dist/plugins/ansi/index.js +63 -0
  13. package/dist/plugins/ansi/public/style.css +28 -0
  14. package/dist/plugins/badge/README.md +32 -0
  15. package/dist/plugins/badge/index.js +28 -0
  16. package/dist/plugins/badge/public/style.css +30 -0
  17. package/dist/plugins/chat/README.md +81 -0
  18. package/dist/plugins/chat/index.js +96 -0
  19. package/dist/plugins/chat/public/client.js +3 -0
  20. package/dist/plugins/chat/public/style.css +143 -0
  21. package/dist/plugins/claude/README.md +116 -0
  22. package/dist/plugins/claude/channel.js +130 -0
  23. package/dist/plugins/claude/doctor.js +316 -0
  24. package/dist/plugins/claude/index.js +199 -0
  25. package/dist/plugins/claude/session.js +68 -0
  26. package/dist/plugins/code/README.md +54 -0
  27. package/dist/plugins/code/diff.js +75 -0
  28. package/dist/plugins/code/index.js +105 -0
  29. package/dist/plugins/code/public/client.js +1 -0
  30. package/dist/plugins/code/public/style.css +99 -0
  31. package/dist/plugins/comments/README.md +30 -0
  32. package/dist/plugins/comments/index.js +39 -0
  33. package/dist/plugins/comments/public/client.js +24 -0
  34. package/dist/plugins/comments/public/style.css +224 -0
  35. package/dist/plugins/details/README.md +24 -0
  36. package/dist/plugins/details/index.js +28 -0
  37. package/dist/plugins/details/public/style.css +7 -0
  38. package/dist/plugins/draft/README.md +14 -0
  39. package/dist/plugins/draft/index.js +27 -0
  40. package/dist/plugins/draft/public/style.css +21 -0
  41. package/dist/plugins/forge/README.md +22 -0
  42. package/dist/plugins/forge/index.js +83 -0
  43. package/dist/plugins/form/README.md +126 -0
  44. package/dist/plugins/form/index.js +179 -0
  45. package/dist/plugins/form/public/style.css +172 -0
  46. package/dist/plugins/grid/README.md +45 -0
  47. package/dist/plugins/grid/index.js +35 -0
  48. package/dist/plugins/grid/public/style.css +98 -0
  49. package/dist/plugins/iframe/README.md +18 -0
  50. package/dist/plugins/iframe/index.js +49 -0
  51. package/dist/plugins/iframe/public/style.css +28 -0
  52. package/dist/plugins/index.js +44 -0
  53. package/dist/plugins/lightbox/README.md +24 -0
  54. package/dist/plugins/lightbox/index.js +20 -0
  55. package/dist/plugins/lightbox/public/client.js +4 -0
  56. package/dist/plugins/lightbox/public/style.css +66 -0
  57. package/dist/plugins/mermaid/README.md +21 -0
  58. package/dist/plugins/mermaid/index.js +42 -0
  59. package/dist/plugins/mermaid/public/style.css +21 -0
  60. package/dist/plugins/opencode/README.md +48 -0
  61. package/dist/plugins/opencode/channel.js +92 -0
  62. package/dist/plugins/opencode/index.js +64 -0
  63. package/dist/plugins/opencode/shim.js +150 -0
  64. package/dist/plugins/quiet/README.md +26 -0
  65. package/dist/plugins/quiet/index.js +23 -0
  66. package/dist/plugins/tabs/README.md +44 -0
  67. package/dist/plugins/tabs/index.js +75 -0
  68. package/dist/plugins/tabs/public/client.js +1 -0
  69. package/dist/plugins/tabs/public/style.css +98 -0
  70. package/dist/plugins/terminal/README.md +63 -0
  71. package/dist/plugins/terminal/host.js +338 -0
  72. package/dist/plugins/terminal/index.js +170 -0
  73. package/dist/plugins/terminal/modes.js +32 -0
  74. package/dist/plugins/terminal/public/client.js +41 -0
  75. package/dist/plugins/terminal/public/style.css +511 -0
  76. package/dist/plugins/terminal/server.js +256 -0
  77. package/dist/plugins/terminal/sizes.js +58 -0
  78. package/dist/plugins/timeline/README.md +48 -0
  79. package/dist/plugins/timeline/index.js +83 -0
  80. package/dist/plugins/timeline/public/style.css +138 -0
  81. package/dist/plugins/toc/README.md +40 -0
  82. package/dist/plugins/toc/index.js +29 -0
  83. package/dist/plugins/toc/public/client.js +1 -0
  84. package/dist/plugins/toc/public/style.css +117 -0
  85. package/dist/plugins/window/README.md +51 -0
  86. package/dist/plugins/window/index.js +91 -0
  87. package/dist/solid/index.js +41 -0
  88. package/dist/src/agents.js +81 -0
  89. package/dist/src/anchors.js +52 -0
  90. package/dist/src/api.js +282 -0
  91. package/dist/src/archive.js +49 -0
  92. package/dist/src/auth.js +67 -0
  93. package/dist/src/build.js +159 -0
  94. package/dist/src/client/page/base.css +1762 -0
  95. package/dist/src/client/page/main.js +2121 -0
  96. package/dist/src/config.js +76 -0
  97. package/dist/src/document.js +93 -0
  98. package/dist/src/entries.js +264 -0
  99. package/dist/src/events.js +322 -0
  100. package/dist/src/files.js +47 -0
  101. package/dist/src/formstate.js +65 -0
  102. package/dist/src/help.js +213 -0
  103. package/dist/src/html.js +34 -0
  104. package/dist/src/hub.js +348 -0
  105. package/dist/src/icons.js +6 -0
  106. package/dist/src/listen.js +132 -0
  107. package/dist/src/listeners.js +64 -0
  108. package/dist/src/load.js +81 -0
  109. package/dist/src/loader.js +179 -0
  110. package/dist/src/migrate.js +314 -0
  111. package/dist/src/package.js +52 -0
  112. package/dist/src/pages/blocks.js +67 -0
  113. package/dist/src/pages/board.js +59 -0
  114. package/dist/src/pages/index.js +27 -0
  115. package/dist/src/pages/markdown.js +863 -0
  116. package/dist/src/pages/render.js +761 -0
  117. package/dist/src/pages/window.js +29 -0
  118. package/dist/src/plugins.js +283 -0
  119. package/dist/src/public.js +24 -0
  120. package/dist/src/rename.js +130 -0
  121. package/dist/src/running.js +146 -0
  122. package/dist/src/serve.js +188 -0
  123. package/dist/src/server.js +1105 -0
  124. package/dist/src/site.js +179 -0
  125. package/dist/src/state.js +155 -0
  126. package/dist/src/status.js +323 -0
  127. package/dist/src/thread.js +68 -0
  128. package/dist/src/watchdog.js +38 -0
  129. package/dist/src/ws.js +128 -0
  130. package/package.json +154 -4
  131. package/plugins/README.md +304 -0
  132. package/plugins/alert/README.md +18 -0
  133. package/plugins/alert/index.ts +50 -0
  134. package/plugins/alert/public/style.css +40 -0
  135. package/plugins/ansi/README.md +36 -0
  136. package/plugins/ansi/index.ts +95 -0
  137. package/plugins/ansi/public/style.css +28 -0
  138. package/plugins/badge/README.md +32 -0
  139. package/plugins/badge/index.ts +36 -0
  140. package/plugins/badge/public/style.css +30 -0
  141. package/plugins/chat/README.md +81 -0
  142. package/plugins/chat/autosize.ts +139 -0
  143. package/plugins/chat/client.tsx +187 -0
  144. package/plugins/chat/index.ts +146 -0
  145. package/plugins/chat/public/style.css +143 -0
  146. package/plugins/claude/README.md +116 -0
  147. package/plugins/claude/channel.ts +136 -0
  148. package/plugins/claude/doctor.ts +274 -0
  149. package/plugins/claude/index.ts +248 -0
  150. package/plugins/claude/session.ts +70 -0
  151. package/plugins/code/README.md +54 -0
  152. package/plugins/code/client.ts +73 -0
  153. package/plugins/code/diff.ts +96 -0
  154. package/plugins/code/index.ts +136 -0
  155. package/plugins/code/public/style.css +99 -0
  156. package/plugins/comments/README.md +30 -0
  157. package/plugins/comments/client.ts +723 -0
  158. package/plugins/comments/index.ts +48 -0
  159. package/plugins/comments/public/style.css +224 -0
  160. package/plugins/details/README.md +24 -0
  161. package/plugins/details/index.ts +30 -0
  162. package/plugins/details/public/style.css +7 -0
  163. package/plugins/draft/README.md +14 -0
  164. package/plugins/draft/index.ts +23 -0
  165. package/plugins/draft/public/style.css +21 -0
  166. package/plugins/forge/README.md +22 -0
  167. package/plugins/forge/index.ts +84 -0
  168. package/plugins/form/README.md +126 -0
  169. package/plugins/form/index.ts +199 -0
  170. package/plugins/form/public/style.css +172 -0
  171. package/plugins/grid/README.md +45 -0
  172. package/plugins/grid/index.ts +41 -0
  173. package/plugins/grid/public/style.css +98 -0
  174. package/plugins/iframe/README.md +18 -0
  175. package/plugins/iframe/index.ts +53 -0
  176. package/plugins/iframe/public/style.css +28 -0
  177. package/plugins/index.ts +49 -0
  178. package/plugins/lightbox/README.md +24 -0
  179. package/plugins/lightbox/client.ts +109 -0
  180. package/plugins/lightbox/index.ts +25 -0
  181. package/plugins/lightbox/public/style.css +66 -0
  182. package/plugins/mermaid/README.md +21 -0
  183. package/plugins/mermaid/index.ts +46 -0
  184. package/plugins/mermaid/public/style.css +21 -0
  185. package/plugins/opencode/README.md +48 -0
  186. package/plugins/opencode/channel.ts +112 -0
  187. package/plugins/opencode/index.ts +91 -0
  188. package/plugins/opencode/shim.ts +166 -0
  189. package/plugins/quiet/README.md +26 -0
  190. package/plugins/quiet/index.ts +28 -0
  191. package/plugins/tabs/README.md +44 -0
  192. package/plugins/tabs/client.ts +96 -0
  193. package/plugins/tabs/index.ts +103 -0
  194. package/plugins/tabs/public/style.css +98 -0
  195. package/plugins/terminal/README.md +63 -0
  196. package/plugins/terminal/client.ts +391 -0
  197. package/plugins/terminal/host.ts +434 -0
  198. package/plugins/terminal/index.ts +199 -0
  199. package/plugins/terminal/modes.ts +30 -0
  200. package/plugins/terminal/public/style.css +225 -0
  201. package/plugins/terminal/server.ts +266 -0
  202. package/plugins/terminal/sizes.ts +72 -0
  203. package/plugins/timeline/README.md +48 -0
  204. package/plugins/timeline/index.ts +82 -0
  205. package/plugins/timeline/public/style.css +138 -0
  206. package/plugins/toc/README.md +40 -0
  207. package/plugins/toc/client.ts +236 -0
  208. package/plugins/toc/index.ts +55 -0
  209. package/plugins/toc/public/style.css +117 -0
  210. package/plugins/window/README.md +51 -0
  211. package/plugins/window/index.ts +92 -0
  212. package/skills/workpad/SKILL.md +592 -0
  213. package/solid/index.tsx +80 -0
  214. package/src/agents.ts +134 -0
  215. package/src/anchors.ts +85 -0
  216. package/src/api.ts +444 -0
  217. package/src/archive.ts +75 -0
  218. package/src/auth.ts +99 -0
  219. package/src/build.ts +213 -0
  220. package/src/client/base.ts +19 -0
  221. package/src/client/forms.ts +420 -0
  222. package/src/client/markdown.ts +147 -0
  223. package/src/client/page/base.css +1762 -0
  224. package/src/client/page/board.ts +166 -0
  225. package/src/client/page/elsewhere.ts +153 -0
  226. package/src/client/page/fresh.ts +343 -0
  227. package/src/client/page/heading-link.ts +32 -0
  228. package/src/client/page/live.ts +134 -0
  229. package/src/client/page/main.ts +398 -0
  230. package/src/client/page/orphans.ts +64 -0
  231. package/src/client/page/place.ts +260 -0
  232. package/src/client/page/sort.ts +49 -0
  233. package/src/client/page/sticky.ts +58 -0
  234. package/src/client/page/theme.ts +36 -0
  235. package/src/client/page/view.ts +9 -0
  236. package/src/client/page/waiting.ts +278 -0
  237. package/src/client/page/window.ts +40 -0
  238. package/src/client/reactive.ts +19 -0
  239. package/src/client/read.ts +111 -0
  240. package/src/client/runtime.ts +499 -0
  241. package/src/client/scroll.ts +90 -0
  242. package/src/client/toast.ts +99 -0
  243. package/src/config.ts +111 -0
  244. package/src/define.ts +997 -0
  245. package/src/document.ts +191 -0
  246. package/src/entries.ts +352 -0
  247. package/src/events.ts +463 -0
  248. package/src/files.ts +74 -0
  249. package/src/formstate.ts +72 -0
  250. package/src/help.ts +240 -0
  251. package/src/html.ts +44 -0
  252. package/src/hub.ts +435 -0
  253. package/src/icons.ts +18 -0
  254. package/src/listen.ts +171 -0
  255. package/src/listeners.ts +89 -0
  256. package/src/load.ts +113 -0
  257. package/src/loader.ts +227 -0
  258. package/src/migrate.ts +352 -0
  259. package/src/package.ts +62 -0
  260. package/src/pages/blocks.ts +106 -0
  261. package/src/pages/board.ts +89 -0
  262. package/src/pages/index.ts +79 -0
  263. package/src/pages/markdown.ts +976 -0
  264. package/src/pages/render.ts +845 -0
  265. package/src/pages/window.ts +69 -0
  266. package/src/plugins.ts +319 -0
  267. package/src/public.ts +39 -0
  268. package/src/rename.ts +147 -0
  269. package/src/running.ts +171 -0
  270. package/src/serve.ts +221 -0
  271. package/src/server.ts +1385 -0
  272. package/src/site.ts +170 -0
  273. package/src/state.ts +327 -0
  274. package/src/status.ts +466 -0
  275. package/src/thread.ts +98 -0
  276. package/src/watchdog.ts +53 -0
  277. package/src/ws.ts +155 -0
@@ -0,0 +1,1762 @@
1
+ /* Base page style: an article, set for reading. Blocks bring their own style.css, and the
2
+ project's stylesheet (the config's `style`) is linked after this file to override anything here.
3
+
4
+ The theme: every colour is a light-dark(light, dark) pair, so it follows the page's color-scheme:
5
+ the system's, unless <html data-theme="light|dark"> pins one (the header's toggle). A project
6
+ overrides a colour for both at once: `--accent: light-dark(#c2410c, #fb923c)`. */
7
+ :root {
8
+ color-scheme: light dark;
9
+ --bg: light-dark(#fdfdfc, #131417);
10
+ --surface: light-dark(#ffffff, #191a1e);
11
+ --text: light-dark(#1b1c1e, #e4e5e7);
12
+ --muted: light-dark(#696e76, #979ca5);
13
+ --border: light-dark(#e3e5e9, #2b2e34);
14
+ --accent: light-dark(#1d5bbf, #82aaff);
15
+ --accent-text: light-dark(#ffffff, #0d1220);
16
+ --code-bg: light-dark(#f2f3f5, #1e2026);
17
+ --tint: light-dark(#f6f7f9, #1a1c21);
18
+ --ok: light-dark(#1a7a49, #57c48c);
19
+ --warn: light-dark(#6b4fc0, #b4a0ff);
20
+ --bad: light-dark(#c4352b, #ff6f66);
21
+ --info: light-dark(#1d5bbf, #82aaff);
22
+ /* what the reader sent, shown at once but not yet confirmed by the server (an event with
23
+ `sending`): grey, in whatever carries it (a button, a bubble, a comment's text). Confirmed, it
24
+ takes its usual colour (a button flashes --ok first); never got there, --bad */
25
+ --wp-sending: light-dark(#9a9fa7, #6c717a);
26
+ --shadow: none;
27
+
28
+ /* Type. One size for the text: the article in --serif and the interface beside it (buttons,
29
+ inputs, tables, cards) in --sans are both --text-size, so neither looks oversized next to the
30
+ other. The article's margins are in em, so they follow; headings are multiples of it, never
31
+ smaller. Only small labels (--ui-tiny) are below it. */
32
+ --text-size: 15px;
33
+ --line-height: 1.48;
34
+ --ui-line-height: 1.45;
35
+ --ui-tiny: 0.7rem;
36
+ --ui-small: var(--text-size);
37
+ --ui-text: var(--text-size);
38
+ /* a code block's text: monospace reads larger than the text's face at the same size */
39
+ --code-size: calc(var(--text-size) * 0.87);
40
+ --weight-strong: 600;
41
+ --caps-spacing: 0.04em;
42
+
43
+ /* The article's rhythm, and the steps of space made of it: the closer two things belong
44
+ together, the smaller the step between them. So a section's parts are closer to each other
45
+ than its heading is to the first of them, and that is closer than the heading is to the
46
+ section before it. A multiple of the text's size, not em, so a step is the same on a heading
47
+ as on a paragraph. Inside a container (see "containers" below) the block and prose steps
48
+ become the attach step. */
49
+ --rhythm: calc(var(--text-size) * 1.2);
50
+ /* a part attached to what is above it: the same everywhere, in a container too */
51
+ --gap-attach: calc(var(--text-size) * 0.54);
52
+
53
+ /* The interface's spacing, a 2px grid: paddings and gaps */
54
+ --space-2xs: 2px;
55
+ --space-xs: 4px;
56
+ --space-sm: 6px;
57
+ --space-md: 8px;
58
+ --space-lg: 10px;
59
+ --space-xl: 12px;
60
+ --space-2xl: 16px;
61
+ --space-3xl: 24px;
62
+
63
+ /* Corners: controls, cards and panels, pills */
64
+ --radius-sm: 5px;
65
+ --radius: 8px;
66
+ --radius-lg: 12px;
67
+ --radius-pill: 999px;
68
+
69
+ /* How strongly a colour is mixed in: a hover or background, a selection or highlight, a mark */
70
+ --tint-faint: 7%;
71
+ --tint-soft: 14%;
72
+ --tint-strong: 40%;
73
+
74
+ --hairline: 1px;
75
+ --shadow-pop: 0 8px 28px rgb(0 0 0 / 0.16);
76
+ --speed: 0.2s;
77
+
78
+ /* What lies over what: beside the text, popovers and threads, a maximized window, the top */
79
+ --layer-aside: 5;
80
+ --layer-popover: 20;
81
+ --layer-window: 40;
82
+ --layer-top: 50;
83
+
84
+ --serif: 'Iowan Old Style', 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
85
+ --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
86
+ --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
87
+ --measure: 680px;
88
+ --wide: 1040px;
89
+ --figure: 920px;
90
+ }
91
+ :root[data-theme='light'] {
92
+ color-scheme: light;
93
+ }
94
+ :root[data-theme='dark'] {
95
+ color-scheme: dark;
96
+ }
97
+
98
+ * {
99
+ box-sizing: border-box;
100
+ }
101
+ html {
102
+ -webkit-text-size-adjust: 100%;
103
+ }
104
+ body {
105
+ margin: 0;
106
+ background: var(--bg);
107
+ color: var(--text);
108
+ font: var(--text-size)/var(--line-height) var(--serif);
109
+ font-kerning: normal;
110
+ font-variant-numeric: oldstyle-nums proportional-nums;
111
+ text-rendering: optimizeLegibility;
112
+ -webkit-font-smoothing: antialiased;
113
+ }
114
+ /* The column: headings sit on its left edge, everything else is indented by --indent, and section
115
+ numbers hang in the margin left of the headings. */
116
+ /* --wp-aside: the room a panel docked at the window's left edge takes (the table of contents sets
117
+ it); the page centres in the space right of it */
118
+ main {
119
+ --indent: 34px;
120
+ max-width: calc(var(--measure) + var(--indent) + 32px);
121
+ margin: 0 auto;
122
+ position: relative;
123
+ left: calc(var(--wp-aside, 0px) / 2);
124
+ padding: 120px var(--space-2xl) 220px;
125
+ }
126
+ main > :first-child {
127
+ margin-top: 0;
128
+ }
129
+ #wp-main
130
+ > :not(
131
+ h1,
132
+ h2,
133
+ h3,
134
+ h4,
135
+ h5,
136
+ h6,
137
+ hr,
138
+ .wp-wide,
139
+ .wp-island:has(.wp-wide),
140
+ figure,
141
+ .wp-figure,
142
+ p:has(> img:only-child),
143
+ p:has(> a:only-child > img:only-child)
144
+ ) {
145
+ margin-left: var(--indent);
146
+ }
147
+ /* what follows a heading is the heading's step away, a heading too: headings one after another
148
+ don't add up their space */
149
+ #wp-main > :is(h1, h2, h3, h4, h5, h6) + *,
150
+ :is(.wp-form, li, .wp-card-body, .wp-details-body, .wp-alert, .wp-tl-body) > :is(h1, h2, h3, h4, h5, h6) + * {
151
+ margin-top: 0;
152
+ }
153
+ /* a heading right under a heading heads the same thing: closer, the group step */
154
+ #wp-main > :is(h1, h2, h3, h4, h5, h6):has(+ :is(h2, h3, h4, h5, h6)),
155
+ :is(.wp-form, li, .wp-card-body, .wp-details-body, .wp-alert, .wp-tl-body) > :is(h1, h2, h3, h4, h5, h6):has(+ :is(h2, h3, h4, h5, h6)) {
156
+ margin-bottom: var(--gap-heading-next);
157
+ }
158
+
159
+ /* text */
160
+ a {
161
+ color: var(--accent);
162
+ text-decoration-thickness: 1px;
163
+ text-underline-offset: 3px;
164
+ text-decoration-color: color-mix(in srgb, var(--accent) var(--tint-strong), transparent);
165
+ }
166
+ a:hover {
167
+ text-decoration-color: currentColor;
168
+ }
169
+ h1,
170
+ h2,
171
+ h3,
172
+ h4 {
173
+ font-family: var(--serif);
174
+ font-weight: 500;
175
+ line-height: 1.2;
176
+ letter-spacing: -0.01em;
177
+ text-wrap: balance;
178
+ }
179
+ /* headings: multiples of the text's size, so never smaller than it */
180
+ h1 {
181
+ font-size: calc(var(--text-size) * 2.6);
182
+ line-height: 1.08;
183
+ margin: 0 0 var(--gap-group);
184
+ letter-spacing: -0.022em;
185
+ }
186
+ h2 {
187
+ font-size: calc(var(--text-size) * 2);
188
+ margin: var(--gap-section) 0 var(--gap-heading);
189
+ }
190
+ h3 {
191
+ font-size: calc(var(--text-size) * 1.4);
192
+ margin: var(--gap-subsection) 0 var(--gap-heading);
193
+ }
194
+ #wp-main > h3 {
195
+ font-style: italic;
196
+ } /* section headings only; card titles stay upright */
197
+ h4,
198
+ h5,
199
+ h6 {
200
+ font: var(--weight-strong) var(--text-size)/1.3 var(--serif);
201
+ margin: calc(var(--rhythm) * 2.5) 0 var(--gap-heading);
202
+ }
203
+ /* equal things closer: paragraph to paragraph the paragraph step; a list, code or a table among
204
+ paragraphs the prose step on either side (margins collapse, so the larger one counts) */
205
+ p {
206
+ margin: 0 0 var(--gap-paragraph);
207
+ }
208
+ ul,
209
+ ol,
210
+ blockquote,
211
+ pre,
212
+ table {
213
+ margin: var(--gap-prose) 0;
214
+ }
215
+ p {
216
+ text-wrap: pretty;
217
+ hyphens: auto;
218
+ }
219
+ ul,
220
+ ol {
221
+ padding-left: 1.4em;
222
+ }
223
+ li::marker {
224
+ color: var(--muted);
225
+ }
226
+ /* a list's items sit close; an item of paragraphs (a loose list) a little apart */
227
+ li + li {
228
+ margin-top: 0.25em;
229
+ }
230
+ li:has(> p) + li,
231
+ li + li:has(> p) {
232
+ margin-top: var(--gap-attach);
233
+ }
234
+ li > :last-child {
235
+ margin-bottom: 0;
236
+ }
237
+ /* a list in an item: close under its line */
238
+ li > :is(ul, ol) {
239
+ margin-top: 0.25em;
240
+ }
241
+
242
+ /* The steps, from the rhythm: in the article, and again in each container, where the rhythm is
243
+ half (below), so the same order holds at every level: a container's parts are closer to each
244
+ other than its headings are to them, and those closer than a heading is to what came before. */
245
+ :root,
246
+ :is(.wp-form, li, .wp-card-body, .wp-details-body, .wp-alert, .wp-tl-body) > * {
247
+ --gap-section: calc(var(--rhythm) * 4); /* above a section's heading (h2) */
248
+ --gap-subsection: calc(var(--rhythm) * 3); /* above a subsection's heading (h3), between steps */
249
+ --gap-heading: calc(var(--rhythm) * 2); /* under a heading or a step's title, to what it heads */
250
+ --gap-heading-next: var(--rhythm); /* under a heading right above another heading */
251
+ --gap-block: calc(var(--rhythm) * 1.75); /* around a set-off block: an alert, a form, a grid */
252
+ --gap-prose: calc(var(--rhythm) * 1.25); /* around a list, code, a table among paragraphs */
253
+ --gap-paragraph: calc(var(--rhythm) * 0.8); /* paragraph to paragraph: equal things closer */
254
+ --gap-group: var(--rhythm); /* things side by side: alerts in a row, a form's explained options */
255
+ }
256
+
257
+ /* Containers: what is inside a form, a list item, a card, a details, an alert or a timeline step
258
+ is part of it, so it is spaced at half the article's rhythm, by the same steps. A wide block
259
+ keeps to it, and a grid takes its columns from the room it has (--wp-room). Set on the
260
+ children, so the container's own margins stay those of a block. */
261
+ :is(.wp-form, li, .wp-card-body, .wp-details-body, .wp-alert, .wp-tl-body) > * {
262
+ --rhythm: calc(var(--text-size) * 0.6);
263
+ /* a heading in a container is closer to what it heads than in the article: a third of the space
264
+ before it, not a half */
265
+ --gap-heading: calc(var(--rhythm) * 1.2);
266
+ /* headings in a row: a little more than the items under them (paragraphs, 0.8), a little less
267
+ than a heading from what it heads */
268
+ --gap-heading-next: var(--rhythm);
269
+ --wp-room: 100%;
270
+ --wp-wide-width: auto;
271
+ --wp-wide-left: auto;
272
+ --wp-wide-shift: none;
273
+ }
274
+ /* a tab's item and a window's body keep their spacing, but a wide block (a grid) in them keeps to
275
+ them too, not to the page: else it is as wide as the page, from the pane's left edge */
276
+ :is(.wp-tabs-item, .wp-window-body) > * {
277
+ --wp-room: 100%;
278
+ --wp-wide-width: auto;
279
+ --wp-wide-left: auto;
280
+ --wp-wide-shift: none;
281
+ }
282
+ strong {
283
+ font-weight: 650;
284
+ }
285
+ img,
286
+ video {
287
+ max-width: 100%;
288
+ height: auto;
289
+ border-radius: var(--radius-sm);
290
+ }
291
+ figure {
292
+ margin: var(--gap-block) 0;
293
+ }
294
+ figcaption {
295
+ font: italic var(--ui-text)/var(--ui-line-height) var(--serif);
296
+ color: var(--muted);
297
+ margin-top: var(--gap-attach);
298
+ }
299
+ code {
300
+ font: 0.82em/var(--ui-line-height) var(--mono);
301
+ background: var(--code-bg);
302
+ padding: 0.12em 0.35em;
303
+ border-radius: var(--radius-sm);
304
+ }
305
+ /* code and tables follow the text they belong to: the prose step, not a set-off block's */
306
+ pre {
307
+ margin: var(--gap-prose) 0;
308
+ background: var(--code-bg);
309
+ padding: var(--space-xl) var(--space-2xl);
310
+ border-radius: var(--radius);
311
+ overflow-x: auto;
312
+ font-size: var(--code-size);
313
+ line-height: 1.55;
314
+ }
315
+ pre code {
316
+ background: none;
317
+ padding: 0;
318
+ font-size: inherit;
319
+ }
320
+ table {
321
+ margin: var(--gap-prose) 0;
322
+ border-collapse: collapse;
323
+ display: block;
324
+ overflow-x: auto;
325
+ max-width: 100%;
326
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
327
+ }
328
+ th,
329
+ td {
330
+ border-bottom: var(--hairline) solid var(--border);
331
+ padding: var(--space-sm) var(--space-xl) var(--space-sm) 0;
332
+ text-align: left;
333
+ vertical-align: top;
334
+ }
335
+ th {
336
+ font-weight: var(--weight-strong);
337
+ color: var(--muted);
338
+ }
339
+ li:has(> input[type='checkbox']) {
340
+ list-style: none;
341
+ margin-left: -1.4em;
342
+ }
343
+ li > input[type='checkbox'] {
344
+ margin-right: var(--space-md);
345
+ }
346
+
347
+ /* standfirst: the paragraph right under the title introduces the piece */
348
+ #wp-main > h1 + p {
349
+ font-size: 1.24em;
350
+ line-height: var(--ui-line-height);
351
+ color: color-mix(in srgb, var(--text) 72%, var(--bg));
352
+ margin-bottom: var(--gap-block);
353
+ padding-bottom: 2.6em;
354
+ border-bottom: var(--hairline) solid var(--border);
355
+ }
356
+ /* pull quote */
357
+ blockquote {
358
+ margin: var(--gap-block) 0;
359
+ padding: 0 0 0 1em;
360
+ border-left: 2px solid var(--text);
361
+ font-size: 1.24em;
362
+ line-height: var(--ui-line-height);
363
+ font-style: italic;
364
+ color: var(--text);
365
+ }
366
+ blockquote > :last-child {
367
+ margin-bottom: 0;
368
+ }
369
+ /* a section break: an asterism instead of a rule */
370
+ hr {
371
+ border: 0;
372
+ /* a section break without a heading: a subsection's distance */
373
+ margin: var(--gap-subsection) 0;
374
+ text-align: center;
375
+ height: auto;
376
+ }
377
+ hr::after {
378
+ content: '⁂';
379
+ font-size: 1.1em;
380
+ color: var(--muted);
381
+ letter-spacing: 0.3em;
382
+ }
383
+
384
+ /* section numbers hanging in the margin: 1, 1.1, 1.1.1, down to h6, in italic oldstyle figures. Only the
385
+ page's own headings (direct children of main), so headings inside cards stay unnumbered. The
386
+ number is an inline-block pulled into the margin, so it shares the heading's baseline. */
387
+ #wp-main {
388
+ counter-reset: h2;
389
+ }
390
+ #wp-main > h2 {
391
+ counter-increment: h2;
392
+ counter-reset: h3;
393
+ }
394
+ #wp-main > h3 {
395
+ counter-increment: h3;
396
+ counter-reset: h4;
397
+ }
398
+ #wp-main > h4 {
399
+ counter-increment: h4;
400
+ counter-reset: h5;
401
+ }
402
+ #wp-main > h5 {
403
+ counter-increment: h5;
404
+ counter-reset: h6;
405
+ }
406
+ #wp-main > h6 {
407
+ counter-increment: h6;
408
+ }
409
+ #wp-main > :is(h2, h3, h4, h5, h6)::before {
410
+ display: inline-block;
411
+ box-sizing: content-box;
412
+ width: 64px;
413
+ margin-left: -86px;
414
+ margin-right: var(--space-3xl);
415
+ text-align: right;
416
+ font-family: var(--serif);
417
+ font-style: italic;
418
+ font-weight: 400;
419
+ font-variant-numeric: oldstyle-nums tabular-nums;
420
+ color: var(--muted);
421
+ letter-spacing: 0;
422
+ text-transform: none;
423
+ white-space: nowrap;
424
+ }
425
+ /* a click on the number copies the heading's link (heading-link.ts); it shows for a moment */
426
+ #wp-main > :is(h2, h3, h4, h5, h6)[id]::before {
427
+ cursor: pointer;
428
+ }
429
+ #wp-main > :is(h2, h3, h4, h5, h6)[id]:hover::before {
430
+ color: var(--text);
431
+ }
432
+ #wp-main > :is(h2, h3, h4, h5, h6)[data-wp-copied]::before {
433
+ color: var(--accent);
434
+ }
435
+ #wp-main > h2::before {
436
+ content: counter(h2);
437
+ font-size: 0.82em;
438
+ }
439
+ #wp-main > h3::before {
440
+ content: counter(h2) '.' counter(h3);
441
+ font-size: 0.88em;
442
+ }
443
+ #wp-main > h4::before {
444
+ content: counter(h2) '.' counter(h3) '.' counter(h4);
445
+ }
446
+ #wp-main > h5::before {
447
+ content: counter(h2) '.' counter(h3) '.' counter(h4) '.' counter(h5);
448
+ }
449
+ #wp-main > h6::before {
450
+ content: counter(h2) '.' counter(h3) '.' counter(h4) '.' counter(h5) '.' counter(h6);
451
+ }
452
+ /* no margin to hang them in: set the number in front of the heading, and indent less */
453
+ @media (max-width: 860px) {
454
+ main {
455
+ --indent: 0px;
456
+ }
457
+ #wp-main > :is(h2, h3, h4, h5, h6)::before {
458
+ width: auto;
459
+ margin-left: 0;
460
+ margin-right: 0.6em;
461
+ text-align: left;
462
+ }
463
+ }
464
+
465
+ /* a <details>: a quiet, collapsible section rather than a box */
466
+ details {
467
+ margin: var(--gap-block) 0;
468
+ border-top: var(--hairline) solid var(--border);
469
+ border-bottom: var(--hairline) solid var(--border);
470
+ }
471
+ details + details {
472
+ margin-top: calc(0px - var(--gap-block));
473
+ border-top: 0;
474
+ }
475
+ details > summary {
476
+ cursor: pointer;
477
+ list-style: none;
478
+ padding: 0.5em 0;
479
+ font: 500 var(--ui-text)/var(--ui-line-height) var(--sans);
480
+ color: var(--text);
481
+ display: flex;
482
+ gap: 0.6em;
483
+ align-items: baseline;
484
+ }
485
+ details > summary::-webkit-details-marker {
486
+ display: none;
487
+ }
488
+ details > summary::before {
489
+ content: '+';
490
+ font: 400 1.1em/1 var(--mono);
491
+ color: var(--muted);
492
+ width: 0.8em;
493
+ flex: none;
494
+ }
495
+ details[open] > summary::before {
496
+ content: '−';
497
+ }
498
+ details > summary:hover {
499
+ color: var(--accent);
500
+ }
501
+ details > :not(summary) {
502
+ margin-left: var(--rhythm);
503
+ }
504
+ details[open] > :last-child {
505
+ margin-bottom: 2em;
506
+ }
507
+ /* an open details' summary stays at the top while its content is read, under the header and the
508
+ summaries of the details around it (sticky.ts says how far down): in the reading area, the
509
+ content and the lists after it, never in the header or what floats over the page */
510
+ .wp-body details[open] > summary {
511
+ position: sticky;
512
+ top: var(--wp-sticky-top, 0px);
513
+ z-index: var(--wp-sticky-z, 3);
514
+ background: var(--bg);
515
+ }
516
+
517
+ /* figures: an image alone in its paragraph, an HTML <figure>, or anything with .wp-figure (blocks
518
+ opt in) may run wider than the text, up to --figure, centred on the column. Images keep their
519
+ natural size within that. Never into a panel docked beside the page (--wp-aside: the table of
520
+ contents), as .wp-wide doesn't either. */
521
+ #wp-main > :is(figure, .wp-figure, p:has(> img:only-child), p:has(> a:only-child > img:only-child)) {
522
+ width: min(var(--figure), 100vw - 32px - var(--wp-aside, 0px));
523
+ position: relative;
524
+ left: 50%;
525
+ transform: translateX(-50%);
526
+ margin-left: 0;
527
+ margin-right: 0;
528
+ text-align: center;
529
+ }
530
+ #wp-main > p:has(> img:only-child),
531
+ #wp-main > p:has(> a:only-child > img:only-child) {
532
+ margin-top: var(--gap-block);
533
+ margin-bottom: var(--gap-block);
534
+ }
535
+ #wp-main > :is(figure, .wp-figure) figcaption {
536
+ text-align: center;
537
+ }
538
+
539
+ /* blocks that may run wider than the text column (blocks opt in with .wp-wide) */
540
+ /* positioned with left + transform, not margins, so a block's own margin rules can't undo it */
541
+ /* only from the text column: in a container (see Containers) it keeps to it */
542
+ .wp-wide {
543
+ width: var(--wp-wide-width, min(var(--wide), 100vw - 32px - var(--wp-aside, 0px)));
544
+ position: relative;
545
+ left: var(--wp-wide-left, 50%);
546
+ transform: var(--wp-wide-shift, translateX(-50%));
547
+ }
548
+
549
+ /* frame */
550
+ .wp-nav {
551
+ position: sticky;
552
+ top: 0;
553
+ z-index: var(--layer-aside);
554
+ display: flex;
555
+ gap: var(--space-xl);
556
+ align-items: center;
557
+ justify-content: space-between;
558
+ padding: var(--space-lg) var(--space-2xl);
559
+ background: color-mix(in srgb, var(--bg) 88%, transparent);
560
+ backdrop-filter: blur(10px);
561
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
562
+ color: var(--muted);
563
+ }
564
+ .wp-nav > span:first-child {
565
+ flex: 1;
566
+ min-width: 0;
567
+ overflow: hidden;
568
+ text-overflow: ellipsis;
569
+ white-space: nowrap;
570
+ }
571
+ .wp-nav a {
572
+ color: var(--muted);
573
+ text-decoration: none;
574
+ }
575
+ .wp-nav a:hover {
576
+ color: var(--text);
577
+ }
578
+ /* live.ts: a ring while not connected, grey while live with no agent listening, green with one */
579
+ .wp-live {
580
+ width: 8px;
581
+ height: 8px;
582
+ box-sizing: border-box;
583
+ border-radius: 50%;
584
+ border: 1.5px solid var(--muted);
585
+ background: none;
586
+ flex: none;
587
+ }
588
+ [data-wp-live] .wp-live {
589
+ border-color: var(--muted);
590
+ background: var(--muted);
591
+ }
592
+ [data-wp-live] .wp-live[data-agent] {
593
+ border-color: var(--ok);
594
+ background: var(--ok);
595
+ }
596
+ .wp-live[role='button'] {
597
+ cursor: pointer;
598
+ }
599
+ /* who listens on the page: opened from the dot */
600
+ .wp-listeners {
601
+ position: fixed;
602
+ inset: auto;
603
+ margin: 0;
604
+ min-width: 180px;
605
+ max-width: 320px;
606
+ padding: var(--space-sm) var(--space-md);
607
+ background: var(--bg);
608
+ color: var(--text);
609
+ border: var(--hairline) solid var(--border);
610
+ border-radius: var(--radius-lg);
611
+ box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
612
+ font: var(--ui-small) / var(--ui-line-height) var(--sans);
613
+ }
614
+ .wp-listeners-title {
615
+ font: var(--weight-strong) var(--ui-tiny) / 1.3 var(--sans);
616
+ letter-spacing: var(--caps-spacing);
617
+ text-transform: uppercase;
618
+ color: var(--muted);
619
+ margin-bottom: var(--space-xs);
620
+ }
621
+ .wp-listeners ul {
622
+ list-style: none;
623
+ margin: 0;
624
+ padding: 0;
625
+ }
626
+ .wp-listeners li {
627
+ display: flex;
628
+ align-items: center;
629
+ gap: var(--space-sm);
630
+ padding: 2px 0;
631
+ min-width: 0;
632
+ white-space: nowrap;
633
+ }
634
+ .wp-listeners li::before {
635
+ content: '';
636
+ flex: none;
637
+ width: 6px;
638
+ height: 6px;
639
+ border-radius: 50%;
640
+ background: var(--ok);
641
+ }
642
+ /* a row with an id copies it on a click anywhere on it */
643
+ .wp-listeners li[data-copy] {
644
+ cursor: pointer;
645
+ border-radius: var(--radius-sm);
646
+ margin-inline: calc(-1 * var(--space-xs));
647
+ padding-inline: var(--space-xs);
648
+ }
649
+ .wp-listeners li[data-copy]:hover {
650
+ background: color-mix(in srgb, var(--text) 8%, transparent);
651
+ }
652
+ /* the button that copies an agent's id: with a mouse, only on the row pointed at (or focused), so
653
+ a long list isn't a column of icons; on a touchscreen, which has no hover, always */
654
+ .wp-listeners-copy {
655
+ margin-left: auto;
656
+ flex: none;
657
+ display: inline-flex;
658
+ padding: 2px;
659
+ border: none;
660
+ border-radius: var(--radius-sm);
661
+ background: none;
662
+ color: var(--muted);
663
+ cursor: pointer;
664
+ visibility: hidden;
665
+ }
666
+ .wp-listeners li:is(:hover, :focus-within) .wp-listeners-copy,
667
+ .wp-listeners-copy[data-copied] {
668
+ visibility: visible;
669
+ }
670
+ .wp-listeners-copy:hover {
671
+ color: var(--text);
672
+ }
673
+ .wp-listeners-copy[data-copied] {
674
+ color: var(--ok);
675
+ }
676
+ @media (pointer: coarse) {
677
+ .wp-listeners-copy {
678
+ visibility: visible;
679
+ }
680
+ }
681
+ /* one line each: a long name (a session's id) is cut short, whole on hover */
682
+ .wp-listeners-who {
683
+ min-width: 0;
684
+ overflow: hidden;
685
+ text-overflow: ellipsis;
686
+ font-weight: var(--weight-strong);
687
+ }
688
+ .wp-listeners p {
689
+ margin: 0;
690
+ color: var(--muted);
691
+ }
692
+ .wp-theme {
693
+ font: inherit;
694
+ color: var(--muted);
695
+ background: none;
696
+ border: var(--hairline) solid var(--border);
697
+ border-radius: var(--radius-pill);
698
+ height: 24px;
699
+ box-sizing: border-box;
700
+ padding: 0 var(--space-sm);
701
+ cursor: pointer;
702
+ display: inline-flex;
703
+ align-items: center;
704
+ flex: none;
705
+ }
706
+ .wp-theme:hover {
707
+ color: var(--text);
708
+ border-color: var(--muted);
709
+ }
710
+ /* what waits for the reader on other pages (elsewhere.ts): a menu of them */
711
+ .wp-elsewhere {
712
+ position: relative;
713
+ flex: none;
714
+ }
715
+ .wp-elsewhere[hidden],
716
+ .wp-elsewhere-list[hidden] {
717
+ display: none;
718
+ }
719
+ .wp-awaiting {
720
+ font: inherit;
721
+ font-weight: var(--weight-strong);
722
+ color: var(--accent);
723
+ background: color-mix(in srgb, var(--accent) var(--tint-soft), transparent);
724
+ border: var(--hairline) solid color-mix(in srgb, var(--accent) var(--tint-strong), transparent);
725
+ border-radius: var(--radius-pill);
726
+ height: 24px;
727
+ box-sizing: border-box;
728
+ padding: 0 var(--space-md);
729
+ cursor: pointer;
730
+ display: inline-flex;
731
+ align-items: center;
732
+ gap: var(--space-xs);
733
+ }
734
+ .wp-awaiting svg {
735
+ flex: none;
736
+ }
737
+ .wp-index .wp-awaiting {
738
+ vertical-align: 1px;
739
+ margin-left: var(--space-xs);
740
+ font: var(--weight-strong) var(--ui-small)/var(--ui-line-height) var(--sans);
741
+ text-decoration: none;
742
+ }
743
+ .wp-awaiting:hover {
744
+ background: color-mix(in srgb, var(--accent) var(--tint-soft), transparent);
745
+ }
746
+ .wp-elsewhere-list {
747
+ position: absolute;
748
+ right: 0;
749
+ top: calc(100% + 6px);
750
+ margin: 0;
751
+ padding: var(--space-xs);
752
+ list-style: none;
753
+ min-width: 200px;
754
+ max-width: min(360px, 100vw - 32px);
755
+ background: var(--bg);
756
+ border: var(--hairline) solid var(--border);
757
+ border-radius: var(--radius);
758
+ box-shadow: var(--shadow-pop);
759
+ }
760
+ .wp-nav .wp-elsewhere-list a {
761
+ display: block;
762
+ padding: var(--space-sm) var(--space-lg);
763
+ border-radius: var(--radius-sm);
764
+ color: var(--text);
765
+ overflow: hidden;
766
+ text-overflow: ellipsis;
767
+ white-space: nowrap;
768
+ }
769
+ /* under a shared server, the other projects' pages, under each project's name */
770
+ .wp-elsewhere-group {
771
+ padding: var(--space-sm) var(--space-lg) var(--space-xs);
772
+ overflow: hidden;
773
+ text-overflow: ellipsis;
774
+ white-space: nowrap;
775
+ color: var(--muted);
776
+ font: var(--weight-strong) var(--ui-small)/var(--ui-line-height) var(--sans);
777
+ }
778
+ .wp-elsewhere-group:not(:first-child) {
779
+ margin-top: var(--space-xs);
780
+ border-top: var(--hairline) solid var(--border);
781
+ }
782
+ .wp-elsewhere-list {
783
+ max-height: min(70vh, 480px);
784
+ overflow-y: auto;
785
+ }
786
+ .wp-nav .wp-elsewhere-list a:hover,
787
+ .wp-nav .wp-elsewhere-list a:focus-visible {
788
+ background: color-mix(in srgb, var(--accent) var(--tint-soft), transparent);
789
+ }
790
+ .wp-meta {
791
+ color: var(--muted);
792
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
793
+ }
794
+ .wp-index {
795
+ padding: 0;
796
+ }
797
+ .wp-index li {
798
+ list-style: none;
799
+ padding: var(--space-xl) 0;
800
+ border-bottom: var(--hairline) solid var(--border);
801
+ }
802
+ .wp-index .wp-meta {
803
+ display: block;
804
+ }
805
+ .wp-error {
806
+ color: var(--bad);
807
+ background: color-mix(in srgb, var(--bad) var(--tint-faint), var(--bg));
808
+ white-space: pre-wrap;
809
+ font: var(--ui-small)/var(--ui-line-height) var(--mono);
810
+ }
811
+ .wp-unknown > .wp-label {
812
+ color: var(--muted);
813
+ }
814
+ .wp-island {
815
+ display: block;
816
+ }
817
+ span.wp-island {
818
+ display: inline;
819
+ }
820
+
821
+ /* plain named forms: the only engine-level interaction */
822
+ input:not([type='checkbox'], [type='radio'], [type='range']),
823
+ textarea,
824
+ select {
825
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
826
+ color: inherit;
827
+ background: var(--surface);
828
+ border: var(--hairline) solid var(--border);
829
+ border-radius: var(--radius-sm);
830
+ padding: var(--space-md) var(--space-lg);
831
+ max-width: 100%;
832
+ }
833
+ /* every one-line field the same height, whatever the browser draws inside it (a date's parts, a
834
+ select's own button) */
835
+ input:not([type='checkbox'], [type='radio'], [type='range']),
836
+ select {
837
+ height: calc(var(--ui-text) * var(--ui-line-height) + 2 * var(--space-md) + 2 * var(--hairline));
838
+ }
839
+ input::-webkit-datetime-edit,
840
+ input::-webkit-datetime-edit-fields-wrapper {
841
+ padding: 0;
842
+ }
843
+ input::-webkit-date-and-time-value {
844
+ text-align: left;
845
+ }
846
+ /* a select drawn like the other fields, with a chevron of its own instead of the system's button */
847
+ select {
848
+ appearance: none;
849
+ padding-right: calc(var(--space-lg) * 3);
850
+ background-image:
851
+ linear-gradient(45deg, transparent 50%, var(--muted) 50%),
852
+ linear-gradient(135deg, var(--muted) 50%, transparent 50%);
853
+ background-position:
854
+ calc(100% - 17px) 50%,
855
+ calc(100% - 12px) 50%;
856
+ background-size: 5px 5px;
857
+ background-repeat: no-repeat;
858
+ }
859
+ input:focus,
860
+ textarea:focus,
861
+ select:focus {
862
+ outline: 2px solid color-mix(in srgb, var(--accent) var(--tint-strong), transparent);
863
+ outline-offset: 0;
864
+ border-color: var(--accent);
865
+ }
866
+ input[type='checkbox'],
867
+ input[type='radio'] {
868
+ accent-color: var(--accent);
869
+ }
870
+ button {
871
+ font: 500 var(--ui-small)/1.3 var(--sans);
872
+ padding: var(--space-sm) var(--space-xl);
873
+ border-radius: var(--radius-sm);
874
+ cursor: pointer;
875
+ border: var(--hairline) solid var(--border);
876
+ background: var(--surface);
877
+ color: var(--text);
878
+ }
879
+ button:hover {
880
+ border-color: var(--muted);
881
+ }
882
+
883
+ /* new content since the reader last saw the page */
884
+ #wp-main > * {
885
+ scroll-margin-top: 72px;
886
+ }
887
+ /* a 3px bar left of the block, drawn as two shadows (red, with the page's colour over all but its
888
+ last 3px), not as ::before or ::after: blocks use those themselves (a heading's number, a folded
889
+ form's lines), and a bar laid over them squeezed their text into its width */
890
+ .wp-new {
891
+ --wp-new-at: 14px;
892
+ box-shadow:
893
+ calc(3px - var(--wp-new-at)) 0 0 var(--bg),
894
+ calc(0px - var(--wp-new-at)) 0 0 var(--bad);
895
+ transition: box-shadow 1.2s ease;
896
+ }
897
+ .wp-wide.wp-new {
898
+ --wp-new-at: 10px;
899
+ }
900
+ .wp-new.wp-new-seen {
901
+ box-shadow:
902
+ calc(3px - var(--wp-new-at)) 0 0 var(--bg),
903
+ calc(0px - var(--wp-new-at)) 0 0 transparent;
904
+ transition-delay: 1s;
905
+ }
906
+
907
+ /* answered and folded into one line: closer to what is around it, like a paragraph */
908
+ form.wp-form[data-wp-folded] {
909
+ padding: 1em 0;
910
+ gap: 0;
911
+ margin: var(--gap-prose) 0;
912
+ }
913
+ /* named forms: the core marks where each stands (data-wp-open, -pending, -received, -handled); this is how that looks */
914
+ /* the button a form was sent with says how that goes (forms.ts): the answer is the form's already
915
+ (optimistic), the button grey while the server hasn't confirmed it, green a moment once it has,
916
+ red ("Try again") when it never got there. The form stays usable: the same answer isn't sent twice. !important: a send's
917
+ state outranks however a plugin or the project styles its buttons (.wp-primary) */
918
+ form button[data-wp-send] {
919
+ transition:
920
+ background-color 0.2s,
921
+ border-color 0.2s,
922
+ color 0.2s;
923
+ }
924
+ form button[data-wp-send='sending'] {
925
+ background: var(--wp-sending) !important;
926
+ border-color: var(--wp-sending) !important;
927
+ color: var(--bg) !important;
928
+ cursor: progress;
929
+ }
930
+ form button[data-wp-send='sent'] {
931
+ background: var(--ok) !important;
932
+ border-color: var(--ok) !important;
933
+ color: var(--bg) !important;
934
+ }
935
+ form button[data-wp-send='failed'] {
936
+ background: var(--bad) !important;
937
+ border-color: var(--bad) !important;
938
+ color: var(--bg) !important;
939
+ }
940
+ /* just sent: a short green flash, and a line saying what happened, for a few seconds */
941
+ @keyframes wp-sent {
942
+ from {
943
+ background-color: color-mix(in srgb, var(--ok) 22%, transparent);
944
+ }
945
+ to {
946
+ background-color: transparent;
947
+ }
948
+ }
949
+ form[data-wp-just-sent] {
950
+ animation: wp-sent 1.4s ease-out;
951
+ }
952
+ /* what a sent answer came to, beside the form's last send button (forms.ts): waiting for the agent
953
+ (muted), couldn't send (red) */
954
+ .wp-form-status {
955
+ margin-left: var(--space-md);
956
+ color: var(--muted);
957
+ font: var(--ui-tiny)/var(--ui-line-height) var(--sans);
958
+ }
959
+ .wp-form-status[data-kind='bad'] {
960
+ color: var(--bad);
961
+ font-weight: var(--weight-strong);
962
+ }
963
+
964
+ /* a question the reader hasn't answered, or one the agent asks again: ringed, without a label of
965
+ its own (one laid into the form landed on its content in some layouts; the corner counts them).
966
+ The ring is drawn by ::before, --wp-ring-at outside the form, not by an outline: an outline's
967
+ corners grow with its offset, and the ring's corners stay small. It takes no space, as an outline
968
+ doesn't. --wp-ring is its colour; none, no ring. */
969
+ form.wp-form {
970
+ position: relative;
971
+ --wp-ring-at: 16px;
972
+ }
973
+ form.wp-form::before {
974
+ content: '';
975
+ position: absolute;
976
+ inset: calc(0px - var(--wp-ring-at));
977
+ border: 1px solid var(--wp-ring, transparent);
978
+ /* twice a button's corner */
979
+ border-radius: calc(var(--radius-sm) * 2);
980
+ pointer-events: none;
981
+ transition: border-color 0.2s;
982
+ }
983
+ form[data-wp-open] {
984
+ --wp-ring: color-mix(in srgb, var(--accent) 45%, var(--bg));
985
+ }
986
+ /* the ring sets it off: the form's rules above and below (its borders, which the ring would
987
+ enclose) step aside meanwhile */
988
+ form.wp-form:is([data-wp-open], [data-wp-pending], [data-wp-received], [data-wp-state='sending'], [data-wp-state='failed']) {
989
+ border-top-color: transparent;
990
+ border-bottom-color: transparent;
991
+ /* the ring's distance is the space around the content: no padding inside it as well, and the
992
+ ring keeps a block's distance from what is around it */
993
+ padding-top: 0;
994
+ padding-bottom: 0;
995
+ margin-block: calc(var(--gap-block) + var(--wp-ring-at));
996
+ }
997
+ /* the ring speaks the language of a send too: grey while the answer is on its way (it is the
998
+ form's already, so no longer ringed as unanswered) and while it waits for an agent to receive
999
+ it, red when it never got there; gone once the agent handled it */
1000
+ form:is([data-wp-state='sending'], [data-wp-pending]) {
1001
+ --wp-ring: var(--wp-sending);
1002
+ }
1003
+ /* received: an agent has the answer and is on it; calm, a muted green, until it is handled */
1004
+ form[data-wp-received] {
1005
+ --wp-ring: color-mix(in srgb, var(--ok) 40%, var(--bg));
1006
+ }
1007
+ /* settled: answered elsewhere (`workpad settle`), or a question in a message under a form decided
1008
+ before it was answered; it asks nothing,
1009
+ so no ring, and it steps back */
1010
+ form[data-wp-settled] {
1011
+ opacity: 0.55;
1012
+ }
1013
+ /* held: an agent put it on hold (`workpad hold`); it waits on something else, not on the reader,
1014
+ so no ring; it steps back, and says why at its top */
1015
+ form[data-wp-held] > :not(.wp-form-held, .wp-form-title, [data-block='chat-thread']) {
1016
+ opacity: 0.55;
1017
+ }
1018
+ .wp-form-held {
1019
+ margin: 0 0 var(--space-sm);
1020
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
1021
+ color: var(--muted);
1022
+ }
1023
+ form[data-wp-state='failed'] {
1024
+ --wp-ring: var(--bad);
1025
+ }
1026
+
1027
+ /* handled: the agent is done with the latest answer; the form folds into one line quoting it */
1028
+ form[data-wp-folded] {
1029
+ cursor: pointer;
1030
+ }
1031
+ form[data-wp-folded] > :not([data-block='chat-thread'], .wp-folded, .wp-form-title) {
1032
+ display: none !important;
1033
+ }
1034
+ /* the chat of a handled form folds into "💬 n messages", until opened (waiting.ts) */
1035
+ form[data-wp-folded]:not([data-wp-chat-open]) > [data-block='chat-thread'] {
1036
+ display: none !important;
1037
+ }
1038
+ /* the question's chat stays with it, under the answer and the line that reopens it */
1039
+ form[data-wp-folded] > [data-block='chat-thread'] {
1040
+ order: 1;
1041
+ margin-top: var(--space-xl);
1042
+ cursor: auto;
1043
+ }
1044
+ /* a handled form as a card: what was chosen, what was written, decided · change, its chat folded */
1045
+ .wp-folded {
1046
+ display: grid;
1047
+ gap: var(--space-sm);
1048
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
1049
+ }
1050
+ .wp-folded-head {
1051
+ display: flex;
1052
+ gap: var(--space-xl);
1053
+ align-items: baseline;
1054
+ justify-content: space-between;
1055
+ }
1056
+ .wp-folded-choice {
1057
+ font-weight: var(--weight-strong);
1058
+ color: var(--text);
1059
+ }
1060
+ .wp-folded-change {
1061
+ flex: none;
1062
+ color: var(--muted);
1063
+ font-size: var(--ui-tiny);
1064
+ }
1065
+ form[data-wp-folded]:hover .wp-folded-change {
1066
+ color: var(--accent);
1067
+ }
1068
+ form[data-wp-just-sent] .wp-folded-change {
1069
+ color: var(--ok);
1070
+ font-weight: var(--weight-strong);
1071
+ }
1072
+ .wp-folded-text {
1073
+ color: var(--muted);
1074
+ white-space: pre-line;
1075
+ display: -webkit-box;
1076
+ -webkit-line-clamp: 3;
1077
+ -webkit-box-orient: vertical;
1078
+ overflow: hidden;
1079
+ }
1080
+ .wp-folded-text[hidden],
1081
+ .wp-folded-chat[hidden],
1082
+ .wp-folded-choices[hidden] {
1083
+ display: none;
1084
+ }
1085
+ /* each answer on its own line, under the button it was sent with */
1086
+ .wp-folded-choices {
1087
+ list-style: none;
1088
+ margin: 0;
1089
+ padding: 0 0 0 1.2em;
1090
+ display: grid;
1091
+ gap: var(--space-2xs);
1092
+ color: var(--text);
1093
+ }
1094
+ .wp-folded-choices li {
1095
+ position: relative;
1096
+ margin: 0;
1097
+ padding: 0;
1098
+ line-height: var(--ui-line-height);
1099
+ }
1100
+ .wp-folded-choices li::before {
1101
+ content: '·';
1102
+ position: absolute;
1103
+ left: -0.8em;
1104
+ color: var(--muted);
1105
+ }
1106
+ .wp-folded-chat {
1107
+ justify-self: start;
1108
+ margin-top: var(--space-2xs);
1109
+ padding: var(--space-2xs) var(--space-lg);
1110
+ border-radius: var(--radius-pill);
1111
+ border: var(--hairline) solid var(--border);
1112
+ background: none;
1113
+ color: var(--muted);
1114
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1115
+ cursor: pointer;
1116
+ }
1117
+ .wp-folded-chat:hover {
1118
+ color: var(--text);
1119
+ border-color: var(--muted);
1120
+ }
1121
+
1122
+ @media (max-width: 600px) {
1123
+ main {
1124
+ padding-top: 32px;
1125
+ }
1126
+ h1 {
1127
+ font-size: calc(var(--text-size) * 2.2);
1128
+ }
1129
+ .wp-new {
1130
+ --wp-new-at: 9px;
1131
+ }
1132
+ }
1133
+
1134
+ /* repository views: folder listings and code */
1135
+ .wp-files {
1136
+ padding: 0;
1137
+ font: var(--ui-text)/var(--ui-line-height) var(--mono);
1138
+ }
1139
+ .wp-files li {
1140
+ list-style: none;
1141
+ margin: 0;
1142
+ padding: var(--space-xs) 0;
1143
+ border-bottom: var(--hairline) solid var(--border);
1144
+ }
1145
+ .wp-files li + li {
1146
+ margin-top: 0;
1147
+ }
1148
+ .wp-files a {
1149
+ text-decoration: none;
1150
+ }
1151
+ .wp-code-title {
1152
+ font: 500 1.1rem/var(--ui-line-height) var(--mono);
1153
+ letter-spacing: 0;
1154
+ }
1155
+ .wp-code.wp-wide {
1156
+ margin-top: 0;
1157
+ }
1158
+
1159
+ .wp-code > pre {
1160
+ margin-top: 0;
1161
+ }
1162
+
1163
+ /* the overview's list of the project's documents */
1164
+ .wp-documents {
1165
+ margin-top: calc(var(--rhythm) * 2);
1166
+ }
1167
+ .wp-documents h2 {
1168
+ font-size: 1.1rem;
1169
+ margin: 0;
1170
+ }
1171
+ /* the shared server's overview (/, src/pages/board.ts): columns side by side, scrolled sideways,
1172
+ the page as wide as the window. A column per state or per project, the switch shows one
1173
+ (client/page/board.ts, on <html>); projects without pages fold into a last column. */
1174
+ #wp-main:has(> .wp-board) {
1175
+ --indent: 0px;
1176
+ max-width: none;
1177
+ left: 0;
1178
+ padding-top: 64px;
1179
+ }
1180
+ /* above the columns: the switch, and the search beside it */
1181
+ .wp-board-bar {
1182
+ display: flex;
1183
+ flex-wrap: wrap;
1184
+ align-items: stretch;
1185
+ gap: var(--space-md) var(--space-xl);
1186
+ }
1187
+ input.wp-board-search {
1188
+ appearance: none;
1189
+ -webkit-appearance: none;
1190
+ min-height: 0;
1191
+ height: auto;
1192
+ flex: 0 1 22rem;
1193
+ min-width: 12rem;
1194
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1195
+ color: var(--text);
1196
+ background: var(--surface);
1197
+ border: var(--hairline) solid var(--border);
1198
+ border-radius: var(--radius-pill);
1199
+ padding: var(--space-xs) var(--space-xl);
1200
+ }
1201
+ input.wp-board-search:focus {
1202
+ outline: none;
1203
+ border-color: var(--accent);
1204
+ }
1205
+ input.wp-board-search::placeholder {
1206
+ color: var(--muted);
1207
+ }
1208
+ /* what a search leaves out goes, whatever display its kind has */
1209
+ .wp-board [hidden] {
1210
+ display: none !important;
1211
+ }
1212
+ .wp-board-nomatch {
1213
+ color: var(--muted);
1214
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
1215
+ }
1216
+ .wp-board-switch {
1217
+ display: inline-flex;
1218
+ border: var(--hairline) solid var(--border);
1219
+ border-radius: var(--radius-pill);
1220
+ overflow: hidden;
1221
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1222
+ }
1223
+ .wp-board-switch button {
1224
+ font: inherit;
1225
+ color: var(--muted);
1226
+ background: none;
1227
+ border: 0;
1228
+ padding: var(--space-xs) var(--space-xl);
1229
+ cursor: pointer;
1230
+ }
1231
+ .wp-board-switch button + button {
1232
+ border-left: var(--hairline) solid var(--border);
1233
+ }
1234
+ .wp-board-switch button:hover {
1235
+ color: var(--text);
1236
+ }
1237
+ .wp-board-switch button[aria-pressed='true'] {
1238
+ color: var(--accent);
1239
+ background: color-mix(in srgb, var(--accent) var(--tint-soft), transparent);
1240
+ }
1241
+ #wp-main > .wp-board {
1242
+ display: flex;
1243
+ align-items: flex-start;
1244
+ gap: var(--space-xl);
1245
+ overflow-x: auto;
1246
+ margin-top: var(--rhythm);
1247
+ padding-bottom: var(--space-xl);
1248
+ overscroll-behavior-x: contain;
1249
+ }
1250
+ :root:not([data-wp-board='project']) #wp-main > .wp-board[data-board='project'],
1251
+ :root[data-wp-board='project'] #wp-main > .wp-board[data-board='state'] {
1252
+ display: none;
1253
+ }
1254
+ .wp-board-column {
1255
+ flex: 0 0 280px;
1256
+ box-sizing: border-box;
1257
+ min-width: 0;
1258
+ margin: 0;
1259
+ background: var(--tint);
1260
+ border: var(--hairline) solid var(--border);
1261
+ border-radius: var(--radius);
1262
+ padding: var(--space-lg);
1263
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1264
+ }
1265
+ /* something in it waits for the reader */
1266
+ .wp-board-column.wp-board-waits {
1267
+ border-color: color-mix(in srgb, var(--accent) var(--tint-strong), var(--border));
1268
+ box-shadow: inset 0 3px 0 var(--accent);
1269
+ }
1270
+ /* a column's head as a card is laid out: the name, what waits at the right of it, the line under */
1271
+ .wp-board-head {
1272
+ display: grid;
1273
+ grid-template-columns: minmax(0, 1fr) auto;
1274
+ align-items: baseline;
1275
+ gap: var(--space-xs) var(--space-sm);
1276
+ margin-bottom: var(--space-md);
1277
+ }
1278
+ .wp-board-head h2 {
1279
+ grid-column: 1;
1280
+ grid-row: 1;
1281
+ font: var(--weight-strong) var(--ui-text)/1.3 var(--sans);
1282
+ margin: 0;
1283
+ overflow-wrap: anywhere;
1284
+ }
1285
+ .wp-board-head > .wp-counts {
1286
+ grid-column: 2;
1287
+ grid-row: 1;
1288
+ justify-self: end;
1289
+ }
1290
+ .wp-board-head > .wp-meta {
1291
+ grid-column: 1 / -1;
1292
+ }
1293
+ .wp-board-cards {
1294
+ list-style: none;
1295
+ margin: 0;
1296
+ padding: 0;
1297
+ display: flex;
1298
+ flex-direction: column;
1299
+ gap: var(--space-sm);
1300
+ }
1301
+ .wp-board-card {
1302
+ list-style: none;
1303
+ margin: 0;
1304
+ display: flex;
1305
+ flex-wrap: wrap;
1306
+ align-items: center;
1307
+ gap: var(--space-xs) var(--space-sm);
1308
+ background: var(--surface);
1309
+ border: var(--hairline) solid var(--border);
1310
+ border-radius: var(--radius-sm);
1311
+ padding: var(--space-md) var(--space-lg);
1312
+ }
1313
+ .wp-board-title {
1314
+ flex: 1 1 auto;
1315
+ min-width: 0;
1316
+ overflow-wrap: anywhere;
1317
+ text-decoration: none;
1318
+ }
1319
+ .wp-board-title:hover {
1320
+ text-decoration: underline;
1321
+ }
1322
+ .wp-board-card > .wp-meta,
1323
+ .wp-board-card > .wp-board-project {
1324
+ flex: 1 1 100%;
1325
+ overflow-wrap: anywhere;
1326
+ }
1327
+ /* under a card's title: the project it is in, read before when it changed, which steps back */
1328
+ .wp-board-card > .wp-board-project {
1329
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1330
+ color: color-mix(in srgb, var(--text) 72%, var(--muted));
1331
+ }
1332
+ .wp-board-card > .wp-board-when {
1333
+ color: color-mix(in srgb, var(--muted) 72%, var(--surface));
1334
+ margin-top: calc(var(--space-xs) * -1);
1335
+ }
1336
+ .wp-board-none {
1337
+ margin: 0;
1338
+ }
1339
+ /* what waits on a page or a project: small badges, as the inbox's */
1340
+ .wp-counts {
1341
+ display: inline-flex;
1342
+ flex-wrap: wrap;
1343
+ gap: var(--space-xs);
1344
+ }
1345
+ .wp-count {
1346
+ --wp-count: var(--accent);
1347
+ font: var(--weight-strong) var(--ui-tiny)/1 var(--sans);
1348
+ color: var(--wp-count);
1349
+ background: color-mix(in srgb, var(--wp-count) var(--tint-soft), transparent);
1350
+ border: var(--hairline) solid color-mix(in srgb, var(--wp-count) var(--tint-strong), transparent);
1351
+ border-radius: var(--radius-pill);
1352
+ padding: 3px var(--space-sm);
1353
+ white-space: nowrap;
1354
+ text-decoration: none;
1355
+ }
1356
+ .wp-count-unread {
1357
+ --wp-count: var(--bad);
1358
+ }
1359
+ .wp-count-unreceived {
1360
+ --wp-count: var(--warn);
1361
+ }
1362
+ a.wp-count:hover {
1363
+ background: color-mix(in srgb, var(--wp-count) var(--tint-strong), transparent);
1364
+ }
1365
+ /* the projects without pages: one folded column at the end */
1366
+ .wp-board-empty {
1367
+ color: var(--muted);
1368
+ }
1369
+ /* opened: no details' band, bullets or indent; each project a small card as the pages are */
1370
+ .wp-board-empty > summary,
1371
+ .wp-body .wp-board-empty[open] > summary {
1372
+ cursor: pointer;
1373
+ position: static;
1374
+ background: none;
1375
+ padding: 0;
1376
+ font: var(--weight-strong) var(--ui-text)/1.3 var(--sans);
1377
+ color: var(--text);
1378
+ }
1379
+ .wp-board-empty > ul {
1380
+ list-style: none;
1381
+ margin: var(--space-md) 0 0;
1382
+ padding: 0;
1383
+ display: flex;
1384
+ flex-direction: column;
1385
+ gap: var(--space-sm);
1386
+ }
1387
+ .wp-board-empty > ul > li {
1388
+ background: var(--surface);
1389
+ border: var(--hairline) solid var(--border);
1390
+ border-radius: var(--radius-sm);
1391
+ padding: var(--space-sm) var(--space-lg);
1392
+ }
1393
+ .wp-board-empty > ul a {
1394
+ text-decoration: none;
1395
+ overflow-wrap: anywhere;
1396
+ }
1397
+ .wp-board-empty > ul a:hover {
1398
+ text-decoration: underline;
1399
+ }
1400
+ .wp-board-empty > :not(summary) {
1401
+ margin-left: 0;
1402
+ }
1403
+ .wp-board-empty[open] > :last-child {
1404
+ margin-bottom: 0;
1405
+ }
1406
+ /* a project's files in its column (the shared server's overview): cards like its pages above them,
1407
+ the fold and its folders a quiet line each, none of a details' band, rules or indent */
1408
+ .wp-folded-documents,
1409
+ .wp-folded-documents .wp-folder {
1410
+ margin: var(--space-md) 0 0;
1411
+ border: 0;
1412
+ }
1413
+ .wp-folded-documents > summary,
1414
+ .wp-folded-documents .wp-folder > summary,
1415
+ .wp-body .wp-folded-documents[open] > summary,
1416
+ .wp-body .wp-folded-documents .wp-folder[open] > summary {
1417
+ position: static;
1418
+ background: none;
1419
+ padding: var(--space-xs) 0;
1420
+ font: var(--weight-strong) var(--ui-small)/var(--ui-line-height) var(--sans);
1421
+ color: var(--muted);
1422
+ }
1423
+ .wp-folded-documents .wp-folder > summary {
1424
+ font-weight: 400;
1425
+ }
1426
+ .wp-folded-documents > summary:hover,
1427
+ .wp-folded-documents .wp-folder > summary:hover {
1428
+ color: var(--text);
1429
+ }
1430
+ .wp-folded-documents > :not(summary),
1431
+ .wp-folded-documents .wp-folder > :not(summary) {
1432
+ margin-left: 0;
1433
+ }
1434
+ .wp-folded-documents[open] > :last-child,
1435
+ .wp-folded-documents .wp-folder[open] > :last-child {
1436
+ margin-bottom: 0;
1437
+ }
1438
+ .wp-folded-documents .wp-index {
1439
+ margin: var(--space-sm) 0 0;
1440
+ display: flex;
1441
+ flex-direction: column;
1442
+ gap: var(--space-sm);
1443
+ }
1444
+ .wp-folded-documents .wp-index li {
1445
+ background: var(--surface);
1446
+ border: var(--hairline) solid var(--border);
1447
+ border-radius: var(--radius-sm);
1448
+ padding: var(--space-md) var(--space-lg);
1449
+ }
1450
+ .wp-folded-documents .wp-index a {
1451
+ text-decoration: none;
1452
+ overflow-wrap: anywhere;
1453
+ }
1454
+ .wp-folded-documents .wp-index a:hover {
1455
+ text-decoration: underline;
1456
+ }
1457
+ .wp-folded-documents .wp-meta code {
1458
+ background: none;
1459
+ padding: 0;
1460
+ font-size: 0.88em;
1461
+ color: inherit;
1462
+ }
1463
+ /* a list's heading with its sort control at the right (sort.ts) */
1464
+ .wp-list-head {
1465
+ display: flex;
1466
+ align-items: baseline;
1467
+ justify-content: space-between;
1468
+ gap: var(--space-xl);
1469
+ margin-bottom: 0.4em;
1470
+ }
1471
+ .wp-sort {
1472
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1473
+ color: var(--muted);
1474
+ display: inline-flex;
1475
+ align-items: center;
1476
+ gap: var(--space-sm);
1477
+ }
1478
+ /* in the look of the header's buttons: a rounded outline, its own arrow */
1479
+ .wp-sort select {
1480
+ appearance: none;
1481
+ -webkit-appearance: none;
1482
+ font: inherit;
1483
+ color: var(--muted);
1484
+ cursor: pointer;
1485
+ height: 24px;
1486
+ box-sizing: border-box;
1487
+ padding: 0 var(--space-3xl) 0 var(--space-lg);
1488
+ border: var(--hairline) solid var(--border);
1489
+ border-radius: var(--radius-pill);
1490
+ background: var(--bg) no-repeat right 9px center / 8px 5px;
1491
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M.5.5 4 4 7.5.5' fill='none' stroke='%23888' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
1492
+ }
1493
+ .wp-sort select:hover {
1494
+ color: var(--text);
1495
+ border-color: var(--muted);
1496
+ }
1497
+ .wp-sort select:focus-visible {
1498
+ outline: 2px solid var(--accent);
1499
+ outline-offset: 1px;
1500
+ }
1501
+
1502
+ /* where the browser lets the list of a select be styled (customizable select; Chromium, not WebKit
1503
+ yet), it opens in the page's look instead of the system's: elsewhere the system's list shows */
1504
+ @supports (appearance: base-select) {
1505
+ .wp-sort select,
1506
+ .wp-form select {
1507
+ appearance: base-select;
1508
+ }
1509
+ .wp-sort select::picker-icon {
1510
+ display: none;
1511
+ }
1512
+ :is(.wp-sort, .wp-form) select::picker(select) {
1513
+ appearance: base-select;
1514
+ margin-top: var(--space-xs);
1515
+ padding: var(--space-xs);
1516
+ min-width: anchor-size(width);
1517
+ background: var(--bg);
1518
+ color: var(--text);
1519
+ border: var(--hairline) solid var(--border);
1520
+ border-radius: var(--radius);
1521
+ box-shadow: var(--shadow-pop);
1522
+ }
1523
+ :is(.wp-sort, .wp-form) select option {
1524
+ padding: var(--space-sm) var(--space-lg);
1525
+ border-radius: var(--radius-sm);
1526
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1527
+ color: var(--text);
1528
+ }
1529
+ :is(.wp-sort, .wp-form) select option:hover,
1530
+ :is(.wp-sort, .wp-form) select option:focus-visible {
1531
+ background: color-mix(in srgb, var(--accent) var(--tint-soft), transparent);
1532
+ outline: none;
1533
+ }
1534
+ :is(.wp-sort, .wp-form) select option:checked {
1535
+ font-weight: var(--weight-strong);
1536
+ color: var(--accent);
1537
+ }
1538
+ :is(.wp-sort, .wp-form) select option::checkmark {
1539
+ display: none;
1540
+ }
1541
+ }
1542
+
1543
+ /* threads whose form is no longer on the page (orphans.ts): read-only, after the content */
1544
+ .wp-orphans {
1545
+ --indent: 34px;
1546
+ max-width: calc(var(--measure) + var(--indent) + 32px);
1547
+ margin: 0 auto;
1548
+ position: relative;
1549
+ left: calc(var(--wp-aside, 0px) / 2);
1550
+ padding: 0 var(--space-2xl) 220px;
1551
+ box-sizing: border-box;
1552
+ font: var(--ui-text)/var(--ui-line-height) var(--sans);
1553
+ }
1554
+ .wp-orphans > * {
1555
+ margin-left: var(--indent);
1556
+ }
1557
+ /* folded, as a details of the page: a summary line with how many */
1558
+ .wp-orphans > details {
1559
+ margin: var(--gap-section) 0 0;
1560
+ }
1561
+ /* the page's own bottom space moves below the list */
1562
+ main:has(+ .wp-orphans:not([hidden])) {
1563
+ padding-bottom: 0;
1564
+ }
1565
+ @media (max-width: 860px) {
1566
+ .wp-orphans {
1567
+ --indent: 0px;
1568
+ }
1569
+ }
1570
+ .wp-orphans[hidden] {
1571
+ display: none;
1572
+ }
1573
+ .wp-orphans h3 {
1574
+ font: var(--weight-strong) var(--ui-small)/var(--ui-line-height) var(--mono, monospace);
1575
+ margin: var(--rhythm) 0 0.5em;
1576
+ }
1577
+ .wp-orphan {
1578
+ display: flex;
1579
+ flex-direction: column;
1580
+ gap: var(--space-md);
1581
+ }
1582
+ .wp-orphan-message {
1583
+ display: flex;
1584
+ flex-direction: column;
1585
+ gap: var(--space-2xs);
1586
+ max-width: 85%;
1587
+ align-self: flex-start;
1588
+ }
1589
+ .wp-orphan-message[data-from='you'] {
1590
+ align-self: flex-end;
1591
+ align-items: flex-end;
1592
+ }
1593
+ .wp-orphan-who {
1594
+ font: var(--weight-strong) var(--ui-tiny)/1.3 var(--sans);
1595
+ letter-spacing: var(--caps-spacing);
1596
+ text-transform: uppercase;
1597
+ color: var(--muted);
1598
+ }
1599
+ .wp-orphan-message[data-from='agent'] .wp-orphan-who {
1600
+ color: var(--accent);
1601
+ }
1602
+ .wp-orphan-text {
1603
+ white-space: pre-wrap;
1604
+ padding: var(--space-sm) var(--space-lg);
1605
+ border-radius: var(--radius-lg);
1606
+ background: var(--tint, var(--surface));
1607
+ border: var(--hairline) solid var(--border);
1608
+ }
1609
+
1610
+ /* a window around a block (src/pages/window.ts, window.ts here): a header like a browser window's,
1611
+ with its label, open on its own, fill the window */
1612
+ .wp-window {
1613
+ margin: var(--gap-block) 0;
1614
+ border: var(--hairline) solid var(--border);
1615
+ border-radius: var(--radius, 6px);
1616
+ overflow: hidden;
1617
+ background: var(--bg);
1618
+ }
1619
+ .wp-window-body > :first-child {
1620
+ margin-top: 0;
1621
+ }
1622
+ .wp-window-body > :last-child {
1623
+ margin-bottom: 0;
1624
+ }
1625
+ .wp-window-body {
1626
+ padding: var(--space-xl) var(--space-xl);
1627
+ overflow: auto;
1628
+ }
1629
+ .wp-window-body img,
1630
+ .wp-window-body video {
1631
+ display: block;
1632
+ max-width: 100%;
1633
+ height: auto;
1634
+ margin: 0 auto;
1635
+ }
1636
+ .wp-window-bar {
1637
+ display: flex;
1638
+ align-items: center;
1639
+ gap: var(--space-xs);
1640
+ padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xl);
1641
+ min-height: 32px;
1642
+ box-sizing: border-box;
1643
+ border-bottom: var(--hairline) solid var(--border);
1644
+ background: var(--tint, var(--bg));
1645
+ font: var(--ui-small)/var(--ui-line-height) var(--sans);
1646
+ color: var(--muted);
1647
+ }
1648
+ .wp-window-name {
1649
+ flex: 1;
1650
+ min-width: 0;
1651
+ display: flex;
1652
+ gap: var(--space-md);
1653
+ align-items: baseline;
1654
+ overflow: hidden;
1655
+ white-space: nowrap;
1656
+ }
1657
+ .wp-window-title {
1658
+ color: var(--text);
1659
+ font-weight: var(--weight-strong);
1660
+ overflow: hidden;
1661
+ text-overflow: ellipsis;
1662
+ }
1663
+ .wp-window-address {
1664
+ font-family: var(--mono, monospace);
1665
+ font-size: var(--ui-tiny);
1666
+ overflow: hidden;
1667
+ text-overflow: ellipsis;
1668
+ }
1669
+ .wp-window-button {
1670
+ flex: none;
1671
+ display: inline-grid;
1672
+ place-items: center;
1673
+ width: 26px;
1674
+ height: 24px;
1675
+ padding: 0;
1676
+ border: 0;
1677
+ border-radius: var(--radius-sm);
1678
+ background: none;
1679
+ color: var(--muted);
1680
+ cursor: pointer;
1681
+ }
1682
+ .wp-window-button:hover {
1683
+ background: color-mix(in srgb, var(--text) var(--tint-faint), transparent);
1684
+ color: var(--text);
1685
+ }
1686
+ .wp-window-restore,
1687
+ .wp-window[data-wp-maximized] .wp-window-max {
1688
+ display: none;
1689
+ }
1690
+ .wp-window[data-wp-maximized] .wp-window-restore,
1691
+ .wp-window-max {
1692
+ display: contents;
1693
+ }
1694
+ /* filling the window, above the page and its header; the terminal drawer stays below it. The
1695
+ margin is !important: the page indents its blocks with a rule more specific than any here */
1696
+ .wp-window[data-wp-maximized] {
1697
+ position: fixed;
1698
+ inset: 0 0 var(--wp-inset-bottom, 0px) 0;
1699
+ z-index: var(--layer-window);
1700
+ margin: 0 !important;
1701
+ border-radius: 0;
1702
+ border: 0;
1703
+ display: flex;
1704
+ flex-direction: column;
1705
+ width: auto;
1706
+ left: 0;
1707
+ transform: none;
1708
+ }
1709
+ .wp-window[data-wp-maximized] .wp-window-body {
1710
+ flex: 1;
1711
+ height: auto !important;
1712
+ resize: none;
1713
+ min-height: 0;
1714
+ }
1715
+ /* what fills it, as large as fits */
1716
+ .wp-window[data-wp-maximized]
1717
+ .wp-window-body:has(> p:only-child > :is(img, video):only-child, > :is(img, video):only-child) {
1718
+ display: grid;
1719
+ place-items: center;
1720
+ }
1721
+ .wp-window[data-wp-maximized] .wp-window-body :is(img, video) {
1722
+ max-height: calc(100vh - 80px - var(--wp-inset-bottom, 0px));
1723
+ width: auto;
1724
+ }
1725
+ :root[data-wp-window-maximized] {
1726
+ overflow: hidden;
1727
+ }
1728
+ @media (prefers-reduced-motion: reduce) {
1729
+ form button[data-wp-send],
1730
+ form:is([data-wp-open], [data-wp-pending], [data-wp-received], [data-wp-state='sending'], [data-wp-state='failed']) {
1731
+ transition: none;
1732
+ }
1733
+ }
1734
+
1735
+ /* an inline block that ends a title (a badge) sits at its right, centred on its first line, the
1736
+ title wrapping beside it: the renderer moves it to the title's start in a .wp-title-end, where a
1737
+ float rises to the first line. In any heading, and in what a block marks as a title
1738
+ (data-wp-title: a timeline's step). --wp-title-line is the title's line height in px (registered,
1739
+ so 1lh resolves on the title) */
1740
+ @property --wp-title-line {
1741
+ syntax: '<length>';
1742
+ inherits: true;
1743
+ initial-value: 0px;
1744
+ }
1745
+ :is(h1, h2, h3, h4, h5, h6, [data-wp-title]):has(> .wp-title-end) {
1746
+ --wp-title-line: 1lh;
1747
+ }
1748
+ .wp-title-end {
1749
+ float: right;
1750
+ display: flex;
1751
+ align-items: center;
1752
+ height: var(--wp-title-line);
1753
+ margin-left: var(--space-lg);
1754
+ }
1755
+ /* a project's name in its column's head, where it links (a project with files and no pages) */
1756
+ .wp-board-head h2 a {
1757
+ color: inherit;
1758
+ text-decoration: none;
1759
+ }
1760
+ .wp-board-head h2 a:hover {
1761
+ text-decoration: underline;
1762
+ }