create-pmos 0.398.0 → 0.400.0

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 (515) hide show
  1. package/package.json +30 -25
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +19 -15
  7. package/workspace/briefing-premium-board-test.js +82 -50
  8. package/workspace/briefing-premium-calendar-2-test.js +36 -36
  9. package/workspace/briefing-premium-calendar-3-test.js +39 -39
  10. package/workspace/briefing-premium-calendar-test.js +23 -24
  11. package/workspace/briefing-premium-doc-edit-test.js +8 -10
  12. package/workspace/briefing-premium-initiative-test.js +38 -16
  13. package/workspace/briefing-premium-insights-test.js +114 -37
  14. package/workspace/briefing-premium-metrics-test.js +6 -4
  15. package/workspace/briefing-premium-products-test.js +10 -7
  16. package/workspace/briefing-premium-sources-test.js +25 -22
  17. package/workspace/briefing-premium-test.js +48 -43
  18. package/workspace/briefing-premium-work-test.js +16 -11
  19. package/workspace/c3-capture-test.js +0 -17
  20. package/workspace/changelog.json +29 -0
  21. package/workspace/ev-everywhere-test.js +210 -0
  22. package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
  23. package/workspace/guide/briefing-premium.md +2 -2
  24. package/workspace/guide/home.md +58 -19
  25. package/workspace/guide/index.md +1 -1
  26. package/workspace/guide/layout.md +2 -2
  27. package/workspace/guide/notes.md +2 -2
  28. package/workspace/guide/phone-companion.md +1 -1
  29. package/workspace/lib/board-grill.js +63 -0
  30. package/workspace/lib/board-premium.js +36 -5
  31. package/workspace/lib/initiative-layout.js +77 -0
  32. package/workspace/lib/insights-premium.js +3 -2
  33. package/workspace/lib/insights-records.js +21 -7
  34. package/workspace/lib/meeting-points.js +52 -0
  35. package/workspace/lib/news-for-you.js +88 -0
  36. package/workspace/lib/notes-series.js +29 -6
  37. package/workspace/lib/report-confirm.js +48 -0
  38. package/workspace/lib/route-modules.js +9 -9
  39. package/workspace/lib/routes-board-docs.js +46 -0
  40. package/workspace/lib/routes-board-grill.js +90 -0
  41. package/workspace/lib/routes-home-review.js +108 -0
  42. package/workspace/lib/routes-initiative-layout.js +57 -0
  43. package/workspace/lib/routes-insights-premium.js +4 -1
  44. package/workspace/lib/routes-insights-records.js +8 -4
  45. package/workspace/lib/routes-meeting-points.js +37 -0
  46. package/workspace/lib/routes-news.js +57 -0
  47. package/workspace/lib/routes-notes.js +2 -1
  48. package/workspace/lib/routes-phone-day.js +18 -9
  49. package/workspace/lib/routes-report-confirm.js +31 -0
  50. package/workspace/lib/routes-search.js +38 -0
  51. package/workspace/lib/routes-slash.js +95 -0
  52. package/workspace/lib/search-index.js +176 -0
  53. package/workspace/package-lock.json +2 -2
  54. package/workspace/package.json +1 -2
  55. package/workspace/premium-board-actions-test.js +86 -50
  56. package/workspace/premium-briefing-depth-test.js +55 -54
  57. package/workspace/premium-chat-chart-tab-test.js +4 -2
  58. package/workspace/premium-chat-goal-view-test.js +1 -1
  59. package/workspace/premium-chat-report-tab-test.js +16 -2
  60. package/workspace/premium-chat-term-test.js +0 -10
  61. package/workspace/premium-core-doc-issue-test.js +15 -13
  62. package/workspace/premium-menu-rows-test.js +1 -1
  63. package/workspace/premium-phone-card-test.js +7 -5
  64. package/workspace/premium-report-read-test.js +55 -18
  65. package/workspace/premium-vw-backlog-test.js +2 -2
  66. package/workspace/premium-vw-cal-test.js +50 -35
  67. package/workspace/premium-vw-doc-test.js +10 -11
  68. package/workspace/premium-vw-item-test.js +1 -1
  69. package/workspace/premium-vw-jira-test.js +2 -2
  70. package/workspace/premium-vw-meet-test.js +37 -40
  71. package/workspace/premium-vw-notes-test.js +21 -19
  72. package/workspace/premium-vw-rec-test.js +11 -12
  73. package/workspace/premium-welcome-test.js +3 -3
  74. package/workspace/premium-work-depth-test.js +5 -6
  75. package/workspace/public/capture.html +23 -0
  76. package/workspace/public/pm/bd-acts.js +303 -225
  77. package/workspace/public/pm/bd-asks.js +261 -0
  78. package/workspace/public/pm/bd-pop.js +59 -0
  79. package/workspace/public/pm/bd-span.js +49 -13
  80. package/workspace/public/pm/bd-views.js +169 -0
  81. package/workspace/public/pm/c3-base.js +47 -0
  82. package/workspace/public/pm/c3-capture.js +1 -1
  83. package/workspace/public/pm/c3-ini-ui.js +1 -1
  84. package/workspace/public/pm/c3-sheet.js +1 -1
  85. package/workspace/public/pm/c3-toast.js +1 -1
  86. package/workspace/public/pm/console3.css +3 -0
  87. package/workspace/public/pm/cozy-board.css +301 -0
  88. package/workspace/public/pm/cozy-ev.css +228 -0
  89. package/workspace/public/pm/cozy-evmodel.js +106 -0
  90. package/workspace/public/pm/cozy-evui.js +47 -0
  91. package/workspace/public/pm/cozy-home.css +20 -5
  92. package/workspace/public/pm/cozy-insights.css +148 -10
  93. package/workspace/public/pm/cozy-nav.js +103 -39
  94. package/workspace/public/pm/cozy-news.js +140 -0
  95. package/workspace/public/pm/cozy-search.js +203 -0
  96. package/workspace/public/pm/cozy-settings.js +198 -0
  97. package/workspace/public/pm/cozy-sources.js +89 -0
  98. package/workspace/public/pm/cozy-today.css +220 -0
  99. package/workspace/public/pm/cozy-viewer.js +5 -2
  100. package/workspace/public/pm/cozy-vw-mtg.css +350 -0
  101. package/workspace/public/pm/cozy-vw-rp.css +152 -0
  102. package/workspace/public/pm/cozy.css +9 -0
  103. package/workspace/public/pm/goal-chat.js +5 -1
  104. package/workspace/public/pm/home-adddoc.js +5 -5
  105. package/workspace/public/pm/home-app.js +365 -70
  106. package/workspace/public/pm/home-around.js +24 -126
  107. package/workspace/public/pm/home-chat.js +77 -18
  108. package/workspace/public/pm/home-data.js +9 -7
  109. package/workspace/public/pm/home-dictate.js +57 -0
  110. package/workspace/public/pm/home-draft.js +6 -6
  111. package/workspace/public/pm/home-ini-model.js +190 -0
  112. package/workspace/public/pm/home-ini.css +171 -0
  113. package/workspace/public/pm/home-ini.js +466 -0
  114. package/workspace/public/pm/home-list.js +289 -0
  115. package/workspace/public/pm/home-more.js +18 -135
  116. package/workspace/public/pm/home-phone-card.js +13 -8
  117. package/workspace/public/pm/home-review.js +103 -0
  118. package/workspace/public/pm/home-task.js +67 -0
  119. package/workspace/public/pm/home-today.js +148 -0
  120. package/workspace/public/pm/home-work.js +63 -28
  121. package/workspace/public/pm/note-dock.js +1 -2
  122. package/workspace/public/pm/notes-links.js +1 -2
  123. package/workspace/public/pm/notes-task.js +3 -4
  124. package/workspace/public/pm/premium-board.js +164 -40
  125. package/workspace/public/pm/premium-chart-tab.js +4 -5
  126. package/workspace/public/pm/premium-first.js +5 -7
  127. package/workspace/public/pm/premium-initiative-head.js +3 -3
  128. package/workspace/public/pm/premium-insights.js +499 -202
  129. package/workspace/public/pm/premium-mtg-present.js +138 -0
  130. package/workspace/public/pm/premium-mtg-replay.js +142 -0
  131. package/workspace/public/pm/premium-report-read.js +216 -52
  132. package/workspace/public/pm/premium-report-tab.js +44 -19
  133. package/workspace/public/pm/premium-shell.js +7 -7
  134. package/workspace/public/pm/premium-vw-cal.js +150 -60
  135. package/workspace/public/pm/premium-vw-doc.css +20 -2
  136. package/workspace/public/pm/premium-vw-doc.js +22 -7
  137. package/workspace/public/pm/premium-vw-mtg.js +488 -261
  138. package/workspace/public/pm/premium-vw-notes.js +61 -0
  139. package/workspace/public/pm/rp-parts.js +269 -0
  140. package/workspace/public/pm/view-notes.js +2 -2
  141. package/workspace/public/premium-board.html +4 -3
  142. package/workspace/public/premium-insights.html +10 -10
  143. package/workspace/public/premium.html +3 -1
  144. package/workspace/r/m1.png +0 -0
  145. package/workspace/r/m2.png +0 -0
  146. package/workspace/r/m3.png +0 -0
  147. package/workspace/r/nl.png +0 -0
  148. package/workspace/replaced-tests.json +435 -0
  149. package/workspace/run-tests.js +323 -28
  150. package/workspace/server.js +15 -10
  151. package/workspace/test-files.json +3 -140
  152. package/workspace/test-lists/base.json +1 -2
  153. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  154. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  155. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  156. package/workspace/test-lists/c3-work-agent.json +1 -2
  157. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  158. package/workspace/test-lists/console3-reports.json +1 -2
  159. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  160. package/workspace/test-lists/extension-capture.json +5 -0
  161. package/workspace/test-lists/initiative-layout.json +9 -0
  162. package/workspace/test-lists/jira-wbs.json +1 -2
  163. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  164. package/workspace/test-lists/meeting-material.json +1 -2
  165. package/workspace/test-lists/meeting-notes.json +2 -36
  166. package/workspace/test-lists/meeting-replay.json +1 -2
  167. package/workspace/test-lists/mm-capture.json +2 -12
  168. package/workspace/test-lists/my-work.json +2 -10
  169. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  170. package/workspace/test-lists/people-directory.json +1 -2
  171. package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
  172. package/workspace/test-lists/premium-uncovered-reports.json +9 -0
  173. package/workspace/test-lists/run2-a.json +1 -2
  174. package/workspace/test-lists/run2-d.json +2 -19
  175. package/workspace/test-lists/run3-b.json +1 -2
  176. package/workspace/test-lists/run3-c.json +2 -12
  177. package/workspace/test-lists/run4-b.json +1 -2
  178. package/workspace/test-lists/run4-d.json +1 -5
  179. package/workspace/test-lists/run5-c.json +1 -11
  180. package/workspace/test-lists/run6.json +1 -5
  181. package/workspace/test-lists/uf-everywhere.json +15 -0
  182. package/workspace/test-lists/uf-home.json +9 -0
  183. package/workspace/test-lists/uncovered-board.json +9 -0
  184. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  185. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  186. package/workspace/test-timings.json +242 -123
  187. package/workspace/c3-briefing-test.js +0 -136
  188. package/workspace/c3-core-docs-test.js +0 -170
  189. package/workspace/c3-driver-fixture.js +0 -64
  190. package/workspace/c3-driver-test.js +0 -169
  191. package/workspace/c3-foundation-test.js +0 -163
  192. package/workspace/c3-ib-items-test.js +0 -114
  193. package/workspace/c3-ib-more-test.js +0 -146
  194. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  195. package/workspace/c3-ini-harness.js +0 -66
  196. package/workspace/c3-ini-life-test.js +0 -167
  197. package/workspace/c3-initiatives-test.js +0 -186
  198. package/workspace/c3-light-load-test.js +0 -112
  199. package/workspace/c3-one-home-test.js +0 -149
  200. package/workspace/c3-phone-test.js +0 -289
  201. package/workspace/c3-quiet-test.js +0 -157
  202. package/workspace/c3-report-design-real-test.js +0 -264
  203. package/workspace/c3-report-design-test.js +0 -442
  204. package/workspace/c3-report-setup-test.js +0 -192
  205. package/workspace/c3-report-structure-real-test.js +0 -248
  206. package/workspace/c3-report-structure-test.js +0 -397
  207. package/workspace/c3-reports-test.js +0 -288
  208. package/workspace/c3-scan-test.js +0 -517
  209. package/workspace/c3-sessions-panel-test.js +0 -365
  210. package/workspace/c3-settings-test.js +0 -204
  211. package/workspace/c3-updates-test.js +0 -131
  212. package/workspace/c3-work-test.js +0 -260
  213. package/workspace/cut-stub.js +0 -40
  214. package/workspace/first-paint-audit.js +0 -160
  215. package/workspace/lib/c3-full-console.js +0 -15
  216. package/workspace/lib/engine/derived/trust.js +0 -3
  217. package/workspace/lib/engine/plan-forecast.js +0 -342
  218. package/workspace/lib/engine/report-families.js +0 -175
  219. package/workspace/lib/engine/truth-table.js +0 -57
  220. package/workspace/lib/routes-c3-init.js +0 -54
  221. package/workspace/lib/routes-c3-life.js +0 -120
  222. package/workspace/lib/routes-c3-timeline.js +0 -192
  223. package/workspace/lib/routes-forecast.js +0 -86
  224. package/workspace/lib/routes-releases.js +0 -130
  225. package/workspace/lib/routes-report-facts.js +0 -85
  226. package/workspace/lib/routes-report-families.js +0 -33
  227. package/workspace/lib/routes-signals.js +0 -51
  228. package/workspace/lib/routes-timeline.js +0 -197
  229. package/workspace/public/c3.html +0 -35
  230. package/workspace/public/index.html +0 -156
  231. package/workspace/public/pm/app.js +0 -831
  232. package/workspace/public/pm/bd-board.js +0 -159
  233. package/workspace/public/pm/bd-drag.js +0 -59
  234. package/workspace/public/pm/bd-model.js +0 -152
  235. package/workspace/public/pm/bd-timeline.js +0 -233
  236. package/workspace/public/pm/bd-tree.js +0 -244
  237. package/workspace/public/pm/board-copy.js +0 -59
  238. package/workspace/public/pm/board-read.js +0 -38
  239. package/workspace/public/pm/branches-sheet.js +0 -56
  240. package/workspace/public/pm/breakdown-api.js +0 -58
  241. package/workspace/public/pm/breakdown-copy.js +0 -138
  242. package/workspace/public/pm/briefing-deck.js +0 -441
  243. package/workspace/public/pm/briefing-model.js +0 -251
  244. package/workspace/public/pm/c3-ambient.js +0 -100
  245. package/workspace/public/pm/c3-audience-link.js +0 -21
  246. package/workspace/public/pm/c3-audience.js +0 -46
  247. package/workspace/public/pm/c3-boot.js +0 -13
  248. package/workspace/public/pm/c3-breakdown.js +0 -240
  249. package/workspace/public/pm/c3-brief-data.js +0 -11
  250. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  251. package/workspace/public/pm/c3-brief-needs.js +0 -288
  252. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  253. package/workspace/public/pm/c3-brief-summary.js +0 -139
  254. package/workspace/public/pm/c3-brief-today.js +0 -79
  255. package/workspace/public/pm/c3-brief.js +0 -279
  256. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  257. package/workspace/public/pm/c3-calendar.js +0 -965
  258. package/workspace/public/pm/c3-calpop.js +0 -111
  259. package/workspace/public/pm/c3-case.js +0 -196
  260. package/workspace/public/pm/c3-core-docs.css +0 -18
  261. package/workspace/public/pm/c3-core-docs.js +0 -236
  262. package/workspace/public/pm/c3-daypart.js +0 -176
  263. package/workspace/public/pm/c3-demo-boards.js +0 -764
  264. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  265. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  266. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  267. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  268. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  269. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  270. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  271. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  272. package/workspace/public/pm/c3-demo-data.js +0 -552
  273. package/workspace/public/pm/c3-demo-focus.js +0 -181
  274. package/workspace/public/pm/c3-demo-init.js +0 -430
  275. package/workspace/public/pm/c3-demo-life.js +0 -77
  276. package/workspace/public/pm/c3-demo-material.js +0 -58
  277. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  278. package/workspace/public/pm/c3-demo-phone.js +0 -48
  279. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  280. package/workspace/public/pm/c3-demo-rd.js +0 -432
  281. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  282. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  283. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  284. package/workspace/public/pm/c3-demo-rs.js +0 -287
  285. package/workspace/public/pm/c3-demo-term.js +0 -153
  286. package/workspace/public/pm/c3-demo-time.js +0 -49
  287. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  288. package/workspace/public/pm/c3-demo.js +0 -131
  289. package/workspace/public/pm/c3-design-studio.js +0 -369
  290. package/workspace/public/pm/c3-doc-formats.js +0 -153
  291. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  292. package/workspace/public/pm/c3-dock.js +0 -206
  293. package/workspace/public/pm/c3-docs.js +0 -291
  294. package/workspace/public/pm/c3-driver-work.js +0 -110
  295. package/workspace/public/pm/c3-driver.css +0 -18
  296. package/workspace/public/pm/c3-driver.js +0 -298
  297. package/workspace/public/pm/c3-focus.css +0 -304
  298. package/workspace/public/pm/c3-focus.js +0 -983
  299. package/workspace/public/pm/c3-ib-docs.js +0 -92
  300. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  301. package/workspace/public/pm/c3-ib-items.js +0 -210
  302. package/workspace/public/pm/c3-ib-releases.js +0 -48
  303. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  304. package/workspace/public/pm/c3-ib-triage.js +0 -177
  305. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  306. package/workspace/public/pm/c3-ini-life.css +0 -34
  307. package/workspace/public/pm/c3-ini-life.js +0 -379
  308. package/workspace/public/pm/c3-ini-records.js +0 -197
  309. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  310. package/workspace/public/pm/c3-ini-work.js +0 -139
  311. package/workspace/public/pm/c3-init-extras.js +0 -170
  312. package/workspace/public/pm/c3-initiatives.js +0 -852
  313. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  314. package/workspace/public/pm/c3-look.js +0 -27
  315. package/workspace/public/pm/c3-material.css +0 -22
  316. package/workspace/public/pm/c3-material.js +0 -321
  317. package/workspace/public/pm/c3-md.js +0 -3
  318. package/workspace/public/pm/c3-misc-panels.js +0 -89
  319. package/workspace/public/pm/c3-new-session.js +0 -110
  320. package/workspace/public/pm/c3-notes.js +0 -751
  321. package/workspace/public/pm/c3-phone-boot.js +0 -47
  322. package/workspace/public/pm/c3-phone-detail.js +0 -97
  323. package/workspace/public/pm/c3-phone-model.js +0 -3
  324. package/workspace/public/pm/c3-phone.css +0 -66
  325. package/workspace/public/pm/c3-phone.js +0 -444
  326. package/workspace/public/pm/c3-plan-panels.js +0 -163
  327. package/workspace/public/pm/c3-plan.js +0 -193
  328. package/workspace/public/pm/c3-quiet.css +0 -113
  329. package/workspace/public/pm/c3-quiet.js +0 -177
  330. package/workspace/public/pm/c3-replay.css +0 -133
  331. package/workspace/public/pm/c3-replay.js +0 -429
  332. package/workspace/public/pm/c3-report-deck.css +0 -163
  333. package/workspace/public/pm/c3-report-deck.js +0 -598
  334. package/workspace/public/pm/c3-report-frame.css +0 -20
  335. package/workspace/public/pm/c3-report-print.css +0 -20
  336. package/workspace/public/pm/c3-report-setup.css +0 -67
  337. package/workspace/public/pm/c3-report-setup.js +0 -298
  338. package/workspace/public/pm/c3-report-store.js +0 -244
  339. package/workspace/public/pm/c3-report-structure.css +0 -44
  340. package/workspace/public/pm/c3-report-structure.js +0 -473
  341. package/workspace/public/pm/c3-reports.css +0 -68
  342. package/workspace/public/pm/c3-reports.js +0 -377
  343. package/workspace/public/pm/c3-roadmap.js +0 -249
  344. package/workspace/public/pm/c3-scan-api.js +0 -167
  345. package/workspace/public/pm/c3-scan-next.js +0 -248
  346. package/workspace/public/pm/c3-scan-setup.js +0 -313
  347. package/workspace/public/pm/c3-scan-words.js +0 -41
  348. package/workspace/public/pm/c3-scan.css +0 -74
  349. package/workspace/public/pm/c3-scan.js +0 -93
  350. package/workspace/public/pm/c3-session-chat.js +0 -103
  351. package/workspace/public/pm/c3-session-conv.js +0 -165
  352. package/workspace/public/pm/c3-session-term.js +0 -216
  353. package/workspace/public/pm/c3-settings.css +0 -85
  354. package/workspace/public/pm/c3-settings.js +0 -1045
  355. package/workspace/public/pm/c3-shell.js +0 -628
  356. package/workspace/public/pm/c3-signals.js +0 -196
  357. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  358. package/workspace/public/pm/c3-swipe.js +0 -230
  359. package/workspace/public/pm/c3-terminal-data.js +0 -48
  360. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  361. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  362. package/workspace/public/pm/c3-terminal-results.js +0 -141
  363. package/workspace/public/pm/c3-terminal.js +0 -52
  364. package/workspace/public/pm/c3-tickets.js +0 -163
  365. package/workspace/public/pm/c3-timeline.js +0 -201
  366. package/workspace/public/pm/calendar-views.js +0 -1049
  367. package/workspace/public/pm/console3-lift.md +0 -220
  368. package/workspace/public/pm/cozy-home.js +0 -172
  369. package/workspace/public/pm/cozy-initiative.css +0 -138
  370. package/workspace/public/pm/cycle-review.js +0 -125
  371. package/workspace/public/pm/data.js +0 -1577
  372. package/workspace/public/pm/dest-board.js +0 -444
  373. package/workspace/public/pm/dest-docs.js +0 -530
  374. package/workspace/public/pm/dest-initiatives.js +0 -162
  375. package/workspace/public/pm/dest-mywork.js +0 -307
  376. package/workspace/public/pm/dest-notes.js +0 -537
  377. package/workspace/public/pm/dest-people.js +0 -449
  378. package/workspace/public/pm/dest-reports.js +0 -383
  379. package/workspace/public/pm/dest-settings.js +0 -601
  380. package/workspace/public/pm/dest-today.js +0 -267
  381. package/workspace/public/pm/display-word.js +0 -56
  382. package/workspace/public/pm/doc-editor.js +0 -473
  383. package/workspace/public/pm/doc-graph.js +0 -272
  384. package/workspace/public/pm/doc-health-panel.js +0 -110
  385. package/workspace/public/pm/doc-rail.js +0 -167
  386. package/workspace/public/pm/doc-remote.js +0 -180
  387. package/workspace/public/pm/dock-sessions.js +0 -472
  388. package/workspace/public/pm/dock.js +0 -216
  389. package/workspace/public/pm/fixture.js +0 -821
  390. package/workspace/public/pm/flag-picker.js +0 -104
  391. package/workspace/public/pm/frame-copy.js +0 -278
  392. package/workspace/public/pm/freshness-line.js +0 -149
  393. package/workspace/public/pm/handoff-box.js +0 -82
  394. package/workspace/public/pm/initiative-list.js +0 -235
  395. package/workspace/public/pm/initiative-sheet.js +0 -331
  396. package/workspace/public/pm/initiatives-api.js +0 -95
  397. package/workspace/public/pm/initiatives-copy.js +0 -287
  398. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  399. package/workspace/public/pm/initiatives-timeline.js +0 -410
  400. package/workspace/public/pm/initiatives-ui.js +0 -291
  401. package/workspace/public/pm/item-sheet.js +0 -268
  402. package/workspace/public/pm/keep-card.js +0 -204
  403. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  404. package/workspace/public/pm/lifecycle-lens.js +0 -276
  405. package/workspace/public/pm/lifecycle.js +0 -111
  406. package/workspace/public/pm/mobile.css +0 -366
  407. package/workspace/public/pm/mobile.js +0 -581
  408. package/workspace/public/pm/modes-live.js +0 -453
  409. package/workspace/public/pm/modes.js +0 -147
  410. package/workspace/public/pm/my-work-card.js +0 -51
  411. package/workspace/public/pm/my-work-data.js +0 -36
  412. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  413. package/workspace/public/pm/next-step-ui.js +0 -190
  414. package/workspace/public/pm/outbox-panel.js +0 -125
  415. package/workspace/public/pm/palette-copy.js +0 -55
  416. package/workspace/public/pm/palette.js +0 -343
  417. package/workspace/public/pm/panel-breakdown.js +0 -702
  418. package/workspace/public/pm/panel-cockpit.js +0 -425
  419. package/workspace/public/pm/panel-detail.js +0 -1513
  420. package/workspace/public/pm/panel-initiatives.js +0 -929
  421. package/workspace/public/pm/panel-newsess.js +0 -709
  422. package/workspace/public/pm/panel-repos.js +0 -741
  423. package/workspace/public/pm/panel-tabs.js +0 -1506
  424. package/workspace/public/pm/panel-trees.js +0 -204
  425. package/workspace/public/pm/people-link.js +0 -106
  426. package/workspace/public/pm/phone-deck.js +0 -167
  427. package/workspace/public/pm/pm-work-view.js +0 -1533
  428. package/workspace/public/pm/portfolio-report.js +0 -61
  429. package/workspace/public/pm/premium-acts.js +0 -280
  430. package/workspace/public/pm/premium-brief.js +0 -111
  431. package/workspace/public/pm/premium-chat.js +0 -22
  432. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  433. package/workspace/public/pm/premium-initiative.js +0 -324
  434. package/workspace/public/pm/premium-insights.css +0 -228
  435. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  436. package/workspace/public/pm/premium-report-brief.js +0 -132
  437. package/workspace/public/pm/premium-vw-rec.js +0 -67
  438. package/workspace/public/pm/premium-wide.css +0 -30
  439. package/workspace/public/pm/print.css +0 -44
  440. package/workspace/public/pm/provider-cards.js +0 -136
  441. package/workspace/public/pm/registry.js +0 -203
  442. package/workspace/public/pm/release-card.js +0 -110
  443. package/workspace/public/pm/releases-view.js +0 -248
  444. package/workspace/public/pm/report-families-view.js +0 -505
  445. package/workspace/public/pm/report-slides.js +0 -438
  446. package/workspace/public/pm/report-tab.js +0 -33
  447. package/workspace/public/pm/report-view.js +0 -337
  448. package/workspace/public/pm/reports-copy.js +0 -134
  449. package/workspace/public/pm/roadmap.js +0 -294
  450. package/workspace/public/pm/run-card.js +0 -260
  451. package/workspace/public/pm/sessions-panel.js +0 -219
  452. package/workspace/public/pm/sheet-jira.js +0 -353
  453. package/workspace/public/pm/shell-bell.js +0 -163
  454. package/workspace/public/pm/shell-model.js +0 -83
  455. package/workspace/public/pm/shell-phone.js +0 -124
  456. package/workspace/public/pm/shell-readaloud.js +0 -53
  457. package/workspace/public/pm/shell-recording.js +0 -274
  458. package/workspace/public/pm/shell-ticker.js +0 -90
  459. package/workspace/public/pm/sig-watch.js +0 -41
  460. package/workspace/public/pm/slide-confirm.js +0 -163
  461. package/workspace/public/pm/slides-copy.js +0 -52
  462. package/workspace/public/pm/status-banner.js +0 -95
  463. package/workspace/public/pm/tab-doc.js +0 -859
  464. package/workspace/public/pm/tab-gone.js +0 -21
  465. package/workspace/public/pm/tab-term.js +0 -1210
  466. package/workspace/public/pm/tab-web.js +0 -90
  467. package/workspace/public/pm/timeline-copy.js +0 -48
  468. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  469. package/workspace/public/pm/today-agenda.js +0 -331
  470. package/workspace/public/pm/today-cards.js +0 -244
  471. package/workspace/public/pm/today-copy.js +0 -506
  472. package/workspace/public/pm/today-day.js +0 -1371
  473. package/workspace/public/pm/today-goals.js +0 -297
  474. package/workspace/public/pm/today-jobs.js +0 -84
  475. package/workspace/public/pm/today-mentions.js +0 -50
  476. package/workspace/public/pm/topbar.js +0 -202
  477. package/workspace/public/pm/triage-card.js +0 -60
  478. package/workspace/public/pm/undo-hold.js +0 -103
  479. package/workspace/public/pm/view-addrepo.js +0 -208
  480. package/workspace/public/pm/view-files.js +0 -197
  481. package/workspace/public/pm/view-livenotes.js +0 -399
  482. package/workspace/public/pm/view-today.js +0 -13
  483. package/workspace/public/pm/view-validate.js +0 -171
  484. package/workspace/public/pm/welcome.js +0 -391
  485. package/workspace/public/pm/work-place.js +0 -68
  486. package/workspace/public/pm/xlsx-read.js +0 -117
  487. package/workspace/public/welcome.html +0 -22
  488. package/workspace/test-lists/browser-suites-green.json +0 -5
  489. package/workspace/test-lists/c3-core-docs.json +0 -9
  490. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  491. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  492. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  493. package/workspace/test-lists/c3-ib-items.json +0 -9
  494. package/workspace/test-lists/c3-ib-more.json +0 -9
  495. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  496. package/workspace/test-lists/c3-ini-life.json +0 -9
  497. package/workspace/test-lists/c3-meeting-board.json +0 -5
  498. package/workspace/test-lists/c3-meeting-card.json +0 -5
  499. package/workspace/test-lists/c3-notes-place.json +0 -5
  500. package/workspace/test-lists/c3-notes-series.json +0 -5
  501. package/workspace/test-lists/calendar-time-page.json +0 -5
  502. package/workspace/test-lists/calpop.json +0 -4
  503. package/workspace/test-lists/console3-briefing.json +0 -9
  504. package/workspace/test-lists/console3-foundation.json +0 -9
  505. package/workspace/test-lists/console3-work-page.json +0 -9
  506. package/workspace/test-lists/premium-brief-parity.json +0 -9
  507. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  508. package/workspace/test-lists/report-structure-ui.json +0 -11
  509. package/workspace/test-lists/report-workspace-ui.json +0 -5
  510. package/workspace/test-lists/run3-a.json +0 -5
  511. package/workspace/test-lists/run3-d.json +0 -6
  512. package/workspace/test-lists/run4-c.json +0 -13
  513. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  514. package/workspace/test-lists/today-mentions-cards.json +0 -5
  515. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -3,13 +3,16 @@
3
3
  * (public/pm/report-chat.js), and this view shows it in the czViewer card (cozy-viewer.js): no #dlg, no old tab, no premium.css.
4
4
  *
5
5
  * A NEW REPORT (block.proposal) is drawn as the design's slide deck: kind "Slide deck", the report's name, one large slide (the title slide,
6
- * then one slide per section every new report has), ‹ "Slide n of N" ›, and the thumbnails. Under it, the part the design does not draw yet
7
- * ("Waiting for design"): who it is for and its format, the Schedule chip, and Set it up (POST /api/report-setups/setup). A report with
8
- * Schedule Off (none said) is then paused at once with POST /api/report-setups/edit, so it runs once (PM, 2026-10-21).
9
- * A SET-UP REPORT (block.id), Waiting for design: the Schedule chip (POST .../edit), Structure | Design with their versions, the cycles (Open
6
+ * then one slide per section every new report has), ‹ "Slide n of N" ›, and the thumbnails. Under it, At a glance as the Brief draws it
7
+ * (premium-uncovered-features, canvas RpBrief): For, Read by, Goes out (the Schedule chip) and Format, then Set it up
8
+ * (POST /api/report-setups/setup). A report with Schedule Off (none said) is then paused at once with POST /api/report-setups/edit, so it
9
+ * runs once (PM, 2026-10-21).
10
+ * A SET-UP REPORT (block.id): At a glance with the Schedule chip (POST .../edit), Structure | Design with their versions, the cycles (Open
10
11
  * opens one in the report panel, czViews.openReport), Share, Discard or Archive, and Delete template (POST .../remove). A change Claude proposes
11
12
  * in words (block.structure, block.design, block.schedule) shows as one press. Structure: GET /api/report-structure; turn, accept (Use this) and
12
- * revert (Undo). Design: GET /api/report-design and its version renders; turn, accept (This is it) and revert. A confirm asks in the card.
13
+ * revert (Undo). Design is the look conversation's card (canvas RpDesign): the name, who reads it and when it goes out, "Previewing new look"
14
+ * while the shown version is not the saved one, what the look follows (its samples and rules), Current beside New look, the preview, then
15
+ * Use it (accept) and Keep current (revert to the saved look). GET /api/report-design and its version renders. A confirm asks in the card.
13
16
  *
14
17
  * Every write is a press here, behind the launch nonce (http.js pmPost). Claude writes nothing: the routes refuse an agent session. A render is
15
18
  * HTML the server sanitized, shown in a frame with an empty sandbox, so nothing in it runs. Nothing is sent outward. */
@@ -44,12 +47,16 @@ export function schedChoices(cur) {
44
47
  }
45
48
 
46
49
  const T = new Map(); // view id → its state
47
- const WAIT = (f) => `<span class="vz-wait" data-cz-placeholder="${esc(f)}">Waiting for design</span>`;
50
+ /** The report parts' sheet (cozy-vw-rp.css), added to the page once (premium-report-read.js adds the same one). */
51
+ function rpStyle() {
52
+ if (typeof document === 'undefined' || document.querySelector('link[data-rp-css]')) return;
53
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/cozy-vw-rp.css'; l.setAttribute('data-rp-css', ''); document.head.appendChild(l);
54
+ }
48
55
  const SV = (d, n = 16) => `<svg viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true"><path d="${d}"/></svg>`;
49
56
  /** Open (or refresh) the view of a checked report block (report-chat.js cleanBlock). */
50
57
  export function openReportTab(block) {
51
58
  if (!block) return null;
52
- vzStyle();
59
+ vzStyle(); rpStyle();
53
60
  const id = 'report:' + (block.id || block.proposal.name).toLowerCase().replace(/[^a-z0-9]+/g, '-').slice(0, 60);
54
61
  let t = T.get(id);
55
62
  if (!t || JSON.stringify(t.block) !== JSON.stringify(block)) {
@@ -86,6 +93,7 @@ async function loadDesign(t) {
86
93
  t.Z = r.design;
87
94
  if (t.dv == null) t.dv = t.Z.current != null ? t.Z.current : (t.Z.saved ? t.Z.saved.version : null);
88
95
  await renderOf(t, t.dv);
96
+ if (t.Z.saved) await renderOf(t, t.Z.saved.version);
89
97
  if (t.Z.running) poll(t, 'design');
90
98
  }
91
99
  async function renderOf(t, n) {
@@ -119,6 +127,9 @@ function schedHtml(t, cur) {
119
127
  ? `<div class="vz-r1 vz-g6" role="group" aria-label="Day">${Object.keys(DAYN).slice(0, 5).map((d) => `<button type="button" class="vz-dbtn vz-hv" data-rt="day|${d}" aria-pressed="${cur.day === d}">${d}</button>`).join('')}</div>` : '';
120
128
  return chip + `<div class="vz-schm" role="menu" aria-label="Schedule">${opts}${days}<p class="vz-note">Or say it in the chat: “make it every two weeks”.</p></div>`;
121
129
  }
130
+ /** At a glance (RpBrief): For, Read by, Goes out (the Schedule chip, html) and Format. A field no record holds says "not said". */
131
+ const glance = (forTxt, readBy, goes, fmt) => `<dl class="rp-kv"><dt>For</dt><dd>${forTxt ? esc(forTxt) : '<span class="rp-ns">not said</span>'}</dd><dt>Read by</dt><dd>${readBy ? esc(readBy) : '<span class="rp-ns">not said</span>'}</dd>`
132
+ + `<dt>Goes out</dt><dd class="vz-rpc">${goes}</dd><dt>Format</dt><dd>${esc(fmt || 'PDF')}</dd></dl>`;
122
133
  const sectionsHtml = (L) => `<ol class="vz-secs">${L.map(([h, d]) => `<li><b>${esc(h)}</b>${d ? `<span>${esc(d)}</span>` : ''}</li>`).join('')}</ol>`;
123
134
  function askHtml(t) {
124
135
  const A = t.ask; if (!A) return '';
@@ -137,9 +148,8 @@ function newHtml(t) {
137
148
  return `<div class="vz-dks" role="group" aria-roledescription="slide" aria-label="Slide ${i + 1} of ${L.length}: ${esc(s.h)}"><p class="vz-dke">${esc(s.eye)}</p><h2>${esc(s.h)}</h2>${s.t ? `<p>${esc(s.t)}</p>` : ''}</div>`
138
149
  + `<div class="vz-dkn"><button type="button" class="vz-dkb vz-hv" data-rt="sl|-1" aria-label="Previous slide"${i === 0 ? ' disabled' : ''}>${SV('M15 6l-6 6 6 6')}</button><span aria-live="polite">Slide ${i + 1} of ${L.length}</span><button type="button" class="vz-dkb vz-hv" data-rt="sl|1" aria-label="Next slide"${i === L.length - 1 ? ' disabled' : ''}>${SV('M9 6l6 6-6 6')}</button></div>`
139
150
  + `<div class="vz-dkt" role="group" aria-label="Slides">${L.map((x, k) => `<button type="button" class="vz-hv" data-rt="go|${k}" aria-label="Slide ${k + 1}: ${esc(x.h)}"${k === i ? ' aria-current="true"' : ''}><span>${esc(x.h)}</span></button>`).join('')}</div>`
140
- + `<section class="vz-blk" aria-label="Set it up"><div class="vz-r1"><h3>New report · from this chat</h3>${WAIT('Report setup from a chat')}</div>`
141
- + `<p class="vz-note">For ${esc(p.audience)} · ${esc(OUT[p.output] || p.output)}. Every new report has these sections. Once it is set up, ask in the chat to shape them.</p>`
142
- + `<div class="vz-rpc">${schedHtml(t, t.sched)}</div><div class="vz-r1">${btn('setup', t.busy ? 'Setting it up' : 'Set it up', { off: t.busy })}</div></section>`;
151
+ + `<section class="vz-blk rp-brief" aria-label="Set it up"><p class="rp-lbl">At a glance</p>${glance(p.purpose, p.audience, schedHtml(t, t.sched), OUT[p.output] || p.output)}`
152
+ + `<p class="vz-note">Every new report has these sections. Once it is set up, ask in the chat to shape them.</p><div class="vz-r1">${btn('setup', t.busy ? 'Setting it up' : 'Set it up', { off: t.busy })}</div></section>`;
143
153
  }
144
154
  function setupHtml(t) {
145
155
  const s = t.setup;
@@ -147,8 +157,7 @@ function setupHtml(t) {
147
157
  if (t.gone) return `<p class="vz-msg">This template (${esc(t.block.id)}) is deleted, or it is not set up in this workspace. Its issued reports are kept.</p>${cyclesHtml(t)}`;
148
158
  const cur = s.status === 'paused' ? 'off' : s.schedule;
149
159
  const want = t.block.schedule && !sameSched(t.block.schedule, cur) ? `<div class="vz-ask"><p>Claude proposes: <b>${esc(schedWords(t.block.schedule))}</b></p><div>${btn('sched-use', 'Change the schedule', { off: t.busy })}</div></div>` : '';
150
- return `<div class="vz-r1">${WAIT('Report template')}</div><p class="vz-note">For ${esc(s.audience || 'no one named')} · ${esc(OUT[s.output] || s.output)}${s.next_draft ? ' · next draft ' + esc(s.next_draft.slice(0, 10)) : ''}</p>`
151
- + `<div class="vz-rpc">${schedHtml(t, cur)}</div>${want}`
160
+ return `<div class="rp-brief"><p class="rp-lbl">At a glance</p>${glance(s.purpose, s.audience, schedHtml(t, cur) + (s.next_draft ? ` <span class="vz-note">next draft ${esc(s.next_draft.slice(0, 10))}</span>` : ''), OUT[s.output] || s.output)}</div>${want}`
152
161
  + `<div class="vz-sg" role="group" aria-label="Step"><button type="button" data-rt="view|structure" aria-pressed="${t.view === 'structure'}">Structure</button><button type="button" data-rt="view|design" aria-pressed="${t.view === 'design'}">Design</button></div>`
153
162
  + (t.view === 'design' ? designHtml(t) : structureHtml(t)) + cyclesHtml(t)
154
163
  + `<div class="vz-r1">${btn('remove', 'Delete template', { sec: true, off: t.busy })}</div>`;
@@ -169,18 +178,28 @@ function structureHtml(t) {
169
178
  const undo = V.some((v) => v.n < (S ? S.current : 0)) ? btn('s-undo', 'Undo', { sec: true, off: t.busy }) : '';
170
179
  return `${stepper('sv', shown, V, S && S.saved)}${ask}${working}${sectionsHtml(L)}${!V.length ? '<p class="vz-note">No structure version yet: each cycle uses these sections. Say in the chat how to shape them.</p>' : ''}${save || undo ? `<div class="vz-r1">${undo}${save}</div>` : ''}`;
171
180
  }
181
+ /** The look conversation's card (RpDesign): the preview of the shown look against the saved one, Use it and Keep current. */
172
182
  function designHtml(t) {
173
183
  const Z = t.Z;
174
184
  if (!Z) return '<p class="vz-note" role="status">Reading the design.</p>';
175
185
  if (Z.err) return `<p class="vz-msg">${esc(Z.err)}</p>`;
176
- const V = Z.versions || [], saved = Z.saved ? Z.saved.version : null;
186
+ const V = Z.versions || [], saved = Z.saved ? Z.saved.version : null, s = t.setup || {};
177
187
  const ask = t.block.design && !Z.running ? `<div class="vz-ask"><p>Your change: <b>“${esc(t.block.design)}”</b></p><div>${btn('d-turn', 'Make the next version', { off: t.busy })}</div></div>` : '';
178
- const working = Z.running ? '<p class="vz-note" role="status">PMOS is making the next version.</p>' : '';
188
+ const working = Z.running ? '<p class="vz-note" role="status">PMOS is making the next look.</p>' : '';
189
+ const preview = t.dv != null && t.dv !== saved;
190
+ const head = `<div class="vz-r1"><div class="rp-grow"><h2 class="rp-h2">${esc(s.name || t.block.id)}</h2><p class="vz-note">${esc([s.audience, OUT[s.output] || s.output, s.status === 'paused' ? 'not scheduled' : 'goes out ' + schedWords(s.schedule).replace(/^./, (c) => c.toLowerCase())].filter(Boolean).join(' · '))}</p></div>`
191
+ + (preview ? '<span class="cz-pill you">Previewing new look</span>' : t.dv != null ? '<span class="cz-pill ok">Saved look</span>' : '') + '</div>';
192
+ const r = Z.rules || {};
193
+ const follows = (Z.samples || []).map((x) => x.name).concat((r.same || []).slice(0, 3)).filter(Boolean);
194
+ const fol = follows.length ? `<p class="rp-lbl">Follows</p><div class="rp-chips">${follows.map((x) => `<span class="rp-chip">${esc(String(x).slice(0, 40))}</span>`).join('')}</div>` : '';
195
+ const fr = (n, title) => (n != null && t.render.has(n) ? `<iframe sandbox="" tabindex="-1" title="${esc(title)}" data-rt-frame="${n}"></iframe>` : '<span class="rp-std">Standard PMOS look</span>');
196
+ const pair = preview ? `<div class="rp-pair"><button type="button" class="rp-thumb vz-hv" data-rt="dv|${saved == null ? t.dv : saved}"${saved == null ? ' disabled' : ''}><span class="rp-tf">${fr(saved, 'The current look')}</span><span class="rp-tl">Current</span></button>`
197
+ + `<button type="button" class="rp-thumb on" data-rt="dv|${t.dv}" aria-current="true"><span class="rp-tf">${fr(t.dv, 'The new look D' + t.dv)}</span><span class="rp-tl"><b>New look</b> · D${t.dv}</span></button></div>` : '';
179
198
  const frame = t.dv != null ? (t.render.has(t.dv) ? `<div class="vz-pagefr"><iframe sandbox="" title="Design version D${t.dv}" data-rt-frame="${t.dv}"></iframe></div>` : '<p class="vz-note">This version could not be read.</p>')
180
- : '<p class="vz-note">No design version yet. Say in the chat how it should look, or attach a sample. Each cycle uses the standard look until then.</p>';
181
- const save = t.dv != null && t.dv !== saved ? btn('d-accept', 'This is it', { off: t.busy }) : '';
182
- const undo = V.some((v) => v.n < (Z.current || 0)) ? btn('d-undo', 'Undo', { sec: true, off: t.busy }) : '';
183
- return `${stepper('dv', t.dv, V, saved)}${ask}${working}${frame}${save || undo ? `<div class="vz-r1">${undo}${save}</div>` : ''}`;
199
+ : '<p class="vz-note">No look yet. Say in the chat how it should look, or attach a sample. Each cycle uses the standard look until then.</p>';
200
+ const use = preview ? btn('d-accept', 'Use it', { off: t.busy }) + btn('d-keep', 'Keep current', { sec: true, off: t.busy }) : '';
201
+ const undo = !preview && V.some((v) => v.n < (Z.current || 0)) ? btn('d-undo', 'Undo', { sec: true, off: t.busy }) : '';
202
+ return `${head}${stepper('dv', t.dv, V, saved)}${ask}${working}${fol}${pair}${frame}${use || undo ? `<div class="vz-r1">${use}${undo}</div>` : ''}`;
184
203
  }
185
204
  function cyclesHtml(t) {
186
205
  if (!t.docs.length) return '';
@@ -224,7 +243,13 @@ async function press(t, e) {
224
243
  if (a === 'd-turn') { t.busy = true; t.msg = ''; redraw(t); const r = await post('/api/report-design/turn', { id, text: t.block.design, points: [] }); if (!r || !r.ok) { t.busy = false; t.msg = 'That did not start: ' + why(r, 'no answer') + '.'; redraw(t); return; } t.Z = Object.assign({}, t.Z, { running: true }); t.block = Object.assign({}, t.block, { design: undefined }); redraw(t); poll(t, 'design'); return; }
225
244
  if (a === 's-accept') { await act(t, async () => { const r = await post('/api/report-structure/accept', { id, n: t.sv }); if (!r || !r.ok) return why(r, 'The structure was not saved.'); t.S = r.structure; return 'S' + t.sv + ' is saved. The next cycle follows it.'; }); return; }
226
245
  if (a === 's-undo') { const V = t.S.versions.filter((x) => x.n < t.S.current); const to = V[V.length - 1].n; await act(t, async () => { const r = await post('/api/report-structure/revert', { id, n: to }); if (!r || !r.ok) return why(r, 'Undo did not go through.'); t.S = r.structure; t.sv = t.S.current; return 'Back to S' + to + '.'; }); return; }
227
- if (a === 'd-accept') { await act(t, async () => { const r = await post('/api/report-design/accept', { id, n: t.dv }); if (!r || !r.ok) return why(r, 'The design was not saved.'); t.Z = r.design; return 'D' + t.dv + ' is the saved design. The next cycle follows it.'; }); return; }
246
+ if (a === 'd-accept') { await act(t, async () => { const r = await post('/api/report-design/accept', { id, n: t.dv }); if (!r || !r.ok) return why(r, 'The design was not saved.'); t.Z = r.design; return 'Using the new look (D' + t.dv + '). The next cycle follows it, and every section and figure stays.'; }); return; }
247
+ if (a === 'd-keep') {
248
+ const Z = t.Z, saved = Z.saved ? Z.saved.version : null;
249
+ if (saved == null) { t.dv = null; t.msg = 'It keeps the standard look. The new look stays in the versions until you press Use it.'; redraw(t); return; }
250
+ await act(t, async () => { const r = await post('/api/report-design/revert', { id, n: saved }); if (!r || !r.ok) return why(r, 'The look did not change.'); t.Z = r.design; t.dv = saved; await renderOf(t, saved); return 'Kept the current look (D' + saved + ').'; });
251
+ return;
252
+ }
228
253
  if (a === 'd-undo') { const V = t.Z.versions.filter((x) => x.n < t.Z.current); const to = V[V.length - 1].n; await act(t, async () => { const r = await post('/api/report-design/revert', { id, n: to }); if (!r || !r.ok) return why(r, 'Undo did not go through.'); t.Z = r.design; t.dv = t.Z.current; await renderOf(t, t.dv); return 'Back to D' + to + '.'; }); return; }
229
254
  if (a === 'share') { const d = t.docs.find((x) => x.path === v); import('./premium-vw-share.js').then((M) => M.shareMenu(b, { name: (d && d.name ? d.name + ' · ' + d.slot : v.split('/').pop()), ws: ws(), rel: v, text: '' })); return; }
230
255
  if (a === 'discard' || a === 'archive' || a === 'unarchive') {
@@ -101,7 +101,8 @@ function tbMount() {
101
101
  const L = live(), i = L.indexOf(document.activeElement); if (!L.length) return;
102
102
  e.preventDefault(); L[(i + (e.key === 'ArrowDown' ? 1 : L.length - 1) + (i < 0 ? 1 : 0)) % L.length].focus();
103
103
  });
104
- items.forEach(([id, label, icon]) => { $('#' + id).onclick = () => czPlaceholderView(label, { icon }); });
104
+ items.forEach(([id, label, icon]) => { $('#' + id).onclick = id === 'srcItem' ? () => import('./cozy-sources.js').then((M) => M.openSources()) // the designed Sources (premium-uncovered-features E3)
105
+ : () => czPlaceholderView(label, { icon }); });
105
106
  tbReadSrc();
106
107
  setInterval(() => { if (!document.hidden) tbReadSrc(); }, 300000);
107
108
  }
@@ -285,7 +286,7 @@ export function openChatPage(key, label) {
285
286
  loadThread(key);
286
287
  }
287
288
  tbMount(); // the top bar first: the menu holds the Settings item the code below reads
288
- { const b = $('#settingsBtn'); if (b) b.onclick = () => czPlaceholderView('Settings', { icon: 'gear' }); } // Settings has no design yet (premium-agreed-design)
289
+ { const b = $('#settingsBtn'); if (b) b.onclick = () => import('./cozy-settings.js').then((M) => M.openSettings()); } // the designed Settings (premium-uncovered-features E3)
289
290
 
290
291
  /* ── toast ──────────────────────────────────────────────────────────────────────────────────────────────── */
291
292
  let tt = null;
@@ -913,6 +914,9 @@ export function pvClose() {
913
914
  }
914
915
  export const pvOpenBell = () => pvOpen('bell');
915
916
  function pvOpen(kind) {
917
+ // premium-uncovered-features: Search is the place menu's palette (E1) and the bell's results are in New for you (E2)
918
+ if (kind === 'pal') { import('./cozy-search.js').then((M) => M.openSearch({})); return; }
919
+ if (kind === 'bell') { import('./cozy-news.js').then((M) => M.openNews({})); return; }
916
920
  if (pvOv.kind === kind) { pvClose(); return; }
917
921
  if (pvOv.kind) pvClose();
918
922
  const ae = document.activeElement; pvOv.back = ae && ae !== document.body ? ae : $('#moreBtn');
@@ -1028,11 +1032,7 @@ addEventListener('keydown', (e) => {
1028
1032
  else if ((e.ctrlKey || e.metaKey) && (e.key === 'k' || e.key === 'K')) { e.preventDefault(); pvClose(); }
1029
1033
  return;
1030
1034
  }
1031
- if (!$('#pvOv') || ($('#dlg').classList.contains('on') && !homeDock())) return; // Home's docked chat is always open: Ctrl K still searches
1032
- if ((e.ctrlKey || e.metaKey) && !e.altKey && (e.key === 'k' || e.key === 'K')) { e.preventDefault(); pvOpen('pal'); return; }
1033
- if ($('#dlg').classList.contains('on')) return;
1034
- const t = document.activeElement;
1035
- if (e.key === '/' && !e.ctrlKey && !e.metaKey && !e.altKey && !(t && t.matches && t.matches('input,textarea,select,[contenteditable="true"]'))) { e.preventDefault(); pvOpen('pal'); }
1035
+ // Ctrl K and / open Search from the place menu (cozy-nav.js), on every page
1036
1036
  }, true);
1037
1037
  pvMount();
1038
1038
  /* ── Settings: the two things that cannot be defaulted (initiative premium-settings) ────────────────────────────────────────────────────
@@ -19,9 +19,8 @@
19
19
  * calModel(r, view, date, today) pure · calHtml(M, esc) pure · mountCal(el, st, d) · openCalendar(d, st?) */
20
20
  import { weekView } from './premium-meeting.js';
21
21
  import { open as vOpen, current as vCur } from './cozy-viewer.js';
22
- import { placeholderHtml } from './cozy-placeholder.js';
23
22
  import { pmGet } from './http.js';
24
- import { notesGroups } from './premium-vw-notes.js';
23
+ import { notesCards } from './premium-vw-notes.js';
25
24
  import './premium-vw-open.js'; // registers window.czViews
26
25
 
27
26
  export const VIEWS = [['day', 'Day'], ['week', 'Week'], ['month', 'Month']];
@@ -183,10 +182,10 @@ export const NEW_NOTE_TIP = 'Starts an untitled note now. It needs no calendar e
183
182
  export const SEARCH_HINT = 'Search notes and what was said';
184
183
  const sameEv = (m, row) => !!m && m.kind === 'event' && ((m.event_id && row.id && m.event_id === row.id) || (Date.parse(m.start) === Date.parse(row.at) && String(m.title || '').toLowerCase().trim() === String(row.title || '').toLowerCase().trim()));
185
184
 
186
- /** Monday to Friday of the week answer (weekView W), with the day `picked` pressed. A day's bar is its meeting count; its line is "done" for a
185
+ /** Monday to Friday of the week of `anchor` (today when left out) in the week answer (weekView W), with the day `picked` pressed. A day's bar is its meeting count; its line is "done" for a
187
186
  * past day with meetings, else its meeting hours, and "today". */
188
- export function stripModel(W, picked, today) {
189
- const keys = (() => { const [y, m, d] = parts(today), w0 = (new Date(Date.UTC(y, m - 1, d)).getUTCDay() + 6) % 7; return [0, 1, 2, 3, 4].map((i) => keyOf(new Date(Date.UTC(y, m - 1, d - w0 + i)))); })();
187
+ export function stripModel(W, picked, today, anchor = today) {
188
+ const keys = (() => { const [y, m, d] = parts(anchor), w0 = (new Date(Date.UTC(y, m - 1, d)).getUTCDay() + 6) % 7; return [0, 1, 2, 3, 4].map((i) => keyOf(new Date(Date.UTC(y, m - 1, d - w0 + i)))); })();
190
189
  const ok = !!(W && W.state === 'ok');
191
190
  return keys.map((k) => {
192
191
  const rows = ok ? ((W.days.find((x) => x.key === k) || {}).rows || []) : [];
@@ -235,111 +234,202 @@ export function dayModel(W, notes, picked, today, now = Date.now()) {
235
234
  return { title: picked === today ? 'Today, ' + label : label, sub: ents.length ? plural(ents.length, 'entry', 'entries') : 'No meetings', rows: ents, state: W && W.state === 'error' ? 'error' : 'ok', reason: W && W.reason };
236
235
  }
237
236
  const chipHtml = (c, k) => `<span class="vz-cc" data-k="${k || ''}">${esc(c)}</span>`;
238
- /** The card's body. st = { tab, picked, q, searching, more: { view, date, M } | null }. */
237
+ const SVG = { prev: 'M15 6l-6 6 6 6', next: 'M9 6l6 6-6 6', plus: 'M12 5v14M5 12h14', find: 'M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4', x: 'M6 6l12 12M18 6L6 18',
238
+ chev: 'M10 7l5 5-5 5', down: 'M7 10l5 5 5-5', mic: 'M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z' };
239
+ const sv = (k, w = 16) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"><path d="${SVG[k]}"/></svg>`;
240
+ export const CAL_HINT = 'Press a meeting to open its prep or notes here';
241
+ /** The range's name as the design writes it (MtCalendar): "19 to 25 Oct", "28 Sep to 4 Oct", "Thu 22 Oct", "October 2026". */
242
+ export function rangeTitle(view, date, today) {
243
+ if (view === 'month') { const [y, m] = parts(date); return `${MONTH[m - 1]} ${y}`; }
244
+ if (view === 'day') { const [, m, d] = parts(date); return `${DOW[wd(date)]} ${d} ${MON[m - 1]}${date === today ? ' · today' : ''}`; }
245
+ const a = addDays(date, -wd(date)), b = addDays(a, 6), [, m1, d1] = parts(a), [, m2, d2] = parts(b);
246
+ return m1 === m2 ? `${d1} to ${d2} ${MON[m2 - 1]}` : `${d1} ${MON[m1 - 1]} to ${d2} ${MON[m2 - 1]}`;
247
+ }
248
+ /** A meeting block's words beside its title: what it is about, and whether its notes or its recording are there. */
249
+ function evSub(row, notes) {
250
+ const n = (Array.isArray(notes) ? notes : []).filter((x) => sameEv(x.meeting, row)).sort((a, b) => String(b.updated_at || '').localeCompare(String(a.updated_at || '')))[0] || null;
251
+ const about = row.level ? (row.level.kind === 'portfolio' ? 'Portfolio' : clip(row.level.name || row.level.id, 40)) : '';
252
+ const st = n && n.state === 'ended' ? 'notes ready' : n && (n.state === 'recording' || n.state === 'paused') ? 'recording' : '';
253
+ return { linked: !!row.level, text: [about, st].filter(Boolean).join(' · '), note: n ? n.id : '' };
254
+ }
255
+ /** The week grid (MtCalendar): an hour gutter, Monday to Friday, Saturday and Sunday narrow; each day head with its load bar and hours; each
256
+ * meeting a block, linked ones filled and the others dashed with "Link it"; the next or current meeting today ringed; the now line on today. */
257
+ export function weekHtml(M, notes, nowMin, now = Date.now()) {
258
+ const H = 52, hours = []; for (let m = M.from; m < M.to; m += 60) hours.push(m);
259
+ const top = (m) => ((m - M.from) / 60) * H;
260
+ const today = M.days.find((x) => x.today);
261
+ const ring = today ? (today.timed.find((e) => e.s <= nowMin && e.e > nowMin) || today.timed.filter((e) => e.s > nowMin).sort((a, b) => a.s - b.s)[0] || null) : null;
262
+ const pct = (h) => Math.min(100, (h / DAY_LOAD) * 100).toFixed(1) + '%';
263
+ const col = (x) => {
264
+ const hd = `<div class="vzc-hd${x.today ? ' now' : ''}${x.weekend ? ' we' : ''}"><button type="button" class="vzc-dn" data-c="gday" data-k="${x.key}" aria-label="${esc('Open ' + x.label + (x.today ? ', today' : ''))}">${x.dow} ${x.n}${x.today ? ' · today' : ''}</button>${x.weekend ? '' : `<span class="vzc-lb" data-tl="${pct(x.hrs)}"><i></i></span><small>${x.hrs ? +x.hrs.toFixed(1) + ' h' : ' '}</small>`}</div>`;
265
+ const blocks = x.timed.map((e) => { const S = evSub(e.row, notes); return `<button type="button" class="vzc-ev${S.linked ? '' : ' un'}${e === ring ? ' ring' : ''}${e.past ? ' past' : ''}" data-c="ev" data-ref="${esc(e.ref)}" data-tl="${top(e.s) + 1}px ${Math.max(22, ((e.e - e.s) / 60) * H - 3)}px ${e.lane} ${e.lanes}" title="${esc(e.title + ', ' + e.time)}"><b>${esc(e.title)}</b>${S.linked ? (S.text ? `<span>${esc(S.text)}</span>` : '') : '<span class="vzc-link" data-c="link" data-ref="' + esc(e.ref) + '">Link it</span>'}</button>`; }).join('');
266
+ const allday = x.allday.filter((a) => a.row).map((a) => `<button type="button" class="vzc-ad" data-c="ev" data-ref="${esc(a.ref)}">${esc(a.title)}</button>`).join('');
267
+ return `<div class="vzc-col${x.weekend ? ' we' : ''}">${hd}${allday ? `<div class="vzc-ads">${allday}</div>` : ''}<div class="vzc-body${x.today ? ' now' : ''}" data-tl="${hours.length * H}px">${x.today && nowMin != null && nowMin >= M.from && nowMin <= M.to ? `<i class="vzc-nl" data-tl="${top(nowMin)}px" aria-hidden="true"></i>` : ''}${blocks}</div></div>`;
268
+ };
269
+ const gut = `<div class="vzc-col vzc-gut"><div class="vzc-hd"></div><div class="vzc-body" data-tl="${hours.length * H}px">${hours.map((m, i) => `<i data-tl="${i * H}px">${pad(m / 60)}</i>`).join('')}</div></div>`;
270
+ return `<div class="vzc-wk">${gut}${M.days.map(col).join('')}</div>`;
271
+ }
272
+ /** The day (MtPhone right): the five weekdays, "3 meetings · 2 h", then each entry at its time; linked filled, the others dashed with Link it. */
273
+ export function dayHtml(strip, D) {
274
+ const mins = D.rows.reduce((a, r) => a + (r.row && hasTime(r.row.at) && hasTime(r.row.end) ? Math.max(0, (Date.parse(r.row.end) - Date.parse(r.row.at)) / 60000) : 0), 0);
275
+ const h = [`<div class="vzc-days" role="group" aria-label="This week">${strip.map((d) => `<button type="button" class="vzc-dy" aria-pressed="${d.on}" data-c="day" data-k="${d.key}" aria-label="${esc(d.dow + ' ' + d.n + (d.today ? ', today' : '') + ': ' + plural(d.count, 'meeting'))}"><span>${d.dow[0] + d.dow.slice(1).toLowerCase()}</span><b>${d.n}</b></button>`).join('')}</div>`];
276
+ if (D.state === 'error') return h.join('') + `<p class="vz-empty" role="status">The calendar was not read. ${esc(D.reason || '')}</p>`;
277
+ const allEv = D.rows.every((r) => r.kind === 'event');
278
+ h.push(`<p class="vzc-mut">${D.rows.length ? (allEv ? plural(D.rows.length, 'meeting') : plural(D.rows.length, 'entry', 'entries')) + (mins ? ' · ' + hrsText(Math.round(mins)) : '') : 'No meetings on this day'}</p>`);
279
+ D.rows.forEach((r, i) => h.push(`<div class="vzc-hr"><span class="vzc-t">${esc(r.time)}</span><button type="button" class="vzc-de${r.linked ? '' : ' un'}${r.next ? ' ring' : ''}" data-c="open" data-i="${i}"${r.next ? ' data-next' : ''}><b>${esc(r.title)}</b><small>${esc(r.sub)}</small>${r.chip === 'Link it' || r.chip === 'Not linked' ? `<span class="vz-cc vzc-link" data-c="link" data-i="${i}" role="button" tabindex="0" title="Link it to an initiative">Link it</span>` : chipHtml(r.chip, r.k)}</button></div>`));
280
+ return h.join('');
281
+ }
282
+ /** The month (Day, Week and Month): a grid of weeks, each day with its number, how many meetings, the first three and "+N more". */
283
+ export function monthHtml(M) {
284
+ const cells = M.days.map((x) => {
285
+ const ev = [...x.allday.filter((a) => a.row), ...x.timed].sort((a, b) => (a.s || 0) - (b.s || 0));
286
+ return `<div class="vzc-md${x.inRange ? '' : ' out'}${x.today ? ' now' : ''}"><button type="button" class="vzc-mn" data-c="gday" data-k="${x.key}" aria-label="${esc(x.label + (x.today ? ', today' : '') + ': ' + plural(x.meetings, 'meeting'))}"><b>${x.n}</b>${x.meetings ? `<i>${x.meetings}</i>` : ''}</button>${ev.slice(0, 3).map((e) => `<button type="button" class="vzc-me${e.row && e.row.level ? '' : ' un'}" data-c="ev" data-ref="${esc(e.ref)}" title="${esc(e.title)}">${e.s != null ? `<time>${hh(e.s)}</time>` : ''}${esc(e.title)}</button>`).join('')}${ev.length > 3 ? `<button type="button" class="vzc-more" data-c="gday" data-k="${x.key}">+${ev.length - 3} more</button>` : ''}</div>`;
287
+ }).join('');
288
+ return `<div class="vzc-mg"><div class="vzc-mh">${DOW.map((d) => `<span>${d}</span>`).join('')}</div><div class="vzc-mb">${cells}</div></div>`;
289
+ }
290
+ /** The card's body. st = { tab, view, date, q, filter, open: Set of series keys, searching }. X = { M (calModel of the range), W (weekView), notes,
291
+ * strip, day, cards (notesCards), msg, nowMin } */
239
292
  export function calViewHtml(st, X) {
240
293
  const h = [];
241
- h.push(`<div class="vz-r1"><div class="vz-seg" role="tablist" aria-label="Meetings">${[['cal', 'Calendar'], ['notes', 'Notes']].map(([k, l]) => `<button type="button" role="tab" aria-selected="${st.tab === k}" data-c="tab" data-k="${k}">${l}</button>`).join('')}</div><span class="vz-sp"></span><button type="button" class="vz-new vz-hv" data-c="new" title="${esc(NEW_NOTE_TIP)}"><i aria-hidden="true"></i>New note</button></div>`);
294
+ h.push(`<div class="vzm-tabs vzc-tabs" role="tablist" aria-label="Meetings">${[['cal', 'Calendar'], ['notes', 'Notes']].map(([k, l]) => `<button type="button" role="tab" class="vzm-tab" aria-selected="${st.tab === k}" data-c="tab" data-k="${k}">${l}</button>`).join('')}</div>`);
242
295
  if (X.msg) h.push(`<p class="vz-msg" role="status" data-tone="${X.msg.tone || ''}">${esc(X.msg.text)}</p>`);
243
296
  if (st.tab === 'cal') {
244
- const S = X.strip || [], D = X.day;
245
- h.push(`<div class="vz-days" role="group" aria-label="This week">${S.map((d) => `<button type="button" class="vz-day vz-hv" aria-pressed="${d.on}" data-c="day" data-k="${d.key}" aria-label="${esc(d.dow + ' ' + d.n + (d.today ? ', today' : '') + ': ' + plural(d.count, 'meeting'))}"><span>${d.dow}</span><b>${d.n}</b><i aria-hidden="true"${d.count ? ` data-on="${Math.min(3, d.count)}"` : ''}></i><small>${esc(d.sub || ' ')}</small></button>`).join('')}</div>`);
246
- if (!D) h.push('<p class="vz-empty" role="status">Reading the calendar PMOS holds.</p>');
247
- else if (D.state === 'error') h.push(`<p class="vz-empty" role="status">The calendar was not read. ${esc(D.reason || '')}</p>`);
248
- else {
249
- h.push(`<h3>${esc(D.title)} <small>${esc(D.sub)}</small></h3>`);
250
- D.rows.forEach((r, i) => h.push(`<button type="button" class="vz-row vz-hv" data-c="open" data-i="${i}"${r.next ? ' data-next' : ''}><time>${esc(r.time)}</time><span><b>${esc(r.title)}</b><small>${esc(r.sub)}</small></span>${r.chip === 'Link it' || r.chip === 'Not linked' ? `<span class="vz-cc" data-c="link" data-i="${i}" role="button" tabindex="0" title="Link it to an initiative">${esc(r.chip)}</span>` : chipHtml(r.chip, r.k)}</button>`));
251
- }
252
- h.push(`<p class="vz-note">${esc(CAL_FOOT)}</p>`);
253
- h.push(`<div class="vz-more2"><div class="vz-r1"><button type="button" class="vz-link vz-hv" data-c="more" aria-expanded="${!!st.more}">Day, week and month</button>${st.more ? `<span class="vz-wait" data-cz-placeholder="Day/Week/Month calendar">Waiting for design</span>` : ''}</div>${st.more ? moreHtml(st.more) : ''}</div>`);
297
+ h.push(`<div class="vzc-head"><h2 class="vzm-h2">${esc(rangeTitle(st.view, st.date, X.today))}</h2><button type="button" class="vzm-ib vz-hv" data-c="nav" data-k="-1" aria-label="Previous ${st.view}">${sv('prev')}</button><button type="button" class="vzm-ib vz-hv" data-c="nav" data-k="1" aria-label="Next ${st.view}">${sv('next')}</button><button type="button" class="vzm-btn vzm-soft" data-c="nav" data-k="0">Today</button><span class="vz-sp"></span>`
298
+ + `<div class="vzp-seg" role="group" aria-label="Range">${VIEWS.map(([k, l]) => `<button type="button" data-c="view" data-k="${k}" aria-pressed="${st.view === k}">${l}</button>`).join('')}</div><button type="button" class="vzm-ib vzm-solid" data-c="new" aria-label="New note" title="${esc(NEW_NOTE_TIP)}">${sv('plus')}</button></div>`);
299
+ const M = X.M;
300
+ if (!M) h.push('<p class="vz-empty" role="status">Reading the calendar PMOS holds.</p>');
301
+ else if (M.state !== 'ok' && st.view !== 'day') h.push(`<p class="vz-empty" role="status">The calendar was not read. ${esc(M.reason || '')}</p>`);
302
+ else if (st.view === 'week') h.push(weekHtml(M, X.notes, X.nowMin) + (M.empty ? `<p class="vz-empty" role="status">${esc(M.empty)}</p>` : ''));
303
+ else if (st.view === 'month') h.push(monthHtml(M) + (M.empty ? `<p class="vz-empty" role="status">${esc(M.empty)}</p>` : ''));
304
+ else h.push(X.day ? dayHtml(X.strip, X.day) : '<p class="vz-empty" role="status">Reading the calendar PMOS holds.</p>');
305
+ h.push(`<div class="vzc-leg"><span><i class="vzc-sw"></i>Linked</span><span><i class="vzc-sw un"></i>Not linked</span><span class="vz-sp"></span><span title="${esc(CAL_FOOT)}">${esc(CAL_HINT)}</span></div>`);
254
306
  } else {
255
- h.push(`<input type="search" class="vz-search" data-c="q" aria-label="${esc(SEARCH_HINT)}" placeholder="${esc(SEARCH_HINT)}" value="${esc(st.q || '')}">`);
256
- const G = X.groups;
257
- if (!G) h.push('<p class="vz-empty" role="status">Reading the notes.</p>');
258
- else if (G.state === 'error') h.push(`<p class="vz-empty" role="status">The notes could not be read. ${esc(G.error)}</p>`);
259
- else if (!G.total) h.push('<p class="vz-empty">No notes yet. Notes you record show here, grouped by initiative.</p>');
260
- else if (!G.groups.length) h.push(`<p class="vz-empty" role="status">${st.searching ? 'Searching what was said.' : 'No note matches “' + esc(st.q) + '”.'}</p>`);
261
- else G.groups.forEach((g, gi) => h.push(`<section class="vz-grp"><h3>${esc(g.title)} <small>${esc(g.n)}</small></h3>${g.rows.map((r, ri) => `<button type="button" class="vz-row vz-sm vz-hv" data-c="note" data-id="${esc(r.id)}"${r.series ? ` data-series="${esc(r.series)}"` : ''}><span><b>${esc(r.title)}</b><small>${esc(r.sub)}</small></span>${chipHtml(r.chip, r.k)}</button>`).join('')}</section>`));
307
+ const C = X.cards;
308
+ h.push(`<div class="vzm-in vzc-find">${sv('find')}<input type="search" data-c="q" aria-label="${esc(SEARCH_HINT)}" placeholder="${esc(SEARCH_HINT)}" value="${esc(st.q || '')}">${st.q ? `<span class="vzc-mut">${C && C.state === 'ok' ? plural(C.count, 'note') : ''}</span><button type="button" class="vzm-ib vz-hv" data-c="clear" aria-label="Clear the search">${sv('x', 14)}</button>` : ''}</div>`);
309
+ h.push(`<div class="vzc-chips" role="group" aria-label="Show">${NOTE_FILTERS.map(([k, l]) => `<button type="button" class="vzm-chip${(st.filter || 'all') === k ? ' on' : ''}" data-c="filter" data-k="${k}" aria-pressed="${(st.filter || 'all') === k}">${l}</button>`).join('')}</div>`);
310
+ if (!C) h.push('<p class="vz-empty" role="status">Reading the notes.</p>');
311
+ else if (C.state === 'error') h.push(`<p class="vz-empty" role="status">The notes could not be read. ${esc(C.error)}</p>`);
312
+ else if (!C.total) h.push('<p class="vz-empty">No notes yet. Notes you record show here, grouped by initiative.</p>');
313
+ else if (!C.groups.length) h.push(`<p class="vz-empty" role="status">${st.searching ? 'Searching what was said.' : st.q ? 'No note matches “' + esc(st.q) + '”.' : 'No note of this kind.'}</p>`);
314
+ else C.groups.forEach((g) => h.push(`<section class="vzc-grp"><p class="vzm-lbl">${esc(g.title)} <small>${esc(g.n)}</small></p>${g.entries.map((e) => entryHtml(e, st)).join('')}</section>`));
262
315
  }
263
- return `<div class="vz vz-cal" data-tab="${st.tab}">${h.join('')}</div>`;
316
+ return `<div class="vz vz-cal" data-tab="${st.tab}" data-view="${st.view}">${h.join('')}</div>`;
264
317
  }
265
- function moreHtml(M0) {
266
- const M = M0.M;
267
- const seg = `<div class="vz-r1"><div class="vz-seg" role="group" aria-label="Range">${VIEWS.map(([k, l]) => `<button type="button" aria-pressed="${M0.view === k}" data-c="mv" data-k="${k}">${l}</button>`).join('')}</div><span class="vz-sp"></span><button type="button" class="vz-ib vz-small vz-hv" data-c="mn" data-k="-1" aria-label="Before"><svg viewBox="0 0 24 24" width="14" height="14"><path d="M15 6l-6 6 6 6"/></svg></button><button type="button" class="vz-link vz-hv" data-c="mn" data-k="0">Today</button><button type="button" class="vz-ib vz-small vz-hv" data-c="mn" data-k="1" aria-label="After"><svg viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6"/></svg></button></div>`;
268
- if (!M) return seg + '<p class="vz-empty" role="status">Reading the calendar.</p>';
269
- if (M.state !== 'ok') return seg + `<p class="vz-empty">The calendar was not read. ${esc(M.reason || '')}</p>`;
270
- const days = M.days.filter((d) => d.inRange && d.meetings);
271
- return seg + `<h3>${esc(M.title)} <small>${esc(M.caption)}</small></h3>` + (days.length ? days.map((d) => `<p class="vz-dayh">${esc(d.label)}${d.today ? ' · today' : ''}</p>` + [...d.timed, ...d.allday.filter((x) => x.row)].map((x) => `<button type="button" class="vz-row vz-sm vz-hv" data-c="mrow" data-ref="${esc(x.ref)}"><time>${esc(x.time ? x.time.slice(0, 5) : 'All day')}</time><span><b>${esc(x.title)}</b><small>${esc([x.about, x.sub].filter(Boolean).join(' · '))}</small></span></button>`).join('')).join('') : `<p class="vz-empty">${esc(M.empty || 'No meetings.')}</p>`);
318
+ const NOTE_FILTERS = [['all', 'All'], ['linked', 'Linked'], ['unlinked', 'Not linked'], ['nomeeting', 'No meeting']];
319
+ /** A snippet with the searched words marked; everything else escaped. */
320
+ export function markHtml(text, q) {
321
+ const ws = String(q || '').toLowerCase().split(/\s+/).filter((w) => w.length >= 2);
322
+ let out = esc(text);
323
+ for (const w of ws) out = out.replace(new RegExp('(' + esc(w).replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + ')', 'gi'), '<mark>$1</mark>');
324
+ return out;
325
+ }
326
+ const noteRow = (r, st) => `<button type="button" class="vz-hv vzc-nr${r.noMeeting ? ' nm' : ''}" data-c="note" data-id="${esc(r.id)}">${r.noMeeting ? `<span class="vzc-mic">${sv('mic')}</span>` : ''}<span><b>${esc(r.title)}</b>${r.len ? ` <span class="vzc-mut">· ${esc(r.len)}</span>` : ''}${r.noMeeting ? ' <span class="vzm-pill vzc-dash">No meeting</span>' : ''}<small>${r.snip ? markHtml(r.snip, st.q) : esc(r.sub)}</small></span>${r.chip === 'Link it' ? `<span class="vz-cc vzc-link" data-c="nlink" data-id="${esc(r.id)}" role="button" tabindex="0">Link it</span>` : r.chip ? chipHtml(r.chip, r.k) : ''}</button>`;
327
+ function entryHtml(e, st) {
328
+ if (e.kind === 'note') return noteRow(e.row, st);
329
+ const open = st.open && st.open.has(e.key) ? true : st.shut && st.shut.has(e.key) ? false : e.match > 0;
330
+ return `<div class="vzc-card"><button type="button" class="vzc-ch" data-c="ser" data-k="${esc(e.key)}" aria-expanded="${open}">${sv(open ? 'down' : 'chev', 14)}<b>${esc(e.title)}</b><span class="vzc-mut">${esc(e.line)}</span>${e.chip ? chipHtml(e.chip, 'warn') : ''}</button>${open ? e.rows.map((r) => noteRow(r, st)).join('') : ''}</div>`;
272
331
  }
273
332
 
274
333
  /* ── the view (page half) ─────────────────────────────────────────────────────────────────────────────────────── */
275
334
  let CV = null;
276
335
  export function calendarUrl(tab, ws) { return '/premium-viewer.html?' + ['open=' + (tab === 'notes' ? 'notes' : 'calendar'), ws ? 'ws=' + encodeURIComponent(ws) : ''].filter(Boolean).join('&'); }
336
+ const narrow = () => typeof window !== 'undefined' && window.innerWidth <= 760;
277
337
  /** Opens Calendar | Notes in the Viewer. o = { ws, tab: 'cal' | 'notes', date, view, initiative } */
278
338
  export function openCalendar(o = {}) {
279
339
  if (o && (o.openDlg || o.$)) o = {}; // an old caller passed the shell's deps
280
340
  const today = todayKey();
281
- const me = CV = { ws: o.ws || new URLSearchParams(location.search).get('ws') || '', st: { tab: o.tab === 'notes' ? 'notes' : 'cal', picked: o.date && /^\d{4}-\d{2}-\d{2}$/.test(o.date) ? o.date : today, q: '', more: o.view && o.view !== 'day' ? { view: o.view, date: today, M: null } : null }, X: {}, today, seq: 0, initiative: o.initiative || '' };
282
- vOpen({ id: 'calendar', kind: 'Meetings', title: 'Calendar and notes', icon: 'cal', url: calendarUrl(me.st.tab, me.ws), render: (b) => paintCal(me, b), onClose: () => { if (CV === me) CV = null; } });
283
- readCal(me);
284
- if (me.st.more) readMore(me);
341
+ const view = VIEWS.some(([k]) => k === o.view) ? o.view : narrow() ? 'day' : 'week';
342
+ const me = CV = { ws: o.ws || new URLSearchParams(location.search).get('ws') || '', st: { tab: o.tab === 'notes' ? 'notes' : 'cal', view, date: o.date && /^\d{4}-\d{2}-\d{2}$/.test(o.date) ? o.date : today, q: '', filter: 'all', open: new Set() }, X: { today }, today, initiative: o.initiative || '' };
343
+ import('./premium-vw-mtg.js').then((M) => { M.mtgStyle(); if (CV === me) M.widen('cal'); });
344
+ vOpen({ id: 'calendar', kind: 'Meetings', title: 'Calendar and notes', icon: 'cal', url: calendarUrl(me.st.tab, me.ws), render: (b) => paintCal(me, b), onClose: () => { if (CV === me) { CV = null; import('./premium-vw-mtg.js').then((M) => { if (!CV) M.widen(''); }); } } });
345
+ readCal(me); readNotes(me);
285
346
  return me;
286
347
  }
287
348
  export const openNotesTab = (o = {}) => openCalendar({ ...o, tab: 'notes' });
288
349
  const calBody = (me) => (CV === me && vCur() && vCur().id === 'calendar' ? document.querySelector('#czViewer .cz-vw-body') : null);
350
+ const nowMinOf = () => { const t = new Date(); return t.getHours() * 60 + t.getMinutes(); };
351
+ /** The run-time geometry of the week grid: data-tl on a block is "top height lane lanes"; on a day column and the gutter its height; on a load
352
+ * bar its width; on an hour label and the now line their top. Set as custom properties, so the markup carries no inline style. */
353
+ export function placeWeek(el) {
354
+ el.querySelectorAll('[data-tl]').forEach((n) => {
355
+ const v = n.dataset.tl.split(' ');
356
+ if (n.classList.contains('vzc-ev')) ['--t', '--h', '--l', '--lc'].forEach((k, i) => n.style.setProperty(k, v[i]));
357
+ else if (n.classList.contains('vzc-body')) n.style.setProperty('--hh', v[0]);
358
+ else if (n.classList.contains('vzc-lb')) n.style.setProperty('--w', v[0]);
359
+ else n.style.setProperty('--t', v[0]);
360
+ });
361
+ }
289
362
  function paintCal(me, b) {
290
363
  const body = b || calBody(me); if (!body) return;
291
364
  const keep = document.activeElement && document.activeElement.dataset && document.activeElement.dataset.c === 'q' ? document.activeElement.selectionStart : null;
292
- me.X.strip = stripModel(me.W, me.st.picked, me.today);
293
- me.X.day = me.W ? dayModel(me.W, me.notes, me.st.picked, me.today) : null;
365
+ if (me.W) { me.X.strip = stripModel(me.W, me.st.date, me.today, me.st.date); me.X.day = dayModel(me.W, me.notes, me.st.date, me.today); }
366
+ me.X.notes = me.notes; me.X.nowMin = nowMinOf();
367
+ me.X.cards = notesCards(me.notesAnswer, { q: me.st.q, found: me.found, hits: me.hits, filter: me.st.filter, initiative: me.initiative });
294
368
  body.innerHTML = calViewHtml(me.st, me.X);
369
+ placeWeek(body);
295
370
  if (keep != null) { const i = body.querySelector('[data-c="q"]'); if (i) { i.focus(); i.setSelectionRange(keep, keep); } }
296
371
  body.onclick = (e) => calPress(me, e);
297
372
  body.oninput = (e) => { if (e.target.dataset.c === 'q') search(me, e.target.value); };
298
- body.onkeydown = (e) => { if ((e.key === 'Enter' || e.key === ' ') && e.target.dataset.c === 'link') { e.preventDefault(); calPress(me, e); } };
373
+ body.onkeydown = (e) => { if ((e.key === 'Enter' || e.key === ' ') && /^(link|nlink)$/.test(e.target.dataset.c || '')) { e.preventDefault(); calPress(me, e); } };
299
374
  }
300
375
  async function readCal(me) {
301
376
  const wsq = me.ws ? '&ws=' + encodeURIComponent(me.ws) : '';
302
- const weekOfPicked = me.st.picked;
303
- const [w, n] = await Promise.all([pmGet('/api/calendar-views?view=week&date=' + weekOfPicked + wsq), pmGet('/api/notes')]);
304
- if (CV !== me) return;
305
- me.W = weekView(w, me.today); me.notesAnswer = n; me.notes = n && n.ok ? n.notes || [] : [];
306
- me.X.groups = notesGroups(n, { q: me.st.q, found: me.found, initiative: me.initiative });
377
+ const v = me.st.view, d = me.st.date, seq = me.seq = (me.seq || 0) + 1;
378
+ me.X.M = null; paintCal(me);
379
+ const r = await pmGet('/api/calendar-views?view=' + (v === 'month' ? 'month' : 'week') + '&date=' + d + wsq);
380
+ if (CV !== me || me.seq !== seq) return;
381
+ me.X.M = calModel(r, v === 'month' ? 'month' : 'week', d, me.today);
382
+ if (v !== 'month') me.lastWeek = r;
383
+ me.W = v === 'month' ? me.W : weekView(r, me.today);
307
384
  paintCal(me);
308
385
  }
309
- async function readMore(me) {
310
- const m = me.st.more; if (!m) return;
311
- const wsq = me.ws ? '&ws=' + encodeURIComponent(me.ws) : '';
312
- const r = await pmGet('/api/calendar-views?view=' + m.view + '&date=' + m.date + wsq);
313
- if (CV !== me || me.st.more !== m) return;
314
- m.M = calModel(r, m.view, m.date, me.today); paintCal(me);
386
+ async function readNotes(me) {
387
+ const n = await pmGet('/api/notes');
388
+ if (CV !== me) return;
389
+ me.notesAnswer = n; me.notes = n && n.ok ? n.notes || [] : [];
390
+ paintCal(me);
315
391
  }
316
392
  let searchT = null;
317
393
  function search(me, v) {
318
394
  me.st.q = v; clearTimeout(searchT);
319
- me.found = null; me.st.searching = String(v).trim().length >= 2;
320
- me.X.groups = notesGroups(me.notesAnswer, { q: v, found: null, initiative: me.initiative }); paintCal(me);
395
+ me.found = null; me.hits = null; me.st.searching = String(v).trim().length >= 2;
396
+ paintCal(me);
321
397
  if (!me.st.searching) return;
322
398
  searchT = setTimeout(async () => {
323
399
  const r = await pmGet('/api/notes/search?q=' + encodeURIComponent(v.trim()));
324
400
  if (CV !== me || me.st.q !== v) return;
325
401
  me.found = new Set(r && r.ok && Array.isArray(r.ids) ? r.ids : []); me.st.searching = false;
326
- me.X.groups = notesGroups(me.notesAnswer, { q: v, found: me.found, initiative: me.initiative }); paintCal(me);
402
+ me.hits = new Map((r && r.ok && Array.isArray(r.hits) ? r.hits : []).map((x) => [x.id, x]));
403
+ paintCal(me);
327
404
  }, 250);
328
405
  }
329
406
  const mtg = () => import('./premium-vw-mtg.js');
407
+ const blockAt = (me, ref) => { const M = me.X.M; if (!M || !ref) return null; const [k] = ref.split('|'); const d = M.days.find((x) => x.key === k); return d ? [...d.timed, ...d.allday].find((x) => x.ref === ref) || null : null; };
330
408
  async function calPress(me, e) {
331
409
  const t = e.target.closest('[data-c]'); if (!t) return;
332
410
  const c = t.dataset.c, D = me.X.day;
333
411
  if (c === 'tab') { me.st.tab = t.dataset.k; return paintCal(me); }
334
- if (c === 'day') { const was = me.st.picked; me.st.picked = t.dataset.k; paintCal(me); if (me.W && !me.W.days.some((d) => d.key === t.dataset.k) && was !== t.dataset.k) readCal(me); return; }
412
+ if (c === 'view') { // Day and Week draw from the same week answer: switching between them reads nothing
413
+ const was = me.st.view; me.st.view = t.dataset.k;
414
+ if (was !== 'month' && me.st.view !== 'month' && me.X.M && me.X.M.state === 'ok') { me.X.M = calModel(me.lastWeek, 'week', me.st.date, me.today); return paintCal(me); }
415
+ return readCal(me);
416
+ }
417
+ if (c === 'nav') { const k = +t.dataset.k; me.st.date = k ? shift(me.st.view, me.st.date, k) : me.today; return readCal(me); }
418
+ if (c === 'gday') { me.st.view = 'day'; me.st.date = t.dataset.k; return readCal(me); }
419
+ if (c === 'day') { const was = me.st.date; me.st.date = t.dataset.k; if (me.W && me.W.days.some((d) => d.key === t.dataset.k)) return paintCal(me); if (was !== t.dataset.k) return readCal(me); return; }
335
420
  if (c === 'new') { t.disabled = true; const M = await mtg(); const r = await M.newNote(me.ws); if (r && !r.ok) { me.X.msg = { text: r.error, tone: 'bad' }; t.disabled = false; paintCal(me); } return; }
336
- if (c === 'link') { e.stopPropagation(); const r = D && D.rows[+t.dataset.i]; if (!r) return; const M = await mtg(); await M.openMeeting(r.note ? { note: r.note } : r.row, { ws: me.ws, about: true }); return; }
421
+ if (c === 'link') {
422
+ e.stopPropagation();
423
+ const r = t.dataset.ref ? blockAt(me, t.dataset.ref) : D && D.rows[+t.dataset.i]; if (!r) return;
424
+ const M = await mtg(); return M.openMeeting(r.note && r.kind === 'note' ? { note: r.note } : r.row, { ws: me.ws, about: true });
425
+ }
426
+ if (c === 'nlink') { e.stopPropagation(); const M = await mtg(); return M.openMeeting({ note: t.dataset.id }, { ws: me.ws, about: true }); }
427
+ if (c === 'ev') { const b = blockAt(me, t.dataset.ref); if (b && b.row) { const M = await mtg(); return M.openMeeting(b.row, { ws: me.ws }); } return; }
337
428
  if (c === 'open') { const r = D && D.rows[+t.dataset.i]; if (!r) return; const M = await mtg(); return M.openMeeting(r.note && r.kind === 'note' ? { note: r.note } : r.row, { ws: me.ws }); }
338
429
  if (c === 'note') { const M = await mtg(); return M.openMeeting({ note: t.dataset.id }, { ws: me.ws }); }
339
- if (c === 'more') { me.st.more = me.st.more ? null : { view: 'week', date: me.today, M: null }; paintCal(me); return readMore(me); }
340
- if (c === 'mv') { me.st.more = { view: t.dataset.k, date: me.st.more.date, M: null }; paintCal(me); return readMore(me); }
341
- if (c === 'mn') { const m = me.st.more, dir = +t.dataset.k; me.st.more = { view: m.view, date: dir ? shift(m.view, m.date, dir) : me.today, M: null }; paintCal(me); return readMore(me); }
342
- if (c === 'mrow') { const M0 = me.st.more && me.st.more.M; const [k] = t.dataset.ref.split('|'); const d = M0 && M0.days.find((x) => x.key === k); const hit = d && [...d.timed, ...d.allday].find((x) => x.ref === t.dataset.ref); if (hit && hit.row) { const M = await mtg(); return M.openMeeting(hit.row, { ws: me.ws }); } }
430
+ if (c === 'filter') { me.st.filter = t.dataset.k; return paintCal(me); }
431
+ if (c === 'clear') { me.st.q = ''; me.found = null; me.hits = null; me.st.searching = false; return paintCal(me); }
432
+ if (c === 'ser') { const k = t.dataset.k, open = t.getAttribute('aria-expanded') === 'true'; if (open) { me.st.open.delete(k); (me.st.shut = me.st.shut || new Set()).add(k); } else me.st.open.add(k); return paintCal(me); }
343
433
  }
344
434
 
345
435
  /** Kept for Home's old Calendar card: a button that opens Calendar | Notes. Nothing is drawn when the card is not on the page. */
@@ -351,7 +441,7 @@ export function mountCalEntry(card, d) {
351
441
  if (menu) menu.append(b); else if (h) h.append(b); else card.append(b);
352
442
  b.onclick = () => openCalendar({ ws: d && d.ws ? d.ws() : '' });
353
443
  }
354
- /** The earlier grid's mount is the plain list now (no old layout). Kept so an old caller gets the view. */
444
+ /** The earlier grid's mount opens the calendar on that range. Kept so an old caller gets the view. */
355
445
  export function mountCal(el, st) { return openCalendar({ view: st && st.view, date: st && st.date }); }
356
446
 
357
447
  if (typeof window !== 'undefined') window.__premiumCal = { calModel, openCalendar };
@@ -153,8 +153,8 @@
153
153
  .vwxmn .vwmut{padding:6px 8px 4px}
154
154
  @media (max-width:640px){.vwxmn{right:auto;left:0;min-width:240px}.vwxmn a{min-height:44px}}
155
155
  /* Health, Links and Copies: three chips under the bar, each opening its panel */
156
- .vwmore{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 12px}
157
- .vwchip{min-height:30px;padding:0 11px;border-radius:6px;border:1px solid var(--hair);background:var(--card-solid);color:var(--ink-2);font:500 var(--fs-2) var(--sans);display:inline-flex;align-items:center;gap:6px;cursor:pointer}
156
+ .vwmore{display:inline-flex;gap:2px;flex-wrap:wrap;margin:0}
157
+ .vwchip{min-height:30px;padding:0 8px;border-radius:999px;border:0;background:transparent;color:var(--ink-2);font:500 var(--fs-2) var(--sans);display:inline-flex;align-items:center;gap:6px;cursor:pointer}
158
158
  .vwchip em{font-style:normal;font-family:var(--mono);color:var(--ink-3)}
159
159
  .vwchip.ok em{color:var(--ok)}.vwchip.warn em{color:var(--ember-ink)}
160
160
  .vwchip[aria-expanded="true"]{background:var(--well);color:var(--ink)}
@@ -233,3 +233,21 @@ iframe.vwprint{position:fixed;right:0;bottom:0;width:1px;height:1px;border:0;opa
233
233
  .vwprop{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid)}
234
234
  .vwprop>p{margin:0}
235
235
  .vwside .evl{display:grid;gap:4px}
236
+
237
+ /* testing fixes: one quiet toolbar row; on a phone the three modes are icons (their names stay as labels for a screen reader) */
238
+ @media (max-width:640px){
239
+ .vwdt{gap:4px}
240
+ .vwseg{padding:0 12px;min-width:44px;justify-content:center}
241
+ .vwseg .vwsl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
242
+ .vwchip{min-height:44px;padding:0 8px}
243
+ }
244
+ /* the contents under the page's header */
245
+ .vwtoc{margin:0 0 14px;padding:8px 12px;border-radius:10px;background:var(--well)}
246
+ .vwtoc summary{cursor:pointer;font:600 var(--fs-2) var(--sans);color:var(--ink-2);list-style:none;min-height:28px;display:flex;align-items:center;gap:6px}
247
+ .vwtoc summary::-webkit-details-marker{display:none}
248
+ .vwtoc summary em{font-style:normal;color:var(--ink-3);font-weight:500}
249
+ .vwtoc ol{margin:4px 0 2px;padding:0;list-style:none;display:grid;gap:2px}
250
+ .vwtoc li.sub{padding-left:14px}
251
+ .vwtoc a{display:block;padding:4px 0;color:var(--ink);text-decoration:none;font:400 var(--fs-2) var(--sans)}
252
+ .vwtoc a:hover{color:var(--blue-ink, var(--ink))}
253
+ @media (max-width:640px){.vwtoc a{padding:8px 0}}