create-pmos 0.443.0 → 0.445.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 (110) hide show
  1. package/package.json +25 -25
  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/adler-moments-test.js +8 -0
  8. package/workspace/adler-seasons-art-test.js +3 -0
  9. package/workspace/board-columns-test.js +168 -0
  10. package/workspace/board-programs-test.js +1 -1
  11. package/workspace/briefing-premium-board-test.js +91 -8
  12. package/workspace/briefing-premium-insights-test.js +83 -38
  13. package/workspace/briefing-premium-test.js +2 -1
  14. package/workspace/calm-timeline-test.js +3 -1
  15. package/workspace/changelog.json +24 -0
  16. package/workspace/goals-clear-ui-test.js +34 -20
  17. package/workspace/guide/home.md +5 -0
  18. package/workspace/guide/jira.md +13 -1
  19. package/workspace/guide/ready-made-dashboards.md +2 -2
  20. package/workspace/intel-report-ui-test.js +1 -1
  21. package/workspace/lib/board-fold.js +33 -5
  22. package/workspace/lib/board-premium.js +1 -1
  23. package/workspace/lib/console-state.js +5 -1
  24. package/workspace/lib/engine/boards.js +9 -2
  25. package/workspace/lib/factory-join.js +46 -14
  26. package/workspace/lib/freshness.js +14 -1
  27. package/workspace/lib/initiative-rows.js +38 -4
  28. package/workspace/lib/issues.js +8 -1
  29. package/workspace/lib/jira-cli.js +18 -2
  30. package/workspace/lib/jira-moves.js +119 -0
  31. package/workspace/lib/jira-tickets.js +23 -4
  32. package/workspace/lib/notes.js +4 -2
  33. package/workspace/lib/offloop.js +75 -29
  34. package/workspace/lib/page-build.js +97 -0
  35. package/workspace/lib/plan-items.js +24 -3
  36. package/workspace/lib/plan-tree.js +62 -9
  37. package/workspace/lib/ready-reports.js +22 -8
  38. package/workspace/lib/refresh.js +14 -2
  39. package/workspace/lib/routes-board-premium.js +9 -1
  40. package/workspace/lib/routes-boards.js +114 -16
  41. package/workspace/lib/routes-brief-page.js +3 -1
  42. package/workspace/lib/routes-calendar-import.js +13 -1
  43. package/workspace/lib/routes-ready-reports.js +28 -5
  44. package/workspace/lib/task-links.js +12 -1
  45. package/workspace/lib/workflows-store.js +14 -3
  46. package/workspace/live-pill-round-test.js +178 -0
  47. package/workspace/milestone-pins-test.js +1 -1
  48. package/workspace/okr-goals-ui-test.js +21 -19
  49. package/workspace/package-lock.json +2 -2
  50. package/workspace/package.json +1 -1
  51. package/workspace/panels-test.js +375 -0
  52. package/workspace/premium-rec-tab-test.js +2 -1
  53. package/workspace/premium-vw-item-test.js +10 -2
  54. package/workspace/premium-vw-jira-test.js +3 -0
  55. package/workspace/program-panel-test.js +6 -6
  56. package/workspace/public/pm/bd-cols.js +149 -0
  57. package/workspace/public/pm/bd-ini-panel.js +3 -2
  58. package/workspace/public/pm/bd-pane.js +41 -0
  59. package/workspace/public/pm/bd-span.js +29 -11
  60. package/workspace/public/pm/cozy-adler.js +21 -0
  61. package/workspace/public/pm/cozy-board.css +45 -0
  62. package/workspace/public/pm/cozy-divider.css +32 -0
  63. package/workspace/public/pm/cozy-divider.js +45 -0
  64. package/workspace/public/pm/cozy-insights.css +22 -0
  65. package/workspace/public/pm/cozy-live-pill.css +17 -22
  66. package/workspace/public/pm/cozy-live-pill.js +38 -18
  67. package/workspace/public/pm/cozy-panels.css +80 -0
  68. package/workspace/public/pm/cozy-panels.js +691 -0
  69. package/workspace/public/pm/cozy-viewer.js +148 -70
  70. package/workspace/public/pm/dash-view.js +5 -2
  71. package/workspace/public/pm/goals-clear.js +9 -2
  72. package/workspace/public/pm/home-app.js +30 -19
  73. package/workspace/public/pm/home-ini.js +9 -3
  74. package/workspace/public/pm/home-today.js +4 -2
  75. package/workspace/public/pm/ini-edit.js +405 -0
  76. package/workspace/public/pm/ini-tasks.js +175 -46
  77. package/workspace/public/pm/ini-versions.js +18 -4
  78. package/workspace/public/pm/ini-view-model.js +12 -7
  79. package/workspace/public/pm/ini-view.css +162 -26
  80. package/workspace/public/pm/ini-view.js +44 -13
  81. package/workspace/public/pm/ini-wf-model.js +9 -0
  82. package/workspace/public/pm/ini-wf.js +14 -9
  83. package/workspace/public/pm/ins-pane.js +55 -0
  84. package/workspace/public/pm/jira-move.js +50 -0
  85. package/workspace/public/pm/live-model.js +3 -2
  86. package/workspace/public/pm/pn-narrow.js +76 -0
  87. package/workspace/public/pm/premium-board.js +85 -32
  88. package/workspace/public/pm/premium-insights.js +211 -43
  89. package/workspace/public/pm/task-card.css +2 -0
  90. package/workspace/public/pm/task-card.js +4 -1
  91. package/workspace/public/premium-board.html +2 -0
  92. package/workspace/ready-dash-ui-test.js +4 -4
  93. package/workspace/server.js +71 -20
  94. package/workspace/skills/jira-move.skill +35 -0
  95. package/workspace/stage-card-tasks-test.js +397 -0
  96. package/workspace/stage-card-test.js +1 -1
  97. package/workspace/task-delete-test.js +9 -1
  98. package/workspace/task-links-test.js +1 -0
  99. package/workspace/task-milestones-test.js +3 -3
  100. package/workspace/task-plans-test.js +1 -1
  101. package/workspace/task-press-test.js +12 -4
  102. package/workspace/task-views-test.js +166 -13
  103. package/workspace/test-lists/batch18-live-pill-round.json +10 -0
  104. package/workspace/test-lists/batch18-panels.json +9 -0
  105. package/workspace/test-lists/board-columns.json +5 -0
  106. package/workspace/test-lists/jira-moves.json +11 -0
  107. package/workspace/test-lists/page-speed-fold.json +5 -0
  108. package/workspace/test-lists/page-speed-reads.json +5 -0
  109. package/workspace/test-lists/stage-card-tasks.json +6 -0
  110. package/workspace/timeline-holds-test.js +1 -1
@@ -1,22 +1,26 @@
1
- /* pm/cozy-live-pill.css — the Live pill beside the floating menu and its list (canvas XrrABoard, XrrAPhone, XrrAGrill), drawn by
2
- * pm/cozy-live-pill.js inside #czNav, so it follows the menu button and hides with it. Token vars from cozy.css only. Motion: one info
1
+ /* pm/cozy-live-pill.css — the Live pill above the floating menu and its list (canvas XrrABoard, XrrAPhone, XrrAGrill), drawn by
2
+ * pm/cozy-live-pill.js inside #czNav, so it follows the menu button and hides with it. Round since batch 18 item 15 (TbT1Split). Token vars from cozy.css only. Motion: one info
3
3
  * ripple when a mark changes while the list is open; the recording clock is the only other thing that changes. */
4
- .cz-live { position: absolute; left: 68px; bottom: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 0; background: var(--cz-card); box-shadow: var(--cz-float); display: inline-flex; align-items: center; gap: 10px; font: 800 var(--fs-3) var(--cz-sans); color: var(--cz-ink); white-space: nowrap; cursor: pointer; z-index: 1; }
4
+ /* closed: one 44 px round button stacked above the menu button (TbT1Split): the number of live items, blue with a soft glow when Claude
5
+ asks, a red corner dot while a meeting records (batch 18 item 15). The menu button is 56 px, so the pill sits on its centre line. */
6
+ .cz-live { position: absolute; left: 6px; bottom: 68px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background: var(--cz-card); box-shadow: var(--cz-float), inset 0 0 0 1.5px var(--cz-hair); display: inline-flex; align-items: center; justify-content: center; font: 800 var(--fs-3) var(--cz-sans); color: var(--cz-ink); font-variant-numeric: tabular-nums; cursor: pointer; z-index: 1; transition: background .2s, color .2s, box-shadow .2s; }
5
7
  .cz-live[hidden] { display: none; }
8
+ .cz-live.asks { background: var(--cz-blueink); color: var(--cz-onsolid); box-shadow: var(--cz-float), 0 0 0 4px color-mix(in srgb, var(--cz-blue) 22%, transparent); }
6
9
  .cz-live.open { box-shadow: var(--cz-float), 0 0 0 2px color-mix(in srgb, var(--cz-blue) 30%, var(--cz-card)); }
7
- .cz-live.recp { box-shadow: var(--cz-float), 0 0 0 1.5px color-mix(in srgb, var(--cz-dot-red) 35%, var(--cz-card)); }
8
10
  .cz-live:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
9
11
  .lv-row:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
10
- .cz-live .lv-g { display: inline-flex; align-items: center; gap: 6px; }
11
- .cz-live .lv-ad { display: inline-flex; align-items: center; } /* Adler with headphones while the meeting records (AdM1) */
12
- .cz-live .lv-ad .ad-sp { animation: none; }
13
- .cz-live .lv-sp { width: 1px; height: 16px; background: var(--cz-hair); }
14
- .cz-live .lv-ms { display: inline-flex; align-items: center; gap: 6px; }
12
+ .cz-live .lv-rd { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--cz-dot-red); box-shadow: 0 0 0 2px var(--cz-card); }
13
+ .cz-live .lv-rd.paused { background: var(--cz-dot-q); }
14
+ .lv-row .lv-ad { display: inline-flex; align-items: center; flex: none; margin-right: 6px; } /* Adler with headphones while the meeting records (AdM1) */
15
+ .lv-row .lv-ad .ad-sp { animation: none; }
16
+ @media (prefers-reduced-motion: reduce) { .cz-live { transition: none; } }
17
+ .cz-fabw:has(> .cz-fabm:not([hidden])) .cz-live { visibility: hidden; } /* the open menu takes the place above the menu button */
15
18
 
16
19
  /* one mark per item: blue asks you, ring running, amber stopped, check finished, red recording (grey while paused) */
17
20
  .lv-m { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; flex: none; background: var(--cz-blue); }
18
21
  .lv-m.run { background: transparent; border: 1.5px solid var(--cz-ink3); }
19
22
  .lv-m.stop { background: var(--cz-dot-late); }
23
+ .lv-m.away { background: transparent; border: 1.5px solid var(--cz-blue); border-radius: 3px; } /* a panel put away: a hollow blue square */
20
24
  .lv-m.rec { background: var(--cz-dot-red); }
21
25
  .lv-m.rec.paused { background: var(--cz-dot-q); }
22
26
  .lv-m.done { width: 14px; height: 14px; border-radius: 0; background: none; color: var(--cz-dot-ok); }
@@ -40,20 +44,11 @@
40
44
  .lv-tm.rec { color: var(--cz-red); }
41
45
  .lv-tm.stop { color: var(--cz-late); }
42
46
 
43
- /* Home on a desktop (batch 18 item 6): beside the menu button the pill reached into the chat card and covered its +, whenever the list
44
- is narrow or folded; it sits above the menu button instead, and its list opens above it */
45
- @media (min-width: 761px) {
46
- body.cz-home .cz-live { left: 8px; bottom: 68px; }
47
- body.cz-home .lv-tray { bottom: 116px; }
48
- /* the list folded to its rail (Wawan 12:09): the pill stacks its marks in a column as wide as the menu button, so it never reaches
49
- into the page beside the rail */
50
- body.cz-home.hm-folded .cz-live { flex-direction: column; height: auto; min-width: 40px; padding: 10px 6px; gap: 8px; border-radius: 20px; }
51
- body.cz-home.hm-folded .cz-live .lv-ms, body.cz-home.hm-folded .cz-live .lv-g { flex-direction: column; }
52
- body.cz-home.hm-folded .cz-live .lv-sp { width: 16px; height: 1px; }
53
- }
54
- /* a phone: the menu button is bottom right, so the pill sits to its left, and the list is a short sheet */
47
+ /* the list opens above the pill */
48
+ @media (min-width: 761px) { .lv-tray { bottom: 120px; } }
49
+ /* a phone: the menu button is bottom right, so the pill stacks above it there, and the list is a short sheet */
55
50
  @media (max-width: 760px) {
56
- .cz-live { left: auto; right: 68px; }
51
+ .cz-live { left: auto; right: 6px; }
57
52
  .lv-scrim { position: fixed; inset: 0; background: rgba(42,46,53,.18); z-index: 0; }
58
53
  .lv-tray.sheet { position: fixed; left: 0; right: 0; bottom: 0; width: auto; padding: 18px 8px 28px; border-radius: 26px 26px 0 0; border: 0; }
59
54
  .lv-tray.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--cz-well2); }
@@ -1,12 +1,15 @@
1
- /* pm/cozy-live-pill.js — the Live pill beside the floating menu on every page (batch 6 item 2; canvas XrrABoard, XrrAHome, XrrAPhone,
2
- * XrrAPhoneClosed, XrrAGrill). It replaces the recording pill (cozy-rec-pill.js): a recording is now its first row.
1
+ /* pm/cozy-live-pill.js — the Live pill above the floating menu on every page (batch 6 item 2; canvas XrrABoard, XrrAHome, XrrAPhone,
2
+ * XrrAPhoneClosed, XrrAGrill; made a round button by batch 18 item 15, canvas TbT1Split, TbT4Off). It replaces the recording pill
3
+ * (cozy-rec-pill.js): a recording is now its first row.
3
4
  *
4
- * Closed, it is one quiet pill with one mark per live item, in the list's order: a blue dot asks you, a ring is running, amber stopped,
5
- * a check finished and not read yet; a recording leads with its red dot and clock (grey and still while paused). No counts and no words:
6
- * its name says them (live-model.js pillLabel). A press, or Ctrl J (⌘J) on any page, opens one short list of the 5 or fewer things the
7
- * PM touched last, newest first (a popover over the menu button on a desktop, a sheet on a phone). A row opens that chat on Home; on
8
- * Home itself it opens in place (opts.go). While the list is open the rows keep their places: only a mark changes, with one info ripple.
9
- * ↑ ↓ move, Enter opens, Esc closes, 1 to 5 open a row. Nothing live: no pill (zero is silence). On a phone it hides with the menu
5
+ * Closed, it is one 44 px round button stacked above the menu button, with the NUMBER of live items in it and no marks. It turns blue with
6
+ * a soft glow when Claude asks you; a recording gives it a red corner dot (grey while paused), and the meeting clock moves to its tooltip
7
+ * and the list. Its name says the rest (live-model.js pillLabel). A press, or Ctrl J (⌘J) on any page, opens one short list of the 5 or
8
+ * fewer things the PM touched last, newest first (a popover over the menu button on a desktop, a sheet on a phone). A row opens that chat
9
+ * on Home; on Home itself it opens in place (opts.go). Where the panels engine runs (window.czPanels, pm/cozy-panels.js, batch 18 item 15)
10
+ * a row goes to czPanels.slideOver(item) first, which floats the chat over the Viewer (false: it did nothing, and today's open follows);
11
+ * the engine also drags a row (a[data-lv]) to a screen edge to open beside. While the list is open the rows keep their places: only a mark changes, with one info
12
+ * ripple. ↑ ↓ move, Enter opens, Esc closes, 1 to 5 open a row. Nothing live: no pill (zero is silence). On a phone it hides with the menu
10
13
  * button while the keyboard is up.
11
14
  *
12
15
  * mountLivePill(doc = document, opts) once per page, after mountNav: the pill lives inside #czNav, so it hides whenever the menu hides
@@ -14,8 +17,8 @@
14
17
  * opts.open() → id the session open on this page now: its row is tinted
15
18
  * Reads GET /api/live every 10 s while the page is shown, and on the cz:live event (Home sends it after the PM opens or answers a
16
19
  * session); the recording comes from pm/rec-state.js. Nothing is written.
17
- * Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock in the
18
- * pill. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
20
+ * Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock, now in
21
+ * the recording's row. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
19
22
  import { onRecording } from './rec-state.js';
20
23
  import { ownTab, bring } from './rec-tab-core.js';
21
24
  import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
@@ -51,12 +54,24 @@ export function mountLivePill(doc = document, opts = {}) {
51
54
  draw();
52
55
  return true;
53
56
  };
54
- const items = () => liveItems(L.sessions, { rec: L.rec, titles: L.titles, open: opts.open ? opts.open() : null });
57
+ // a panel put away (cozy-panels.js slide over, then off the edge) is the first row: a press brings it back over
58
+ const awayRow = () => {
59
+ const P = typeof window !== 'undefined' ? window.czPanels : null, id = P && typeof P.away === 'function' ? P.away() : null;
60
+ if (!id) return null;
61
+ const p = P.list().find((x) => x.id === id);
62
+ return { id: 'pn:' + id, kind: 'away', mark: 'away', name: (p && p.title) || 'Viewer', sub: 'Put away', time: '', at: Date.now(), href: '#', open: false };
63
+ };
64
+ const items = () => { const a = awayRow(), l = liveItems(L.sessions, { rec: L.rec, titles: L.titles, open: opts.open ? opts.open() : null }); return a ? [a, ...l] : l; };
55
65
  function go(a, e) {
56
66
  const x = L.shown.find((i) => i.id === a.dataset.lv);
57
67
  // the recording: its snippet only shows; a press brings the recording tab forward (rec-tab-core.js), where the meeting is controlled
58
68
  if (x && x.kind === 'rec' && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && ownTab() && bring(x.href)) { if (e) e.preventDefault(); set(false); return; }
59
- if (x && opts.go && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && opts.go(x)) { if (e) e.preventDefault(); set(false); return; }
69
+ if (x && x.kind === 'away') { if (e) e.preventDefault(); set(false); if (window.czPanels) window.czPanels.slideOver(); return; }
70
+ const plain = !(e && (e.metaKey || e.ctrlKey || e.shiftKey));
71
+ // the panels engine (batch 18 item 15): the row's chat slides over the Viewer; the engine calls the page's own go(item) itself
72
+ const P = typeof window !== 'undefined' ? window.czPanels : null;
73
+ if (x && plain && P && typeof P.slideOver === 'function' && P.slideOver(x) !== false) { if (e) e.preventDefault(); set(false); return; } // false: it did nothing
74
+ if (x && opts.go && plain && opts.go(x)) { if (e) e.preventDefault(); set(false); return; }
60
75
  set(false); // the link is followed
61
76
  }
62
77
  function rowsHtml(list) {
@@ -65,14 +80,17 @@ export function mountLivePill(doc = document, opts = {}) {
65
80
  return `<a class="lv-row${x.open ? ' cur' : ''}" href="${esc(x.href)}" data-lv="${esc(x.id)}" aria-label="${esc(rowLabel(x))}" aria-keyshortcuts="${i + 1}">`
66
81
  + `<span class="lv-mk">${x.kind === 'rec' ? `<i class="lv-m rec${x.paused ? ' paused' : ''}"></i>` : markHtml(x.mark, once)}</span>`
67
82
  + `<span class="lv-t">${esc(x.name)}<small>${esc(x.sub)}</small></span>${wedgeHtml(x.ctx)}`
83
+ + (x.kind === 'rec' && !x.paused ? `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>` : '')
68
84
  + `<span class="lv-tm${x.kind === 'rec' && !x.paused ? ' rec' : x.mark === 'stop' ? ' stop' : ''}">${esc(x.time)}</span></a>`;
69
85
  }).join('');
70
86
  }
87
+ // the closed pill: the number of live items, and a red corner dot while a meeting records (grey while paused); no marks, no clock
71
88
  function pillHtml(list) {
72
- const r = list.find((x) => x.kind === 'rec'), rest = list.filter((x) => x.kind !== 'rec');
73
- return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span>${r.paused ? '' : `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>`}</span>${rest.length ? '<span class="lv-sp"></span>' : ''}` : '')
74
- + (rest.length ? `<span class="lv-ms">${rest.map((x) => markHtml(x.mark, false)).join('')}</span>` : '');
89
+ const r = list.find((x) => x.kind === 'rec');
90
+ return `<span class="lv-n">${list.length}</span>` + (r ? `<i class="lv-rd${r.paused ? ' paused' : ''}" aria-hidden="true"></i>` : '');
75
91
  }
92
+ // the tooltip: the meeting clock first while one records, then the key
93
+ const tipOf = (list) => { const r = list.find((x) => x.kind === 'rec'); return (r ? (r.paused ? 'Recording paused ' : 'Recording ') + r.time + ' · ' : '') + 'Now ' + (mac() ? '⌘J' : 'Ctrl J'); };
76
94
  function draw() {
77
95
  if (!pill) return;
78
96
  const now = items();
@@ -81,9 +99,10 @@ export function mountLivePill(doc = document, opts = {}) {
81
99
  if (L.open && !list.length) { set(false); return; }
82
100
  pill.hidden = !now.length && !L.open;
83
101
  pill.classList.toggle('recp', now.some((x) => x.kind === 'rec' && !x.paused));
102
+ pill.classList.toggle('asks', now.some((x) => x.mark === 'ask'));
84
103
  pill.setAttribute('aria-label', pillLabel(now, { mac: mac() }));
85
- pill.title = 'Now ' + (mac() ? '⌘J' : 'Ctrl J');
86
- pill.innerHTML = pillHtml(now);
104
+ pill.title = tipOf(now);
105
+ const h = pillHtml(now); if (pill.__h !== h) { pill.__h = h; pill.innerHTML = h; }
87
106
  if (L.open) {
88
107
  const f = doc.activeElement && tray.contains(doc.activeElement) ? doc.activeElement.dataset.lv : null;
89
108
  tray.innerHTML = rowsHtml(list);
@@ -113,7 +132,7 @@ export function mountLivePill(doc = document, opts = {}) {
113
132
  // the meeting clock ticks once a second while a recording runs; nothing else moves
114
133
  function tickRec(list) {
115
134
  const run = list.some((x) => x.kind === 'rec' && !x.paused);
116
- if (run && !L.tick) L.tick = setInterval(() => { if (!doc.hidden) { const t = clock(elapsed(L.rec)); pill.querySelectorAll('.lv-g .lv-tm').forEach((n) => { n.textContent = t; }); const r = tray.querySelector('[data-lv^="rec:"] .lv-tm'); if (r) r.textContent = t; } }, 1000);
135
+ if (run && !L.tick) L.tick = setInterval(() => { if (!doc.hidden) { const t = clock(elapsed(L.rec)); pill.title = 'Recording ' + t + ' · Now ' + (mac() ? '⌘J' : 'Ctrl J'); const r = tray.querySelector('[data-lv^="rec:"] .lv-tm'); if (r) r.textContent = t; } }, 1000);
117
136
  else if (!run && L.tick) { clearInterval(L.tick); L.tick = null; }
118
137
  }
119
138
  async function read() {
@@ -145,4 +164,5 @@ export function mountLivePill(doc = document, opts = {}) {
145
164
  setInterval(read, 10000);
146
165
  doc.addEventListener('visibilitychange', () => { if (!doc.hidden) read(); });
147
166
  doc.addEventListener('cz:live', () => read());
167
+ doc.addEventListener('cz-panels', () => draw()); // a panel put away or brought back
148
168
  }
@@ -0,0 +1,80 @@
1
+ /* pm/cozy-panels.css — the panels' layout (batch 18 item 15, build 15-A; cozy-panels.js). Structure only: the divider's look is
2
+ * cozy-divider.css (build 15-B). Colours come from the tokens in cozy.css, so light and dark follow them. */
3
+
4
+ /* the desk's order: the list, then the panels and the dividers between them */
5
+ body.cz-pn #hmList { order: -1; }
6
+
7
+ /* a divider is a 0-wide item in the desk's 22 px gap: its middle is the gap's middle; the hit area is 20 px wide and the full height */
8
+ .cz-pn-div { position: relative; flex: 0 0 0px; align-self: stretch; margin: 0 -11px; z-index: 6; outline: none; touch-action: none; cursor: col-resize; }
9
+ .cz-pn-div::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 20px; }
10
+ .cz-pn-div::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: -1px; width: 2px; border-radius: 1px; background: var(--cz-blue); opacity: 0; }
11
+ .cz-pn-div.drag::after { opacity: 1; }
12
+ .cz-pn-div:focus-visible::after { opacity: .6; }
13
+ .cz-pn-in { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
14
+ body.cz-pn-drag, body.cz-pn-drag * { cursor: col-resize !important; user-select: none !important; }
15
+ /* the Viewer's own grip is the divider's job on a page with panels */
16
+ body.cz-pn [data-cz-viewer-host] .cz-vw-grip { display: none; }
17
+ /* the Viewer lying over the chat in a narrow window (cz-vw-over) has no divider */
18
+ body.cz-vw-over .cz-pn-div { display: none; }
19
+
20
+ /* laid out here: the Viewer host steps aside, so the chat and each Viewer are items of the desk, sized by their share */
21
+ body.cz-pn-man [data-cz-viewer-host] { display: contents; }
22
+ body.cz-pn-man .cz-pn-row { min-width: 0; }
23
+ body.cz-pn-man [data-cz-viewer-host] .cz-vw.cz-pn-row { width: auto !important; }
24
+ .cz-pn-away { display: none !important; }
25
+ .cz-pn-shut { opacity: .45; transition: opacity .12s; }
26
+
27
+ /* slide over (TbT3Over, TbT3bViewerOver): one panel floats over the right side, lifted and rounded, with a grab bar on top */
28
+ .cz-pn-over { position: absolute !important; top: 12px; right: 12px; bottom: 12px; z-index: 40; margin: 0 !important; box-sizing: border-box; border-radius: 22px; background: var(--cz-card); box-shadow: var(--cz-sheet), 0 0 0 1px var(--cz-hair); animation: cz-pn-in .2s ease-out; }
29
+ .hm-chat.cz-pn-over, body.cz-home .hm-chat.cz-pn-over { width: 400px; padding: 28px 16px 16px; }
30
+ .cz-vw.cz-pn-over { width: 560px !important; flex: none !important; }
31
+ .cz-pn-moving { transition: none !important; animation: none; }
32
+ @keyframes cz-pn-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
33
+ .cz-pn-grab { position: absolute; top: 0; left: 50%; width: 80px; height: 22px; margin-left: -40px; display: grid; place-items: center; cursor: grab; touch-action: none; z-index: 6; }
34
+ .cz-pn-grab i { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--cz-ink3) 45%, transparent); }
35
+ .cz-pn-grab:hover i { background: var(--cz-ink3); }
36
+
37
+ /* the chat's own ⧉ and × (TbT1Split), top right of the chat while a Viewer is open */
38
+ .cz-pn-ct { position: absolute; top: 0; right: 0; z-index: 5; display: flex; gap: 2px; }
39
+ body.cz-home .hm-chat > .cz-pn-ct { top: 16px; right: 16px; }
40
+ body.cz-home .hm-chat.cz-pn-over > .cz-pn-ct { top: 12px; right: 12px; }
41
+ body.cz-pn-ctl .hm-chd { padding-right: 96px; }
42
+ body.cz-pn-ctl .hm-chat > .hm-reopen { display: none; }
43
+
44
+ /* the ⧉ menu (TbT7Place): Full screen, Split, Slide over, three 44 px icons */
45
+ .cz-pn-menu { position: fixed; z-index: 90; display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: var(--cz-sheet); }
46
+ .cz-pn-menu button { width: 44px; height: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; background: none; color: var(--cz-ink2); cursor: pointer; padding: 0; }
47
+ .cz-pn-menu button:hover { background: var(--cz-well); }
48
+ .cz-pn-menu button[aria-checked="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
49
+ .cz-pn-menu button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
50
+
51
+ /* open beside (TbT5DragRow): the row follows the pointer, and the half it will take turns blue */
52
+ .cz-pn-ghost { position: fixed; z-index: 92; pointer-events: none; max-width: 260px; padding: 10px 14px; border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); font: 600 var(--fs-3, 14px)/1.25 var(--cz-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
53
+ .cz-pn-drop { position: fixed; z-index: 91; pointer-events: none; box-sizing: border-box; border-radius: 22px; background: color-mix(in srgb, var(--cz-blue) 12%, transparent); box-shadow: inset 0 0 0 2px var(--cz-blue); }
54
+ .cz-pn-drop[hidden] { display: none; }
55
+ body.cz-pn-dragrow, body.cz-pn-dragrow * { user-select: none !important; cursor: grabbing !important; }
56
+
57
+ /* the active Viewer (BiB8Active): with 2 or more Viewers open, the one a plain click replaces has a thin blue edge */
58
+ .cz-vw.cz-pn-active { box-shadow: var(--cz-vlift), 0 0 0 2px var(--cz-blue); }
59
+ .cz-vw.cz-pn-over.cz-pn-active { box-shadow: var(--cz-sheet), 0 0 0 2px var(--cz-blue); }
60
+ /* a drop onto a Viewer replaces it (BiB9DropOn): the zone is that Viewer's box */
61
+ .cz-pn-drop[data-on]:not([data-on=""]) { border-radius: 24px; }
62
+
63
+ /* a page with panels (Board, Intelligence: BiB1Split, BiI1Split): the body is the row: the page, the divider, the Viewer host. The page
64
+ * scrolls with the window as before; the Viewers and the dividers stay in view (sticky). A phone keeps the page as it is. */
65
+ @media (min-width: 761px) {
66
+ /* no flex gap: the page's other body children (a scrim, a noscript) would take one each; the engine sets the 22 px as a margin */
67
+ body.cz-pn-page { display: flex; align-items: flex-start; padding: 16px; box-sizing: border-box; min-height: 100vh; }
68
+ body.cz-pn-page > main.stage, body.cz-pn-page > main.cz-panel { flex: 1 1 0px; min-width: 0; margin: 0 !important; max-width: none; }
69
+ body.cz-pn-page:not(.cz-pn-man) .cz-pn-host { flex: none; display: flex; position: sticky; top: 16px; height: calc(100vh - 32px); min-height: 0; z-index: 45; } /* over a page's own fixed side panel (Intelligence's library, z 40), as the floating Viewer was */
70
+ body.cz-pn-page:not(.cz-vw-on) .cz-pn-host { display: none; }
71
+ body.cz-pn-page .cz-pn-host .cz-vw { height: 100%; }
72
+ body.cz-pn-page.cz-pn-man .cz-vw.cz-pn-row { position: sticky; top: 16px; height: calc(100vh - 32px); align-self: flex-start; z-index: 45; }
73
+ body.cz-pn-page .cz-pn-div { margin: 0 -11px 0 11px; position: sticky; top: 16px; height: calc(100vh - 32px); align-self: flex-start; }
74
+ body.cz-pn-page .cz-vw.cz-pn-over { position: fixed !important; top: 16px; right: 16px; bottom: 16px; height: auto; z-index: 70; }
75
+ body.cz-pn-page > main.cz-pn-away { display: none !important; }
76
+ }
77
+
78
+ @media (prefers-reduced-motion: reduce) { .cz-pn-over { animation: none; } .cz-pn-shut { transition: none; } }
79
+ /* a phone keeps today's one panel: nothing here applies */
80
+ @media (max-width: 760px) { .cz-pn-div, .cz-pn-ct, .cz-pn-grab { display: none !important; } }