@whity/ui 0.5.0 → 1.0.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 (208) hide show
  1. package/README.md +107 -107
  2. package/package.json +223 -192
  3. package/src/access-denied.stories.tsx +179 -179
  4. package/src/access-denied.tsx +305 -305
  5. package/src/action-proposal.tsx +338 -302
  6. package/src/actor-chip.tsx +71 -71
  7. package/src/agent-activity.tsx +163 -163
  8. package/src/agent-collaboration.stories.tsx +156 -156
  9. package/src/agent-run-status.tsx +196 -196
  10. package/src/alert-dialog.stories.tsx +45 -45
  11. package/src/alert-dialog.tsx +147 -147
  12. package/src/alert.stories.tsx +91 -91
  13. package/src/alert.tsx +89 -89
  14. package/src/app-sidebar.stories.tsx +195 -195
  15. package/src/app-sidebar.tsx +604 -500
  16. package/src/approval-queue.tsx +109 -108
  17. package/src/audience-group-picker.stories.tsx +198 -198
  18. package/src/audience-group-picker.tsx +362 -362
  19. package/src/audience-people-picker.stories.tsx +102 -102
  20. package/src/audience-people-picker.tsx +279 -279
  21. package/src/avatar-pattern.ts +138 -0
  22. package/src/avatar.tsx +125 -83
  23. package/src/badge.stories.tsx +105 -105
  24. package/src/badge.tsx +68 -68
  25. package/src/beta-warning.stories.tsx +79 -79
  26. package/src/beta-warning.tsx +189 -189
  27. package/src/bilingual-input.stories.tsx +82 -82
  28. package/src/bilingual-input.tsx +188 -183
  29. package/src/board.tsx +216 -0
  30. package/src/breadcrumb.stories.tsx +51 -51
  31. package/src/breadcrumb.tsx +90 -90
  32. package/src/built-on-whity.tsx +52 -0
  33. package/src/button.stories.tsx +87 -87
  34. package/src/button.tsx +125 -118
  35. package/src/card.stories.tsx +423 -423
  36. package/src/card.tsx +180 -180
  37. package/src/chart.stories.tsx +66 -66
  38. package/src/chart.tsx +228 -228
  39. package/src/checkbox.stories.tsx +62 -62
  40. package/src/checkbox.tsx +54 -54
  41. package/src/collapsible.stories.tsx +48 -48
  42. package/src/collapsible.tsx +34 -34
  43. package/src/color-card.stories.tsx +61 -61
  44. package/src/color-card.tsx +270 -270
  45. package/src/color-picker.stories.tsx +65 -65
  46. package/src/color-picker.tsx +425 -425
  47. package/src/column-matcher.tsx +84 -0
  48. package/src/command-palette.tsx +399 -306
  49. package/src/confirm-action.tsx +98 -0
  50. package/src/copy-block.stories.tsx +38 -38
  51. package/src/copy-block.tsx +85 -85
  52. package/src/data-table.stories.tsx +200 -200
  53. package/src/data-table.tsx +1687 -1106
  54. package/src/date-picker.stories.tsx +61 -61
  55. package/src/date-picker.tsx +457 -422
  56. package/src/design-cards.stories.tsx +551 -458
  57. package/src/dialog.stories.tsx +48 -48
  58. package/src/dialog.tsx +179 -166
  59. package/src/display-preferences.tsx +59 -0
  60. package/src/documents/barcode-svg.stories.tsx +72 -72
  61. package/src/documents/barcode-svg.tsx +79 -79
  62. package/src/dropdown-menu.stories.tsx +77 -77
  63. package/src/dropdown-menu.tsx +271 -271
  64. package/src/editor/agent-panel.tsx +222 -0
  65. package/src/editor/agents.stories.tsx +81 -0
  66. package/src/editor/agents.ts +55 -0
  67. package/src/editor/behaviour.ts +279 -279
  68. package/src/editor/block-ids.ts +44 -44
  69. package/src/editor/block-list.tsx +104 -101
  70. package/src/editor/block-toolbar.tsx +490 -477
  71. package/src/editor/bubble.tsx +119 -93
  72. package/src/editor/catalogue.ts +169 -103
  73. package/src/editor/collab-rail.tsx +746 -746
  74. package/src/editor/collab.stories.tsx +207 -207
  75. package/src/editor/collab.ts +87 -87
  76. package/src/editor/contract.ts +476 -408
  77. package/src/editor/convert.ts +414 -362
  78. package/src/editor/doc-editor.stories.tsx +98 -98
  79. package/src/editor/doc-editor.tsx +1492 -1287
  80. package/src/editor/editor.css +636 -536
  81. package/src/editor/extensions.ts +86 -86
  82. package/src/editor/field-bar.tsx +154 -0
  83. package/src/editor/field-picker.tsx +109 -107
  84. package/src/editor/fields.ts +100 -100
  85. package/src/editor/gutter.tsx +443 -367
  86. package/src/editor/index.ts +23 -22
  87. package/src/editor/label-sheet.tsx +289 -289
  88. package/src/editor/labels.ts +394 -310
  89. package/src/editor/link-tools.tsx +141 -141
  90. package/src/editor/node-views.tsx +461 -450
  91. package/src/editor/page-view.tsx +372 -353
  92. package/src/editor/phone.tsx +310 -0
  93. package/src/editor/plugin-block-view.tsx +230 -0
  94. package/src/editor/plugin-blocks.stories.tsx +96 -0
  95. package/src/editor/plugin-blocks.ts +52 -0
  96. package/src/editor/publish-check.tsx +201 -182
  97. package/src/editor/rich-blocks.stories.tsx +146 -146
  98. package/src/editor/sample.ts +40 -40
  99. package/src/editor/save-block-dialog.tsx +141 -0
  100. package/src/editor/saved-block-view.tsx +205 -0
  101. package/src/editor/saved-blocks.stories.tsx +105 -0
  102. package/src/editor/saved-parts.ts +192 -0
  103. package/src/editor/schema-rich.ts +156 -150
  104. package/src/editor/schema.ts +368 -315
  105. package/src/editor/services.tsx +205 -127
  106. package/src/editor/slash.ts +64 -64
  107. package/src/editor/suggesting.ts +372 -372
  108. package/src/editor/suggestions.ts +763 -763
  109. package/src/editor/table-keys.ts +66 -66
  110. package/src/editor/templates.stories.tsx +324 -324
  111. package/src/editor/toolbar.tsx +364 -358
  112. package/src/empty-state.stories.tsx +51 -51
  113. package/src/empty-state.tsx +126 -100
  114. package/src/empty-state.usage-notes.md +30 -30
  115. package/src/form.stories.tsx +112 -112
  116. package/src/form.tsx +176 -176
  117. package/src/globals.css +20 -20
  118. package/src/icon-button.tsx +85 -85
  119. package/src/icon-map.ts +335 -244
  120. package/src/icon.tsx +41 -41
  121. package/src/index.ts +92 -67
  122. package/src/input.stories.tsx +157 -157
  123. package/src/input.tsx +768 -759
  124. package/src/kpi-strip.tsx +47 -0
  125. package/src/localized-text.ts +76 -0
  126. package/src/locked-screen.stories.tsx +29 -29
  127. package/src/locked-screen.tsx +75 -61
  128. package/src/lockup.tsx +42 -0
  129. package/src/lottie.tsx +441 -0
  130. package/src/mark.tsx +62 -62
  131. package/src/math-text.stories.tsx +33 -33
  132. package/src/math-text.tsx +43 -43
  133. package/src/menu-bar.stories.tsx +198 -198
  134. package/src/menu-bar.tsx +373 -373
  135. package/src/message-thread.tsx +181 -0
  136. package/src/money/currency.ts +244 -230
  137. package/src/money/money-input.tsx +131 -0
  138. package/src/money/money.tsx +33 -0
  139. package/src/open-on-computer.tsx +150 -0
  140. package/src/otp-input.tsx +161 -0
  141. package/src/page-header.stories.tsx +95 -95
  142. package/src/page-header.tsx +122 -122
  143. package/src/page-shell.stories.tsx +42 -42
  144. package/src/page-shell.tsx +32 -32
  145. package/src/page-states.tsx +277 -0
  146. package/src/pagination.stories.tsx +45 -45
  147. package/src/pagination.tsx +98 -98
  148. package/src/paper-sheet.stories.tsx +88 -0
  149. package/src/paper-sheet.tsx +85 -0
  150. package/src/phone-input.tsx +252 -0
  151. package/src/phone-tab-bar.tsx +152 -0
  152. package/src/plugin-card.stories.tsx +208 -180
  153. package/src/plugin-card.tsx +931 -848
  154. package/src/popover.stories.tsx +48 -48
  155. package/src/popover.tsx +55 -55
  156. package/src/radio-group.stories.tsx +26 -26
  157. package/src/radio-group.tsx +44 -44
  158. package/src/role-summary.stories.tsx +143 -0
  159. package/src/role-summary.tsx +120 -0
  160. package/src/route-flow/editor.tsx +1087 -1014
  161. package/src/route-flow/model.ts +771 -716
  162. package/src/save-bar.tsx +94 -0
  163. package/src/scope-grant.tsx +139 -139
  164. package/src/screen-too-small.stories.tsx +61 -61
  165. package/src/screen-too-small.tsx +104 -104
  166. package/src/search-field.tsx +65 -0
  167. package/src/select.stories.tsx +44 -44
  168. package/src/select.tsx +197 -197
  169. package/src/separator.stories.tsx +34 -34
  170. package/src/separator.tsx +34 -34
  171. package/src/sheet.stories.tsx +49 -49
  172. package/src/sheet.tsx +168 -168
  173. package/src/skeleton.stories.tsx +28 -28
  174. package/src/skeleton.tsx +19 -19
  175. package/src/slider.stories.tsx +78 -78
  176. package/src/slider.tsx +300 -300
  177. package/src/spinner.stories.tsx +33 -33
  178. package/src/spinner.tsx +55 -55
  179. package/src/stepper.tsx +85 -0
  180. package/src/switch.stories.tsx +42 -42
  181. package/src/switch.tsx +41 -41
  182. package/src/switcher.stories.tsx +111 -111
  183. package/src/switcher.tsx +131 -131
  184. package/src/system-state.tsx +55 -0
  185. package/src/table.stories.tsx +48 -48
  186. package/src/table.tsx +121 -121
  187. package/src/tabs.stories.tsx +74 -74
  188. package/src/tabs.tsx +90 -90
  189. package/src/tag-input.stories.tsx +67 -67
  190. package/src/tag-input.tsx +117 -117
  191. package/src/tenant-logo.tsx +63 -63
  192. package/src/tenant-switcher.stories.tsx +38 -38
  193. package/src/tenant-switcher.tsx +185 -164
  194. package/src/textarea.stories.tsx +27 -27
  195. package/src/textarea.tsx +18 -18
  196. package/src/theme-mode.ts +74 -52
  197. package/src/time-grid.tsx +163 -0
  198. package/src/time-picker.stories.tsx +62 -62
  199. package/src/time-picker.tsx +616 -615
  200. package/src/toggle-group.tsx +139 -138
  201. package/src/tooltip.stories.tsx +43 -43
  202. package/src/tooltip.tsx +73 -73
  203. package/src/top-nav.stories.tsx +58 -58
  204. package/src/top-nav.tsx +324 -324
  205. package/src/undo-bar.tsx +107 -107
  206. package/src/utils.ts +45 -45
  207. package/src/view-toggle.stories.tsx +84 -84
  208. package/src/view-toggle.tsx +111 -110
@@ -1,536 +1,636 @@
1
- /*
2
- * The document editor's content styles (docs/design/components/Editor*,
3
- * bundle.css `.wy-blk`). Tokens only, sizes included (--doc-text-*, from the
4
- * `document` group in base.json). The sheet's text is 16px at line height
5
- * 1.5 (Arabic 1.7); headings are Noto Sans 600 at 24, 20 and 18px (E.33);
6
- * bold is 600 (3.6); one highlight colour, the sky series at 40% (E.25).
7
- */
8
-
9
- .wy-doc {
10
- font-family: var(--font-sans);
11
- font-size: var(--doc-text-sheet-body);
12
- line-height: var(--doc-leading-body);
13
- color: var(--foreground);
14
- outline: none;
15
- overflow-wrap: break-word;
16
- }
17
- .wy-doc:lang(ar),
18
- [dir="rtl"] .wy-doc {
19
- font-family: var(--font-arabic);
20
- line-height: var(--doc-leading-body-arabic);
21
- }
22
-
23
- .wy-doc > * {
24
- position: relative;
25
- margin: 0;
26
- padding-block: 3px;
27
- }
28
-
29
- .wy-doc p,
30
- .wy-doc h2,
31
- .wy-doc h3,
32
- .wy-doc h4 {
33
- unicode-bidi: plaintext; /* each block follows its own text's direction */
34
- }
35
-
36
- .wy-doc h2 { padding-top: 24px; font-size: var(--doc-text-sheet-h1); font-weight: 600; line-height: var(--doc-leading-h1); }
37
- .wy-doc h3 { padding-top: 18px; font-size: var(--doc-text-sheet-h2); font-weight: 600; line-height: var(--doc-leading-h2); }
38
- .wy-doc h4 { padding-top: 12px; font-size: var(--doc-text-sheet-h3); font-weight: 600; line-height: var(--doc-leading-h3); }
39
-
40
- .wy-doc blockquote {
41
- border-inline-start: 3px solid var(--foreground);
42
- padding-inline-start: 14px;
43
- margin-block: 3px;
44
- }
45
-
46
- .wy-doc pre {
47
- margin-block: 3px;
48
- padding: 12px 14px;
49
- border-radius: var(--radius-control-lg);
50
- background: var(--muted);
51
- font-family: var(--font-mono);
52
- font-size: 0.8125rem;
53
- line-height: 1.6;
54
- overflow-x: auto;
55
- white-space: pre;
56
- direction: ltr;
57
- }
58
-
59
- /* Flat list items: the marker is a decoration (behaviour.ts `listMarkers`). */
60
- .wy-doc [data-type="list-item"] {
61
- display: flex;
62
- gap: 8px;
63
- padding-inline-start: 4px;
64
- }
65
- .wy-doc [data-type="list-item"]::before {
66
- content: attr(data-marker);
67
- flex: none;
68
- min-width: 18px;
69
- color: var(--muted-foreground);
70
- font-variant-numeric: tabular-nums;
71
- text-align: end;
72
- }
73
- .wy-doc [data-type="list-item"][data-level="1"],
74
- .wy-doc [data-type="check-item"][data-level="1"] { padding-inline-start: 28px; }
75
- .wy-doc [data-type="list-item"][data-level="2"],
76
- .wy-doc [data-type="check-item"][data-level="2"] { padding-inline-start: 52px; }
77
-
78
- .wy-doc [data-type="check-item"] {
79
- display: flex;
80
- gap: 10px;
81
- align-items: flex-start;
82
- }
83
- .wy-doc .wy-check {
84
- flex: none;
85
- width: 16px;
86
- height: 16px;
87
- margin-top: 4px;
88
- padding: 0;
89
- border: 1.5px solid var(--input);
90
- border-radius: 4px;
91
- background: var(--card);
92
- cursor: pointer;
93
- display: grid;
94
- place-items: center;
95
- }
96
- .wy-doc .wy-check:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
97
- .wy-doc [data-checked="true"] > .wy-check {
98
- background: var(--primary);
99
- border-color: var(--primary);
100
- }
101
- .wy-doc [data-checked="true"] > .wy-check::after {
102
- content: "";
103
- width: 8px;
104
- height: 4px;
105
- margin-top: -2px;
106
- border-inline-start: 2px solid var(--primary-foreground);
107
- border-bottom: 2px solid var(--primary-foreground);
108
- rotate: -45deg;
109
- }
110
- .wy-doc [data-checked="true"] > .wy-check-text {
111
- color: var(--muted-foreground);
112
- text-decoration: line-through;
113
- }
114
- .wy-doc .wy-check-text { flex: 1; min-width: 0; }
115
-
116
- .wy-doc hr {
117
- border: 0;
118
- border-top: 1px solid var(--border);
119
- margin: 12px 0;
120
- padding: 0;
121
- }
122
- .wy-doc hr.ProseMirror-selectednode { outline: 2px solid var(--ring); outline-offset: 4px; }
123
-
124
- /* A block a later milestone edits: kept whole, shown as a quiet placeholder. */
125
- .wy-doc [data-type="unknown-block"] {
126
- margin-block: 3px;
127
- padding: 10px 12px;
128
- border: 1px dashed var(--input);
129
- border-radius: var(--radius-control-lg);
130
- color: var(--muted-foreground);
131
- font-size: 0.875rem;
132
- }
133
- .wy-doc [data-type="unknown-block"]::before { content: attr(data-label); }
134
-
135
- /* Inline */
136
- .wy-doc strong { font-weight: 600; }
137
- .wy-doc code {
138
- font-family: var(--font-mono);
139
- font-size: 0.875em;
140
- padding: 1px 4px;
141
- border-radius: 4px;
142
- background: var(--muted);
143
- }
144
- .wy-doc pre code { padding: 0; background: none; font-size: inherit; }
145
- .wy-doc a {
146
- color: var(--primary);
147
- text-decoration: underline;
148
- text-underline-offset: 2px;
149
- cursor: text;
150
- }
151
- .wy-doc mark[data-type="highlight"] {
152
- color: inherit;
153
- background: color-mix(in oklab, var(--chart-3) 40%, transparent);
154
- border-radius: 2px;
155
- }
156
- /* E.26: a merge field, a chip with braces on the tint (EditorInline). */
157
- .wy-mf {
158
- display: inline-block;
159
- padding: 0 5px;
160
- margin: 0 1px;
161
- border-radius: 4px;
162
- background: var(--primary-tint);
163
- color: var(--primary-tint-foreground);
164
- font-size: 0.9em;
165
- font-weight: 500;
166
- line-height: 1.45;
167
- white-space: nowrap;
168
- }
169
- .wy-mf::before { content: "{"; opacity: 0.55; margin-inline-end: 2px; }
170
- .wy-mf::after { content: "}"; opacity: 0.55; margin-inline-start: 2px; }
171
- .wy-mf:hover { outline: 1px solid var(--primary); }
172
- .wy-mf.is-selected, .wy-doc .ProseMirror-selectednode.wy-mf { background: var(--primary); color: var(--primary-foreground); }
173
- /* E.12: in preview, the record's value with a dotted underline. */
174
- .wy-mf.is-preview { background: none; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; margin: 0; border-bottom: 1px dotted var(--primary); border-radius: 0; }
175
- .wy-mf.is-preview:hover { outline: 0; }
176
- /* E.27: no value for this record. */
177
- .wy-mf.is-missing { display: inline-flex; align-items: center; gap: 3px; background: var(--error-tint); color: var(--error-text); }
178
- .wy-mf.is-preview::before, .wy-mf.is-preview::after, .wy-mf.is-missing::before, .wy-mf.is-missing::after { content: none; }
179
-
180
- /* The field picker ({{ or Field ▾). */
181
- .wy-fpick__it .wy-mf { pointer-events: none; }
182
-
183
- /* The focused empty line says what it takes (EditorInsert). */
184
- .wy-doc p.is-empty::before {
185
- content: attr(data-placeholder);
186
- float: inline-start;
187
- height: 0;
188
- pointer-events: none;
189
- color: var(--muted-foreground);
190
- }
191
-
192
- /* A whole block selected from the keyboard (Esc) or the gutter: a 2px focus ring. */
193
- .wy-doc > .ProseMirror-selectednode:not(hr) {
194
- outline: 2px solid var(--ring);
195
- outline-offset: 4px;
196
- border-radius: 4px;
197
- }
198
-
199
- /* Dragging: the block fades in place while its copy follows the pointer. */
200
- .wy-doc > .is-dragging { opacity: 0.4; }
201
-
202
- /* Viewing mode: no caret, no placeholder. */
203
- .wy-doc[contenteditable="false"] p.is-empty::before { content: none; }
204
-
205
- /* ---------------------------------------------------- Rich blocks (M3) */
206
-
207
- .wy-doc .wy-rich { position: relative; margin-block: 3px; }
208
- .wy-doc .wy-rich.is-selected,
209
- .wy-doc .ProseMirror-selectednode > .wy-rich { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
210
-
211
- /* Callout (E.14): Note on the muted grey, Important on the warning tint. */
212
- .wy-doc [data-type="callout"] {
213
- display: flex;
214
- gap: 10px;
215
- padding: 12px 14px;
216
- border-radius: var(--radius-control-lg);
217
- background: var(--muted);
218
- }
219
- .wy-doc [data-type="callout"][data-kind="important"] { background: var(--warning-tint); }
220
- .wy-doc .wy-callout-icon { flex: none; margin-top: 3px; color: var(--muted-foreground); }
221
- .wy-doc [data-kind="important"] .wy-callout-icon { color: var(--warning-text); }
222
- .wy-doc .wy-callout-text { flex: 1; min-width: 0; unicode-bidi: plaintext; }
223
-
224
- /* Toggle: the summary line, and the blocks it hides. */
225
- .wy-doc [data-type="toggle"] { display: flex; gap: 4px; align-items: flex-start; }
226
- .wy-doc .wy-toggle-button {
227
- flex: none; margin-top: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px;
228
- display: grid; place-items: center; background: none; color: var(--muted-foreground); cursor: pointer;
229
- transition: rotate var(--dur-fast) var(--ease-out);
230
- }
231
- .wy-doc .wy-toggle-button:hover { background: var(--muted); }
232
- .wy-doc .wy-toggle-button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
233
- .wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: 90deg; }
234
- [dir="rtl"] .wy-doc [data-type="toggle"] > .wy-toggle-button { scale: -1 1; }
235
- [dir="rtl"] .wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: -90deg; }
236
- .wy-doc .wy-toggle-content { flex: 1; min-width: 0; }
237
- .wy-doc .wy-toggle-content > [data-node-view-content-react] > * + *,
238
- .wy-doc .wy-toggle-content > * + * { padding-inline-start: 0; }
239
- .wy-doc [data-type="toggle-summary"] { unicode-bidi: plaintext; padding-block: 0; }
240
- .wy-doc [data-type="toggle"][data-open="false"] [data-type="toggle-summary"] ~ * { display: none; }
241
-
242
- /* Columns (2). */
243
- .wy-doc [data-type="columns"] { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
244
- .wy-doc [data-type="column"] { min-width: 0; min-height: 1.5em; }
245
- @media (max-width: 640px) { .wy-doc [data-type="columns"] { grid-template-columns: 1fr; gap: 12px; } }
246
-
247
- /* Table (E.15): a document table, hairlines, numbers end-aligned. */
248
- .wy-doc table[data-type="table"] { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-block: 3px; }
249
- .wy-doc table[data-type="table"] td { border: 1px solid var(--border); padding: 6px 10px; vertical-align: top; text-align: start; unicode-bidi: plaintext; }
250
- .wy-doc table[data-type="table"] td[data-align="end"] { text-align: end; font-variant-numeric: tabular-nums; }
251
- .wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: var(--muted); font-weight: 500; }
252
- .wy-doc table[data-type="table"] .selectedCell { background: var(--primary-tint); }
253
-
254
- /* Page break: a dashed line that prints as a new page. */
255
- .wy-doc .wy-pagebreak { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 0.75rem; margin: 10px 0; }
256
- .wy-doc .wy-pagebreak::before, .wy-doc .wy-pagebreak::after { content: ""; flex: 1; border-top: 1px dashed var(--input); }
257
-
258
- /* Image: half, wide or full width, with a caption. */
259
- .wy-doc .wy-figure { margin: 0; display: grid; gap: 6px; }
260
- .wy-doc .wy-figure img { display: block; width: 100%; border-radius: var(--radius-control-lg); border: 1px solid var(--border); }
261
- .wy-doc [data-type="image"][data-width="half"] .wy-figure { width: 50%; }
262
- .wy-doc [data-type="image"][data-width="wide"] .wy-figure { margin-inline: -48px; }
263
- .wy-doc .wy-figure figcaption { font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }
264
-
265
- /* File, record and chart sit on a bordered card. */
266
- .wy-doc .wy-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control-lg); font-size: 0.875rem; }
267
- .wy-doc .wy-file-meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
268
- .wy-doc .wy-file-download { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-control-sm); color: var(--foreground); }
269
- .wy-doc .wy-file-download:hover { background: var(--muted); }
270
- .wy-doc .wy-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--muted); color: var(--muted-foreground); flex: none; }
271
- .wy-doc .wy-tile.is-tint { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-tint); color: var(--primary-tint-foreground); }
272
- .wy-doc .wy-embed { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); font-size: 0.875rem; }
273
- .wy-doc .wy-embed-head { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted-foreground); }
274
- .wy-doc .wy-embed-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
275
- .wy-doc .wy-embed-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
276
-
277
- /* Signature and stamp (stage 6). */
278
- /* Signers and the date share one row, the stamp at its end (EditorBlocks card); narrow sheets wrap. */
279
- .wy-doc .wy-sign { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-top: 28px; font-size: 0.8125rem; color: var(--muted-foreground); }
280
- .wy-doc .wy-sign-line { flex: 1 1 0; min-width: 120px; border-top: 1px solid var(--foreground); padding-top: 6px; display: grid; gap: 2px; }
281
- .wy-doc .wy-sign-line b { color: var(--foreground); font-weight: 500; }
282
- .wy-doc .wy-sign-stamp { flex: none; width: 84px; height: 84px; border: 1.5px dashed var(--input); border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 0.6875rem; }
283
-
284
- /* The chart block header and its table view (BarChart card: "Show as table" gives every value). */
285
- .wy-doc .wy-chart-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
286
- .wy-doc .wy-chart-title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
287
- .wy-doc .wy-chart-sub { font-size: 0.75rem; color: var(--muted-foreground); }
288
- .wy-doc .wy-chart-toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px; border-radius: 4px; font: inherit; font-size: 0.75rem; color: var(--muted-foreground); cursor: pointer; }
289
- .wy-doc .wy-chart-toggle:hover { color: var(--foreground); background: var(--muted); }
290
- .wy-doc .wy-chart-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
291
- .wy-doc .wy-chart-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
292
- .wy-doc .wy-chart-table th { text-align: start; font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); padding: 4px 6px; }
293
- .wy-doc .wy-chart-table td { border-bottom: 1px solid var(--border); padding: 4px 6px; }
294
- .wy-doc .wy-chart-table td:last-child, .wy-doc .wy-chart-table th:last-child { text-align: end; font-variant-numeric: tabular-nums; }
295
-
296
- /* Barcode, QR code and maths (E.40–E.42). Codes stay ink on white in both themes so they scan (mark-sheet is white in both). */
297
- .wy-doc .wy-code { margin: 0; display: grid; gap: 6px; justify-items: start; }
298
- .wy-doc .wy-code-art { background: var(--mark-sheet); padding: 6px; border-radius: 4px; }
299
- .wy-doc .wy-code.is-bar .wy-code-art { width: 220px; }
300
- .wy-doc .wy-code.is-qr .wy-code-art { width: 120px; }
301
- .wy-doc .wy-code figcaption { font-size: 0.75rem; color: var(--muted-foreground); }
302
- .wy-doc .wy-math-block { overflow-x: auto; padding-block: 4px; }
303
- .wy-doc .wy-math { font-family: var(--font-mono); font-size: 0.875em; }
304
-
305
- /* Empty and unavailable states. */
306
- .wy-doc .wy-placeholder { padding: 10px 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.875rem; }
307
- .wy-doc .wy-placeholder.is-field { border-style: dotted; border-color: var(--primary); color: var(--primary-tint-foreground); background: var(--primary-tint); }
308
- .wy-doc .wy-skeleton { height: 40px; border-radius: var(--radius-control); background: var(--muted); }
309
- .wy-doc .wy-skeleton.is-tall { height: 170px; }
310
- @media (prefers-reduced-motion: no-preference) {
311
- .wy-doc .wy-skeleton { animation: wy-pulse 1.2s ease-in-out infinite; }
312
- }
313
- @keyframes wy-pulse { 50% { opacity: 0.55; } }
314
-
315
- /* ------------------------------------------------------------------
316
- * The page view (E.7, EditorPageView): A4 at 96 dpi, 16mm margins. The
317
- * stack carries `.light`, so the pages stay white like paper in dark mode
318
- * (E.11) while the ground around them follows the theme.
319
- * ------------------------------------------------------------------ */
320
- .wy-pv { width: 794px; margin-inline: auto; }
321
- .wy-pv__stack { position: relative; width: 794px; color: var(--foreground); --primary: var(--doc-accent, var(--brand)); }
322
- .wy-pv__page {
323
- position: absolute;
324
- inset-inline: 0;
325
- height: 1123px;
326
- background: var(--card);
327
- box-shadow: 0 0 0 1px var(--border), 0 1px 3px color-mix(in oklab, var(--foreground) 6%, transparent);
328
- }
329
- .wy-pv__margin { position: absolute; inset: 60px; border: 1px dashed transparent; pointer-events: none; }
330
- .wy-pv__page.show-margins .wy-pv__margin { border-color: color-mix(in oklab, var(--ring) 35%, transparent); }
331
- .wy-pv__run {
332
- position: absolute;
333
- top: 60px;
334
- inset-inline: 60px;
335
- display: flex;
336
- align-items: center;
337
- justify-content: space-between;
338
- padding-bottom: 10px;
339
- border-bottom: 1px solid var(--border);
340
- font-size: 11px;
341
- color: var(--muted-foreground);
342
- }
343
- .wy-pv__foot {
344
- position: absolute;
345
- inset-inline: 60px;
346
- bottom: 28px;
347
- display: flex;
348
- justify-content: space-between;
349
- font-family: var(--font-mono);
350
- font-size: 11px;
351
- color: var(--muted-foreground);
352
- }
353
- .wy-pv__column { position: relative; padding: 60px; min-height: 1123px; box-sizing: border-box; }
354
- .wy-pv__lh {
355
- display: flex;
356
- justify-content: space-between;
357
- gap: 24px;
358
- padding-bottom: 14px;
359
- margin-bottom: 18px;
360
- border-bottom: 1px solid var(--border);
361
- font-size: var(--doc-text-print-label);
362
- color: var(--muted-foreground);
363
- }
364
- .wy-pv__lh b { color: var(--foreground); font-weight: 600; }
365
- .wy-pv__lhend { text-align: end; display: grid; gap: 2px; align-content: start; }
366
- /* The document title: Readex Pro 600 in the tenant's print colour. */
367
- .wy-pv__title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--doc-text-print-title); line-height: var(--doc-leading-title); color: var(--doc-accent, var(--brand)); }
368
- /* E.45: a theme with accentUse `title-and-headings` gives H1-H3 the print colour too. */
369
- .wy-pv__stack[data-accent-use="title-and-headings"] .wy-doc :is(h2, h3, h4) { color: var(--doc-accent, var(--brand)); }
370
- /* Stage 6 (6.5) and E.33 on paper; at 96 dpi a pt is the same size on screen. */
371
- .wy-pv .wy-doc { font-size: var(--doc-text-print-body); }
372
- .wy-pv .wy-doc h2 { font-size: var(--doc-text-print-h1); padding-top: 14px; }
373
- .wy-pv .wy-doc h3 { font-size: var(--doc-text-print-h2); padding-top: 10px; }
374
- .wy-pv .wy-doc h4 { font-size: var(--doc-text-print-h3); padding-top: 8px; }
375
- .wy-pv .wy-doc table[data-type="table"] { font-size: var(--doc-text-print-label); }
376
- .wy-pv .wy-doc table[data-type="table"] td { border: 0; border-bottom: 1px solid var(--border); }
377
- /* On paper the header row is a rule under muted labels, not a filled row. */
378
- .wy-pv .wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: none; border-bottom: 1.5px solid var(--foreground); color: var(--muted-foreground); }
379
- /* A page break's own line is hidden: the next page shows where it falls. */
380
- .wy-pv .wy-doc .wy-pagebreak { visibility: hidden; height: 0; margin: 0; }
381
- .wy-pv__gap { pointer-events: none; }
382
-
383
- /* Label sheets (E.43): one sheet of identical labels. The first is the one
384
- you edit; the others repeat it. A label's outline is dashed, as on the
385
- stock's backing sheet; content past it is cut off on paper. */
386
- .wy-ls__label {
387
- position: absolute;
388
- box-sizing: border-box;
389
- overflow: hidden;
390
- border-radius: 4px;
391
- outline: 1px dashed color-mix(in oklab, var(--border) 100%, var(--foreground) 15%);
392
- outline-offset: -1px;
393
- }
394
- .wy-ls__label.is-first { outline: 1px solid var(--ring); overflow: visible; z-index: 1; }
395
- .wy-ls__label.is-first .ProseMirror { min-height: 100%; }
396
- /* What runs past the label stays readable above its neighbours while it's edited. */
397
- .wy-ls__label.is-over { outline-color: var(--error); }
398
- .wy-ls__label.is-over .ProseMirror { background: var(--card); box-shadow: 0 0 0 1px var(--error); border-radius: 4px; }
399
- .wy-ls__label:not(.is-first) { color: var(--muted-foreground); }
400
- .wy-ls__label .wy-doc > * { margin-block: 0 2px; }
401
- .wy-ls__over {
402
- position: absolute;
403
- inset-inline-end: 4px;
404
- inset-block-end: 4px;
405
- display: inline-flex;
406
- align-items: center;
407
- gap: 4px;
408
- padding: 1px 6px;
409
- border-radius: 4px;
410
- background: var(--error-tint);
411
- color: var(--error-text);
412
- font-size: 11px;
413
- }
414
-
415
- /* Preview with a record (E.12): the bar above the pages. */
416
- .wy-previewbar {
417
- display: flex;
418
- align-items: center;
419
- gap: 6px;
420
- width: fit-content;
421
- margin: 0 auto 16px;
422
- padding: 4px 4px 4px 12px;
423
- border: 1px solid var(--border);
424
- border-radius: 999px;
425
- background: var(--card);
426
- font-size: 0.8125rem;
427
- color: var(--muted-foreground);
428
- }
429
- .wy-previewbar b { color: var(--foreground); font-weight: 500; }
430
-
431
- /* ------------------------------------------------------------------
432
- * The continuous sheet's title (E.11): the text colour in light mode; in
433
- * dark mode the theme's `accentOnDark`, which never prints.
434
- * ------------------------------------------------------------------ */
435
- .wy-sheet__title { color: var(--foreground); }
436
- .dark .wy-sheet__title { color: var(--doc-accent-on-dark, var(--foreground)); }
437
-
438
- /*
439
- * Comments and suggestions (editor M5, EditorCollab, E.4, E.6, E.10, E.39).
440
- * Suggested text is dashed because it hasn't happened yet (4.3): an insertion
441
- * in the main colour with a dashed underline; a deletion struck through in the
442
- * error colour, dashed, still visible. The comment highlight is the warning
443
- * tint with a warning underline, a decoration on screen only, never printed,
444
- * and not the highlight colour (E.25).
445
- */
446
- .wy-doc ins[data-suggestion],
447
- .wy-sug-ins {
448
- color: var(--primary-tint-foreground);
449
- text-decoration: underline dashed var(--primary);
450
- text-decoration-thickness: 1.5px;
451
- text-underline-offset: 3px;
452
- }
453
- .wy-doc del[data-suggestion],
454
- .wy-sug-del {
455
- color: var(--muted-foreground);
456
- text-decoration: line-through dashed var(--error-text);
457
- text-decoration-thickness: 1.5px;
458
- }
459
- .wy-sug-fmt {
460
- text-decoration: underline dashed var(--primary);
461
- text-decoration-thickness: 1.5px;
462
- text-underline-offset: 3px;
463
- }
464
- /* Suggested blocks: inserted ones dashed at the start edge, deleted ones struck. */
465
- .wy-doc .wy-sug-block.is-insert {
466
- border-inline-start: 2px dashed var(--primary);
467
- padding-inline-start: 10px;
468
- color: var(--primary-tint-foreground);
469
- }
470
- .wy-doc .wy-sug-block.is-delete {
471
- border-inline-start: 2px dashed var(--error-text);
472
- padding-inline-start: 10px;
473
- color: var(--muted-foreground);
474
- text-decoration: line-through dashed var(--error-text);
475
- }
476
- .wy-doc .wy-sug-block.is-move { border-inline-start: 2px dashed var(--input); padding-inline-start: 10px; }
477
- .wy-doc ins[data-suggestion].is-active,
478
- .wy-doc .wy-sug-block.is-active { background: var(--primary-tint); }
479
-
480
- .wy-cmt { background: var(--warning-tint); color: inherit; border-bottom: 2px solid var(--warning); padding-block: 1px; }
481
- .wy-cmt.is-active { background: color-mix(in oklab, var(--warning) 45%, var(--card)); }
482
-
483
- @media print {
484
- /* E.39: comments never print. Suggestions aren't in what prints either; this is the screen's print only. */
485
- .wy-cmt { background: none; border-bottom: 0; padding: 0; }
486
- .wy-edx__rail { display: none; }
487
- }
488
-
489
- /* The rail and its cards (E.6). */
490
- .wy-edx__rail { position: relative; padding-block: 32px; padding-inline: 0 16px; min-width: 0; }
491
- .wy-edx__railhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 0.75rem; color: var(--muted-foreground); }
492
- .wy-edx__railnote { margin: 0; padding: 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.8125rem; line-height: 1.45; }
493
- .wy-rc {
494
- --wy-lift: -8px;
495
- position: absolute;
496
- inset-inline: 0 16px;
497
- display: grid;
498
- gap: 8px;
499
- padding: 12px;
500
- background: var(--card);
501
- border: 1px solid var(--border);
502
- border-radius: var(--radius-control-lg);
503
- font-size: 0.8125rem;
504
- line-height: 1.45;
505
- box-sizing: border-box;
506
- transition: top 150ms ease, translate 150ms ease;
507
- }
508
- [dir="rtl"] .wy-rc { --wy-lift: 8px; }
509
- .wy-rc.is-active { box-shadow: var(--shadow-float); border-color: var(--input); translate: var(--wy-lift) 0; z-index: 1; }
510
- .wy-rc.is-agent, .wy-rc.is-pending { border-style: dashed; border-color: var(--input); }
511
- .wy-rc--static { position: relative; inset: auto; }
512
- .wy-rc--static.is-active { translate: none; }
513
- .wy-rc__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
514
- .wy-drawerlist .wy-rc__who { flex-wrap: wrap; }
515
- .wy-rc__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
516
- .wy-rc__time { color: var(--muted-foreground); font-size: 0.75rem; white-space: nowrap; }
517
- .wy-rc__acts { margin-inline-start: auto; display: flex; gap: 2px; }
518
- .wy-rc__what { color: var(--muted-foreground); overflow-wrap: anywhere; }
519
- .wy-rc__what b { color: var(--foreground); font-weight: 500; }
520
- .wy-rc__reply { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--input); border-radius: var(--radius-control-sm); background: none; color: var(--muted-foreground); font: inherit; cursor: text; }
521
- .wy-rc__box { border: 1px solid var(--input); border-radius: var(--radius-control); padding: 8px 10px; min-height: 56px; color: var(--foreground); font: inherit; font-size: 0.8125rem; box-sizing: border-box; width: 100%; }
522
- .wy-mention { color: var(--primary-tint-foreground); background: var(--primary-tint); border-radius: 4px; padding: 0 3px; font-weight: 500; }
523
- .wy-rc__foot { display: flex; justify-content: flex-end; gap: 6px; }
524
- .wy-rc__replies { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
525
- .wy-rc__q { color: var(--muted-foreground); border-inline-start: 2px solid var(--warning); padding-inline-start: 8px; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
526
- .wy-rc.is-resolved { opacity: .7; }
527
- .wy-rc__resolved { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--success-text); }
528
- .wy-drawerlist { display: grid; gap: 10px; }
529
- .wy-mentionpop { padding: 4px; }
530
-
531
- /* The mode menu (E.10). */
532
- .wy-modemenu__it { display: flex; gap: 10px; align-items: flex-start; }
533
- .wy-modemenu__it .wy-modemenu__t { display: grid; gap: 1px; flex: 1; }
534
- .wy-modemenu__it .wy-modemenu__t span { font-size: 0.75rem; color: var(--muted-foreground); }
535
- .wy-modemenu__it.is-on { background: var(--primary-tint); color: var(--primary-tint-foreground); }
536
- .wy-modemenu__it.is-on .wy-modemenu__t span { color: inherit; opacity: .8; }
1
+ /*
2
+ * The document editor's content styles (docs/design/components/Editor*,
3
+ * bundle.css `.wy-blk`). Tokens only, sizes included (--doc-text-*, from the
4
+ * `document` group in base.json). The sheet's text is 16px at line height
5
+ * 1.5 (Arabic 1.7); headings are Noto Sans 600 at 24, 20 and 18px (E.33);
6
+ * bold is 600 (3.6); one highlight colour, the sky series at 40% (E.25).
7
+ */
8
+
9
+ .wy-doc {
10
+ font-family: var(--font-sans);
11
+ font-size: var(--doc-text-sheet-body);
12
+ line-height: var(--doc-leading-body);
13
+ color: var(--foreground);
14
+ outline: none;
15
+ overflow-wrap: break-word;
16
+ }
17
+ .wy-doc:lang(ar),
18
+ [dir="rtl"] .wy-doc {
19
+ font-family: var(--font-arabic);
20
+ line-height: var(--doc-leading-body-arabic);
21
+ }
22
+
23
+ .wy-doc > * {
24
+ position: relative;
25
+ margin: 0;
26
+ padding-block: 3px;
27
+ }
28
+
29
+ .wy-doc p,
30
+ .wy-doc h2,
31
+ .wy-doc h3,
32
+ .wy-doc h4 {
33
+ unicode-bidi: plaintext; /* each block follows its own text's direction */
34
+ }
35
+
36
+ .wy-doc h2 { padding-top: 24px; font-size: var(--doc-text-sheet-h1); font-weight: 600; line-height: var(--doc-leading-h1); }
37
+ .wy-doc h3 { padding-top: 18px; font-size: var(--doc-text-sheet-h2); font-weight: 600; line-height: var(--doc-leading-h2); }
38
+ .wy-doc h4 { padding-top: 12px; font-size: var(--doc-text-sheet-h3); font-weight: 600; line-height: var(--doc-leading-h3); }
39
+
40
+ .wy-doc blockquote {
41
+ border-inline-start: 3px solid var(--foreground);
42
+ padding-inline-start: 14px;
43
+ margin-block: 3px;
44
+ }
45
+
46
+ .wy-doc pre {
47
+ margin-block: 3px;
48
+ padding: 12px 14px;
49
+ border-radius: var(--radius-control-lg);
50
+ background: var(--muted);
51
+ font-family: var(--font-mono);
52
+ font-size: 0.8125rem;
53
+ line-height: 1.6;
54
+ overflow-x: auto;
55
+ white-space: pre;
56
+ direction: ltr;
57
+ }
58
+
59
+ /* Flat list items: the marker is a decoration (behaviour.ts `listMarkers`). */
60
+ .wy-doc [data-type="list-item"] {
61
+ display: flex;
62
+ gap: 8px;
63
+ padding-inline-start: 4px;
64
+ }
65
+ .wy-doc [data-type="list-item"]::before {
66
+ content: attr(data-marker);
67
+ flex: none;
68
+ min-width: 18px;
69
+ color: var(--muted-foreground);
70
+ font-variant-numeric: tabular-nums;
71
+ text-align: end;
72
+ }
73
+ .wy-doc [data-type="list-item"][data-level="1"],
74
+ .wy-doc [data-type="check-item"][data-level="1"] { padding-inline-start: 28px; }
75
+ .wy-doc [data-type="list-item"][data-level="2"],
76
+ .wy-doc [data-type="check-item"][data-level="2"] { padding-inline-start: 52px; }
77
+
78
+ .wy-doc [data-type="check-item"] {
79
+ display: flex;
80
+ gap: 10px;
81
+ align-items: flex-start;
82
+ }
83
+ .wy-doc .wy-check {
84
+ flex: none;
85
+ width: 16px;
86
+ height: 16px;
87
+ margin-top: 4px;
88
+ padding: 0;
89
+ border: 1.5px solid var(--input);
90
+ border-radius: 4px;
91
+ background: var(--card);
92
+ cursor: pointer;
93
+ display: grid;
94
+ place-items: center;
95
+ }
96
+ .wy-doc .wy-check:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
97
+ .wy-doc [data-checked="true"] > .wy-check {
98
+ background: var(--primary);
99
+ border-color: var(--primary);
100
+ }
101
+ .wy-doc [data-checked="true"] > .wy-check::after {
102
+ content: "";
103
+ width: 8px;
104
+ height: 4px;
105
+ margin-top: -2px;
106
+ border-inline-start: 2px solid var(--primary-foreground);
107
+ border-bottom: 2px solid var(--primary-foreground);
108
+ rotate: -45deg;
109
+ }
110
+ .wy-doc [data-checked="true"] > .wy-check-text {
111
+ color: var(--muted-foreground);
112
+ text-decoration: line-through;
113
+ }
114
+ .wy-doc .wy-check-text { flex: 1; min-width: 0; }
115
+
116
+ .wy-doc hr {
117
+ border: 0;
118
+ border-top: 1px solid var(--border);
119
+ margin: 12px 0;
120
+ padding: 0;
121
+ }
122
+ .wy-doc hr.ProseMirror-selectednode { outline: 2px solid var(--ring); outline-offset: 4px; }
123
+
124
+ /* A block a later milestone edits: kept whole, shown as a quiet placeholder. */
125
+ .wy-doc [data-type="unknown-block"] {
126
+ margin-block: 3px;
127
+ padding: 10px 12px;
128
+ border: 1px dashed var(--input);
129
+ border-radius: var(--radius-control-lg);
130
+ color: var(--muted-foreground);
131
+ font-size: 0.875rem;
132
+ }
133
+ .wy-doc [data-type="unknown-block"]::before { content: attr(data-label); }
134
+
135
+ /* Inline */
136
+ .wy-doc strong { font-weight: 600; }
137
+ .wy-doc code {
138
+ font-family: var(--font-mono);
139
+ font-size: 0.875em;
140
+ padding: 1px 4px;
141
+ border-radius: 4px;
142
+ background: var(--muted);
143
+ }
144
+ .wy-doc pre code { padding: 0; background: none; font-size: inherit; }
145
+ .wy-doc a {
146
+ color: var(--primary);
147
+ text-decoration: underline;
148
+ text-underline-offset: 2px;
149
+ cursor: text;
150
+ }
151
+ .wy-doc mark[data-type="highlight"] {
152
+ color: inherit;
153
+ background: color-mix(in oklab, var(--chart-3) 40%, transparent);
154
+ border-radius: 2px;
155
+ }
156
+ /* E.26: a merge field, a chip with braces on the tint (EditorInline). */
157
+ .wy-mf {
158
+ display: inline-block;
159
+ padding: 0 5px;
160
+ margin: 0 1px;
161
+ border-radius: 4px;
162
+ background: var(--primary-tint);
163
+ color: var(--primary-tint-foreground);
164
+ font-size: 0.9em;
165
+ font-weight: 500;
166
+ line-height: 1.45;
167
+ white-space: nowrap;
168
+ }
169
+ .wy-mf::before { content: "{"; opacity: 0.55; margin-inline-end: 2px; }
170
+ .wy-mf::after { content: "}"; opacity: 0.55; margin-inline-start: 2px; }
171
+ .wy-mf:hover { outline: 1px solid var(--primary); }
172
+ .wy-mf.is-selected, .wy-doc .ProseMirror-selectednode.wy-mf { background: var(--primary); color: var(--primary-foreground); }
173
+ /* E.12: in preview, the record's value with a dotted underline. */
174
+ .wy-mf.is-preview { background: none; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; margin: 0; border-bottom: 1px dotted var(--primary); border-radius: 0; }
175
+ .wy-mf.is-preview:hover { outline: 0; }
176
+ /* E.27: no value for this record. */
177
+ .wy-mf.is-missing { display: inline-flex; align-items: center; gap: 3px; background: var(--error-tint); color: var(--error-text); }
178
+ .wy-mf.is-preview::before, .wy-mf.is-preview::after, .wy-mf.is-missing::before, .wy-mf.is-missing::after { content: none; }
179
+
180
+ /* The field picker ({{ or Field ▾). */
181
+ .wy-fpick__it .wy-mf { pointer-events: none; }
182
+
183
+ /* The focused empty line says what it takes (EditorInsert). */
184
+ .wy-doc p.is-empty::before {
185
+ content: attr(data-placeholder);
186
+ float: inline-start;
187
+ height: 0;
188
+ pointer-events: none;
189
+ color: var(--muted-foreground);
190
+ }
191
+
192
+ /* A whole block selected from the keyboard (Esc) or the gutter: a 2px focus ring. */
193
+ .wy-doc > .ProseMirror-selectednode:not(hr) {
194
+ outline: 2px solid var(--ring);
195
+ outline-offset: 4px;
196
+ border-radius: 4px;
197
+ }
198
+
199
+ /* Dragging: the block fades in place while its copy follows the pointer. */
200
+ .wy-doc > .is-dragging { opacity: 0.4; }
201
+
202
+ /* Viewing mode: no caret, no placeholder. */
203
+ .wy-doc[contenteditable="false"] p.is-empty::before { content: none; }
204
+
205
+ /* ---------------------------------------------------- Rich blocks (M3) */
206
+
207
+ .wy-doc .wy-rich { position: relative; margin-block: 3px; }
208
+ .wy-doc .wy-rich.is-selected,
209
+ .wy-doc .ProseMirror-selectednode > .wy-rich { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
210
+
211
+ /* Callout (E.14): Note on the muted grey, Important on the warning tint. */
212
+ .wy-doc [data-type="callout"] {
213
+ display: flex;
214
+ gap: 10px;
215
+ padding: 12px 14px;
216
+ border-radius: var(--radius-control-lg);
217
+ background: var(--muted);
218
+ }
219
+ .wy-doc [data-type="callout"][data-kind="important"] { background: var(--warning-tint); }
220
+ .wy-doc .wy-callout-icon { flex: none; margin-top: 3px; color: var(--muted-foreground); }
221
+ .wy-doc [data-kind="important"] .wy-callout-icon { color: var(--warning-text); }
222
+ .wy-doc .wy-callout-text { flex: 1; min-width: 0; unicode-bidi: plaintext; }
223
+
224
+ /* A synced saved block (E.21, EditorCustomBlocks): a light outline in the main
225
+ colour, its source label above it when selected or hovered. */
226
+ .wy-doc .wy-saved { outline: 1.5px solid color-mix(in oklab, var(--primary) 55%, transparent); outline-offset: 6px; border-radius: 4px; margin-block: 8px; }
227
+ /* Selected, the block's ring is the one every selected block has. */
228
+ .wy-doc .wy-saved.is-selected,
229
+ .wy-doc .ProseMirror-selectednode > .wy-saved { outline: none; }
230
+ .wy-doc .wy-saved-body > * { margin: 0; padding-block: 3px; }
231
+ .wy-doc .wy-saved-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-control-lg); background: var(--muted); }
232
+ .wy-doc .wy-saved-callout p { flex: 1; min-width: 0; margin: 0; unicode-bidi: plaintext; }
233
+ .wy-doc .wy-saved-callout[data-kind="important"] { background: var(--warning-tint); }
234
+ .wy-doc .wy-saved-src {
235
+ position: absolute;
236
+ bottom: calc(100% + 6px);
237
+ inset-inline-start: 0;
238
+ z-index: 3;
239
+ display: none;
240
+ align-items: center;
241
+ gap: 6px;
242
+ min-height: 24px;
243
+ padding: 0 8px 0 4px;
244
+ border: 1px solid var(--border);
245
+ border-radius: 6px;
246
+ background: var(--popover);
247
+ box-shadow: var(--shadow-float);
248
+ color: var(--muted-foreground);
249
+ font-size: 0.8125rem;
250
+ line-height: 1.4;
251
+ white-space: nowrap;
252
+ }
253
+ .wy-doc .wy-saved.is-selected .wy-saved-src,
254
+ .wy-doc .ProseMirror-selectednode > .wy-saved .wy-saved-src,
255
+ .wy-doc .wy-saved:hover .wy-saved-src,
256
+ .wy-doc .wy-saved:focus-within .wy-saved-src { display: inline-flex; }
257
+ .wy-doc .wy-saved-src b { color: var(--foreground); font-weight: 500; }
258
+ .wy-doc .wy-saved-sep { width: 1px; height: 16px; margin: 0 2px; background: var(--border); }
259
+ .wy-doc .wy-saved-action { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
260
+ .wy-doc .wy-saved-action:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
261
+
262
+ /* E.17: a plugin's block, drawn by Whity; its source label is the saved block's (`.wy-saved-src`). */
263
+ .wy-doc .wy-plugin:hover .wy-saved-src,
264
+ .wy-doc .wy-plugin:focus-within .wy-saved-src,
265
+ .wy-doc .wy-plugin.is-selected .wy-saved-src,
266
+ .wy-doc .ProseMirror-selectednode > .wy-plugin .wy-saved-src { display: inline-flex; }
267
+ .wy-doc .wy-plugin { margin-block: 8px; }
268
+ /* Selected, the ring is the one every selected block has. */
269
+ .wy-doc .wy-plugin.is-selected,
270
+ .wy-doc .ProseMirror-selectednode > .wy-plugin { outline: none; }
271
+ .wy-doc .wy-plugin-body { font-size: 0.9375rem; }
272
+ .wy-doc .wy-plugin-tile {
273
+ display: grid;
274
+ place-items: center;
275
+ width: 16px;
276
+ height: 16px;
277
+ border-radius: 4px;
278
+ background: var(--primary-tint);
279
+ color: var(--primary-tint-foreground);
280
+ font-size: 0.75rem;
281
+ font-weight: 600;
282
+ }
283
+ .wy-doc .wy-plugin-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--success-text); }
284
+ /* E.19: a block whose plugin is off; its data is kept. */
285
+ .wy-doc .wy-plugin-off {
286
+ display: flex;
287
+ align-items: center;
288
+ gap: 12px;
289
+ padding: 12px 14px;
290
+ border: 1px solid var(--border);
291
+ border-radius: var(--radius-card);
292
+ background: var(--muted);
293
+ }
294
+
295
+ /* E.23: a part filled per document. In the original, marked text; in a
296
+ document, the field it fills (EditorCustomBlocks `.wy-fill`). */
297
+ .wy-doc [data-per-document],
298
+ .wy-doc .wy-part {
299
+ outline: 1px dotted var(--input);
300
+ outline-offset: 2px;
301
+ border-radius: 3px;
302
+ background: var(--muted);
303
+ padding: 0 3px;
304
+ }
305
+ .wy-doc input.wy-part {
306
+ border: 0;
307
+ color: inherit;
308
+ font: inherit;
309
+ max-width: 100%;
310
+ }
311
+ .wy-doc input.wy-part::placeholder { color: var(--muted-foreground); }
312
+ .wy-doc input.wy-part:focus-visible { outline: 2px solid var(--ring); }
313
+
314
+ /* Toggle: the summary line, and the blocks it hides. */
315
+ .wy-doc [data-type="toggle"] { display: flex; gap: 4px; align-items: flex-start; }
316
+ .wy-doc .wy-toggle-button {
317
+ flex: none; margin-top: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px;
318
+ display: grid; place-items: center; background: none; color: var(--muted-foreground); cursor: pointer;
319
+ transition: rotate var(--dur-fast) var(--ease-out);
320
+ }
321
+ .wy-doc .wy-toggle-button:hover { background: var(--muted); }
322
+ .wy-doc .wy-toggle-button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
323
+ .wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: 90deg; }
324
+ [dir="rtl"] .wy-doc [data-type="toggle"] > .wy-toggle-button { scale: -1 1; }
325
+ [dir="rtl"] .wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: -90deg; }
326
+ .wy-doc .wy-toggle-content { flex: 1; min-width: 0; }
327
+ .wy-doc .wy-toggle-content > [data-node-view-content-react] > * + *,
328
+ .wy-doc .wy-toggle-content > * + * { padding-inline-start: 0; }
329
+ .wy-doc [data-type="toggle-summary"] { unicode-bidi: plaintext; padding-block: 0; }
330
+ .wy-doc [data-type="toggle"][data-open="false"] [data-type="toggle-summary"] ~ * { display: none; }
331
+
332
+ /* Columns (2). */
333
+ .wy-doc [data-type="columns"] { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
334
+ .wy-doc [data-type="column"] { min-width: 0; min-height: 1.5em; }
335
+ @media (max-width: 640px) { .wy-doc [data-type="columns"] { grid-template-columns: 1fr; gap: 12px; } }
336
+
337
+ /* Table (E.15): a document table, hairlines, numbers end-aligned. */
338
+ .wy-doc table[data-type="table"] { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-block: 3px; }
339
+ .wy-doc table[data-type="table"] td { border: 1px solid var(--border); padding: 6px 10px; vertical-align: top; text-align: start; unicode-bidi: plaintext; }
340
+ /* E.15: end-aligned columns, named on the table (node-views.tsx TableWithAlign); up to 12 columns. */
341
+ .wy-doc table[data-end-columns~="1"] tr > td:nth-child(1), .wy-doc table[data-end-columns~="2"] tr > td:nth-child(2), .wy-doc table[data-end-columns~="3"] tr > td:nth-child(3), .wy-doc table[data-end-columns~="4"] tr > td:nth-child(4), .wy-doc table[data-end-columns~="5"] tr > td:nth-child(5), .wy-doc table[data-end-columns~="6"] tr > td:nth-child(6), .wy-doc table[data-end-columns~="7"] tr > td:nth-child(7), .wy-doc table[data-end-columns~="8"] tr > td:nth-child(8), .wy-doc table[data-end-columns~="9"] tr > td:nth-child(9), .wy-doc table[data-end-columns~="10"] tr > td:nth-child(10), .wy-doc table[data-end-columns~="11"] tr > td:nth-child(11), .wy-doc table[data-end-columns~="12"] tr > td:nth-child(12) { text-align: end; font-variant-numeric: tabular-nums; }
342
+ .wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: var(--muted); font-weight: 500; }
343
+ .wy-doc table[data-type="table"] .selectedCell { background: var(--primary-tint); }
344
+
345
+ /* Page break: a dashed line that prints as a new page. */
346
+ .wy-doc .wy-pagebreak { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 0.75rem; margin: 10px 0; }
347
+ .wy-doc .wy-pagebreak::before, .wy-doc .wy-pagebreak::after { content: ""; flex: 1; border-top: 1px dashed var(--input); }
348
+
349
+ /* Image: half, wide or full width, with a caption. */
350
+ .wy-doc .wy-figure { margin: 0; display: grid; gap: 6px; }
351
+ .wy-doc .wy-figure img { display: block; width: 100%; border-radius: var(--radius-control-lg); border: 1px solid var(--border); }
352
+ .wy-doc [data-type="image"][data-width="half"] .wy-figure { width: 50%; }
353
+ .wy-doc [data-type="image"][data-width="wide"] .wy-figure { margin-inline: -48px; }
354
+ .wy-doc .wy-figure figcaption { font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }
355
+
356
+ /* File, record and chart sit on a bordered card. */
357
+ .wy-doc .wy-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control-lg); font-size: 0.875rem; }
358
+ .wy-doc .wy-file-meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
359
+ .wy-doc .wy-file-download { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-control-sm); color: var(--foreground); }
360
+ .wy-doc .wy-file-download:hover { background: var(--muted); }
361
+ .wy-doc .wy-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--muted); color: var(--muted-foreground); flex: none; }
362
+ .wy-doc .wy-tile.is-tint { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-tint); color: var(--primary-tint-foreground); }
363
+ .wy-doc .wy-embed { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); font-size: 0.875rem; }
364
+ .wy-doc .wy-embed-head { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted-foreground); }
365
+ .wy-doc .wy-embed-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
366
+ .wy-doc .wy-embed-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
367
+
368
+ /* Signature and stamp (stage 6). */
369
+ /* Signers and the date share one row, the stamp at its end (EditorBlocks card); narrow sheets wrap. */
370
+ .wy-doc .wy-sign { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-top: 28px; font-size: 0.8125rem; color: var(--muted-foreground); }
371
+ .wy-doc .wy-sign-line { flex: 1 1 0; min-width: 120px; border-top: 1px solid var(--foreground); padding-top: 6px; display: grid; gap: 2px; }
372
+ .wy-doc .wy-sign-line b { color: var(--foreground); font-weight: 500; }
373
+ .wy-doc .wy-sign-stamp { flex: none; width: 84px; height: 84px; border: 1.5px dashed var(--input); border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 0.6875rem; }
374
+
375
+ /* The chart block header and its table view (BarChart card: "Show as table" gives every value). */
376
+ .wy-doc .wy-chart-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
377
+ .wy-doc .wy-chart-title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
378
+ .wy-doc .wy-chart-sub { font-size: 0.75rem; color: var(--muted-foreground); }
379
+ .wy-doc .wy-chart-toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px; border-radius: 4px; font: inherit; font-size: 0.75rem; color: var(--muted-foreground); cursor: pointer; }
380
+ .wy-doc .wy-chart-toggle:hover { color: var(--foreground); background: var(--muted); }
381
+ .wy-doc .wy-chart-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
382
+ .wy-doc .wy-chart-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
383
+ .wy-doc .wy-chart-table th { text-align: start; font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); padding: 4px 6px; }
384
+ .wy-doc .wy-chart-table td { border-bottom: 1px solid var(--border); padding: 4px 6px; }
385
+ .wy-doc .wy-chart-table td:last-child, .wy-doc .wy-chart-table th:last-child { text-align: end; font-variant-numeric: tabular-nums; }
386
+
387
+ /* Barcode, QR code and maths (E.40–E.42). Codes stay ink on white in both themes so they scan (mark-sheet is white in both). */
388
+ .wy-doc .wy-code { margin: 0; display: grid; gap: 6px; justify-items: start; }
389
+ .wy-doc .wy-code-art { background: var(--mark-sheet); padding: 6px; border-radius: 4px; }
390
+ .wy-doc .wy-code.is-bar .wy-code-art { width: 220px; }
391
+ .wy-doc .wy-code.is-qr .wy-code-art { width: 120px; }
392
+ .wy-doc .wy-code figcaption { font-size: 0.75rem; color: var(--muted-foreground); }
393
+ .wy-doc .wy-math-block { overflow-x: auto; padding-block: 4px; }
394
+ .wy-doc .wy-math { font-family: var(--font-mono); font-size: 0.875em; }
395
+
396
+ /* Empty and unavailable states. */
397
+ .wy-doc .wy-placeholder { padding: 10px 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.875rem; }
398
+ .wy-doc .wy-placeholder.is-field { border-style: dotted; border-color: var(--primary); color: var(--primary-tint-foreground); background: var(--primary-tint); }
399
+ .wy-doc .wy-skeleton { height: 40px; border-radius: var(--radius-control); background: var(--muted); }
400
+ .wy-doc .wy-skeleton.is-tall { height: 170px; }
401
+ @media (prefers-reduced-motion: no-preference) {
402
+ .wy-doc .wy-skeleton { animation: wy-pulse 1.2s ease-in-out infinite; }
403
+ }
404
+ @keyframes wy-pulse { 50% { opacity: 0.55; } }
405
+
406
+ /* ------------------------------------------------------------------
407
+ * The page view (E.7, EditorPageView): A4 at 96 dpi, 16mm margins. The
408
+ * stack carries `.light`, so the pages stay white like paper in dark mode
409
+ * (E.11) while the ground around them follows the theme.
410
+ * ------------------------------------------------------------------ */
411
+ .wy-pv { width: 794px; margin-inline: auto; }
412
+ .wy-pv__stack { position: relative; width: 794px; color: var(--foreground); --primary: var(--doc-accent, var(--brand)); }
413
+ .wy-pv__page {
414
+ position: absolute;
415
+ inset-inline: 0;
416
+ height: 1123px;
417
+ background: var(--card);
418
+ box-shadow: 0 0 0 1px var(--border), 0 1px 3px color-mix(in oklab, var(--foreground) 6%, transparent);
419
+ }
420
+ .wy-pv__margin { position: absolute; inset: 60px; border: 1px dashed transparent; pointer-events: none; }
421
+ .wy-pv__page.show-margins .wy-pv__margin { border-color: color-mix(in oklab, var(--ring) 35%, transparent); }
422
+ .wy-pv__run {
423
+ position: absolute;
424
+ top: 60px;
425
+ inset-inline: 60px;
426
+ display: flex;
427
+ align-items: center;
428
+ justify-content: space-between;
429
+ padding-bottom: 10px;
430
+ border-bottom: 1px solid var(--border);
431
+ font-size: 11px;
432
+ color: var(--muted-foreground);
433
+ }
434
+ .wy-pv__foot {
435
+ position: absolute;
436
+ inset-inline: 60px;
437
+ bottom: 28px;
438
+ display: flex;
439
+ justify-content: space-between;
440
+ font-family: var(--font-mono);
441
+ font-size: 11px;
442
+ color: var(--muted-foreground);
443
+ }
444
+ .wy-pv__column { position: relative; padding: 60px; min-height: 1123px; box-sizing: border-box; }
445
+ .wy-pv__lh {
446
+ display: flex;
447
+ justify-content: space-between;
448
+ gap: 24px;
449
+ padding-bottom: 14px;
450
+ margin-bottom: 18px;
451
+ border-bottom: 1px solid var(--border);
452
+ font-size: var(--doc-text-print-label);
453
+ color: var(--muted-foreground);
454
+ }
455
+ .wy-pv__lh b { color: var(--foreground); font-weight: 600; }
456
+ .wy-pv__lhend { text-align: end; display: grid; gap: 2px; align-content: start; }
457
+ /* The document title: Readex Pro 600 in the tenant's print colour. */
458
+ .wy-pv__title { margin: 0 0 4px; font-family: var(--doc-title-font, var(--font-display)); font-weight: 600; font-size: var(--doc-text-print-title); line-height: var(--doc-leading-title); color: var(--doc-accent, var(--brand)); }
459
+ /* E.45: a theme with accentUse `title-and-headings` gives H1-H3 the print colour too. */
460
+ .wy-pv__stack[data-accent-use="title-and-headings"] .wy-doc :is(h2, h3, h4) { color: var(--doc-accent, var(--brand)); }
461
+ /* Stage 6 (6.5) and E.33 on paper; at 96 dpi a pt is the same size on screen. */
462
+ .wy-pv .wy-doc { font-size: var(--doc-text-print-body); }
463
+ .wy-pv .wy-doc h2 { font-size: var(--doc-text-print-h1); padding-top: 14px; }
464
+ .wy-pv .wy-doc h3 { font-size: var(--doc-text-print-h2); padding-top: 10px; }
465
+ .wy-pv .wy-doc h4 { font-size: var(--doc-text-print-h3); padding-top: 8px; }
466
+ .wy-pv .wy-doc table[data-type="table"] { font-size: var(--doc-text-print-label); }
467
+ /* E.47 large print: the print sizes scale by the body's step, 9.5pt to 11pt (as flow.css). */
468
+ .wy-pv__stack[data-large-print] .wy-pv__title { font-size: calc(var(--doc-text-print-title) * 11 / 9.5); }
469
+ .wy-pv__stack[data-large-print] .wy-doc { font-size: calc(var(--doc-text-print-body) * 11 / 9.5); }
470
+ .wy-pv__stack[data-large-print] .wy-doc h2 { font-size: calc(var(--doc-text-print-h1) * 11 / 9.5); }
471
+ .wy-pv__stack[data-large-print] .wy-doc h3 { font-size: calc(var(--doc-text-print-h2) * 11 / 9.5); }
472
+ .wy-pv__stack[data-large-print] .wy-doc h4 { font-size: calc(var(--doc-text-print-h3) * 11 / 9.5); }
473
+ .wy-pv__stack[data-large-print] .wy-doc table[data-type="table"] { font-size: calc(var(--doc-text-print-label) * 11 / 9.5); }
474
+ .wy-pv .wy-doc table[data-type="table"] td { border: 0; border-bottom: 1px solid var(--border); }
475
+ /* On paper the header row is a rule under muted labels, not a filled row. */
476
+ .wy-pv .wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: none; border-bottom: 1.5px solid var(--foreground); color: var(--muted-foreground); }
477
+ /* A page break's own line is hidden: the next page shows where it falls. */
478
+ .wy-pv .wy-doc .wy-pagebreak { visibility: hidden; height: 0; margin: 0; }
479
+ .wy-pv__gap { pointer-events: none; }
480
+
481
+ /* Label sheets (E.43): one sheet of identical labels. The first is the one
482
+ you edit; the others repeat it. A label's outline is dashed, as on the
483
+ stock's backing sheet; content past it is cut off on paper. */
484
+ .wy-ls__label {
485
+ position: absolute;
486
+ box-sizing: border-box;
487
+ overflow: hidden;
488
+ border-radius: 4px;
489
+ outline: 1px dashed color-mix(in oklab, var(--border) 100%, var(--foreground) 15%);
490
+ outline-offset: -1px;
491
+ }
492
+ .wy-ls__label.is-first { outline: 1px solid var(--ring); overflow: visible; z-index: 1; }
493
+ .wy-ls__label.is-first .ProseMirror { min-height: 100%; }
494
+ /* What runs past the label stays readable above its neighbours while it's edited. */
495
+ .wy-ls__label.is-over { outline-color: var(--error); }
496
+ .wy-ls__label.is-over .ProseMirror { background: var(--card); box-shadow: 0 0 0 1px var(--error); border-radius: 4px; }
497
+ .wy-ls__label:not(.is-first) { color: var(--muted-foreground); }
498
+ .wy-ls__label .wy-doc > * { margin-block: 0 2px; }
499
+ .wy-ls__over {
500
+ position: absolute;
501
+ inset-inline-end: 4px;
502
+ inset-block-end: 4px;
503
+ display: inline-flex;
504
+ align-items: center;
505
+ gap: 4px;
506
+ padding: 1px 6px;
507
+ border-radius: 4px;
508
+ background: var(--error-tint);
509
+ color: var(--error-text);
510
+ font-size: 11px;
511
+ }
512
+
513
+ /* Preview with a record (E.12): the bar above the pages. */
514
+ .wy-previewbar {
515
+ display: flex;
516
+ align-items: center;
517
+ gap: 6px;
518
+ width: fit-content;
519
+ margin: 0 auto 16px;
520
+ padding: 4px 4px 4px 12px;
521
+ border: 1px solid var(--border);
522
+ border-radius: 999px;
523
+ background: var(--card);
524
+ font-size: 0.8125rem;
525
+ color: var(--muted-foreground);
526
+ }
527
+ .wy-previewbar b { color: var(--foreground); font-weight: 500; }
528
+
529
+ /* ------------------------------------------------------------------
530
+ * The continuous sheet's title (E.11): the text colour in light mode; in
531
+ * dark mode the theme's `accentOnDark`, which never prints.
532
+ * ------------------------------------------------------------------ */
533
+ .wy-sheet__title { color: var(--foreground); }
534
+ /* E.46: Readex Pro 600 unless the theme sets the title in the body face. */
535
+ .wy-sheet__title { font-family: var(--doc-title-font, var(--font-display)); }
536
+ .dark .wy-sheet__title { color: var(--doc-accent-on-dark, var(--foreground)); }
537
+
538
+ /*
539
+ * Comments and suggestions (editor M5, EditorCollab, E.4, E.6, E.10, E.39).
540
+ * Suggested text is dashed because it hasn't happened yet (4.3): an insertion
541
+ * in the main colour with a dashed underline; a deletion struck through in the
542
+ * error colour, dashed, still visible. The comment highlight is the warning
543
+ * tint with a warning underline, a decoration on screen only, never printed,
544
+ * and not the highlight colour (E.25).
545
+ */
546
+ .wy-doc ins[data-suggestion],
547
+ .wy-sug-ins {
548
+ color: var(--primary-tint-foreground);
549
+ text-decoration: underline dashed var(--primary);
550
+ text-decoration-thickness: 1.5px;
551
+ text-underline-offset: 3px;
552
+ }
553
+ .wy-doc del[data-suggestion],
554
+ .wy-sug-del {
555
+ color: var(--muted-foreground);
556
+ text-decoration: line-through dashed var(--error-text);
557
+ text-decoration-thickness: 1.5px;
558
+ }
559
+ .wy-sug-fmt {
560
+ text-decoration: underline dashed var(--primary);
561
+ text-decoration-thickness: 1.5px;
562
+ text-underline-offset: 3px;
563
+ }
564
+ /* Suggested blocks: inserted ones dashed at the start edge, deleted ones struck. */
565
+ .wy-doc .wy-sug-block.is-insert {
566
+ border-inline-start: 2px dashed var(--primary);
567
+ padding-inline-start: 10px;
568
+ color: var(--primary-tint-foreground);
569
+ }
570
+ .wy-doc .wy-sug-block.is-delete {
571
+ border-inline-start: 2px dashed var(--error-text);
572
+ padding-inline-start: 10px;
573
+ color: var(--muted-foreground);
574
+ text-decoration: line-through dashed var(--error-text);
575
+ }
576
+ .wy-doc .wy-sug-block.is-move { border-inline-start: 2px dashed var(--input); padding-inline-start: 10px; }
577
+ .wy-doc ins[data-suggestion].is-active,
578
+ .wy-doc .wy-sug-block.is-active { background: var(--primary-tint); }
579
+
580
+ .wy-cmt { background: var(--warning-tint); color: inherit; border-bottom: 2px solid var(--warning); padding-block: 1px; }
581
+ .wy-cmt.is-active { background: color-mix(in oklab, var(--warning) 45%, var(--card)); }
582
+
583
+ @media print {
584
+ /* E.39: comments never print. Suggestions aren't in what prints either; this is the screen's print only. */
585
+ .wy-cmt { background: none; border-bottom: 0; padding: 0; }
586
+ .wy-edx__rail { display: none; }
587
+ }
588
+
589
+ /* The rail and its cards (E.6). */
590
+ .wy-edx__rail { position: relative; padding-block: 32px; padding-inline: 0 16px; min-width: 0; }
591
+ .wy-edx__railhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 0.75rem; color: var(--muted-foreground); }
592
+ .wy-edx__railnote { margin: 0; padding: 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.8125rem; line-height: 1.45; }
593
+ .wy-rc {
594
+ --wy-lift: -8px;
595
+ position: absolute;
596
+ inset-inline: 0 16px;
597
+ display: grid;
598
+ gap: 8px;
599
+ padding: 12px;
600
+ background: var(--card);
601
+ border: 1px solid var(--border);
602
+ border-radius: var(--radius-control-lg);
603
+ font-size: 0.8125rem;
604
+ line-height: 1.45;
605
+ box-sizing: border-box;
606
+ transition: top 150ms ease, translate 150ms ease;
607
+ }
608
+ [dir="rtl"] .wy-rc { --wy-lift: 8px; }
609
+ .wy-rc.is-active { box-shadow: var(--shadow-float); border-color: var(--input); translate: var(--wy-lift) 0; z-index: 1; }
610
+ .wy-rc.is-agent, .wy-rc.is-pending { border-style: dashed; border-color: var(--input); }
611
+ .wy-rc--static { position: relative; inset: auto; }
612
+ .wy-rc--static.is-active { translate: none; }
613
+ .wy-rc__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
614
+ .wy-drawerlist .wy-rc__who { flex-wrap: wrap; }
615
+ .wy-rc__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
616
+ .wy-rc__time { color: var(--muted-foreground); font-size: 0.75rem; white-space: nowrap; }
617
+ .wy-rc__acts { margin-inline-start: auto; display: flex; gap: 2px; }
618
+ .wy-rc__what { color: var(--muted-foreground); overflow-wrap: anywhere; }
619
+ .wy-rc__what b { color: var(--foreground); font-weight: 500; }
620
+ .wy-rc__reply { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--input); border-radius: var(--radius-control-sm); background: none; color: var(--muted-foreground); font: inherit; cursor: text; }
621
+ .wy-rc__box { border: 1px solid var(--input); border-radius: var(--radius-control); padding: 8px 10px; min-height: 56px; color: var(--foreground); font: inherit; font-size: 0.8125rem; box-sizing: border-box; width: 100%; }
622
+ .wy-mention { color: var(--primary-tint-foreground); background: var(--primary-tint); border-radius: 4px; padding: 0 3px; font-weight: 500; }
623
+ .wy-rc__foot { display: flex; justify-content: flex-end; gap: 6px; }
624
+ .wy-rc__replies { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
625
+ .wy-rc__q { color: var(--muted-foreground); border-inline-start: 2px solid var(--warning); padding-inline-start: 8px; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
626
+ .wy-rc.is-resolved { opacity: .7; }
627
+ .wy-rc__resolved { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--success-text); }
628
+ .wy-drawerlist { display: grid; gap: 10px; }
629
+ .wy-mentionpop { padding: 4px; }
630
+
631
+ /* The mode menu (E.10). */
632
+ .wy-modemenu__it { display: flex; gap: 10px; align-items: flex-start; }
633
+ .wy-modemenu__it .wy-modemenu__t { display: grid; gap: 1px; flex: 1; }
634
+ .wy-modemenu__it .wy-modemenu__t span { font-size: 0.75rem; color: var(--muted-foreground); }
635
+ .wy-modemenu__it.is-on { background: var(--primary-tint); color: var(--primary-tint-foreground); }
636
+ .wy-modemenu__it.is-on .wy-modemenu__t span { color: inherit; opacity: .8; }