create-pmos 0.402.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.
- package/package.json +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +6 -5
- package/workspace/briefing-premium-adddoc-test.js +28 -22
- package/workspace/briefing-premium-board-test.js +91 -73
- package/workspace/briefing-premium-calendar-2-test.js +23 -10
- package/workspace/briefing-premium-calendar-3-test.js +23 -19
- package/workspace/briefing-premium-calendar-test.js +19 -17
- package/workspace/briefing-premium-initiative-test.js +25 -12
- package/workspace/briefing-premium-insights-test.js +31 -18
- package/workspace/briefing-premium-metrics-test.js +8 -8
- package/workspace/briefing-premium-test.js +4 -3
- package/workspace/changelog.json +12 -0
- package/workspace/fixtures/premium-viewer-fixtures.js +24 -2
- package/workspace/guide/jira.md +38 -6
- package/workspace/home-rows-test.js +184 -0
- package/workspace/lib/calendar-layers.js +8 -4
- package/workspace/lib/initiative-layout.js +4 -3
- package/workspace/lib/jira-cli.js +17 -12
- package/workspace/lib/jira-status.js +1 -1
- package/workspace/lib/jira-tickets.js +126 -24
- package/workspace/lib/meeting-files.js +58 -0
- package/workspace/lib/meeting-learn.js +139 -0
- package/workspace/lib/meeting-material.js +12 -5
- package/workspace/lib/notes.js +3 -0
- package/workspace/lib/routes-brief-page.js +8 -1
- package/workspace/lib/routes-calendar-views.js +24 -3
- package/workspace/lib/routes-meeting-material.js +38 -0
- package/workspace/lib/routes-meeting-points.js +23 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +30 -24
- package/workspace/premium-chat-context-test.js +1 -1
- package/workspace/premium-chat-goal-view-test.js +1 -1
- package/workspace/premium-chat-viewer-test.js +1 -1
- package/workspace/premium-core-doc-issue-test.js +13 -7
- package/workspace/premium-discuss-landing-test.js +83 -0
- package/workspace/premium-link-suggest-test.js +103 -0
- package/workspace/premium-report-read-test.js +86 -82
- package/workspace/premium-vw-backlog-test.js +6 -5
- package/workspace/premium-vw-cal-test.js +46 -23
- package/workspace/premium-vw-item-test.js +8 -6
- package/workspace/premium-vw-jira-test.js +3 -2
- package/workspace/premium-vw-meet-test.js +122 -66
- package/workspace/premium-vw-notes-test.js +7 -6
- package/workspace/premium-vw-rec-test.js +14 -13
- package/workspace/premium-vw-slides-test.js +11 -5
- package/workspace/program-panel-test.js +64 -55
- package/workspace/public/pm/bd-acts.js +1 -1
- package/workspace/public/pm/bd-asks.js +22 -7
- package/workspace/public/pm/bd-ini-panel.js +229 -0
- package/workspace/public/pm/bd-pop.js +2 -2
- package/workspace/public/pm/bd-prog-panel.js +176 -191
- package/workspace/public/pm/cozy-board.css +5 -28
- package/workspace/public/pm/cozy-evui.js +4 -2
- package/workspace/public/pm/cozy-home-rows.css +54 -0
- package/workspace/public/pm/cozy-home.css +9 -0
- package/workspace/public/pm/cozy-insights.css +1 -2
- package/workspace/public/pm/cozy-mtg-present.css +160 -0
- package/workspace/public/pm/cozy-panel.css +11 -34
- package/workspace/public/pm/cozy-rec-pill.css +12 -0
- package/workspace/public/pm/cozy-rec-pill.js +46 -0
- package/workspace/public/pm/cozy-viewer.js +307 -43
- package/workspace/public/pm/cozy-vw-mtg.css +96 -94
- package/workspace/public/pm/cozy-vw-rp.css +40 -25
- package/workspace/public/pm/cozy-vw-shell.css +127 -0
- package/workspace/public/pm/cozy-xv.css +51 -0
- package/workspace/public/pm/cozy-xv.js +34 -0
- package/workspace/public/pm/home-app.js +122 -58
- package/workspace/public/pm/home-chat.js +11 -2
- package/workspace/public/pm/home-day.js +64 -0
- package/workspace/public/pm/home-ini-model.js +1 -1
- package/workspace/public/pm/home-ini.js +197 -54
- package/workspace/public/pm/home-list.js +6 -14
- package/workspace/public/pm/home-mentions.js +187 -0
- package/workspace/public/pm/home-rec-row.js +67 -0
- package/workspace/public/pm/home-review.js +20 -10
- package/workspace/public/pm/home-task.js +19 -18
- package/workspace/public/pm/home-today.js +3 -3
- package/workspace/public/pm/premium-board.js +73 -235
- package/workspace/public/pm/premium-insights.js +118 -82
- package/workspace/public/pm/premium-mtg-present.js +408 -100
- package/workspace/public/pm/premium-mtg-replay.js +70 -10
- package/workspace/public/pm/premium-report-read.js +118 -63
- package/workspace/public/pm/premium-vw-cal.js +62 -34
- package/workspace/public/pm/premium-vw-mtg.js +348 -192
- package/workspace/public/pm/rec-state.js +63 -0
- package/workspace/public/pm/rp-parts.js +33 -8
- package/workspace/public/pm/tk-draft.js +107 -0
- package/workspace/public/pm/tk-model.js +134 -0
- package/workspace/public/pm/tk-send.js +124 -0
- package/workspace/public/pm/tk-tasks.css +120 -0
- package/workspace/public/premium-board.html +0 -1
- package/workspace/server.js +4 -2
- package/workspace/skills/jira-push.skill +3 -3
- package/workspace/test-lists/prd-to-jira.json +6 -0
- package/workspace/test-lists/viewer-home-rows.json +9 -0
- package/workspace/test-lists/viewer-meetings.json +9 -0
- package/workspace/test-lists/viewer-shell-a.json +15 -0
- package/workspace/tk-tasks-test.js +199 -0
|
@@ -117,7 +117,7 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
117
117
|
.bd-msg { margin: 0; padding: 18px; border: 1px solid var(--cz-hair); border-radius: 18px; font-size: 13px; color: var(--cz-ink3); }
|
|
118
118
|
.bd-msg b { color: var(--cz-ink); }
|
|
119
119
|
.bd-msg.err b { color: var(--cz-red); }
|
|
120
|
-
.bd-toast { position: fixed; z-index:
|
|
120
|
+
.bd-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--cz-ink); color: var(--cz-card); border-radius: 999px; padding: 9px 18px; font: 600 13px var(--cz-sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
|
|
121
121
|
.bd-toast[hidden] { display: none; }
|
|
122
122
|
.bd-toast { display: flex; align-items: center; gap: 12px; }
|
|
123
123
|
.bd-undo { all: unset; cursor: pointer; font-weight: 800; color: var(--cz-blueink); padding: 2px 4px; border-radius: 6px; }
|
|
@@ -213,16 +213,7 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
213
213
|
.bd-tr b .cz-ms { margin: 0 0 0 1px; width: 9px; height: 9px; }
|
|
214
214
|
.bd-tr em { font-style: normal; color: var(--cz-ink3); }
|
|
215
215
|
|
|
216
|
-
/* ── the
|
|
217
|
-
/* B1 (canvas XnAgBoardPanel): every desktop side panel opens at 60 % of the width, and its grip sets 50 to 70 % (pm/bd-prog-panel.js keeps it as --bd-pkw) */
|
|
218
|
-
.bd-peek { position: fixed; z-index: 45; top: 16px; right: 16px; bottom: 16px; width: var(--bd-pkw, 60vw); background: var(--cz-card); border-left: 1px solid var(--cz-hair); border-radius: 0 28px 28px 0; box-shadow: -20px 0 40px -30px rgba(42,46,53,.35); display: flex; flex-direction: column; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
219
|
-
.bd-peek[hidden] { display: none; }
|
|
220
|
-
.pk-grip { display: none; }
|
|
221
|
-
body.pk-on .pk-grip { display: block; position: fixed; z-index: 46; top: 44px; bottom: 44px; right: calc(16px + var(--bd-pkw, 60vw) - 6px); width: 12px; cursor: col-resize; touch-action: none; }
|
|
222
|
-
body.pk-on .pk-grip::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: var(--cz-hair); opacity: 0; transition: opacity .15s; }
|
|
223
|
-
body.pk-on .pk-grip.on::before, body.pk-on .pk-grip:focus-visible::before { opacity: 1; background: var(--bd-pass); }
|
|
224
|
-
body.pk-on .pk-grip:focus-visible { outline: 0; }
|
|
225
|
-
@media (hover: hover) { body.pk-on .pk-grip:hover::before { opacity: 1; } }
|
|
216
|
+
/* ── the panels' parts (the panels themselves open in the Viewer's shell A: pm/bd-ini-panel.js, premium-board.js actsPanel) ── */
|
|
226
217
|
.pk-h { padding: 20px 16px 6px 20px; display: flex; gap: 8px; align-items: flex-start; position: relative; }
|
|
227
218
|
/* the tools sit on the eyebrow's line; the status line under the title runs the panel's full width (AgBoardPanel) */
|
|
228
219
|
.pk-h > .pk-tools { position: absolute; top: 14px; right: 16px; }
|
|
@@ -246,14 +237,7 @@ body.pk-on .pk-grip:focus-visible { outline: 0; }
|
|
|
246
237
|
@media (min-width: 721px) {
|
|
247
238
|
.pk-eye { color: var(--cz-ink3); font-weight: 800; }
|
|
248
239
|
.pk-h h2 { font-size: 20px; margin-top: 3px; }
|
|
249
|
-
.bd-peek:not(.pp-peek) .pk-h > .pk-tools { top: 20px; }
|
|
250
|
-
.bd-peek:not(.pp-peek) .pk-tools .bd-ib { width: 32px; height: 32px; }
|
|
251
|
-
.bd-peek:not(.pp-peek) .pk-tools svg { width: 16px; height: 16px; }
|
|
252
240
|
}
|
|
253
|
-
/* ⋯ is drawn with a heavier stroke, as every frame draws it (stroke-width 3), so its dots read at 16 px */
|
|
254
|
-
.bd-peek .pk-tools svg path[d^="M5 12h.01"] { stroke-width: 3; }
|
|
255
|
-
/* the title takes the focus when a panel opens, for a screen reader; it is not a control, so it draws no ring */
|
|
256
|
-
.bd-peek h2[tabindex="-1"]:focus, .bd-peek h2[tabindex="-1"]:focus-visible { outline: 0; }
|
|
257
241
|
.pk-b { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
|
|
258
242
|
.pk-lad { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 32px; margin-top: -4px; } /* right under the status line (AgBoardPanel) */
|
|
259
243
|
.pk-lad .ln { position: absolute; left: 6.25%; right: 6.25%; top: 9px; height: 2px; background: var(--bd-rail); }
|
|
@@ -468,7 +452,6 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
468
452
|
.bt-r { grid-template-columns: 180px 400px minmax(0, 1fr); }
|
|
469
453
|
.bt-cells { grid-template-columns: repeat(8, 50px); }
|
|
470
454
|
.bt-h .bt-cells > div { font-size: 10.5px; }
|
|
471
|
-
.bd-peek { width: var(--bd-pkw, 60vw); }
|
|
472
455
|
.tg-r, .tg-ax { grid-template-columns: 180px minmax(0, 1fr); }
|
|
473
456
|
}
|
|
474
457
|
|
|
@@ -526,13 +509,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
526
509
|
.bd-tbl, .bd-tbl4, .bd-tbl3 { grid-template-columns: 1fr 1fr; }
|
|
527
510
|
.bd-tr.th { display: none; }
|
|
528
511
|
.bd-tr > span:nth-child(n+3) { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
|
|
529
|
-
/* the panel as a bottom sheet */
|
|
530
|
-
.bd-peek { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 88vh; border-radius: 28px 28px 0 0; border-left: 0; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.45); }
|
|
531
|
-
.bd-peek::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--cz-hair); }
|
|
532
|
-
body.pk-on .pk-grip { display: none; }
|
|
533
512
|
.pk-h { padding-top: 22px; }
|
|
534
|
-
body.pk-on main.bd-main::after { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(42,46,53,.32); }
|
|
535
|
-
body.pk-on .cz-fabw { display: none; }
|
|
536
513
|
.pk-tools .bd-ib, .pk-ask .in .bd-ib.solid, .pk-ask .bd-ib.sm, .pk-nb .bd-ib, .pk-acts .bd-ib, .pk-need .bd-ib { width: 44px; height: 44px; }
|
|
537
514
|
.wi { min-height: 44px; }
|
|
538
515
|
.pk-lk .bd-chip { height: 44px; }
|
|
@@ -666,9 +643,9 @@ button.bd-lr:hover { background: var(--bd-row); }
|
|
|
666
643
|
/* ── the uncovered features (initiative premium-uncovered-features, Board: BdList, BdByStage, BdDocs, BdSpans, BdAsks, BdNew, BdGrill, BdActions,
|
|
667
644
|
* BdFilter, BdSprint, BdPanel, BdPhone, BdHead). The canvas's cozy parts (.pop .mi .mlbl .pill .box .need .warn .field .inp .bar .av .kbd) as bd-* ── */
|
|
668
645
|
/* popovers (pm/bd-pop.js) */
|
|
669
|
-
.bd-pp { position: fixed; z-index:
|
|
646
|
+
.bd-pp { position: fixed; z-index: 75; background: var(--cz-card); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 24px); overflow: auto; font-family: var(--cz-sans); color: var(--cz-ink); width: 320px; }
|
|
670
647
|
.bd-pp[hidden], .bd-scrim[hidden] { display: none; }
|
|
671
|
-
.bd-scrim { position: fixed; inset: 0; z-index:
|
|
648
|
+
.bd-scrim { position: fixed; inset: 0; z-index: 74; background: rgba(42,46,53,.32); }
|
|
672
649
|
.bd-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--cz-hair); margin: 2px auto 8px; flex: none; }
|
|
673
650
|
.bd-mi { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: 600 14px var(--cz-sans); color: var(--cz-ink); width: 100%; cursor: pointer; }
|
|
674
651
|
.bd-mi:hover, .bd-mi.hl { background: var(--cz-well); }
|
|
@@ -682,7 +659,7 @@ button.bd-lr:hover { background: var(--bd-row); }
|
|
|
682
659
|
.bd-mnote { padding: 4px 12px 8px; }
|
|
683
660
|
.bd-hr { height: 1px; background: var(--cz-hair); margin: 4px 6px; flex: none; }
|
|
684
661
|
.bd-ppb { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 10px; }
|
|
685
|
-
.bd-pp .sm, .bd-
|
|
662
|
+
.bd-pp .sm, .bd-actsvw .sm { font-size: 12.5px; }
|
|
686
663
|
.bd-pp b.sm { font-weight: 800; }
|
|
687
664
|
/* the canvas's small parts */
|
|
688
665
|
.bd-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 11.5px var(--cz-sans); background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; flex: none; }
|
|
@@ -37,9 +37,11 @@ export function cantRead({ what = 'This', why = '', since = '', retry = true, so
|
|
|
37
37
|
return `<div class="ev-warn ev-cant" role="alert"><p><b>${esc(what)} could not be read.</b>${why ? ' It answered “' + esc(why) + '”.' : ''}${since ? ' ' + esc(since) : ''}</p>`
|
|
38
38
|
+ `<div class="ev-acts">${retry ? '<button type="button" class="ev-btn sm" data-ev-retry>Read again</button>' : ''}${sources ? '<button type="button" class="ev-btn sm ghost" data-ev-sources>Sources</button>' : ''}</div></div>`;
|
|
39
39
|
}
|
|
40
|
+
/* shell A (canvas XvAFailed): the summary card says it could not be opened and why; Find it is the one primary, Try again a quiet icon beside it */
|
|
40
41
|
export function failedItem({ what = 'This document', why = '', retry = true, find = '' } = {}) {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
const again = retry ? '<button type="button" class="czs-ib" data-ev-retry aria-label="Try again" title="Try again"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 11a8 8 0 0 0-14.6-4.5M4 13a8 8 0 0 0 14.6 4.5M5 3v4h4M19 21v-4h-4"/></svg></button>' : '';
|
|
43
|
+
return `<div class="czs-sum ev-fail" role="alert"><div class="czs-line warn"><span class="czs-dot" aria-hidden="true"></span><span>Could not be opened</span></div><p class="czs-p"><b>${esc(what)} could not be opened.</b>${why ? ' ' + esc(why) : ''}</p>`
|
|
44
|
+
+ (find || again ? `<div class="czs-acts">${find ? `<button type="button" class="czs-pri" data-ev-find="${esc(find)}">Find it</button>` : ''}${again}</div>` : '') + '</div>';
|
|
43
45
|
}
|
|
44
46
|
export const allClear = (text = 'All clear', right = '') => `<p class="ev-clear"><i class="ev-dot ok" aria-hidden="true"></i>${esc(text)}${right ? `<span class="ev-sub ev-right">${esc(right)}</span>` : ''}</p>`;
|
|
45
47
|
export const moreRow = (shown, total, step = 25) => (total > shown ? `<div class="ev-more"><span class="ev-small ev-mut">Showing ${shown} of ${total}</span><button type="button" class="ev-btn sm" data-ev-more>Show ${Math.min(step, total - shown)} more</button></div>` : '');
|
|
@@ -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; }
|
|
@@ -159,6 +159,15 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
159
159
|
|
|
160
160
|
/* ── the chat ── */
|
|
161
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; } }
|
|
162
171
|
.hm-reopen[hidden] { display: none; }
|
|
163
172
|
/* with the Viewer closed the conversation and its box sit in a centred column about 880px wide (AgInitStalled); the reopen button stays at
|
|
164
173
|
* the top right, and where the column reaches it the log keeps its first line clear of it */
|
|
@@ -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
|
|
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); }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
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.
|
|
3
|
-
*
|
|
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. */
|
|
4
5
|
|
|
5
6
|
/* the program's purple (PgProgram --prog / --progbg), light and dark */
|
|
6
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); }
|
|
@@ -11,27 +12,20 @@ body.bd-page { --pp-t0: var(--cz-c-e8f1fb); --pp-t0i: var(--cz-blueink); --pp-t1
|
|
|
11
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); }
|
|
12
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); } }
|
|
13
14
|
|
|
14
|
-
/* the
|
|
15
|
-
.pp-
|
|
16
|
-
.pp-peek .pp-h > .pk-tools { position: static; } /* the head is one row, as PgProgram draws it */
|
|
17
|
-
.pp-peek .pp-h h2 { margin: 0; font-size: 19px; }
|
|
18
|
-
.pp-pi { width: 40px; height: 40px; border-radius: 12px; background: var(--pp-progbg); color: var(--pp-prog); display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
19
|
-
.pp-pi svg { width: 20px; height: 20px; }
|
|
20
|
-
.pp-ch { margin: 2px 0 0; font-size: 12.5px; color: var(--cz-ink3); }
|
|
21
|
-
.pp-peek .pk-tools a.bd-ib { color: var(--cz-ink2); }
|
|
22
|
-
.pp-b { gap: 14px; padding-top: 0; }
|
|
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); }
|
|
23
17
|
.pp-sec { display: flex; flex-direction: column; }
|
|
24
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; }
|
|
25
21
|
|
|
26
|
-
/* the
|
|
22
|
+
/* the period picker */
|
|
27
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; }
|
|
28
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; }
|
|
29
25
|
.pp-menu button span { color: var(--cz-ink3); font-weight: 600; }
|
|
30
26
|
.pp-menu button[aria-checked="true"] { background: var(--cz-well); font-weight: 700; }
|
|
31
27
|
.pp-menu button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
|
|
32
28
|
@media (hover: hover) { .pp-menu button:hover { background: var(--cz-well); } }
|
|
33
|
-
.pp-menu .pp-mx { color: var(--cz-red); border-top: 1px solid var(--cz-hair); border-radius: 0 0 12px 12px; margin-top: 4px; }
|
|
34
|
-
.pp-mh { margin: 6px 12px 2px; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); }
|
|
35
29
|
.pp-pmenu { top: 34px; left: 0; right: auto; min-width: 160px; }
|
|
36
30
|
|
|
37
31
|
/* the goals: the KRs of one year half; earlier halves fold into one ghost chip */
|
|
@@ -98,19 +92,7 @@ button.pp-ck:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
98
92
|
@keyframes pp-info { 0% { transform: scale(1); opacity: .25; } 35% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
|
|
99
93
|
@media (prefers-reduced-motion: reduce) { .pp-needs .pp-dt::after { animation: none; } }
|
|
100
94
|
|
|
101
|
-
/* the
|
|
102
|
-
.pp-sort { background: var(--cz-riskbg); border-radius: 16px; padding: 10px 12px 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cz-risk); }
|
|
103
|
-
.pp-sort .t { flex: 1; min-width: 0; }
|
|
104
|
-
.pp-sort .t div { font-size: 12px; margin-top: 1px; opacity: .9; }
|
|
105
|
-
.pp-cta { width: 40px; height: 40px; border-radius: 50%; background: var(--cz-card); color: var(--cz-risk); border: 1px solid rgba(107,71,0,.2); display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; }
|
|
106
|
-
.pp-cta:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
107
|
-
|
|
108
|
-
/* the tabs and the tree (PgProgram), the milestones (PgMilestones) */
|
|
109
|
-
.pp-tabs { display: flex; gap: 4px; align-items: center; margin-bottom: 8px; }
|
|
110
|
-
.pp-tab { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--cz-ink3); display: inline-flex; align-items: center; gap: 6px; }
|
|
111
|
-
.pp-tab[aria-selected="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
112
|
-
.pp-tab .n { font-weight: 600; color: var(--cz-ink3); }
|
|
113
|
-
.pp-tab:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
95
|
+
/* the tree (PgProgram), the milestones (PgMilestones) */
|
|
114
96
|
.pp-tree, .pp-ml { border: 1px solid var(--cz-hair); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
|
|
115
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; }
|
|
116
98
|
.pp-nd:first-child { border-top: 0; }
|
|
@@ -163,16 +145,11 @@ a.pp-nd.pp-tk:focus-visible, .pp-nd.pp-more:focus-visible { outline: 2px solid v
|
|
|
163
145
|
.pp-cdl dt { color: var(--cz-ink3); font-weight: 700; }
|
|
164
146
|
.pp-cdl dd { margin: 0; }
|
|
165
147
|
|
|
166
|
-
/* a phone: the
|
|
148
|
+
/* a phone: the shell is full screen; the track keeps its clusters */
|
|
167
149
|
@media (max-width: 720px) {
|
|
168
|
-
.pp-peek .pp-h { padding-top: 22px; }
|
|
169
|
-
.pp-peek .pp-h { gap: 10px; padding-right: 10px; }
|
|
170
|
-
.pp-peek .pp-h h2 { font-size: 17px; }
|
|
171
|
-
.pp-peek .pp-h .pk-tools .bd-ib { width: 32px; height: 32px; }
|
|
172
|
-
.pp-pi { width: 34px; height: 34px; border-radius: 10px; }
|
|
173
150
|
.pp-mt { grid-template-columns: 44px repeat(var(--pp-n), minmax(0, 1fr)) 44px; }
|
|
174
151
|
.pp-mt::before { left: 22px; right: 22px; }
|
|
175
152
|
.pp-mt::after { left: 22px; width: calc(22px + (var(--pp-f) * (100% - 88px)) / var(--pp-n)); }
|
|
176
153
|
.pp-m b { font-size: 11.5px; }
|
|
177
|
-
.pp-nr, .pp-nd, .pp-doc
|
|
154
|
+
.pp-nr, .pp-nd, .pp-doc { min-height: 44px; }
|
|
178
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) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[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
|
+
}
|