create-pmos 0.401.0 → 0.403.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 (127) hide show
  1. package/package.json +25 -30
  2. package/payload/KIT-VERSION +2 -2
  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/payload/state/log.md +1 -1
  7. package/workspace/board-programs-test.js +227 -0
  8. package/workspace/board-shot.js +54 -0
  9. package/workspace/briefing-premium-adddoc-test.js +28 -22
  10. package/workspace/briefing-premium-board-test.js +107 -82
  11. package/workspace/briefing-premium-calendar-2-test.js +23 -10
  12. package/workspace/briefing-premium-calendar-3-test.js +23 -19
  13. package/workspace/briefing-premium-calendar-test.js +20 -15
  14. package/workspace/briefing-premium-initiative-test.js +25 -12
  15. package/workspace/briefing-premium-insights-test.js +31 -18
  16. package/workspace/briefing-premium-metrics-test.js +8 -8
  17. package/workspace/briefing-premium-sources-test.js +15 -10
  18. package/workspace/briefing-premium-test.js +39 -16
  19. package/workspace/changelog.json +24 -0
  20. package/workspace/fixtures/board-premium-facts.js +20 -3
  21. package/workspace/fixtures/briefing-premium-facts.js +18 -2
  22. package/workspace/fixtures/premium-viewer-fixtures.js +24 -2
  23. package/workspace/fixtures/program-ascent.js +101 -0
  24. package/workspace/guide/home.md +11 -7
  25. package/workspace/guide/index.md +1 -0
  26. package/workspace/guide/jira.md +38 -6
  27. package/workspace/guide/programs.md +37 -0
  28. package/workspace/home-rows-test.js +184 -0
  29. package/workspace/lib/briefing-premium-products.js +4 -4
  30. package/workspace/lib/briefing-premium.js +2 -2
  31. package/workspace/lib/calendar-layers.js +8 -4
  32. package/workspace/lib/initiative-layout.js +4 -3
  33. package/workspace/lib/jira-cli.js +17 -12
  34. package/workspace/lib/jira-status.js +1 -1
  35. package/workspace/lib/jira-tickets.js +126 -24
  36. package/workspace/lib/meeting-files.js +58 -0
  37. package/workspace/lib/meeting-learn.js +139 -0
  38. package/workspace/lib/meeting-material.js +12 -5
  39. package/workspace/lib/notes.js +3 -0
  40. package/workspace/lib/programs.js +129 -0
  41. package/workspace/lib/route-modules.js +1 -0
  42. package/workspace/lib/routes-brief-page.js +8 -1
  43. package/workspace/lib/routes-briefing-premium.js +1 -1
  44. package/workspace/lib/routes-calendar-views.js +24 -3
  45. package/workspace/lib/routes-meeting-material.js +38 -0
  46. package/workspace/lib/routes-meeting-points.js +23 -3
  47. package/workspace/lib/routes-programs.js +122 -0
  48. package/workspace/package-lock.json +2 -2
  49. package/workspace/package.json +1 -1
  50. package/workspace/premium-board-actions-test.js +31 -25
  51. package/workspace/premium-chat-context-test.js +1 -1
  52. package/workspace/premium-chat-goal-view-test.js +1 -1
  53. package/workspace/premium-chat-viewer-test.js +1 -1
  54. package/workspace/premium-core-doc-issue-test.js +13 -7
  55. package/workspace/premium-discuss-landing-test.js +83 -0
  56. package/workspace/premium-link-suggest-test.js +103 -0
  57. package/workspace/premium-report-read-test.js +86 -82
  58. package/workspace/premium-vw-backlog-test.js +6 -5
  59. package/workspace/premium-vw-cal-test.js +45 -19
  60. package/workspace/premium-vw-item-test.js +8 -6
  61. package/workspace/premium-vw-jira-test.js +3 -2
  62. package/workspace/premium-vw-meet-test.js +122 -66
  63. package/workspace/premium-vw-notes-test.js +7 -6
  64. package/workspace/premium-vw-rec-test.js +14 -13
  65. package/workspace/premium-vw-slides-test.js +11 -5
  66. package/workspace/program-panel-test.js +152 -0
  67. package/workspace/public/pm/bd-acts.js +24 -15
  68. package/workspace/public/pm/bd-asks.js +111 -30
  69. package/workspace/public/pm/bd-ini-panel.js +229 -0
  70. package/workspace/public/pm/bd-pop.js +2 -2
  71. package/workspace/public/pm/bd-prog-panel.js +436 -0
  72. package/workspace/public/pm/bd-prog.js +191 -0
  73. package/workspace/public/pm/bd-span.js +98 -15
  74. package/workspace/public/pm/bd-views.js +93 -29
  75. package/workspace/public/pm/cozy-board.css +214 -20
  76. package/workspace/public/pm/cozy-evui.js +4 -2
  77. package/workspace/public/pm/cozy-home-rows.css +54 -0
  78. package/workspace/public/pm/cozy-home.css +35 -0
  79. package/workspace/public/pm/cozy-insights.css +1 -2
  80. package/workspace/public/pm/cozy-mtg-present.css +160 -0
  81. package/workspace/public/pm/cozy-panel.css +155 -0
  82. package/workspace/public/pm/cozy-rec-pill.css +12 -0
  83. package/workspace/public/pm/cozy-rec-pill.js +46 -0
  84. package/workspace/public/pm/cozy-today.css +189 -0
  85. package/workspace/public/pm/cozy-viewer.js +307 -43
  86. package/workspace/public/pm/cozy-vw-mtg.css +96 -94
  87. package/workspace/public/pm/cozy-vw-rp.css +40 -25
  88. package/workspace/public/pm/cozy-vw-shell.css +127 -0
  89. package/workspace/public/pm/cozy-xv.css +51 -0
  90. package/workspace/public/pm/cozy-xv.js +34 -0
  91. package/workspace/public/pm/home-app.js +192 -72
  92. package/workspace/public/pm/home-chat.js +17 -4
  93. package/workspace/public/pm/home-data.js +1 -1
  94. package/workspace/public/pm/home-day.js +64 -0
  95. package/workspace/public/pm/home-ini-model.js +1 -1
  96. package/workspace/public/pm/home-ini.js +197 -54
  97. package/workspace/public/pm/home-list.js +100 -27
  98. package/workspace/public/pm/home-mentions.js +187 -0
  99. package/workspace/public/pm/home-rec-row.js +67 -0
  100. package/workspace/public/pm/home-review.js +20 -10
  101. package/workspace/public/pm/home-task.js +19 -18
  102. package/workspace/public/pm/home-today.js +137 -59
  103. package/workspace/public/pm/premium-board.js +294 -288
  104. package/workspace/public/pm/premium-insights.js +118 -82
  105. package/workspace/public/pm/premium-mtg-present.js +408 -100
  106. package/workspace/public/pm/premium-mtg-replay.js +70 -10
  107. package/workspace/public/pm/premium-report-read.js +118 -63
  108. package/workspace/public/pm/premium-vw-cal.js +62 -34
  109. package/workspace/public/pm/premium-vw-mtg.js +348 -192
  110. package/workspace/public/pm/program-model.js +192 -0
  111. package/workspace/public/pm/rec-state.js +63 -0
  112. package/workspace/public/pm/rp-parts.js +33 -8
  113. package/workspace/public/pm/tk-draft.js +107 -0
  114. package/workspace/public/pm/tk-model.js +134 -0
  115. package/workspace/public/pm/tk-send.js +124 -0
  116. package/workspace/public/pm/tk-tasks.css +120 -0
  117. package/workspace/public/premium-board.html +4 -2
  118. package/workspace/server.js +4 -2
  119. package/workspace/skills/jira-push.skill +3 -3
  120. package/workspace/test-lists/board-programs.json +9 -0
  121. package/workspace/test-lists/prd-to-jira.json +6 -0
  122. package/workspace/test-lists/program-hierarchy.json +11 -0
  123. package/workspace/test-lists/program-panel.json +9 -0
  124. package/workspace/test-lists/viewer-home-rows.json +9 -0
  125. package/workspace/test-lists/viewer-meetings.json +9 -0
  126. package/workspace/test-lists/viewer-shell-a.json +15 -0
  127. package/workspace/tk-tasks-test.js +199 -0
@@ -0,0 +1,54 @@
1
+ /* pm/cozy-home-rows.css — the two rows at the top of Home and the Mentions Viewer (Viewer kit; canvas XvANew, XvAMention*, XvARecHome).
2
+ * Loaded once by home-mentions.js. Token variables only (cozy.css). The rows reuse Home's row (.hv-card, .hv-r, .hm-rm). */
3
+
4
+ /* ── the rows on Home ── */
5
+ .hr-card { margin: 0 0 8px; }
6
+ .hr-card + .hr-card { margin-top: 0; }
7
+ .hr-men-card { margin-bottom: 12px; }
8
+ .hr-at { color: var(--cz-blueink); font-weight: 800; font-size: 15px; }
9
+ .hr-men:not(.new) .hr-at { color: var(--cz-ink3); }
10
+ .hr-new { color: var(--cz-blueink); font-weight: 700; }
11
+ .hr-rec-card { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cz-red) 32%, var(--cz-card)); }
12
+ .hr-rdot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--cz-dot-red); }
13
+ .hr-rst { color: var(--cz-red); font-weight: 700; font-variant-numeric: tabular-nums; }
14
+ .hr-rec-card.paused { box-shadow: 0 0 0 1.5px var(--cz-hair); }
15
+ .hr-rec-card.paused .hr-rdot { background: var(--cz-ink3); }
16
+ .hr-rec-card.paused .hr-rst { color: var(--cz-ink3); font-weight: 600; }
17
+ .hr-rec-card.paused .hm-rt b { color: var(--cz-ink2); }
18
+ /* motion is importance: a recording that is on breathes once in a while (critical level, as the record dot elsewhere) */
19
+ .hr-rec-card:not(.paused) .hr-rdot { position: relative; }
20
+ .hr-rec-card:not(.paused) .hr-rdot::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; background: var(--cz-dot-red); animation: hr-crit 2.4s ease-out infinite; pointer-events: none; }
21
+ @keyframes hr-crit { 0% { transform: scale(1); opacity: .4; } 60% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(2.2); opacity: 0; } }
22
+ @media (prefers-reduced-motion: reduce) { .hr-rec-card .hr-rdot::after { animation: none; } }
23
+
24
+ /* ── the Mentions Viewer ── */
25
+ .hr-vb { display: flex; flex-direction: column; gap: 12px; }
26
+ .hr-ml { display: flex; flex-direction: column; }
27
+ .hr-mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 13.5px; color: var(--cz-ink); text-align: left; cursor: pointer; }
28
+ .hr-mi + .hr-mi { border-top: 1px solid var(--cz-hair); border-radius: 0; }
29
+ .hr-mi:hover { background: color-mix(in srgb, var(--cz-well) 45%, var(--cz-card)); }
30
+ .hr-mi:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 12px; }
31
+ .hr-mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); flex: none; }
32
+ .hr-mdot.read { background: transparent; }
33
+ .hr-mw { flex: 1; min-width: 0; }
34
+ .hr-mw b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
35
+ .hr-mw span { display: block; font-size: 12.5px; color: var(--cz-ink3); }
36
+ .hr-mcv { color: var(--cz-ink3); display: inline-flex; flex: none; }
37
+
38
+ /* the source excerpt: the thread, the ticket, the passage or the mail, with the mention outlined */
39
+ .hr-thr, .hr-tkt { display: flex; flex-direction: column; gap: 8px; background: var(--cz-well); border-radius: 16px; padding: 12px; }
40
+ .hr-msg { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
41
+ .hr-msg.me { background: var(--cz-card); border-radius: 12px; padding: 8px; box-shadow: 0 0 0 1.5px var(--cz-c-9bc7f4); }
42
+ .hr-av { width: 28px; height: 28px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
43
+ .hr-w { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
44
+ .hr-w small { font-size: 11.5px; color: var(--cz-ink3); }
45
+ .hr-w small b { color: var(--cz-ink); }
46
+ .hr-kv { display: flex; flex-wrap: wrap; gap: 6px; }
47
+ .hr-kv span { font-size: 12px; font-weight: 700; background: var(--cz-card); border-radius: 8px; padding: 3px 8px; box-shadow: 0 0 0 1px var(--cz-hair); }
48
+ .hr-mail { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--cz-ink3); }
49
+ .hr-mail b { color: var(--cz-ink); font-size: 14px; }
50
+ .hr-quote { border-left: 3px solid var(--cz-c-9bc7f4); padding: 4px 0 4px 12px; font-size: 13.5px; line-height: 1.5; color: var(--cz-ink2); overflow-wrap: anywhere; }
51
+ .hr-chk { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
52
+ .hr-chk > b { font-size: 13px; color: var(--cz-ink2); }
53
+ .hr-cl { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
54
+ .hr-ok { color: var(--cz-ok); flex: none; display: inline-flex; padding-top: 1px; }
@@ -16,6 +16,15 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
16
16
  .hm-vw:empty { display: none; }
17
17
  /* the chat keeps at least 360px beside the list and the Viewer: on a narrower desktop the Viewer gives up width first, down to 380px */
18
18
  @media (min-width: 761px) { .hm-vw .cz-vw { flex-basis: min(500px, max(380px, calc(100vw - 808px))); width: min(500px, max(380px, calc(100vw - 808px))); } }
19
+ /* Home A + C on a desktop (HvACDesk): no desk card around the columns. The list (its well) and the chat (a white card) sit on the page's
20
+ * ground, 16px apart, the list 360px wide (cozy-today.css) */
21
+ @media (min-width: 761px) {
22
+ body.cz-home .hm-desk { inset: 0; padding: 16px; gap: 16px; background: none; box-shadow: none; border-radius: 0; }
23
+ body.cz-home .hm-chat { background: var(--cz-card); border-radius: 24px; padding: 16px 24px 20px; box-shadow: 0 10px 30px -24px var(--cz-c-9da3ac); }
24
+ body.cz-home .hm-vw .cz-vw { flex-basis: min(500px, max(380px, calc(100vw - 852px))); width: min(500px, max(380px, calc(100vw - 852px))); }
25
+ body.cz-home.hm-folded .hm-desk { padding-left: 56px; }
26
+ body.cz-home .hm-reopen { top: 12px; right: 12px; }
27
+ }
19
28
  .hm-folded .hm-list { display: none; }
20
29
  .hm-unfold { display: none; }
21
30
  .hm-folded .hm-unfold { display: grid; place-items: center; position: absolute; left: 10px; top: 24px; z-index: 2; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--cz-well); color: var(--cz-ink2); cursor: pointer; }
@@ -150,6 +159,15 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
150
159
 
151
160
  /* ── the chat ── */
152
161
  .hm-reopen { position: absolute; top: 0; right: 0; z-index: 2; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--cz-well); color: var(--cz-ink2); display: grid; place-items: center; cursor: pointer; }
162
+ /* A loose chat's guess at its initiative (XvALinkSuggest): one quiet chip at the chat's top, never a banner */
163
+ .hm-sug { padding: 10px 56px 0 16px; }
164
+ .hm-sug[hidden] { display: none; }
165
+ .hm-sugc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 12px; white-space: nowrap; border-radius: 999px; background: var(--cz-bluebg); color: var(--cz-blueink); font-size: 13px; }
166
+ .hm-sugc b { font-weight: 700; color: var(--cz-blueink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
167
+ .hm-sugl { border: 0; background: none; padding: 2px 4px; font: inherit; font-weight: 800; color: var(--cz-blueink); text-decoration: underline; cursor: pointer; }
168
+ .hm-sugx { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--cz-ink3); cursor: pointer; }
169
+ .hm-sugx:hover, .hm-sugl:hover { background: var(--cz-card); }
170
+ @media (max-width: 760px) { .hm-sug { padding: 8px 16px 0; } .hm-sugc { padding: 0 0 0 12px; } .hm-sugl, .hm-sugx { min-height: 44px; min-width: 44px; } }
153
171
  .hm-reopen[hidden] { display: none; }
154
172
  /* with the Viewer closed the conversation and its box sit in a centred column about 880px wide (AgInitStalled); the reopen button stays at
155
173
  * the top right, and where the column reaches it the log keeps its first line clear of it */
@@ -158,6 +176,23 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
158
176
  body.cz-home:not(.hm-vw-open) .hm-log, body.cz-home:not(.hm-vw-open) .hm-foot { box-sizing: border-box; width: 100%; max-width: 880px; align-self: center; }
159
177
  @container (max-width: 968px) { .hm-reopen:not([hidden]) ~ .hm-log { padding-top: 46px; } }
160
178
  }
179
+ /* the header line over the conversation on a desktop (HvACDesk .ch): the open row's mark, its title, the chip of where it sits; the Viewer
180
+ * button sits at its end */
181
+ .hm-chd { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; padding-right: 48px; margin-bottom: 26px; box-sizing: border-box; }
182
+ .hm-chd[hidden] { display: none; }
183
+ .hm-chd .hv-mk { margin-right: -4px; }
184
+ .hm-chb { min-width: 0; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
185
+ .hm-chs { flex: 0 1 auto; min-width: 0; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink2); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
186
+ .hm-chs > span { overflow: hidden; text-overflow: ellipsis; }
187
+ .hm-chs .hv-mt { margin-left: 0; }
188
+ .hm-chs > svg { flex: none; color: var(--cz-c-6b4fa3); }
189
+ .hm-chd .hv-tl.sm { width: 24px; height: 24px; border-radius: 8px; }
190
+ @media (min-width: 761px) {
191
+ body.cz-home .hm-chat.hm-has-ch > .hm-reopen { top: 16px; right: 24px; width: 40px; height: 40px; border-radius: 999px; background: none; }
192
+ body.cz-home .hm-chat.hm-has-ch > .hm-reopen:hover { background: var(--cz-well); }
193
+ body.cz-home .hm-chat.hm-has-ch > .hm-log { padding-top: 2px; }
194
+ }
195
+ @media (max-width: 760px) { .hm-chd { display: none; } }
161
196
  .hm-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 4px 12px 0; scrollbar-width: thin; }
162
197
 
163
198
  .hm-empty { margin: auto; max-width: 360px; text-align: center; color: var(--cz-ink3); font-size: 14px; line-height: 1.5; }
@@ -553,7 +553,6 @@ body.ins-trv #insHero, body.ins-trv #goalCards { display: none; }
553
553
  .ins-th2, .ins-rd3 { grid-template-columns: minmax(0, 1fr) 70px 90px; }
554
554
  }
555
555
 
556
- /* The page makes room for the floating Viewer on a desktop; the notes in the Viewer, the popover and the sheet; the trends view has no table frame */
557
- @media (min-width: 761px) { body.ins-vwon main.ins.stage { margin-right: 532px; } }
556
+ /* The notes in the Viewer, the popover and the sheet; the trends view has no table frame. The Viewer floats over the page (XvAInsight). */
558
557
  .ins-gd .note, .ins-pop .note, .ins-sheet .note { margin: 4px 0 0; font-size: 12px; color: var(--cz-ink3); }
559
558
  body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow: visible; }
@@ -0,0 +1,160 @@
1
+ /* pm/cozy-mtg-present.css — the presenter window and the audience window (Viewer kit, meetings: XvAPresent, XvAPresentDoc, XvAPresentImg,
2
+ * XvAPresentWeb, XvAPresentSwitch, XvAAudience, XvAAudienceWeb; canvas note xvPresent). Added by premium-mtg-present.js to the page and to
3
+ * the audience window. Colours are the cozy tokens of pm/cozy.css only, so dark mode follows them.
4
+ * Layout: the top bar across, the stage (left) and the side (right), the foot under both. Only the recording dot moves. */
5
+
6
+ .vzx { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr) auto;
7
+ gap: 16px; padding: 16px 16px 14px; background: var(--cz-ground, var(--cz-card)); color: var(--cz-ink); font-family: var(--cz-sans); outline: none; }
8
+ .vzx *, .vzx *::before, .vzx *::after { box-sizing: border-box; }
9
+ .vzx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
10
+ .vzx button:disabled { opacity: .4; cursor: default; }
11
+ .vzx svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
12
+ .vzx p { margin: 0; }
13
+ .vzx [hidden] { display: none !important; }
14
+ .vzx .vzx-mut { color: var(--cz-ink3); font-size: 13px; }
15
+ .vzx-sp { flex: 1; }
16
+
17
+ /* ── the top bar: what is presented, the time, the share spot and Stop ── */
18
+ .vzx-top { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px 10px 18px;
19
+ border-radius: 18px; background: var(--cz-card); font-size: 15px; }
20
+ .vzx-top > b { font-weight: 800; white-space: nowrap; }
21
+ .vzx-rec { width: 9px; height: 9px; border-radius: 50%; background: var(--cz-red); flex: none; animation: vzx-beat 2s ease-in-out infinite; }
22
+ @keyframes vzx-beat { 50% { opacity: .45; } }
23
+ @media (prefers-reduced-motion: reduce) { .vzx-rec { animation: none; } }
24
+ .vzx-matb { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px !important; border-radius: 12px; background: var(--cz-well) !important;
25
+ font-size: 13.5px !important; font-weight: 700; white-space: nowrap; }
26
+ .vzx-matb .vzx-c { font-weight: 500; color: var(--cz-ink3); }
27
+ .vzx-matb[aria-expanded="true"] { background: var(--cz-well2, var(--cz-well)) !important; }
28
+ .vzx-share { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px !important; border-radius: 10px; font-size: 13px !important;
29
+ color: var(--cz-ink2) !important; white-space: nowrap; }
30
+ .vzx-share:hover { background: var(--cz-well) !important; }
31
+ .vzx-share[data-k="blocked"] { color: var(--cz-late) !important; background: var(--cz-latebg) !important; }
32
+ .vzx-stop { width: 40px; height: 40px; border-radius: 50% !important; display: inline-grid !important; place-items: center; flex: none;
33
+ background: var(--cz-c-2a2e35) !important; color: var(--cz-c-ffffff) !important; }
34
+ .vzx-used { position: absolute; left: 18px; right: 18px; bottom: 0; width: calc(100% - 36px); height: 3px; display: block; }
35
+ .vzx .vzx-used rect { stroke: none; }
36
+ .vzx-bg { fill: transparent; }
37
+ .vzx-fg { fill: var(--cz-blue); opacity: .55; }
38
+ .vzx-fg.late { fill: var(--cz-risk); opacity: 1; }
39
+
40
+ /* ── the stage: one kind at a time, its stops under it ── */
41
+ .vzx-stage { grid-column: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--cz-card); }
42
+ .vzx-slot { flex: 1; min-height: 0; display: grid; place-items: center; }
43
+ .vzx-box { position: relative; width: calc(960px * var(--bd-k, .5)); height: calc(540px * var(--bd-k, .5)); overflow: hidden; border-radius: 14px; cursor: pointer; }
44
+ .vzx-nav { display: flex; align-items: center; gap: 10px; }
45
+ .vzx-ib { width: 36px; height: 36px; border-radius: 50%; display: inline-grid !important; place-items: center; color: var(--cz-ink2); flex: none; }
46
+ .vzx-ib.vzx-soft { background: var(--cz-well) !important; }
47
+ .vzx-ths { flex: 1; display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding: 2px; justify-content: center; }
48
+ .vzx-tb { position: relative; flex: none; width: 136px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--cz-well) !important; outline-offset: 2px; }
49
+ .vzx-tb.done { opacity: .45; }
50
+ .vzx-tb.on { outline: 2px solid var(--cz-blue); }
51
+ .vzx-mini { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
52
+ .vzx-stops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
53
+ .vzx-stops > button { min-height: 32px; padding: 0 12px !important; border-radius: 999px; background: var(--cz-well) !important; font-size: 13px !important; font-weight: 700; color: var(--cz-ink2) !important; }
54
+ .vzx-stops > button.on { background: var(--cz-blue) !important; color: var(--cz-onsolid) !important; }
55
+ .vzx-stops > button.done { color: var(--cz-ink3) !important; }
56
+ .vzx-chip { min-height: 32px; padding: 0 12px !important; border-radius: 999px; font-size: 13px !important; color: var(--cz-ink2) !important; }
57
+ .vzx-chip.on { background: var(--cz-bluebg) !important; color: var(--cz-blueink, var(--cz-blue)) !important; font-weight: 700; }
58
+
59
+ /* a PMOS document or report: one section lit, the rest dimmed */
60
+ .vzx-doc { flex: 1; min-height: 0; overflow: auto; padding: 32px 40px; border-radius: 16px; border: 1px solid var(--cz-hair); background: var(--cz-sheet, var(--cz-card)); outline: none; }
61
+ .vzx-page { max-width: 820px; font-size: 17px; line-height: 1.55; }
62
+ .vzx-page h1, .vzx-page h2, .vzx-page h3 { margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; }
63
+ .vzx-page h1 { font-size: 26px; }
64
+ .vzx-page h2, .vzx-page h3 { font-size: 18px; }
65
+ .vzx-page p, .vzx-page ul, .vzx-page ol { margin: 0 0 12px; }
66
+ .vzx-sec { padding: 6px 12px; margin: 0 -12px 8px; border-radius: 12px; }
67
+ .vzx-sec.dim { opacity: .38; }
68
+ .vzx-sec.spot { background: var(--cz-latebg); }
69
+
70
+ /* an image: zoom and pan */
71
+ .vzx-imv { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 16px; background: var(--cz-c-1b1d21); display: grid; place-items: center; cursor: grab; }
72
+ .vzx-imv:active { cursor: grabbing; }
73
+ .vzx-imv img { max-width: 100%; max-height: 100%; transform-origin: center; user-select: none; transform: translate(var(--bd-px, 0px), var(--bd-py, 0px)) scale(var(--bd-z, 1)); } /* the pan and zoom are set at run time */
74
+ .vzx-zm { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(42, 46, 53, .92); color: var(--cz-c-ffffff); font-size: 13px; font-weight: 700; }
75
+ .vzx-zm .vzx-ib { color: var(--cz-c-ffffff); }
76
+ .vzx-zm span { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
77
+
78
+ /* a card on the stage: a live page, a PowerPoint file, nothing to show */
79
+ .vzx-stage > .vzx-card { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px; border-radius: 16px; background: var(--cz-well); font-size: 15px; line-height: 1.5; }
80
+ .vzx-stage > .vzx-card p { max-width: 560px; }
81
+ .vzx-url { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--cz-card); font-size: 14px; }
82
+ .vzx-url i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cz-ok); }
83
+ .vzx-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px !important; border-radius: 999px; background: var(--cz-solid, var(--cz-ink)) !important;
84
+ color: var(--cz-onsolid, var(--cz-card)) !important; font-size: 13.5px !important; font-weight: 700; text-decoration: none; }
85
+
86
+ /* ── the side: Next, Your notes, From the room ── */
87
+ .vzx-side { grid-column: 2; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--cz-card); }
88
+ .vzx-c2 { padding: 14px; border-radius: 14px; background: var(--cz-well); font-size: 14px; line-height: 1.5; }
89
+ .vzx-c2 h4 { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); }
90
+ .vzx-c2 p + p { margin-top: 6px; }
91
+ .vzx-room { background: var(--cz-latebg); }
92
+ .vzx-r { display: flex; align-items: flex-start; gap: 8px; }
93
+ .vzx-r p { flex: 1; }
94
+ .vzx-room .vzx-ib.vzx-soft { width: 30px; height: 30px; background: var(--cz-card) !important; }
95
+ .vzx-nx { display: grid; place-items: center; height: 190px; }
96
+ .vzx-nx .vzx-box { cursor: default; border-radius: 10px; }
97
+
98
+ .vzx-foot { grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: var(--cz-ink3); }
99
+
100
+ /* ── switch material (M): the meeting's material, 1–9, and a link to add ── */
101
+ .vzx-swm { position: fixed; top: var(--bd-y, 76px); left: var(--bd-x, 260px); z-index: 2; width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); overflow: auto;
102
+ padding: 8px; border-radius: 18px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: var(--cz-lift); }
103
+ .vzx-swm > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px !important; border-radius: 12px; text-align: left; }
104
+ .vzx-swm > button:hover, .vzx-swm > button:focus-visible { background: var(--cz-well) !important; }
105
+ .vzx-swm > button.on { background: var(--cz-bluebg) !important; }
106
+ .vzx-fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--cz-well); color: var(--cz-ink2); flex: none; }
107
+ .vzx-w { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 700; }
108
+ .vzx-w span { font-size: 12px; font-weight: 500; color: var(--cz-ink3); }
109
+ .vzx-k { font-size: 12px; color: var(--cz-ink3); font-variant-numeric: tabular-nums; }
110
+ .vzx-swm hr { border: 0; border-top: 1px solid var(--cz-hair); margin: 6px 8px; }
111
+ .vzx-add { display: flex; align-items: center; gap: 10px; padding: 6px 12px; color: var(--cz-blue); }
112
+ .vzx-add input { flex: 1; min-width: 0; min-height: 32px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--cz-ink); outline: none; }
113
+ .vzx-add input::placeholder { color: var(--cz-blue); font-weight: 700; }
114
+ .vzx-err { padding: 0 12px 6px; font-size: 12.5px; color: var(--cz-risk); }
115
+
116
+ /* ── the audience window: the stage only, a quiet line under it ── */
117
+ .vzx-audw { margin: 0; background: var(--cz-c-17191c); color: var(--cz-c-ffffff); font-family: var(--cz-sans); overflow: hidden; }
118
+ .vzx-aud { position: fixed; inset: 0 0 32px 0; display: grid; place-items: center; background: var(--cz-c-17191c); }
119
+ .vzx-aud .vzx-slot { width: 100%; height: 100%; }
120
+ .vzx-aud .vzx-box { border-radius: 0; cursor: default; }
121
+ .vzx-aud .vzx-imv { width: 100%; height: 100%; border-radius: 0; cursor: default; }
122
+ .vzx-aud .vzx-doc { width: 100%; height: 100%; border: 0; border-radius: 0; padding: 48px 8vw; color: var(--cz-ink); }
123
+ .vzx-aud .vzx-page { margin: 0 auto; font-size: 22px; }
124
+ .vzx-aud .vzx-page h1 { font-size: 34px; }
125
+ .vzx-aud .vzx-page h2, .vzx-aud .vzx-page h3 { font-size: 24px; }
126
+ .vzx-ft { position: fixed; left: 0; right: 0; bottom: 0; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
127
+ font-size: 12px; color: rgba(255, 255, 255, .55); }
128
+
129
+ /* ── the preview in the Viewer (XvAMaterialPreview): the material for the PM only ── */
130
+ .vzx-pv { display: flex; flex-direction: column; gap: 12px; }
131
+ .vzx-pv svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
132
+ .vzx-pv button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
133
+ .vzx-pv button:disabled { opacity: .4; cursor: default; }
134
+ .vzx-pvh { display: flex; align-items: center; gap: 10px; }
135
+ .vzx-pvl { flex: 1; margin: 0; font-size: 12.5px; color: var(--cz-ink3); }
136
+ .vzx-pvp { width: 36px; height: 36px; border-radius: 50%; display: inline-grid !important; place-items: center; color: var(--cz-blueink) !important; background: var(--cz-bluebg) !important; }
137
+ .vzx-pvs { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 16px; background: var(--cz-well); overflow: hidden; }
138
+ .vzx-pvs .vzx-box { cursor: default; border-radius: 0; }
139
+ .vzx-pv .vzx-ths { justify-content: flex-start; }
140
+ .vzx-pv .vzx-tb { width: 68px; height: 38px; }
141
+ .vzx-pvn { margin: 0; text-align: center; font-size: 12.5px; color: var(--cz-ink3); }
142
+ .vzx-pvd { max-height: 60vh; padding: 20px 24px; }
143
+ .vzx-pvd .vzx-page { font-size: 14.5px; }
144
+ .vzx-pvi { border-radius: 16px; background: var(--cz-c-1b1d21); display: grid; place-items: center; overflow: hidden; max-height: 70vh; }
145
+ .vzx-pvi img { max-width: 100%; max-height: 70vh; display: block; }
146
+ .vzx-pvf { width: 100%; height: 70vh; border: 1px solid var(--cz-hair); border-radius: 16px; background: var(--cz-c-ffffff); }
147
+ .vzx-pv > .vzx-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 16px; background: var(--cz-well); font-size: 14px; line-height: 1.5; }
148
+ .vzx-pv > .vzx-card p { margin: 0; }
149
+
150
+ @media (max-width: 900px) {
151
+ .vzx { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; overflow: auto; padding: 10px; }
152
+ .vzx-side { grid-column: 1; }
153
+ .vzx-stage { min-height: 320px; padding: 12px; }
154
+ .vzx-top { flex-wrap: wrap; }
155
+ .vzx-swm { left: var(--bd-x, 16px); top: var(--bd-y, 120px); }
156
+ .vzx-tb { width: 96px; height: 54px; }
157
+ }
158
+ /* no card for the side (nothing next, no notes, no question): the stage takes the width */
159
+ .vzx-side:empty { display: none; }
160
+ .vzx:has(> .vzx-side:empty) { grid-template-columns: minmax(0, 1fr); }
@@ -0,0 +1,155 @@
1
+ /* cozy-panel.css — the program panel on the Board (initiative program-hierarchy, P5, P9; canvas PgProgram, PgMilestones), drawn by
2
+ * pm/bd-prog-panel.js. Since the second kit it sits in the Viewer's shell A (initiative viewer-shell-a, V9: cozy-vw-shell.css draws the
3
+ * header, the summary card and the folding rows), so this file holds only the program's own parts. It builds on pm/cozy.css's tokens only.
4
+ * Every class here starts with pp-; the Viewer's body carries .pp-vw while it shows a program. */
5
+
6
+ /* the program's purple (PgProgram --prog / --progbg), light and dark */
7
+ body.bd-page { --pp-prog: var(--cz-c-6b4fa3); --pp-progbg: var(--cz-c-f1ecf8); --pp-diam: rgba(107,79,163,.32); --pp-amber: var(--cz-c-d4a13a); }
8
+ html[data-theme="dark"] body.bd-page { --pp-prog: var(--cz-c-b07cc6); --pp-progbg: rgba(176,124,198,.16); --pp-diam: rgba(176,124,198,.4); }
9
+ @media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.bd-page { --pp-prog: var(--cz-c-b07cc6); --pp-progbg: rgba(176,124,198,.16); --pp-diam: rgba(176,124,198,.4); } }
10
+ /* the products' tiles: blue, warm, grey; dark mode takes their tints */
11
+ body.bd-page { --pp-t0: var(--cz-c-e8f1fb); --pp-t0i: var(--cz-blueink); --pp-t1: var(--cz-c-f4eee6); --pp-t1i: var(--cz-c-7a5a2e); }
12
+ html[data-theme="dark"] body.bd-page { --pp-t0: rgba(106,170,240,.16); --pp-t1: rgba(232,160,122,.16); --pp-t1i: var(--cz-c-e8a07a); }
13
+ @media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.bd-page { --pp-t0: rgba(106,170,240,.16); --pp-t1: rgba(232,160,122,.16); --pp-t1i: var(--cz-c-e8a07a); } }
14
+
15
+ /* the shell's icon tile takes the program's purple; the parts sit in the Viewer's body, its rows' bodies lose their own frame */
16
+ #czViewer:has(> .cz-vw-body.pp-vw) .cz-vw-tile { background: var(--pp-progbg); color: var(--pp-prog); }
17
+ .pp-sec { display: flex; flex-direction: column; }
18
+ .pp-sec .lbl { font-size: 12px; font-weight: 800; color: var(--cz-ink3); margin: 0 0 6px; }
19
+ .pp-vw .czs-body { padding: 0 6px 8px; }
20
+ .pp-vw .czs-body .pp-tree, .pp-vw .czs-body .pp-ml { border: 0; border-radius: 12px; }
21
+
22
+ /* the period picker */
23
+ .pp-menu { position: absolute; z-index: 3; top: 52px; right: 16px; min-width: 240px; max-height: 60vh; overflow: auto; background: var(--cz-card); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 6px; display: flex; flex-direction: column; }
24
+ .pp-menu button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--cz-ink); display: flex; justify-content: space-between; gap: 12px; }
25
+ .pp-menu button span { color: var(--cz-ink3); font-weight: 600; }
26
+ .pp-menu button[aria-checked="true"] { background: var(--cz-well); font-weight: 700; }
27
+ .pp-menu button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
28
+ @media (hover: hover) { .pp-menu button:hover { background: var(--cz-well); } }
29
+ .pp-pmenu { top: 34px; left: 0; right: auto; min-width: 160px; }
30
+
31
+ /* the goals: the KRs of one year half; earlier halves fold into one ghost chip */
32
+ .pp-goal { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
33
+ .pp-per { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 6px 0 2px; font-size: 12px; font-weight: 800; color: var(--cz-ink2); }
34
+ button.pp-per { cursor: pointer; }
35
+ .pp-per svg { width: 12px; height: 12px; }
36
+ .pp-kr { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--cz-well); font-size: 12px; color: var(--cz-ink2); white-space: nowrap; }
37
+ .pp-kr b { font-weight: 800; color: var(--cz-ink); }
38
+ button.pp-kr { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
39
+ .pp-kr.ghost { background: transparent; border: 1px dashed var(--cz-hair); border-color: rgba(42,46,53,.18); color: var(--cz-ink3); font-weight: 700; }
40
+ .pp-gd { width: 7px; height: 7px; border-radius: 50%; background: var(--cz-dot-ok); flex: none; } /* PgProgram .gdot: met or on course */
41
+ .pp-gd.off { background: var(--cz-dot-late); } /* behind */
42
+ .pp-t2 { width: 18px; height: 18px; border-radius: 6px; font-size: 8.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
43
+ .pp-t2.t0 { background: var(--pp-t0); color: var(--pp-t0i); }
44
+ .pp-t2.t1 { background: var(--pp-t1); color: var(--pp-t1i); }
45
+ .pp-t2.t2 { background: var(--cz-well2); color: var(--cz-ink2); }
46
+
47
+ /* the milestone track: the done cluster, 3 milestones, the "N more" cluster (PgProgram) */
48
+ .pp-mt { position: relative; display: grid; grid-template-columns: 56px repeat(var(--pp-n), minmax(0, 1fr)) 56px; padding-top: 2px; }
49
+ .pp-mt::before { content: ""; position: absolute; left: 28px; right: 28px; top: 10px; height: 2px; background: var(--bd-rail); }
50
+ .pp-mt::after { content: ""; position: absolute; left: 28px; top: 10px; height: 2px; background: var(--pp-prog); width: calc(28px + (var(--pp-f) * (100% - 112px)) / var(--pp-n)); }
51
+ .pp-mt[data-nofill]::after { display: none; }
52
+ .pp-m { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--cz-ink3); min-width: 0; padding: 0 4px; }
53
+ .pp-m b { color: var(--cz-ink); font-weight: 800; font-size: 12.5px; }
54
+ .pp-m.late .pp-md { color: var(--cz-risk); font-weight: 700; }
55
+ .pp-md { display: inline-flex; align-items: center; gap: 6px; }
56
+ .pp-dm { all: unset; box-sizing: border-box; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; background: var(--cz-card); border: 2px solid var(--pp-diam); display: inline-block; margin-top: 4px; flex: none; }
57
+ .pp-dm.d { background: var(--pp-prog); border-color: var(--pp-prog); }
58
+ .pp-dm.n { border-color: var(--pp-prog); box-shadow: 0 0 0 4px var(--pp-progbg); }
59
+ button.pp-dm { cursor: pointer; }
60
+ button.pp-dm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
61
+ .pp-rd { display: inline-flex; gap: 3px; }
62
+ .pp-rd i { display: block; width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); background: var(--bd-dot); }
63
+ .pp-rd i.on { background: var(--pp-prog); }
64
+ .pp-cap { all: unset; cursor: pointer; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--cz-ink3); }
65
+ .pp-cap .st3 { display: inline-flex; gap: 2px; margin-top: 5px; background: var(--cz-card); padding: 0 3px; }
66
+ .pp-cap .st3 i { display: block; width: 7px; height: 7px; transform: rotate(45deg); border-radius: 2px; background: var(--pp-diam); }
67
+ .pp-cap.dn .st3 i { background: var(--pp-prog); }
68
+ .pp-cap.on { color: var(--pp-prog); }
69
+ .pp-cap:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 8px; }
70
+
71
+ /* waits on you: a check box is a task (amber when late), a dot is a session or a next action that waits on you */
72
+ .pp-needs { border-radius: 16px; background: var(--cz-bluebg); padding: 4px; display: flex; flex-direction: column; }
73
+ .pp-nr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 10px; border-radius: 12px; color: var(--cz-ink); text-decoration: none; box-sizing: border-box; }
74
+ .pp-nr + .pp-nr { border-top: 1px solid rgba(47,95,179,.1); }
75
+ @media (hover: hover) { .pp-nr:hover { background: rgba(255,255,255,.6); } }
76
+ .pp-nr:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
77
+ .pp-nr .mk2 { width: 20px; display: inline-flex; justify-content: center; flex: none; }
78
+ .pp-nr .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
79
+ .pp-nr .t b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
80
+ .pp-nr .t span { font-size: 12px; color: var(--cz-ink3); }
81
+ .pp-nr .go { color: var(--cz-blueink); display: inline-flex; }
82
+ .pp-nr .go svg { width: 14px; height: 14px; }
83
+ .pp-ck { all: unset; box-sizing: border-box; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--cz-c-8c929b); background: var(--cz-card); flex: none; display: inline-block; }
84
+ .pp-needs .pp-ck { border-color: var(--cz-c-b6c6dc); }
85
+ .pp-ck.late { border-color: var(--pp-amber); background: var(--cz-riskbg); }
86
+ .pp-ck.on { background: var(--cz-done); border-color: var(--cz-done); }
87
+ button.pp-ck { cursor: pointer; }
88
+ button.pp-ck:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
89
+ .pp-dt { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); color: var(--cz-blue); flex: none; display: inline-block; }
90
+ /* motion = importance: the info ripple on what waits on you */
91
+ .pp-needs .pp-dt::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: currentColor; animation: pp-info 6s ease-out infinite; }
92
+ @keyframes pp-info { 0% { transform: scale(1); opacity: .25; } 35% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
93
+ @media (prefers-reduced-motion: reduce) { .pp-needs .pp-dt::after { animation: none; } }
94
+
95
+ /* the tree (PgProgram), the milestones (PgMilestones) */
96
+ .pp-tree, .pp-ml { border: 1px solid var(--cz-hair); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
97
+ .pp-nd { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--cz-hair); font-size: 13px; min-height: 38px; box-sizing: border-box; }
98
+ .pp-nd:first-child { border-top: 0; }
99
+ .pp-nd.ini { background: var(--bd-row); font-weight: 800; }
100
+ .pp-nd.ini.pg .x { color: var(--pp-prog); }
101
+ .pp-nd .tw { all: unset; cursor: pointer; width: 16px; color: var(--cz-ink3); flex: none; display: inline-flex; }
102
+ .pp-nd .tw svg { width: 14px; height: 14px; }
103
+ .pp-nd .tw:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
104
+ .pp-nd .x { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
105
+ .pp-nd .r { font-size: 11.5px; color: var(--cz-ink3); white-space: nowrap; font-weight: 600; }
106
+ .pp-nd .r.late { color: var(--cz-risk); }
107
+ .pp-nd .k { font-size: 11.5px; font-weight: 700; color: var(--cz-ink3); flex: none; }
108
+ .pp-nd.l2 { padding-left: 36px; }
109
+ .pp-nd.q .x { color: var(--cz-ink3); font-weight: 600; }
110
+ .pp-nd.dn .x { color: var(--cz-ink3); text-decoration: line-through; }
111
+ /* an initiative's or an epic's task: a row that opens in Home; "N more tasks" opens the Tasks tab */
112
+ a.pp-nd.pp-tk { color: inherit; text-decoration: none; }
113
+ a.pp-nd.pp-tk:hover .x, .pp-nd.pp-more:hover { color: var(--cz-blueink); }
114
+ a.pp-nd.pp-tk:focus-visible, .pp-nd.pp-more:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 6px; }
115
+ .pp-nd.pp-more { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; width: 100%; min-height: 34px; padding: 6px 12px 6px 36px; border-top: 1px solid var(--cz-hair); font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); }
116
+ .pp-nd.prd2 { min-height: 32px; padding: 8px 12px 4px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); background: var(--cz-card); }
117
+ .pp-nd.prd2 .pp-t2 { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
118
+ .pp-open { all: unset; cursor: pointer; color: inherit; text-decoration: none; }
119
+ .pp-open:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
120
+ @media (hover: hover) { .pp-open:hover { text-decoration: underline; text-underline-offset: 3px; } }
121
+ .pp-stg { font-size: 11px; font-weight: 700; color: var(--cz-ink2); background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
122
+ .pp-av { width: 24px; height: 24px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
123
+ .pp-av.y { background: var(--cz-blue); color: var(--cz-onsolid); }
124
+ .pp-ibs { width: 28px; height: 28px; }
125
+ .pp-ibs svg { width: 15px; height: 15px; }
126
+ .pp-add input { flex: 1; min-width: 0; height: 28px; border: 0; background: transparent; font: 13px var(--cz-sans); color: var(--cz-ink); outline: 0; }
127
+ .pp-add .bd-ib.solid { width: 28px; height: 28px; }
128
+ .pp-doc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--cz-hair); font-size: 13px; min-height: 38px; }
129
+ .pp-doc svg { width: 15px; height: 15px; color: var(--cz-ink2); flex: none; }
130
+ .pp-doc:first-child { border-top: 0; }
131
+ .pp-doc:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
132
+ @media (hover: hover) { .pp-doc:hover { background: var(--bd-row); } }
133
+ .pp-mg { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 14px 5px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); background: var(--bd-row); border-top: 1px solid var(--cz-hair); }
134
+ .pp-mg:first-child { border-top: 0; }
135
+ .pp-mg svg { width: 12px; height: 12px; }
136
+ .pp-mg:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
137
+ .pp-mr { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 14px; border-top: 1px solid var(--cz-hair); font-size: 13px; }
138
+ .pp-mr .pp-dm { margin: 0; width: 10px; height: 10px; }
139
+ .pp-mr b { font-weight: 800; }
140
+ .pp-mr .w { grid-column: 2 / 4; font-size: 12px; color: var(--cz-ink3); margin-top: -2px; }
141
+ .pp-mr .d { font-size: 12px; font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
142
+ .pp-mr.done b { color: var(--cz-ink3); font-weight: 700; }
143
+ .pp-mr.late .d { color: var(--cz-risk); }
144
+ .pp-cdl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
145
+ .pp-cdl dt { color: var(--cz-ink3); font-weight: 700; }
146
+ .pp-cdl dd { margin: 0; }
147
+
148
+ /* a phone: the shell is full screen; the track keeps its clusters */
149
+ @media (max-width: 720px) {
150
+ .pp-mt { grid-template-columns: 44px repeat(var(--pp-n), minmax(0, 1fr)) 44px; }
151
+ .pp-mt::before { left: 22px; right: 22px; }
152
+ .pp-mt::after { left: 22px; width: calc(22px + (var(--pp-f) * (100% - 88px)) / var(--pp-n)); }
153
+ .pp-m b { font-size: 11.5px; }
154
+ .pp-nr, .pp-nd, .pp-doc { min-height: 44px; }
155
+ }
@@ -0,0 +1,12 @@
1
+ /* pm/cozy-rec-pill.css — the live-recording pill beside the floating menu (canvas XvARecBoard), drawn by pm/cozy-rec-pill.js inside #czNav, so it
2
+ * follows the menu button and hides with it. Token vars from cozy.css only. No motion: the clock is the only thing that changes. */
3
+ .cz-rec { position: absolute; left: 68px; bottom: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--cz-card); box-shadow: var(--cz-float), 0 0 0 1.5px color-mix(in srgb, var(--cz-dot-red) 35%, var(--cz-card)); display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--cz-sans); color: var(--cz-ink); text-decoration: none; white-space: nowrap; max-width: min(320px, calc(100vw - 120px)); z-index: 1; }
4
+ .cz-rec[hidden] { display: none; }
5
+ .cz-rec .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cz-dot-red); flex: none; }
6
+ .cz-rec .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
7
+ .cz-rec .tm { color: var(--cz-red); font-variant-numeric: tabular-nums; flex: none; }
8
+ .cz-rec.paused .dot { background: var(--cz-dot-q); }
9
+ .cz-rec.paused .tm { color: var(--cz-ink3); }
10
+ .cz-rec:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
11
+ /* a phone: the menu button is bottom right, so the pill sits to its left */
12
+ @media (max-width: 760px) { .cz-rec { left: auto; right: 68px; } }
@@ -0,0 +1,46 @@
1
+ /* pm/cozy-rec-pill.js — the live-recording pill beside the floating menu on the Board and Insights (initiative viewer-shell-a, V9; canvas
2
+ * XvARecBoard). While a meeting records, a quiet pill sits next to the menu button: a red dot, the meeting's title and its clock. A press
3
+ * goes back to the recording (Home with the meeting open). With no recording there is no pill (zero is silence). The state comes from
4
+ * pm/rec-state.js, which reads the notes the server keeps, so a recording started on another page shows here too. Nothing is written.
5
+ *
6
+ * mountRecPill(doc = document) once per page, after mountNav: the pill lives inside #czNav, so it hides whenever the menu hides */
7
+ import { onRecording } from './rec-state.js';
8
+
9
+ const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
10
+
11
+ const CSS = '/pm/cozy-rec-pill.css';
12
+ /** The meeting clock: m:ss under an hour, then h:mm:ss. */
13
+ export function clock(ms) {
14
+ const s = Math.max(0, Math.floor((Number(ms) || 0) / 1000)), h = Math.floor(s / 3600), m = Math.floor((s % 3600) / 60), r = String(s % 60).padStart(2, '0');
15
+ return h ? h + ':' + String(m).padStart(2, '0') + ':' + r : m + ':' + r;
16
+ }
17
+ /** The time heard so far for a State, now. */
18
+ export const elapsed = (st, now = Date.now()) => (st && st.on ? (Number(st.elapsedMs) || 0) + (st.paused ? 0 : Math.max(0, now - (Number(st.readAt) || now))) : 0);
19
+
20
+ export function mountRecPill(doc = document) {
21
+ if (!doc.querySelector(`link[href="${CSS}"]`)) { const l = doc.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; doc.head.appendChild(l); }
22
+ let st = null, tick = null, tries = 0;
23
+ const place = () => {
24
+ const nav = doc.getElementById('czNav');
25
+ if (!nav) { if (tries++ < 50) setTimeout(place, 100); return null; }
26
+ let a = doc.getElementById('czRec');
27
+ if (!a) { a = doc.createElement('a'); a.id = 'czRec'; a.className = 'cz-rec'; a.hidden = true; nav.appendChild(a); }
28
+ return a;
29
+ };
30
+ const draw = () => {
31
+ const a = doc.getElementById('czRec') || place(); if (!a) return;
32
+ if (!st || !st.on || st.here) { a.hidden = true; a.removeAttribute('href'); return; }
33
+ const t = clock(elapsed(st));
34
+ a.href = st.href || '/premium.html';
35
+ a.classList.toggle('paused', !!st.paused);
36
+ a.setAttribute('aria-label', 'Back to the recording: ' + st.title + ', ' + (st.paused ? 'paused at ' : '') + t);
37
+ a.innerHTML = `<i class="dot" aria-hidden="true"></i><span class="tt">${esc(st.title)}</span> <span class="tm">${esc(t)}</span>`;
38
+ a.hidden = false;
39
+ };
40
+ place();
41
+ onRecording((s) => {
42
+ st = s; draw();
43
+ if (tick) { clearInterval(tick); tick = null; }
44
+ if (s && s.on && !s.paused) tick = setInterval(draw, 1000);
45
+ });
46
+ }