create-pmos 0.424.0 → 0.426.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 +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/board-deliveries-test.js +153 -0
  7. package/workspace/board-programs-test.js +60 -36
  8. package/workspace/board-shot.js +4 -3
  9. package/workspace/briefing-premium-board-test.js +9 -6
  10. package/workspace/briefing-premium-insights-test.js +31 -15
  11. package/workspace/briefing-premium-products-test.js +46 -43
  12. package/workspace/calm-timeline-test.js +190 -0
  13. package/workspace/changelog.json +24 -0
  14. package/workspace/ev-everywhere-test.js +3 -1
  15. package/workspace/guide/briefing-premium.md +3 -2
  16. package/workspace/guide/claude-proposes.md +16 -1
  17. package/workspace/guide/home.md +2 -2
  18. package/workspace/guide/index.md +1 -0
  19. package/workspace/guide/notes.md +39 -1
  20. package/workspace/guide/present-in-a-meeting.md +57 -0
  21. package/workspace/guide/programs.md +4 -3
  22. package/workspace/lib/board-premium.js +3 -1
  23. package/workspace/lib/briefing-premium-products.js +18 -4
  24. package/workspace/lib/chat-file-locate.js +40 -2
  25. package/workspace/lib/engine/boards.js +8 -2
  26. package/workspace/lib/idle-close.js +60 -0
  27. package/workspace/lib/loose-proposals.js +302 -0
  28. package/workspace/lib/meeting-focus.js +64 -14
  29. package/workspace/lib/my-work-premium.js +1 -1
  30. package/workspace/lib/proposal-runs.js +77 -2
  31. package/workspace/lib/propose-cli.js +42 -1
  32. package/workspace/lib/route-modules.js +1 -0
  33. package/workspace/lib/routes-boards.js +16 -4
  34. package/workspace/lib/routes-brief-page.js +9 -1
  35. package/workspace/lib/routes-briefing-premium.js +19 -0
  36. package/workspace/lib/routes-loose.js +210 -0
  37. package/workspace/lib/routes-meeting-focus.js +28 -6
  38. package/workspace/lib/routes-pm-items.js +27 -17
  39. package/workspace/lib/settings-store.js +2 -1
  40. package/workspace/lib/task-cli.js +18 -11
  41. package/workspace/milestone-pins-test.js +170 -0
  42. package/workspace/package-lock.json +2 -2
  43. package/workspace/package.json +1 -1
  44. package/workspace/premium-board-actions-test.js +2 -1
  45. package/workspace/premium-briefing-depth-test.js +2 -2
  46. package/workspace/premium-chat-term-test.js +13 -2
  47. package/workspace/premium-core-doc-issue-test.js +1 -1
  48. package/workspace/premium-rec-now-test.js +153 -0
  49. package/workspace/premium-rec-tab-test.js +167 -0
  50. package/workspace/product-lane-test.js +30 -17
  51. package/workspace/public/pm/bd-acts.js +6 -3
  52. package/workspace/public/pm/bd-deliveries.js +218 -0
  53. package/workspace/public/pm/bd-pin-card.css +16 -0
  54. package/workspace/public/pm/bd-pin-card.js +80 -0
  55. package/workspace/public/pm/bd-pins.js +33 -0
  56. package/workspace/public/pm/bd-pop.js +2 -0
  57. package/workspace/public/pm/bd-prog.js +5 -4
  58. package/workspace/public/pm/bd-span.js +140 -102
  59. package/workspace/public/pm/cozy-aud.css +9 -0
  60. package/workspace/public/pm/cozy-aud.js +80 -0
  61. package/workspace/public/pm/cozy-board.css +73 -11
  62. package/workspace/public/pm/cozy-home.css +16 -1
  63. package/workspace/public/pm/cozy-live-pill.js +3 -0
  64. package/workspace/public/pm/cozy-pick.css +41 -0
  65. package/workspace/public/pm/cozy-pick.js +134 -0
  66. package/workspace/public/pm/cozy-rec-bridge.js +32 -0
  67. package/workspace/public/pm/cozy-rec-now.css +104 -0
  68. package/workspace/public/pm/cozy-rec-now.js +330 -0
  69. package/workspace/public/pm/cozy-rec-present.css +69 -0
  70. package/workspace/public/pm/cozy-rec-present.js +467 -0
  71. package/workspace/public/pm/cozy-rec-tab.css +90 -0
  72. package/workspace/public/pm/cozy-rec-tab.js +219 -0
  73. package/workspace/public/pm/cozy-settings.js +8 -2
  74. package/workspace/public/pm/cozy-today.css +4 -0
  75. package/workspace/public/pm/home-app.js +51 -22
  76. package/workspace/public/pm/home-data.js +5 -3
  77. package/workspace/public/pm/home-list.js +63 -15
  78. package/workspace/public/pm/home-more.js +2 -31
  79. package/workspace/public/pm/home-today.js +19 -9
  80. package/workspace/public/pm/ini-tasks.js +4 -1
  81. package/workspace/public/pm/live-model.js +1 -1
  82. package/workspace/public/pm/loose-props.css +54 -0
  83. package/workspace/public/pm/loose-props.js +262 -0
  84. package/workspace/public/pm/premium-board.js +65 -30
  85. package/workspace/public/pm/premium-insights.js +42 -24
  86. package/workspace/public/pm/premium-meeting.js +17 -4
  87. package/workspace/public/pm/premium-mtg-present.js +4 -3
  88. package/workspace/public/pm/premium-report-read.js +2 -0
  89. package/workspace/public/pm/premium-vw-mtg.js +15 -7
  90. package/workspace/public/pm/rec-state.js +13 -5
  91. package/workspace/public/pm/rec-tab-core.js +92 -0
  92. package/workspace/public/pm/term-view.js +81 -10
  93. package/workspace/public/pm/view-notes.js +9 -0
  94. package/workspace/public/premium-aud.html +22 -0
  95. package/workspace/public/premium-board.html +2 -0
  96. package/workspace/public/premium-insights.html +2 -1
  97. package/workspace/public/premium-rec.html +30 -0
  98. package/workspace/public/premium.html +1 -0
  99. package/workspace/rec-present-test.js +229 -0
  100. package/workspace/server.js +116 -7
  101. package/workspace/skills/loose-propose.skill +39 -0
  102. package/workspace/task-milestones-test.js +15 -6
  103. package/workspace/test-lists/board-deliveries.json +13 -0
  104. package/workspace/test-lists/calm-timeline.json +5 -0
  105. package/workspace/test-lists/loose-props.json +9 -0
  106. package/workspace/test-lists/milestone-pins.json +6 -0
  107. package/workspace/test-lists/rec-now.json +6 -0
  108. package/workspace/test-lists/rec-present.json +13 -0
  109. package/workspace/test-lists/recording-tab.json +13 -0
  110. package/workspace/timeline-holds-test.js +44 -42
@@ -364,7 +364,8 @@ body.bd-page[data-bd-view="time"] #cIni:not([hidden]) { flex: 1; display: flex;
364
364
  button.tg-n { cursor: pointer; }
365
365
  button.tg-n:hover b { color: var(--cz-blueink); }
366
366
  .tg-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
367
- .tg-n b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
367
+ .tg-n b { font-size: 13.5px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; overflow-wrap: anywhere; } /* names wrap to two lines, never cut (batch 13 item 4) */
368
+ .tg-n b .bd-pgi { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
368
369
  .tg-n small { font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
369
370
  .tg-h .tg-n b { font-size: 12.5px; color: var(--cz-ink2); }
370
371
  .tg-h .tg-n small { font-size: 11px; font-weight: 700; }
@@ -379,14 +380,18 @@ button.tg-n:hover b { color: var(--cz-blueink); }
379
380
  .tg-td { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cz-ink); opacity: .75; z-index: 2; }
380
381
  .tg-bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--bd-plan); z-index: 1; overflow: visible; }
381
382
  .tg-bar > b { display: block; height: 100%; border-radius: 6px; background: var(--bd-done); }
382
- .tg-bar.t-risk { background: color-mix(in srgb, var(--cz-dot-risk) 30%, var(--cz-card)); }
383
- .tg-bar.t-you { background: color-mix(in srgb, var(--cz-blue) 22%, var(--cz-card)); }
384
383
  /* the committed end (PgTimeline .tdm): an open ◇ for Deliver or Evaluate, its date right of it; filled blue while the initiative is at it */
385
- .tg-end { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--bd-done); box-sizing: border-box; z-index: 2; }
386
- .tg-end.ms { background: var(--cz-blue); border-color: var(--cz-blue); }
384
+ .tg-end { appearance: none; padding: 0; position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--bd-done); box-sizing: border-box; z-index: 2; cursor: pointer; }
385
+ .tg-end::before { content: ''; position: absolute; inset: -8px; }
386
+ .tg-end:focus-visible, .tg-tm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
387
387
  .tg-end.late { border-color: var(--cz-dot-late); }
388
- .tg-endl { position: absolute; top: 50%; transform: translate(11px, -50%); font-size: 11.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; z-index: 3; }
389
- .tg-endl.l { transform: translate(calc(-100% - 11px), -50%); }
388
+ /* the one label at a bar's end (batch 13 item 4, XcalmA1Desk): what lands, then when; the date alone carries the tone */
389
+ .tg-endl { position: absolute; top: 50%; transform: translate(11px, -50%); font-size: 12px; font-weight: 700; color: var(--cz-ink); white-space: nowrap; z-index: 3; line-height: 18px; }
390
+ .tg-endl > b { font-weight: 700; color: var(--cz-ink3); }
391
+ .tg-endl > b.risk { color: var(--cz-risk); }
392
+ .tg-endl > b.late { color: var(--cz-late); }
393
+ .tg-endl > b.q { color: var(--cz-ink3); }
394
+ .tg-endl.l { transform: translate(calc(-100% - 11px), -50%); background: var(--cz-card); padding: 0 7px; border-radius: 6px; box-shadow: 0 0 0 1px var(--cz-hair); }
390
395
  .tg-over { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--cz-c-f0a27a) 0 4px, var(--cz-c-fbdccb) 4px 8px); z-index: 1; }
391
396
  .tg-fc { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; border: 1.5px dashed var(--cz-dot-late); box-sizing: border-box; z-index: 1; }
392
397
  .tg-fc.solo { border-color: var(--cz-blue); }
@@ -432,7 +437,6 @@ button.tg-n:hover b { color: var(--cz-blueink); }
432
437
  .tg-s .tg-p { overflow: visible; }
433
438
  .tg-s .tg-body .tg-p { overflow: hidden; }
434
439
  .tg-s .tg-bar { cursor: pointer; }
435
- .tg-out { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42,46,53,.04) 6px 12px); }
436
440
  .tg-s .tg-h .tg-p span.pin { color: var(--cz-ink3); }
437
441
  .tg-s .tg-h .tg-p span.pin b { color: var(--cz-ink3); }
438
442
  /* Today: the pill on the line in view; off screen the back button beside "Initiative" with its arrow pointing the way (TsCDesk, TsCGrill 4) */
@@ -475,7 +479,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
475
479
  .tgq-r.sel { background: var(--cz-bluebg); }
476
480
  .tgq-r.tg-pg { background: var(--bd-progbg); }
477
481
  .tgq-n { all: unset; box-sizing: border-box; position: sticky; left: 0; z-index: 4; display: inline-flex; align-items: center; gap: 6px; max-width: var(--vw, 100%); padding: 2px 10px; font-size: 13px; cursor: pointer; }
478
- .tgq-n b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
482
+ .tgq-n b { font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
479
483
  .tgq-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
480
484
  .tgq-n.tg-pgn { display: flex; width: var(--vw, 100%); cursor: default; padding: 4px 6px 2px 10px; }
481
485
  .tgq-r .tg-p { position: relative; height: 22px; min-height: 0; overflow: hidden; }
@@ -488,6 +492,56 @@ button.tg-n:hover b { color: var(--cz-blueink); }
488
492
  .tg-rel { display: inline-flex; align-items: center; gap: 4px; color: var(--cz-blueink); }
489
493
  .tg-note { margin: 6px 0 0; font-size: 11.5px; color: var(--cz-ink3); }
490
494
 
495
+ /* ── the Deliveries lane (batch 13 item 4, calmer timeline A6: XcalmA6Lane, XcalmA6Fold, XcalmA6Phone; pm/bd-deliveries.js) ──
496
+ one row under the axis: a list per column, the date then the name; missed orange, at risk amber, on hold grey; the current column a faint wash.
497
+ Hover an entry: its row gets a wash and its ◇ a ring. Folded: one line. A phone: the next 3 in a card above the rows. */
498
+ .tg-dl { min-height: 0; }
499
+ .tg-dl .dl-n { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px; padding-top: 10px; }
500
+ .tg-dl.shut .dl-n { align-items: center; padding-top: 8px; }
501
+ .dl-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--cz-well); display: grid; place-items: center; color: var(--cz-ink2); }
502
+ .dl-ic svg, .dl-fb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
503
+ .dl-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
504
+ .dl-t b { font-size: 13.5px; font-weight: 800; }
505
+ .dl-t small { font-size: 12px; color: var(--cz-ink3); }
506
+ .dl-fb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--cz-ink3); }
507
+ .dl-fb:hover { background: var(--cz-well); color: var(--cz-ink); }
508
+ .dl-fb:focus-visible, .dl-e:focus-visible, .dl-more:focus-visible, .dl-dn:focus-visible, .dl-fn:focus-visible, .dl-pl:focus-visible, .dl-all:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; border-radius: 8px; }
509
+ .dl-p { display: flex; align-items: stretch; min-height: 0; }
510
+ .dl-c { flex: none; box-sizing: border-box; min-width: 0; padding: 16px 6px 10px 8px; border-left: 1px solid var(--cz-hair); display: flex; flex-direction: column; gap: 4px; }
511
+ .dl-c:first-child { border-left: 0; }
512
+ .dl-c.now { background: color-mix(in srgb, var(--cz-blue) 6%, transparent); }
513
+ .dl-e, .dl-pl, .dl-fn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; }
514
+ .dl-e:hover, .dl-pl:hover { background: var(--cz-well); }
515
+ .dl-e small, .dl-pl small, .dl-fn small { font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); white-space: nowrap; }
516
+ .dl-e b { font-size: 12.5px; font-weight: 700; color: var(--cz-ink); line-height: 1.3; display: flex; gap: 4px; align-items: flex-start; min-width: 0; }
517
+ .dl-e b span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
518
+ .dl-pg { flex: none; display: inline-grid; place-items: center; color: var(--bd-prog); margin-top: 1px; }
519
+ .dl-pg svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
520
+ .dl-e.late small, .dl-ph .late, .dl-fold .late, .dl-fn small.late, .dl-pl small.late { color: var(--cz-late); }
521
+ .dl-e.risk small, .dl-fn small.risk, .dl-pl small.risk { color: var(--cz-risk); }
522
+ .dl-e.hold small, .dl-fn small.hold, .dl-pl small.hold { color: var(--cz-ink3); font-weight: 600; }
523
+ .dl-e.fc small, .dl-fn small.fc, .dl-pl small.fc { color: var(--cz-blueink); }
524
+ .dl-e.dn small { color: var(--cz-ok); } .dl-e.dn b { color: var(--cz-ink3); }
525
+ .dl-more, .dl-dn, .dl-all { all: unset; box-sizing: border-box; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--cz-ink3); padding: 2px 0; }
526
+ .dl-more:hover, .dl-dn:hover, .dl-all:hover { color: var(--cz-ink); }
527
+ .dl-more.n { font-size: 12.5px; color: var(--cz-ink2); }
528
+ .dl-fold { position: sticky; left: calc(var(--nw) + 12px); display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 10px 12px; font-size: 12.5px; color: var(--cz-ink3); white-space: nowrap; }
529
+ .dl-fx { color: var(--cz-ink3); font-weight: 600; }
530
+ .dl-fn { flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 2px 4px; font-weight: 800; color: var(--cz-ink); }
531
+ .dl-fn:hover { background: var(--cz-well); }
532
+ .tg-r.dl-hl, .tgq-r.dl-hl { background: color-mix(in srgb, var(--cz-blue) 7%, transparent); }
533
+ .tg-s .tg-r.dl-hl > .tg-n { background: linear-gradient(color-mix(in srgb, var(--cz-blue) 7%, transparent), color-mix(in srgb, var(--cz-blue) 7%, transparent)), var(--cz-card); }
534
+ .dl-ring { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cz-blue) 35%, transparent); }
535
+ .dl-ph { border: 1px solid var(--cz-hair); border-radius: 16px; background: var(--cz-card); padding: 10px 14px 8px; margin-bottom: 12px; }
536
+ .dl-phh { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; }
537
+ .dl-phh b { font-weight: 800; }
538
+ .dl-phh .late { font-size: 12.5px; color: var(--cz-ink3); }
539
+ .dl-all { margin-left: auto; min-height: 44px; padding: 0 4px; font-size: 13px; color: var(--cz-ink2); }
540
+ .dl-pl { flex-direction: row; align-items: baseline; gap: 12px; margin: 0 -6px; min-height: 36px; }
541
+ .dl-pl small { flex: none; width: 52px; font-size: 13px; }
542
+ .dl-pl b { font-size: 13.5px; font-weight: 700; display: flex; gap: 5px; min-width: 0; }
543
+ .dl-pl b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
544
+
491
545
  /* ── between desktop and phone: the Output column narrows first ── */
492
546
  @media (max-width: 1200px) {
493
547
  .bt-r { grid-template-columns: 200px 480px minmax(0, 1fr); }
@@ -1111,12 +1165,13 @@ html[data-theme="dark"] body.bd-page { --bd-prog: rgb(180,170,240); --bd-progbg:
1111
1165
  .tg-q .tg-body > .tg-r:not(.tg-h) { min-height: 44px; }
1112
1166
  .tg-q .tg-n.ini2 { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
1113
1167
  .tg-q .tg-n.ini2 .cz-dot { width: 7px; height: 7px; }
1168
+ .tg-q .tg-n.ini2 .cz-dot, .tg-nodot { flex: none; width: 7px; height: 7px; }
1114
1169
  .tg-pg { background: var(--bd-progbg); }
1115
1170
  .tg-q .tg-body > .tg-pg { min-height: 56px; }
1116
1171
  .tg-pgn { flex-direction: row; align-items: center; gap: 6px; padding-right: 6px; }
1117
1172
  .tg-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
1118
1173
  .tg-pgo .tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
1119
- .tg-pgo .tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1174
+ .tg-pgo .tt b { font-size: 13.5px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
1120
1175
  .tg-pgo .tt small { font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
1121
1176
  .tg-pgo:hover .tt b { color: var(--bd-prog); }
1122
1177
  .tg-kid .tg-n, .tg-gr .tg-n { padding-left: 50px; position: relative; }
@@ -1301,7 +1356,7 @@ body.bd-spick .bd-hd .bd-tools { margin-left: auto; }
1301
1356
  .tgq-r .tg-tm, .tgq-r .tg-tmc { top: 50%; }
1302
1357
  /* the product lane (batch 11 item 17; PlmA1Board, PlmA2Folded, PlmA3Phone): a product's head row carries every milestone of its initiatives,
1303
1358
  * the rows' ◇ rolled up, over a thin grey line from the first start to the last end. The name cell keeps the fold button; the lane is the track. */
1304
- .tg-lane, .tg-s .tg-lane > .tg-n { background: var(--bd-row); }
1359
+ .tg-lane, .tg-s .tg-lane > .tg-n { background: var(--cz-card); } /* product rows are plain: one tint, the program's (batch 13 item 4) */
1305
1360
  .tg-q .tg-body > .tg-lane { min-height: 56px; }
1306
1361
  .tg-lnn { flex-direction: row; align-items: center; }
1307
1362
  .tg-lnn .bd-prdb { min-width: 0; overflow: hidden; }
@@ -1331,6 +1386,13 @@ span.tg-ng { cursor: default; }
1331
1386
  .tg-ng::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--bd-plan); }
1332
1387
  .tg-ng:hover::before, .tg-ng[aria-expanded="true"]::before { background: var(--bd-done); }
1333
1388
  .tg-ng:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 0; border-radius: 6px; }
1389
+ /* a hold is the gap's hairline (batch 13 item 4): pressing it opens the hold card; a hold whose return date passed is orange */
1390
+ .tg-ng.ho { min-width: 16px; }
1391
+ .tg-ng.ho.late::before { background: var(--cz-dot-late); }
1392
+ /* one dot per initiative off track in a folded group's name cell (XcalmA2Folded) */
1393
+ .tg-offd { display: inline-flex; gap: 3px; flex: none; margin: 0 4px 0 auto; }
1394
+ .tg-offd .cz-dot { width: 7px; height: 7px; }
1395
+ .bd-prdb .tg-offd + svg, .bd-prdb .tg-offd + .n { margin-left: 6px; }
1334
1396
  .tg-sk { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cz-card); color: var(--cz-ink3); z-index: 3; }
1335
1397
  .tg-sk.on { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: none; color: var(--cz-ink2); }
1336
1398
  .tg-sk svg, .tg-lgd .k.sk svg, .tg-sk-i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@@ -173,7 +173,11 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
173
173
  * the top right, and where the column reaches it the log keeps its first line clear of it */
174
174
  .hm-chat { container-type: inline-size; }
175
175
  @media (min-width: 761px) {
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; }
176
+ /* the log scrolls at the panel's edge, not at the column's (PM, 2026-10-27 "Bad layout": the scrollbar stood in the middle of the page);
177
+ * its content and the header line keep to the same centred column as the box */
178
+ body.cz-home:not(.hm-vw-open) .hm-foot { box-sizing: border-box; width: 100%; max-width: 880px; align-self: center; }
179
+ body.cz-home:not(.hm-vw-open) .hm-log { box-sizing: border-box; width: 100%; padding-inline: max(0px, calc((100% - 880px) / 2)); }
180
+ body.cz-home:not(.hm-vw-open) .hm-chd { padding-left: max(0px, calc((100% - 880px) / 2)); }
177
181
  @container (max-width: 968px) { .hm-reopen:not([hidden]) ~ .hm-log { padding-top: 46px; } }
178
182
  }
179
183
  /* 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
@@ -406,6 +410,14 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
406
410
  .hm-iss.done { color: var(--cz-ink3); }
407
411
  .hm-md { font-size: 14px; line-height: 1.55; color: var(--cz-ink); overflow-wrap: anywhere; }
408
412
  .hm-md h1, .hm-md h2, .hm-md h3 { font-size: 15px; margin: 12px 0 4px; }
413
+ /* a table Claude wrote (chat-md.js .mdtab): Home does not load premium.css, so the chat's tables had no rules, padding or edge (PM, 2026-10-27) */
414
+ :is(.hm-md, .hm-ab .md) .mdtab { margin: 4px 0 12px; overflow-x: auto; border: 1px solid var(--cz-hair); border-radius: 12px; }
415
+ :is(.hm-md, .hm-ab .md) .mdtab table { border-collapse: collapse; width: 100%; font-size: 13px; }
416
+ :is(.hm-md, .hm-ab .md) .mdtab th, :is(.hm-md, .hm-ab .md) .mdtab td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cz-hair); overflow-wrap: normal; }
417
+ :is(.hm-md, .hm-ab .md) .mdtab th { font-weight: 600; background: var(--cz-well); }
418
+ :is(.hm-md, .hm-ab .md) .mdtab tr:last-child td { border-bottom: 0; }
419
+ :is(.hm-md, .hm-ab .md) .mdtab .al-c { text-align: center; }
420
+ :is(.hm-md, .hm-ab .md) .mdtab .al-r { text-align: right; }
409
421
  .hx-t small { font-size: 12px; color: var(--cz-ink3); overflow-wrap: anywhere; } /* a linked document's address, as text */
410
422
  .hv-why select { font: inherit; font-size: 13.5px; color: var(--cz-ink); padding: 0 10px; height: 36px; border-radius: 12px; border: 1px solid var(--cz-hair); background: var(--cz-card); box-sizing: border-box; }
411
423
  .hx-b { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font-size: 12.5px; cursor: pointer; font-family: var(--cz-sans); }
@@ -466,6 +478,9 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
466
478
  * with room for it, so the last message scrolls clear of it */
467
479
  @media (max-width: 760px) { body.cz-home .cz-fabw { bottom: calc(var(--bd-hmfoot, 232px) + 10px); } body.cz-home.hm-sheet .cz-fabw { bottom: 118px; } .hm-log { padding-bottom: 76px; } }
468
480
  .hv-term { margin: 0; height: 100%; box-sizing: border-box; padding: 16px 20px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--cz-mono); font-size: 12px; line-height: 1.5; color: var(--cz-ink2); background: var(--cz-well); }
481
+ .hv-xt { height: 100%; box-sizing: border-box; padding: 12px 16px; overflow: auto; background: var(--cz-well); } /* term-view.js: the session's terminal drawn by xterm.js, read only */
482
+ .hv-xt .xterm { display: inline-block; zoom: .8; } /* xterm's 15px default drawn at 12px */
483
+ .hv-xt .xterm-viewport { background: transparent !important; }
469
484
 
470
485
  /* ── the parts other chat modules draw inside a message: context and report chips (premium-vw-ctx, report-chat), the /goal card (goal-chat),
471
486
  * Claude's question card (chat-ask), attachments (premium-attach) ── */
@@ -15,6 +15,7 @@
15
15
  * 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
16
  * session); the recording comes from pm/rec-state.js. Nothing is written. */
17
17
  import { onRecording } from './rec-state.js';
18
+ import { ownTab, bring } from './rec-tab-core.js';
18
19
  import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
19
20
 
20
21
  const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
@@ -49,6 +50,8 @@ export function mountLivePill(doc = document, opts = {}) {
49
50
  const items = () => liveItems(L.sessions, { rec: L.rec, titles: L.titles, open: opts.open ? opts.open() : null });
50
51
  function go(a, e) {
51
52
  const x = L.shown.find((i) => i.id === a.dataset.lv);
53
+ // the recording: its snippet only shows; a press brings the recording tab forward (rec-tab-core.js), where the meeting is controlled
54
+ if (x && x.kind === 'rec' && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && ownTab() && bring(x.href)) { if (e) e.preventDefault(); set(false); return; }
52
55
  if (x && opts.go && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && opts.go(x)) { if (e) e.preventDefault(); set(false); return; }
53
56
  set(false); // the link is followed
54
57
  }
@@ -0,0 +1,41 @@
1
+ /* pm/cozy-pick.css — the one product picker on Home, Board and Insights (pm/cozy-pick.js; canvas XhpA1Desk, XhpA2States, XhpA3Phone, XhpA4Dark).
2
+ * The chip: the ticked products' tiles, overlapped (+N past 3), or All; open, a blue tint. The list: All products, every product (tile, name,
3
+ * one quiet line, a tick box), Add a product; on a phone the same list as a bottom sheet. The tiles' tints are Home's group tiles (.hv-tl). */
4
+ .ppk-chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 5px; border-radius: 999px; border: 0; background: var(--cz-card); color: var(--cz-ink2); box-shadow: 0 0 0 1px var(--cz-hair); font-family: var(--cz-sans); cursor: pointer; flex: none; }
5
+ .ppk-chip.open { background: var(--cz-bluebg); color: var(--cz-blueink); box-shadow: 0 0 0 2px var(--cz-c-b6c6dc); }
6
+ .ppk-chip > svg { flex: none; }
7
+ .ppk-all { font-size: 13.5px; font-weight: 800; padding-left: 7px; }
8
+ .ppk-stk { display: inline-flex; }
9
+ .ppk-t { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--cz-card); }
10
+ .ppk-t + .ppk-t { margin-left: -6px; }
11
+ .ppk-t, .ppk-tl { background: var(--cz-bluebg); color: var(--cz-blueink); }
12
+ .ppk-t.t1, .ppk-tl.t1 { background: color-mix(in srgb, var(--cz-c-7a5a2e) 13%, var(--cz-card)); color: var(--cz-c-7a5a2e); }
13
+ .ppk-t.t2, .ppk-tl.t2, .ppk-t.ppk-n { background: var(--cz-well2); color: var(--cz-ink3); }
14
+ .cz.dark .ppk-t.t1, html.dark .cz .ppk-t.t1, :root[data-theme="dark"] .cz .ppk-t.t1, .cz.dark .ppk-tl.t1, html.dark .cz .ppk-tl.t1, :root[data-theme="dark"] .cz .ppk-tl.t1 { color: color-mix(in srgb, var(--cz-c-7a5a2e) 40%, var(--cz-ink)); }
15
+
16
+ .ppk-menu { position: fixed; z-index: 96; box-sizing: border-box; width: min(348px, calc(100vw - 24px)); max-height: calc(100vh - 120px); overflow: auto; padding: 6px; display: flex; flex-direction: column; border-radius: 18px; background: var(--cz-card); box-shadow: 0 24px 50px -20px rgba(42,46,53,.4), 0 0 0 1px var(--cz-hair); font-family: var(--cz-sans); }
17
+ .ppk-mi { display: flex; align-items: center; gap: 12px; min-height: 54px; width: 100%; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--cz-ink); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
18
+ .ppk-mi:hover, .ppk-mi:focus-visible { background: var(--cz-well); }
19
+ .ppk-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
20
+ .ppk-nm b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
21
+ .ppk-nm em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--cz-ink3); }
22
+ .ppk-tl { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
23
+ .ppk-pl { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); background: var(--cz-well); flex: none; }
24
+ .ppk-tk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--cz-c-a9aeb6); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--cz-onsolid); }
25
+ .ppk-tk.on { background: var(--cz-blueink); border-color: var(--cz-blueink); color: var(--cz-card); }
26
+ .ppk-tk.part { background: var(--cz-bluebg); border-color: var(--cz-c-b6c6dc); color: var(--cz-blueink); }
27
+ .ppk-sep { height: 1px; background: var(--cz-hair); margin: 4px 8px; flex: none; }
28
+ .ppk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
29
+ .ppk-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(42,46,53,.32); }
30
+
31
+ /* the phone: the chip keeps its 34 px pill inside a 44 px target (a clear border), and the list is a sheet at the bottom (XhpA3Phone) */
32
+ @media (max-width: 760px) {
33
+ .ppk-chip { height: 44px; border: 5px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--cz-hair); padding: 0 8px 0 5px; }
34
+ .ppk-chip.open { box-shadow: inset 0 0 0 2px var(--cz-c-b6c6dc); }
35
+ }
36
+ .ppk-menu.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 80vh; border-radius: 28px 28px 0 0; padding: 22px 12px 28px; }
37
+ .ppk-menu.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--cz-c-d9dce1); }
38
+ .ppk-menu.sheet .ppk-mi { min-height: 58px; }
39
+ .ppk-menu.sheet .ppk-tk { width: 24px; height: 24px; border-radius: 8px; }
40
+ @media (prefers-reduced-motion: no-preference) { .ppk-menu.sheet { animation: ppk-up .18s ease-out; } }
41
+ @keyframes ppk-up { from { transform: translateY(24px); opacity: .6; } }
@@ -0,0 +1,134 @@
1
+ /* pm/cozy-pick.js — the one product picker Home, Board and Insights share (batch 12 item 5; canvas XhpA1Desk, XhpA2States, XhpA3Phone,
2
+ * XhpA4Dark, XhpA5Pages and the rules sticky).
3
+ *
4
+ * readPick() → { ok, all, products: [{ ws, name, home, primary, initials, on }] } from GET /api/briefing-premium/products, or null
5
+ * savePick(on) → the same answer after POST /api/briefing-premium/products { on: [ws…] }; { ok:false, error } when refused.
6
+ * A saved pick fires pp:changed on the window (detail: the answer); each page follows it there
7
+ * tonesOf(products) → { [ws]: 0 | 1 | 2 }: a product's tint, by its place with the default workspace first (Home's groups use the same)
8
+ * codeOf(p) → the tile's letters: the workspace's own abbreviation, else two letters of its name
9
+ * chipHtml(P, o) → the chip: the ticked products' tiles, overlapped, +N past 3; the word All when every one is ticked
10
+ * openPicker(chip, o) → the list under the chip (a sheet on a phone). o: { P, label, lines(ws), tones?, onApply(on), onAdd()?, note? };
11
+ * Add a product opens Settings › Workspaces (the add flow) unless the page gives its own onAdd
12
+ *
13
+ * THE PICK. One saved setting (ws.briefing.include), never the address: ticked = on Home and read, on every page. All products ticks every one,
14
+ * a press ticks or unticks and the list stays open, the last tick stays, and the pick applies when the list closes (Escape, a press outside,
15
+ * the chip again, or the sheet's scrim). Arrow keys move in the list. Add a product is the last row. Nothing here writes but savePick. */
16
+ import { pmGet, pmPost } from './http.js';
17
+
18
+ export const TONES = 3;
19
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
20
+ const initialsOf = (name) => { const w = String(name || '').trim().split(/[\s_-]+/).filter(Boolean); return (w.length > 1 ? w[0][0] + w[1][0] : String(name || '?').slice(0, 2)).toUpperCase(); };
21
+ export const codeOf = (p) => { const c = String((p && (p.initials || p.code)) || '').replace(/[^A-Za-z0-9]/g, '').slice(0, 3).toUpperCase(); return c || initialsOf(p && p.name); };
22
+ const isPhone = () => typeof matchMedia === 'function' && matchMedia('(max-width: 760px)').matches;
23
+ const svg = (d, n, w = 2.4) => `<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
24
+ const CHEV_D = 'M6 9l6 6 6-6', CHEV_U = 'M6 15l6-6 6 6', TICK = 'M5 12.5l4.5 4.5L19 7.5', PART = 'M7 12h10', PLUS = 'M12 5v14M5 12h14';
25
+
26
+ // its sheet: linked by Home, Board and Insights; any other page that opens the list (Settings) gets it here
27
+ try { if (!document.querySelector('link[href$="cozy-pick.css"]')) document.head.insertAdjacentHTML('beforeend', `<link rel="stylesheet" href="${new URL('./cozy-pick.css', import.meta.url).href}">`); } catch { /* no document */ }
28
+
29
+ export async function readPick() { const r = await pmGet('/api/briefing-premium/products'); return r && r.ok && Array.isArray(r.products) ? r : null; }
30
+ /** Save the ticks; a saved pick tells the page (window event pp:changed, detail = the answer), so whatever opened the list, the page follows. */
31
+ export async function savePick(on) {
32
+ const r = await pmPost('/api/briefing-premium/products', { on });
33
+ if (!(r && r.ok)) return { ok: false, error: (r && r.error) || 'The pick was not saved.' };
34
+ try { dispatchEvent(new CustomEvent('pp:changed', { detail: r })); } catch { /* no window */ }
35
+ return r;
36
+ }
37
+
38
+ /** Every product's tint: the default workspace first, then the registered order (so Home's group, the chip and the list agree). */
39
+ export function tonesOf(products) {
40
+ const L = (products || []).slice().sort((a, b) => (b.primary ? 1 : 0) - (a.primary ? 1 : 0));
41
+ return Object.fromEntries(L.map((p, i) => [p.ws, i % TONES]));
42
+ }
43
+ const isAll = (P) => !!P && P.products.length > 1 && P.products.every((p) => p.on); // one product registered: its tile, never All
44
+ /** The words of the chip (its tooltip and accessible name): "Products on Home: pmos-idpf, pmos-microsites", or "… all 3". */
45
+ export function chipWords(P, label) {
46
+ if (!P || !P.products.length) return label + ': none registered';
47
+ return label + ': ' + (isAll(P) ? 'all ' + P.products.length : P.products.filter((p) => p.on).map((p) => p.name).join(', '));
48
+ }
49
+ export function chipHtml(P, o = {}) {
50
+ const T = o.tones || tonesOf(P ? P.products : []), on = P ? P.products.filter((p) => p.on) : [];
51
+ const inner = !P ? '' : isAll(P) ? '<span class="ppk-all">All</span>'
52
+ : `<span class="ppk-stk">${on.slice(0, 3).map((p) => `<i class="ppk-t t${T[p.ws] || 0}">${esc(codeOf(p))}</i>`).join('')}${on.length > 3 ? `<i class="ppk-t ppk-n">+${on.length - 3}</i>` : ''}</span>`;
53
+ const words = chipWords(P, o.label || 'Products'), id = o.id || 'ppChip', open = !!cur && cur.id === id; // a page that draws again keeps the open state
54
+ return `<button type="button" class="ppk-chip${open ? ' open' : ''}" id="${esc(id)}"${o.attrs ? ' ' + o.attrs : ''} aria-haspopup="menu" aria-expanded="${open}" aria-label="${esc(words)}" title="${esc(words)}">${inner}${svg(open ? CHEV_U : CHEV_D, 14)}</button>`;
55
+ }
56
+
57
+ /* ── the list: one at a time ── */
58
+ let cur = null; // { id (the chip's), chip, o, tick: Set of ws, el, scrim }
59
+ const chipOf = (c) => (c.chip.isConnected ? c.chip : document.getElementById(c.id)) || c.chip;
60
+ function itemsHtml(c) {
61
+ const P = c.o.P, T = c.o.tones || tonesOf(P.products), n = P.products.filter((p) => c.tick.has(p.ws)).length;
62
+ const all = n === P.products.length ? 'true' : 'mixed';
63
+ const box = (st) => `<i class="ppk-tk${st === 'true' ? ' on' : st === 'mixed' ? ' part' : ''}" aria-hidden="true">${st === 'true' ? svg(TICK, 13, 3.4) : st === 'mixed' ? svg(PART, 12, 3.4) : ''}</i>`;
64
+ const rows = P.products.map((p) => {
65
+ const on = c.tick.has(p.ws), line = c.o.lines ? c.o.lines(p.ws) : '';
66
+ return `<button type="button" class="ppk-mi" role="menuitemcheckbox" aria-checked="${on}" data-pp="${esc(p.ws)}"><span class="ppk-tl t${T[p.ws] || 0}" aria-hidden="true">${esc(codeOf(p))}</span><span class="ppk-nm"><b>${esc(p.name)}</b>${line ? `<em>${esc(line)}</em>` : ''}</span>${box(String(on))}</button>`;
67
+ }).join('');
68
+ return (P.products.length > 1 ? `<button type="button" class="ppk-mi" role="menuitemcheckbox" aria-checked="${all}" data-pp="*"><span class="ppk-nm"><b>All products</b></span>${box(all)}</button><div class="ppk-sep" role="separator"></div>` : '')
69
+ + rows + (`${P.products.length ? '<div class="ppk-sep" role="separator"></div>' : ''}<button type="button" class="ppk-mi" role="menuitem" data-pp-add><span class="ppk-pl" aria-hidden="true">${svg(PLUS, 18, 2.2)}</span><span class="ppk-nm"><b>Add a product</b></span></button>`)
70
+ + (c.o.note ? `<p class="ppk-sr" id="ppNote">${esc(c.o.note)}</p>` : '');
71
+ }
72
+ function place(c) {
73
+ const sheet = isPhone();
74
+ c.el.classList.toggle('sheet', sheet); c.scrim.hidden = !sheet;
75
+ if (sheet) { c.el.style.left = c.el.style.top = ''; return; }
76
+ const r = chipOf(c).getBoundingClientRect(), w = Math.min(348, innerWidth - 24);
77
+ c.el.style.left = Math.max(12, Math.min(r.left, innerWidth - w - 12)) + 'px'; c.el.style.top = Math.round(r.bottom + 8) + 'px';
78
+ }
79
+ export function closePicker(apply = true) {
80
+ const c = cur; if (!c) return;
81
+ cur = null;
82
+ c.el.remove(); c.scrim.remove();
83
+ removeEventListener('keydown', onKey, true); document.removeEventListener('click', onOut, true); removeEventListener('resize', onSize);
84
+ const ch = chipOf(c);
85
+ ch.setAttribute('aria-expanded', 'false'); ch.classList.remove('open');
86
+ const sv = ch.querySelector('svg:last-child path'); if (sv) sv.setAttribute('d', CHEV_D);
87
+ if (ch.isConnected) ch.focus();
88
+ const was = c.o.P.products.filter((p) => p.on).map((p) => p.ws), now = c.o.P.products.filter((p) => c.tick.has(p.ws)).map((p) => p.ws);
89
+ if (apply && now.join(',') !== was.join(',')) c.o.onApply(now);
90
+ }
91
+ function onKey(e) {
92
+ if (!cur) return;
93
+ if (e.key === 'Escape') { e.preventDefault(); e.stopImmediatePropagation(); closePicker(); return; }
94
+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
95
+ e.preventDefault();
96
+ const L = [...cur.el.querySelectorAll('button')], i = L.indexOf(document.activeElement);
97
+ L[(i + (e.key === 'ArrowDown' ? 1 : L.length - 1)) % L.length].focus();
98
+ }
99
+ }
100
+ function onOut(e) { if (cur && !cur.el.contains(e.target) && !chipOf(cur).contains(e.target)) closePicker(); }
101
+ function onSize() { if (cur) place(cur); }
102
+ /** Open (or, when it is open, close) the list under chip. */
103
+ export function openPicker(chip, o) {
104
+ if (cur && cur.id === chip.id) { closePicker(); return; }
105
+ closePicker();
106
+ const el = document.createElement('div'), scrim = document.createElement('div');
107
+ el.className = 'ppk-menu'; el.id = 'ppMenu'; el.setAttribute('role', 'menu'); el.setAttribute('aria-label', o.label || 'Products');
108
+ el.setAttribute('data-esc-layer', ''); // Escape closes this list first, not the Viewer under it
109
+ if (o.note) el.setAttribute('aria-describedby', 'ppNote');
110
+ scrim.className = 'ppk-scrim'; scrim.hidden = true;
111
+ document.body.append(scrim, el);
112
+ const c = cur = { id: chip.id, chip, o, tick: new Set(o.P.products.filter((p) => p.on).map((p) => p.ws)), el, scrim };
113
+ el.innerHTML = itemsHtml(c); place(c);
114
+ chip.setAttribute('aria-expanded', 'true'); chip.classList.add('open');
115
+ const sv = chip.querySelector('svg:last-child path'); if (sv) sv.setAttribute('d', CHEV_U);
116
+ el.onclick = (e) => {
117
+ e.stopPropagation();
118
+ if (e.target.closest('[data-pp-add]')) { closePicker(); if (o.onAdd) o.onAdd(); else import('./cozy-settings.js').then((M) => M.openSettings('workspaces')); return; }
119
+ const k = e.target.closest('[data-pp]'); if (!k) return;
120
+ // All products ticks every one; a product ticks or unticks; the last one stays ticked; the list stays open
121
+ const ws = k.dataset.pp;
122
+ if (ws === '*') o.P.products.forEach((p) => c.tick.add(p.ws));
123
+ else if (!c.tick.has(ws)) c.tick.add(ws);
124
+ else if (c.tick.size > 1) c.tick.delete(ws);
125
+ el.innerHTML = itemsHtml(c);
126
+ const f = el.querySelector(`[data-pp="${CSS.escape(ws)}"]`); if (f) f.focus();
127
+ };
128
+ scrim.onclick = () => closePicker();
129
+ addEventListener('keydown', onKey, true); // the window, before any page's own Escape
130
+ setTimeout(() => document.addEventListener('click', onOut, true), 0);
131
+ addEventListener('resize', onSize);
132
+ const f = el.querySelector('button'); if (f) f.focus();
133
+ }
134
+ export const pickerOpen = () => !!cur;
@@ -0,0 +1,32 @@
1
+ /* pm/cozy-rec-bridge.js — one way to present while a meeting records (batch 12 item 1, S3; rule 10 of the sticky "A · the rules").
2
+ *
3
+ * The recording tab (cozy-rec-tab.js) says on BroadcastChannel('pmos-rec') that it records: { id, state, title, elapsedMs, … } on each change
4
+ * and every 5 s. While a heard state is 'recording' and under 12 s old, Present on a PMOS deck, document or meeting material on any other
5
+ * page does not open its own presenter: it opens the audience tab in the press (the browser allows a tab only then) and asks the recording
6
+ * tab, on BroadcastChannel('pmos-present'), to present it there ({ t: 'present', mat }). The recording tab's presenter view then shows
7
+ * They see this, Next, Notes, Previous and Next beside Now. With no recording, Present works as before.
8
+ *
9
+ * recordingNow(now) → the last heard state while it says 'recording' and is fresh, else null
10
+ * presentInRecording(mat) → true when the recording tab takes it (call it first in the press, before anything is awaited) */
11
+ import { CHANNEL, openAudienceTab } from './cozy-rec-present.js';
12
+
13
+ export const REC_CHANNEL = 'pmos-rec';
14
+ const FRESH_MS = 12000;
15
+ let heard = null, heardAt = 0;
16
+ const rec = typeof BroadcastChannel === 'function' ? new BroadcastChannel(REC_CHANNEL) : null;
17
+ if (rec) rec.addEventListener('message', (e) => { const d = e.data || {}; if (d && d.id && d.state) { heard = d; heardAt = Date.now(); } });
18
+
19
+ export function recordingNow(now = Date.now()) {
20
+ return heard && heard.state === 'recording' && now - heardAt < FRESH_MS ? heard : null;
21
+ }
22
+
23
+ /** mat: { kind: 'pmos-deck'|'pmos-doc'|'report'|…, ref?, url?, title, ws? } as a meeting-material row names it. */
24
+ export function presentInRecording(mat) {
25
+ if (!mat || !recordingNow() || typeof BroadcastChannel !== 'function') return false;
26
+ if (typeof window !== 'undefined' && window.name === 'pmos-rec') return false; // the recording tab presents by itself
27
+ openAudienceTab(mat.ws || '');
28
+ const ch = new BroadcastChannel(CHANNEL);
29
+ ch.postMessage({ t: 'present', mat });
30
+ ch.close();
31
+ return true;
32
+ }
@@ -0,0 +1,104 @@
1
+ /* cozy-rec-now.css — the recording tab's Now panel and live transcript (batch 12 item 1, slice S2; pm/cozy-rec-now.js).
2
+ * Frames XrtA1Tab (the side panel), XrtA7Room (in the room: the topic now big), XrtA7Transcript (the 420px card), XrtA5PhoneRec.
3
+ * Colours are the cozy tokens only, so the dark theme follows cozy.css. Every class starts with rn-. */
4
+
5
+ .rn { flex: 1; height: 100%; display: flex; flex-direction: column; min-height: 0; color: var(--cz-ink); }
6
+ .rn-side { background: var(--cz-card); border-radius: inherit; overflow: hidden; }
7
+ .rn-nw { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 16px; }
8
+ .rn-sec h5 { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--cz-ink3); display: flex; align-items: center; gap: 8px; }
9
+ .rn-sec h5 .r { margin-left: auto; font-weight: 700; color: var(--cz-ink3); font-variant-numeric: tabular-nums; }
10
+
11
+ /* To cover */
12
+ .rn-ag { display: flex; flex-direction: column; }
13
+ .rn-ai { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; color: var(--cz-ink); padding: 0 4px; }
14
+ .rn-ai .tx { flex: 1; min-width: 0; }
15
+ .rn-ai .m { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
16
+ .rn-ai.dn { color: var(--cz-ink3); }
17
+ .rn-ai.dn .m { color: var(--cz-ok); }
18
+ .rn-ai.now { background: var(--cz-bluebg); border-radius: 12px; font-weight: 700; color: var(--cz-blueink); }
19
+ .rn-ai .m i { width: 9px; height: 9px; border-radius: 50%; background: var(--cz-blue); display: block; }
20
+ .rn-ai .m b { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--cz-ink3); opacity: .55; display: block; box-sizing: border-box; }
21
+ .rn-ai .t4 { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--cz-ink3); font-variant-numeric: tabular-nums; }
22
+
23
+ /* Raise now */
24
+ .rn-rz { display: flex; flex-direction: column; gap: 8px; }
25
+ .rn-rq { display: flex; align-items: flex-start; gap: 6px; padding: 10px 6px 10px 12px; border-radius: 14px; background: var(--cz-riskbg); }
26
+ .rn-rq .w { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--cz-ink); padding-top: 2px; }
27
+ .rn-rq .w small { display: block; font-size: 12px; font-weight: 700; color: var(--cz-risk); margin-bottom: 2px; }
28
+ .rn-ib { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: 0; background: none; color: var(--cz-ink2); cursor: pointer; font: inherit; }
29
+ .rn-ib:hover { background: var(--cz-well); }
30
+ .rn-ib:disabled { opacity: .5; cursor: default; }
31
+
32
+ /* the counts line */
33
+ .rn-cgl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cz-ink3); padding: 2px 4px; }
34
+ .rn-cgl .dm2 { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-blue); flex: none; }
35
+
36
+ /* a question and Claude's answer */
37
+ .rn-chx { display: flex; flex-direction: column; gap: 8px; }
38
+ .rn-chx .q { align-self: flex-end; max-width: 80%; background: var(--cz-solid); color: var(--cz-onsolid); border-radius: 16px 16px 4px 16px; padding: 8px 12px; font-size: 14px; }
39
+ .rn-chx .ca { align-self: flex-start; max-width: 86%; background: var(--cz-card); border-radius: 16px 16px 16px 4px; padding: 10px 6px 10px 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 0 0 1px var(--cz-hair); display: flex; gap: 8px; align-items: flex-start; }
40
+ .rn-chx .ca .w { flex: 1; min-width: 0; padding-top: 1px; }
41
+ .rn-chx .ca.bad .w { color: var(--cz-late); }
42
+ .rn-chx .ca .sp { color: var(--cz-blueink); background: var(--cz-bluebg); width: 24px; height: 24px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
43
+ .rn-chx .ca .src { display: block; font-size: 12px; font-weight: 700; color: var(--cz-ink3); margin-top: 2px; }
44
+ .rn-chx .ca .rn-ib { width: 32px; height: 32px; }
45
+ .rn-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
46
+ .rn-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cz-ink3); opacity: .4; animation: rn-dot 1.2s infinite ease-in-out; }
47
+ .rn-dots i:nth-child(2) { animation-delay: .15s; } .rn-dots i:nth-child(3) { animation-delay: .3s; }
48
+ @keyframes rn-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .8; } }
49
+ @media (prefers-reduced-motion: reduce) { .rn-dots i { animation: none; } }
50
+
51
+ /* the note box */
52
+ .rn-err { margin: 0 16px 6px; font-size: 13px; color: var(--cz-late); }
53
+ .rn-err[hidden] { display: none; }
54
+ .rn-mine { margin: 0 12px 12px; border-radius: 18px; background: var(--cz-well); padding: 8px 8px 8px 14px; display: flex; align-items: flex-end; gap: 8px; }
55
+ .rn-mine textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 120px; resize: none; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; line-height: 1.45; color: var(--cz-ink); padding: 8px 0; }
56
+ .rn-mine textarea::placeholder { color: var(--cz-ink3); }
57
+ .rn-send { width: 36px; height: 36px; border-radius: 50%; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; flex: none; border: 0; padding: 0; cursor: pointer; }
58
+ .rn-send:disabled { opacity: .5; }
59
+
60
+ /* In the room (microphone only): the topic now big, chips for done and Next, two prompts side by side */
61
+ .rn-room { flex: 1; min-width: 0; background: none; }
62
+ .rn-room .rn-nw { width: 100%; max-width: 1000px; margin: 0 auto; box-sizing: border-box; padding: 24px 32px 16px; gap: 24px; justify-content: center; }
63
+ .rn-now small { display: block; font-size: 13px; font-weight: 800; color: var(--cz-blueink); margin-bottom: 6px; }
64
+ .rn-now h1 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
65
+ .rn-now p { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--cz-ink3); }
66
+ .rn-stp { display: flex; gap: 8px; flex-wrap: wrap; }
67
+ .rn-stp span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--cz-card); font-size: 14px; font-weight: 700; color: var(--cz-ink2); box-shadow: 0 0 0 1px var(--cz-hair); }
68
+ .rn-stp .dn { color: var(--cz-ink3); }
69
+ .rn-stp .dn svg { color: var(--cz-ok); }
70
+ .rn-stp b { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cz-ink3); opacity: .55; display: block; box-sizing: border-box; }
71
+ .rn-room .rn-rz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
72
+ .rn-room .rn-rq .w { font-size: 15px; }
73
+ .rn-room .rn-cgl { padding: 0; }
74
+ .rn-room .rn-mine { width: calc(100% - 64px); max-width: 936px; margin: 0 auto 16px; box-sizing: border-box; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); }
75
+
76
+ /* the live transcript: a 420px rounded card beside Now, closed by default */
77
+ .rn-trp { width: 420px; flex: none; background: var(--cz-card); border-radius: 20px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
78
+ .rn-trp[hidden] { display: none; }
79
+ .rn-trp .th2 { display: flex; align-items: center; height: 60px; padding: 0 8px 0 20px; font-size: 15px; font-weight: 800; flex: none; }
80
+ .rn-trp .th2 span { flex: 1; }
81
+ .rn-trp .tfeed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 20px 20px; }
82
+ .rn-trp .tfeed > :first-child { margin-top: auto; }
83
+ .rn-trp .l { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--cz-ink3); }
84
+ .rn-trp .l .t { flex: none; width: 34px; font-size: 12px; font-weight: 700; color: var(--cz-ink3); padding-top: 2px; font-variant-numeric: tabular-nums; }
85
+ .rn-trp .l b { flex: none; width: 52px; color: var(--cz-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
86
+ .rn-trp .l.now { color: var(--cz-ink); }
87
+ .rn-trp .l.now b { color: var(--cz-blueink); }
88
+ .rn-trp .mk { display: inline-flex; vertical-align: -1px; margin-left: 6px; }
89
+ .rn-trp .mk.hl { color: var(--cz-risk); }
90
+ .rn-trp .mk .dm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-blue); display: inline-block; }
91
+
92
+ /* Phone: the panel under the stage, full width; the transcript is a sheet over it */
93
+ @media (max-width: 720px) {
94
+ .rn-room .rn-nw { padding: 20px 16px 12px; gap: 18px; justify-content: flex-start; }
95
+ .rn-now h1 { font-size: 26px; }
96
+ .rn-room .rn-rz { grid-template-columns: 1fr; }
97
+ .rn-room .rn-mine { width: calc(100% - 32px); }
98
+ .rn-trp { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; width: auto; height: 70vh; border-radius: 22px 22px 0 0; box-shadow: var(--cz-sheet); }
99
+ }
100
+
101
+ /* the bar's icons the panel adds (the tab styles them as .rt-b, whose display wins over [hidden]) */
102
+ [data-slot="now"] .rt-b[hidden] { display: none; }
103
+ .rn-mine:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
104
+ .rn-mine textarea:focus-visible { outline: none; }