create-pmos 0.639.0 → 0.641.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 (34) hide show
  1. package/package.json +15 -9
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/ui/components/Navigation/README.md +3 -1
  4. package/payload/design-system/ui/components/TodayPage/preview.html +1 -1
  5. package/payload/design-system/ui/components/bundle.css +3 -2
  6. package/payload/planning/evals/eval-calibration.md +1 -1
  7. package/payload/planning/okrs/health-budgets.md +1 -1
  8. package/payload/state/discoveries.md +1 -1
  9. package/workspace/changelog.json +14 -8
  10. package/workspace/design-system/ui/components/Navigation/README.md +3 -1
  11. package/workspace/design-system/ui/components/TodayPage/preview.html +1 -1
  12. package/workspace/design-system/ui/components/bundle.css +3 -2
  13. package/workspace/guide/layout.md +5 -2
  14. package/workspace/package-lock.json +2 -2
  15. package/workspace/package.json +1 -1
  16. package/workspace/public/capture.html +8 -9
  17. package/workspace/public/pm/buddy-core.js +3 -3
  18. package/workspace/public/pm/c3-capture.css +21 -23
  19. package/workspace/public/pm/c3-capture.js +35 -24
  20. package/workspace/public/pm/cozy-aud.css +10 -6
  21. package/workspace/public/pm/cozy-buddy.css +33 -34
  22. package/workspace/public/pm/cozy-buddy.js +1 -1
  23. package/workspace/public/pm/cozy-ev.css +12 -20
  24. package/workspace/public/pm/cozy-nav.js +15 -8
  25. package/workspace/public/pm/cozy-rec-tab.css +43 -41
  26. package/workspace/public/pm/cozy-rec-tab.js +1 -0
  27. package/workspace/public/pm/cozy-welcome.css +145 -0
  28. package/workspace/public/pm/ds-bridge.css +19 -0
  29. package/workspace/public/pm/komorebi.css +4 -2
  30. package/workspace/public/pm/premium-welcome.js +6 -1
  31. package/workspace/public/premium-aud.html +9 -4
  32. package/workspace/public/premium-buddy.html +10 -5
  33. package/workspace/public/premium-rec.html +8 -3
  34. package/workspace/public/premium-welcome.html +14 -8
@@ -1,52 +1,51 @@
1
1
  /* cozy-buddy.css — the meeting buddy (initiative meeting-buddy; pm/buddy-core.js draws it, pm/cozy-buddy.js mounts the page).
2
2
  * The page is the PMOS panel over a Meet call (a 360 × 520 frame), and the same rows sit in the recording tab's Now panel.
3
- * Colours are the cozy tokens only, so the dark theme follows cozy.css. Every class starts with mb-. */
3
+ * On the PMOS design system (design-system-meeting-pages): both pages are body.pm-ds, the buttons are the system's Button (pm-btn,
4
+ * primary for the one main action), and every colour, corner and space here is a system token. Every class starts with mb-. */
4
5
 
5
- /* the rows, shared by the Meet panel and the recording tab */
6
- .mb-r { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--cz-ink); }
6
+ /* the rows, shared by the Meet panel and the recording tab: the system's Summary rows, one line apart */
7
+ .mb-r { display: flex; align-items: flex-start; gap: var(--space-12); padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink); }
7
8
  .mb-r .t { flex: 1; min-width: 0; line-height: 1.4; }
8
- .mb-r .t small { display: block; font-size: var(--fs-label); font-weight: var(--fw-regular); color: var(--cz-ink3); }
9
- .mb-r.bad .t { color: var(--cz-late); }
9
+ .mb-r .t small { display: block; font-size: var(--fs-meta); font-weight: var(--fw-regular); color: var(--muted); }
10
+ .mb-r.bad .t { color: var(--alert); }
10
11
  .mb-top { font-size: var(--fs-body); align-items: center; }
11
- .mb-sm { font-size: var(--fs-label); color: var(--cz-ink3); }
12
- .mb-src { display: block; font-size: var(--fs-label); color: var(--cz-ink3); margin-top: 2px; }
13
- .mb-spark { color: var(--cz-blueink); flex: none; padding-top: 2px; }
14
- .mb-nudge { background: var(--cz-riskbg); }
15
- .mb-draft, .mb-consent { background: var(--cz-well); }
16
- .mb-line { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--cz-card); color: var(--cz-ink2); quotes: none; }
17
- .mb-acts { display: flex; gap: 6px; flex: none; }
18
- .mb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cz-ink3); flex: none; opacity: .6; }
19
- .mb-dot.ok { background: var(--cz-ok); opacity: 1; }
20
- .mb-dot.warn { background: var(--cz-risk); opacity: 1; }
12
+ .mb-sm { font-size: var(--fs-meta); color: var(--muted); }
13
+ .mb-src { display: block; font-size: var(--fs-meta); color: var(--muted); margin-top: 2px; }
14
+ .mb-spark { color: var(--blue); flex: none; padding-top: 2px; } /* ✦ is PMOS speaking: always blue */
15
+ .mb-nudge { background: var(--alert-tint); }
16
+ .mb-draft, .mb-consent { background: var(--blue-tint); } /* PMOS suggests: the Suggestion tint */
17
+ .mb-line { display: block; margin-top: 6px; padding: var(--space-8) 10px; border-radius: var(--radius-md); background: var(--card); color: var(--ink); quotes: none; }
18
+ .mb-acts { display: flex; gap: 2px; flex: none; }
19
+ .mb-dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--line); flex: none; }
20
+ .mb-dot.ok { background: var(--leaf); } /* listening now: the one lit thing */
21
+ .mb-dot.warn { background: var(--alert); }
21
22
  .mb-r .mb-dot { margin-top: 4px; }
22
- .mb-ib { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; cursor: pointer; font: inherit; text-decoration: none; }
23
- .mb-ib.go { background: var(--cz-solid); border-color: var(--cz-solid); color: var(--cz-onsolid); }
24
- .mb-ib:disabled { opacity: .5; cursor: default; }
25
- .mb-ib:focus-visible, .mb-pick:focus-visible, .mb-undo:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
26
- @media (hover: hover) { .mb-ib:hover { background: var(--cz-well); } .mb-ib.go:hover { background: var(--cz-blueink); } }
27
- @media (pointer: coarse) { .mb-ib { width: 44px; height: 44px; } }
28
- .mb-undo { border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-strong); color: var(--cz-blueink); cursor: pointer; }
23
+ /* the buttons are pm-btn (komorebi.css); a link styled as one keeps no underline */
24
+ .mb-ib { text-decoration: none; padding: 0; }
25
+ @media (pointer: coarse) { .pm-ds .mb-ib.pm-btn { width: 44px; height: 44px; } }
26
+ .mb-undo { border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-strong); color: var(--blue); cursor: pointer; }
27
+ .mb-undo:focus-visible, .mb-pick:focus-visible { outline: none; box-shadow: var(--glow); }
29
28
 
30
- /* the page over the call */
31
- .mb-page, .cz.mb-page { margin: 0; height: 100vh; overflow: hidden; background: var(--cz-card); }
32
- .mb { height: 100%; display: flex; flex-direction: column; color: var(--cz-ink); }
33
- .mb-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-body); }
29
+ /* the page over the call: the system's single column, on a card */
30
+ body.pm-ds.mb-page { margin: 0; height: 100vh; overflow: hidden; background: var(--card); }
31
+ .mb { height: 100%; display: flex; flex-direction: column; color: var(--ink); }
32
+ .mb-h { display: flex; align-items: center; gap: var(--space-8); padding: 6px var(--space-8) 6px 14px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
34
33
  .mb-h .mb-sm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
35
- .mb-h .mb-ib { border: 0; background: none; }
36
34
  .mb-b { flex: 1; min-height: 0; overflow-y: auto; }
37
35
  .mb-b > :last-child { border-bottom: 0; }
38
- .mb-msg { margin: 0; padding: 8px 14px; font-size: var(--fs-label); color: var(--cz-ink2); border-top: 1px solid var(--cz-hair); }
36
+ .mb-msg { margin: 0; padding: var(--space-8) 14px; font-size: var(--fs-meta); color: var(--ink); border-top: 1px solid var(--line); }
39
37
  .mb-msg[hidden], .mb-ask[hidden] { display: none; }
40
- .mb-ask { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cz-hair); }
41
- .mb-ask input { flex: 1; min-width: 0; height: 32px; border-radius: 6px; border: 0; background: var(--cz-well); padding: 0 12px; font: inherit; font-size: var(--fs-label); color: var(--cz-ink); }
42
- .mb-ask input::placeholder { color: var(--cz-ink3); }
43
- .mb-pick { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--cz-hair); background: none; font: inherit; font-size: var(--fs-label); color: var(--cz-ink); text-align: left; cursor: pointer; }
38
+ .mb-ask { display: flex; align-items: center; gap: var(--space-8); padding: 10px 14px; border-top: 1px solid var(--line); }
39
+ .pm-ds .mb-ask .pm-input { flex: 1; min-width: 0; height: 32px; font-size: var(--fs-meta); }
40
+ .mb-ask .pm-input::placeholder { color: var(--muted); }
41
+ .mb-pick { display: flex; align-items: center; gap: var(--space-8); width: 100%; min-height: 44px; padding: var(--space-8) 14px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: var(--fs-label); color: var(--ink); text-align: left; cursor: pointer; }
42
+ @media (hover: hover) { .mb-pick:hover { background: var(--well); } }
44
43
  .mb-pick b { flex: 1; min-width: 0; }
45
44
  .mb-none { padding: 14px; margin: 0; }
46
45
  .folded .mb-b, .folded .mb-msg { display: none; }
47
46
  .folded .mb-h { border-bottom: 0; }
48
47
 
49
- /* in the recording tab's Now panel: the rows sit in one card */
50
- .mb-card { border-radius: 8px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); overflow: hidden; }
48
+ /* in the recording tab's Now panel: the rows sit in one block */
49
+ .mb-card { border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--raise); overflow: hidden; }
51
50
  .mb-card > :last-child { border-bottom: 0; }
52
51
  .mb-clip { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
@@ -37,7 +37,7 @@ function draw() {
37
37
  let body = buddyHtml(m);
38
38
  if (!m.listening && !m.paused && S.ev) {
39
39
  body = `<div class="mb-r mb-start"><span class="t"><small>${esc(m.title)}</small>PMOS is not listening to this meeting.</span>`
40
- + `<button type="button" class="mb-ib go" data-mb="listen" aria-label="Start listening in PMOS" title="Start listening in PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></button></div>` + body;
40
+ + `<button type="button" class="mb-ib pm-btn go primary" data-mb="listen" aria-label="Start listening in PMOS" title="Start listening in PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></button></div>` + body;
41
41
  }
42
42
  if (body !== S.html) { S.html = body; $('mbBody').innerHTML = body; }
43
43
  $('mbAsk').hidden = !S.ev || S.folded;
@@ -460,30 +460,22 @@
460
460
  /* ── The rail (slice 1 of the six places; boards StToday, StWorkList, StSettings): on a desktop the menu is one thin panel at the left
461
461
  edge of every page, always shown. It is not a panel: the page leaves its width free. The floating button is a phone's only. ── */
462
462
  @media (min-width: 761px) {
463
- body.cz-railon { --cz-railw: 72px; --cz-railx: 96px; } /* the rail's width, and where the page starts: 12 + 72 + 12 (frame.js on the boards) */
463
+ body.cz-railon { --cz-railw: 72px; --cz-railx: 96px; } /* the rail's width (the design system's .pm-rail, Komorebi v6), and where the page starts: 12 + 72 + 12 */
464
464
  body.cz-railon .cz-fabw { display: block !important; left: 0; bottom: 0; z-index: 60; } /* a dialog dims the rail (its scrim is above it); it never hides it */
465
465
  body.cz-railon .cz-fab, body.cz-railon .ev-fd, body.cz-railon .ev-scrim { display: none !important; }
466
- body.cz-railon .cz-fabw > .cz-fabm.ev-menu.ev-rail { position: fixed; left: 12px; top: 16px; bottom: 16px; width: var(--cz-railw); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px;
467
- padding: 10px 0 12px; border: 0; border-radius: 24px; background: var(--cz-well); box-shadow: none; overflow: hidden auto; scrollbar-width: none; }
468
- .ev-menu.ev-rail a.ev-rp { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 60px; height: 56px; min-height: 0; padding: 0; margin: 0; border-radius: 16px;
469
- color: var(--cz-ink2); font-size: var(--fs-label); font-weight: var(--fw-strong); line-height: var(--lh-label); text-decoration: none; background: none; }
470
- .ev-menu.ev-rail a.ev-rp svg { width: 20px; height: 20px; color: currentColor; }
471
- .ev-menu.ev-rail a.ev-rp:hover { background: var(--cz-well2); }
472
- .ev-menu.ev-rail a.ev-rp[aria-current="page"] { background: var(--cz-card); color: var(--cz-blueink); box-shadow: 0 1px 2px rgba(30,40,60,.08), 0 4px 14px rgba(30,40,60,.06); }
473
- .ev-menu.ev-rail a.ev-rp:focus-visible, .ev-menu.ev-rail .ev-rb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
466
+ /* the rail is the design system's Navigation part (pm/komorebi.css .pm-rail: its look, the leaf ring on the page you are on, pm-count,
467
+ pm-btn): here only where it sits, and the phone menu's own spacing taken off its links and buttons */
468
+ body.cz-railon .cz-fabw > .cz-fabm.ev-menu.ev-rail { position: fixed; left: 12px; top: 16px; bottom: 16px; width: var(--cz-railw); border: 0; box-shadow: none; overflow: hidden auto; scrollbar-width: none; }
469
+ .cz-fabm.ev-menu.ev-rail a, .cz-fabm.ev-menu.ev-rail button { flex: none; min-height: 0; padding: 0; margin: 0; }
470
+ .cz-fabm.ev-menu.ev-rail svg { color: currentColor; }
474
471
  .ev-menu.ev-rail .ev-rsp { flex: 1; min-height: 12px; }
475
472
  .ev-menu.ev-rail .ev-rtray { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
476
- .ev-menu.ev-rail button.ev-rb { position: relative; width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 14px; background: none; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
477
- .ev-menu.ev-rail button.ev-rb:hover { background: var(--cz-well2); }
478
- .ev-menu.ev-rail button.ev-rb svg { width: 20px; height: 20px; color: currentColor; }
479
- /* a number: Today's calls, the sessions that wait for you. A dot: a place with something new (blue), a stale source (amber). */
480
- .ev-menu.ev-rail .ev-rn { position: absolute; top: 3px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--cz-blueink); color: var(--cz-onsolid);
481
- font-style: normal; font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--cz-well); transform: scale(.85); transform-origin: top right; }
482
- .ev-menu.ev-rail .ev-rb .ev-rn { top: 1px; right: 0; }
483
- .ev-menu.ev-rail a.ev-rp[aria-current="page"] .ev-rn { box-shadow: 0 0 0 2px var(--cz-card); }
484
- .ev-menu.ev-rail .ev-rd { position: absolute; top: 8px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); box-shadow: 0 0 0 2px var(--cz-well); }
473
+ .ev-menu.ev-rail .ev-rb { position: relative; width: 44px; height: 44px; }
474
+ .ev-menu.ev-rail .ev-rb .pm-count { position: absolute; top: 0; right: 0; }
475
+ /* a dot: a place with something new (blue), a stale source (amber) */
476
+ .ev-menu.ev-rail .ev-rd { position: absolute; top: 8px; right: 14px; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--blue); }
485
477
  .ev-menu.ev-rail .ev-rb .ev-rd { top: 9px; right: 9px; }
486
- .ev-menu.ev-rail .ev-rd.risk { background: var(--cz-dot-risk); }
478
+ .ev-menu.ev-rail .ev-rd.risk { background: var(--alert); }
487
479
  /* the round Live button and its list, until the popup's chat holds the sessions: at the foot of the rail, above the chat icon */
488
480
  body.cz-railon .cz-fabw .cz-live { position: fixed; left: 26px; bottom: 228px; visibility: visible !important; } /* the rail is never a menu that covers it */
489
481
  body.cz-railon .cz-fabw .lv-tray:not(.lv-r) { position: fixed; left: calc(var(--cz-railx) - 8px); bottom: 16px; }
@@ -496,7 +488,7 @@
496
488
  /* the product choice is Work's and Goals' (one shared pick); Today reads the products of that pick */
497
489
  body.cz-railon.cz-home #hmPick { display: none; }
498
490
  }
499
- @media (min-width: 761px) and (max-height: 640px) { .ev-menu.ev-rail a.ev-rp { height: 48px; gap: 3px; } }
491
+ @media (min-width: 761px) and (max-height: 640px) { .pm-ds .cz-fabm.ev-menu.ev-rail a { height: 48px; } }
500
492
  /* Settings, one container (slice 1, board StSettings): each group of rows is one card with a thin border */
501
493
  .ev-st .ev-tcard { border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; margin: 6px 0 4px; flex: none; }
502
494
  .ev-st .ev-tcard > .ev-trow { padding-left: 18px; padding-right: 18px; margin: 0; border-radius: 0; }
@@ -81,6 +81,9 @@ export const railOn = () => typeof matchMedia === 'function' && matchMedia(DESK)
81
81
  export { fabLabel };
82
82
  const THEME_KEY = 'pmos.c3.theme';
83
83
  const CSS = new URL('./cozy-ev.css', import.meta.url).href;
84
+ // the PMOS design system (design-system-family): brand, then charts, then the UI sheet. Every rule is scoped to .pm-ds, so loading them
85
+ // changes nothing until an element carries the class: the rail does (below), and a page that has moved to the system does on its root
86
+ const FAMILY = ['brand', 'charts', 'komorebi'].map((n) => new URL(`./${n}.css`, import.meta.url).href);
84
87
  const N = { news: 0, stale: null, here: 'home', calls: 0, fresh: new Set(), extra: [], from: null, waiting: 0, live: 0, rail: false, phone: false };
85
88
  let OPEN = null; // mountNav's own open(o): openMenu reaches the one menu of the page
86
89
  /* A place that just opened (onboarding B3, ObA4Gradual; GET /api/moments places[p].dot): its menu row gets one soft blue dot until the PM
@@ -138,24 +141,26 @@ export function phoneMenuHtml(here, o = {}) {
138
141
  /** The rail's markup; pure, so a unit test can read it. here: home | board | insights. o: { calls, stale, fresh, waiting }
139
142
  * calls: the calls that are yours (Today's number); waiting: the sessions that wait for you (the chat icon's number). Zero is silence. */
140
143
  export function railHtml(here, o = {}) {
141
- const n = (v) => (v > 0 ? `<i class="ev-rn" aria-hidden="true">${v > 99 ? '99+' : v}</i>` : '');
144
+ // the design system's Navigation part (design-system/ui, .pm-rail): the page you are on carries the leaf ring, a number is a pm-count
145
+ const n = (v) => (v > 0 ? `<span class="pm-count" aria-hidden="true">${v > 99 ? '99+' : v}</span>` : '');
146
+ const ic = (d) => svg(d, 18).replace('<svg ', '<svg class="pm-ic" ');
142
147
  const places = PLACES.map((p) => {
143
148
  const cur = p.key === here, calls = p.key === 'home' && o.calls > 0, opened = !cur && !!(o.fresh && o.fresh.has(p.key));
144
149
  const lab = calls ? `${p.label}. ${callWords(o.calls)}` : opened ? `${p.label}. New: it has something to show now` : '';
145
- return `<a class="ev-rp" href="${p.href}"${cur ? ' aria-current="page"' : ''}${lab ? ` aria-label="${esc(lab)}"` : ''}>${svg(p.d, 20)}<span>${esc(p.label)}</span>${calls ? n(o.calls) : opened ? '<i class="ev-rd" aria-hidden="true"></i>' : ''}</a>`;
150
+ return `<a href="${p.href}"${cur ? ' aria-current="page"' : ''}${lab ? ` aria-label="${esc(lab)}"` : ''}>${ic(p.d)}<span>${esc(p.label)}</span>${calls ? n(o.calls) : opened ? '<i class="ev-rd" aria-hidden="true"></i>' : ''}</a>`;
146
151
  }).join('');
147
152
  const w = o.waiting > 0 ? `Ask PMOS. ${o.waiting === 1 ? 'One session waits' : o.waiting + ' sessions wait'} for you` : 'Ask PMOS';
148
153
  return places + '<div class="ev-rsp"></div><div class="ev-rtray">'
149
- + `<button type="button" class="ev-rb" data-cz-chat aria-label="${esc(w)}" title="${esc(w)}">${svg(ICON.chat, 20)}${n(o.waiting)}</button>`
150
- + `<button type="button" class="ev-rb" data-cz-search aria-label="Search (⌘K)" title="Search ⌘K">${svg(ICON.search, 20)}</button>`
151
- + `<button type="button" class="ev-rb" data-cz-guide aria-label="Guide" title="Guide">${svg(ICON.guide, 20)}</button>`
152
- + `<button type="button" class="ev-rb" data-cz-settings aria-label="Settings${o.stale ? '. ' + esc(o.stale.text) : ''}" title="Settings">${svg(ICON.settings, 20)}${o.stale ? '<i class="ev-rd risk" aria-hidden="true"></i>' : ''}</button>`
154
+ + `<button type="button" class="pm-btn ev-rb" data-cz-chat aria-label="${esc(w)}" title="${esc(w)}">${ic(ICON.chat)}${n(o.waiting)}</button>`
155
+ + `<button type="button" class="pm-btn ev-rb" data-cz-search aria-label="Search (⌘K)" title="Search ⌘K">${ic(ICON.search)}</button>`
156
+ + `<button type="button" class="pm-btn ev-rb" data-cz-guide aria-label="Guide" title="Guide">${ic(ICON.guide)}</button>`
157
+ + `<button type="button" class="pm-btn ev-rb" data-cz-settings aria-label="Settings${o.stale ? '. ' + esc(o.stale.text) : ''}" title="Settings">${ic(ICON.settings)}${o.stale ? '<i class="ev-rd risk" aria-hidden="true"></i>' : ''}</button>`
153
158
  + '</div>';
154
159
  }
155
160
 
156
161
  function addCss(doc) {
157
- if (doc.querySelector(`link[href="${CSS}"]`)) return;
158
- const l = doc.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; doc.head.append(l);
162
+ const has = (h) => [...doc.querySelectorAll('link[rel="stylesheet"]')].some((l) => l.href === h);
163
+ for (const h of [CSS, ...FAMILY]) { if (has(h)) continue; const l = doc.createElement('link'); l.rel = 'stylesheet'; l.href = h; doc.head.append(l); }
159
164
  }
160
165
  async function getj(p) { try { const r = await fetch(p, { credentials: 'same-origin' }); return r.ok ? await r.json() : null; } catch { return null; } }
161
166
 
@@ -189,6 +194,8 @@ export function mountNav(here, doc = document, opts = {}) {
189
194
  doc.body.classList.toggle('cz-railon', N.rail);
190
195
  doc.body.classList.toggle('cz-chatpop', N.rail && typeof window.czOpenChat === 'function'); // the popup's chat holds the sessions: no Live button
191
196
  menu.classList.toggle('ev-rail', N.rail);
197
+ menu.classList.toggle('pm-rail', N.rail); // the rail is the design system's Navigation part; its wrapper opts in with pm-ds
198
+ w.classList.toggle('pm-ds', N.rail);
192
199
  menu.setAttribute('aria-label', N.rail ? 'Places' : 'Menu');
193
200
  if (N.rail) {
194
201
  if (menu.hidden) { menu.hidden = false; scrim.hidden = true; }
@@ -1,21 +1,23 @@
1
1
  /* pm/cozy-rec-tab.css — the recording tab (batch 12 item 1; canvas In development, XrtA1Tab, XrtA7Room, XrtA6States, XrtA5PhoneRec).
2
- * Every surface is a rounded card with a 12px gutter. The dark stage is only for a shared screen; in the room the page stays light.
3
- * Token vars from cozy.css only. Motion: the red dot breathes while recording; nothing else moves but the clock. */
2
+ * On the PMOS design system (design-system-meeting-pages): body.pm-ds, a single column of blocks with the system's 12px gutter, panel
3
+ * corner and raise. The dark stage is only for a shared screen: cozy-rec-tab.js then makes .rt-main a Dark-theme island (pm-ds dark),
4
+ * so every token inside it is the dark one; in the room the page stays light. Only system tokens and type roles. Motion: the red dot
5
+ * breathes while recording; nothing else moves but the clock. */
4
6
  body.rt-page { height: 100vh; overflow: hidden; }
5
- .rt { box-sizing: border-box; height: 100vh; padding: 12px; display: flex; gap: 12px; }
6
- .rt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 20px; background: var(--cz-card); box-shadow: var(--cz-vlift); padding: 14px 20px 18px; box-sizing: border-box; }
7
- .rt-side { width: 400px; flex: none; border-radius: 20px; background: var(--cz-card); box-shadow: var(--cz-vlift); overflow: auto; }
7
+ .rt { box-sizing: border-box; height: 100vh; padding: var(--space-12); display: flex; gap: var(--space-12); }
8
+ .rt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: var(--radius-panel); background: var(--card); color: var(--ink); box-shadow: var(--raise); padding: 14px 20px 18px; box-sizing: border-box; }
9
+ .rt-side { width: 400px; flex: none; border-radius: var(--radius-panel); background: var(--card); box-shadow: var(--raise); overflow: auto; }
8
10
  .rt-side[hidden], .rt-ask[hidden], .rt-line[hidden], .rt-bar[hidden], .rt-msg[hidden], .rt-alert[hidden], .rt-past[hidden] { display: none; }
9
11
 
10
12
  /* the dark stage: only while a screen is shared */
11
- .rt[data-mode="screen"] .rt-main { background: var(--cz-c-1b1d21); color: var(--cz-c-eceef1); }
13
+ .rt[data-mode="screen"] .rt-main { background: var(--ground); color: var(--ink); } /* .rt-main is pm-ds dark here: the dark ground */
12
14
 
13
15
  .rt-hd { display: flex; align-items: center; gap: 10px; min-height: 40px; }
14
- .rt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cz-dot-q); flex: none; }
15
- .rt[data-mode="screen"] .rt-dot, .rt[data-mode="room"] .rt-dot { background: var(--cz-dot-red); animation: rt-breathe 2.4s ease-in-out infinite; }
16
- .rt-clock { font-size: var(--fs-row); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; color: var(--cz-ink3); line-height: var(--lh-row); }
17
- .rt[data-mode="screen"] .rt-clock, .rt[data-mode="room"] .rt-clock { color: var(--cz-dot-red); }
18
- .rt.late .rt-clock, .rt-past { color: var(--cz-dot-risk); }
16
+ .rt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
17
+ .rt[data-mode="screen"] .rt-dot, .rt[data-mode="room"] .rt-dot { background: var(--alert); animation: rt-breathe 2.4s ease-in-out infinite; }
18
+ .rt-clock { font-size: var(--fs-row); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; color: var(--muted); line-height: var(--lh-row); }
19
+ .rt[data-mode="screen"] .rt-clock, .rt[data-mode="room"] .rt-clock { color: var(--alert); }
20
+ .rt.late .rt-clock, .rt-past { color: var(--alert); }
19
21
  .rt-title { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--lh-row); }
20
22
  .rt-past { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
21
23
  .rt-ad { display: inline-flex; align-items: center; flex: none; } /* Adler with headphones (AdH5) */
@@ -23,63 +25,63 @@ body.rt-page { height: 100vh; overflow: hidden; }
23
25
  @keyframes rt-breathe { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
24
26
  @media (prefers-reduced-motion: reduce) { .rt-dot { animation: none !important; } }
25
27
 
26
- .rt-alert { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--cz-riskbg); color: var(--cz-risk); font-weight: var(--fw-strong); font-size: var(--fs-row); line-height: var(--lh-row); }
28
+ .rt-alert { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--radius-md); background: var(--alert-tint); color: var(--alert); font-weight: var(--fw-strong); font-size: var(--fs-row); line-height: var(--lh-row); }
27
29
  .rt-alert span { flex: 1; }
28
30
 
29
31
  .rt-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; position: relative; }
30
32
  .rt-own { flex: 1; min-height: 0; display: flex; }
31
33
  .rt-own:empty { display: none; }
32
- .rt-scr { flex: 1; min-height: 0; border-radius: 12px; background: var(--cz-c-17191c); display: flex; align-items: center; justify-content: center; overflow: hidden; }
34
+ .rt-scr { flex: 1; min-height: 0; border-radius: var(--radius-md); background: var(--ground-night); display: flex; align-items: center; justify-content: center; overflow: hidden; }
33
35
  .rt-scr video { max-width: 100%; max-height: 100%; display: block; }
34
- .rt-scr.off { flex-direction: column; gap: 12px; background: var(--cz-c-2a2d33); }
35
- .rt-scr.off p { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-c-9ea4ad); line-height: var(--lh-row); }
36
+ .rt-scr.off { flex-direction: column; gap: var(--space-12); background: var(--card); }
37
+ .rt-scr.off p { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-row); }
36
38
  .rt-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
37
39
  .rt-wait h2 { margin: 0; font-size: var(--fs-panel); font-weight: var(--fw-strong); line-height: var(--lh-panel); }
38
- .rt-wait p { margin: 0 0 8px; font-size: var(--fs-body); color: var(--cz-ink3); max-width: 420px; line-height: var(--lh-body); }
40
+ .rt-wait p { margin: 0 0 8px; font-size: var(--fs-body); color: var(--muted); max-width: 420px; line-height: var(--lh-body); }
39
41
 
40
42
  /* the meeting so far: one mark per highlight, a card with the moment on hover or focus */
41
43
  .rt-line { position: relative; height: 28px; margin: 12px 4px 0; }
42
- .rt-track { position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--cz-hair); }
43
- .rt-track::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rt-now, 0%); border-radius: 2px; background: color-mix(in srgb, var(--cz-blue) 70%, transparent); }
44
- .rt-nowmark { position: absolute; left: var(--rt-now, 0%); top: 4px; width: 2px; height: 20px; border-radius: 1px; background: var(--cz-dot-red); }
44
+ .rt-track { position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--line); }
45
+ .rt-track::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rt-now, 0%); border-radius: 2px; background: color-mix(in srgb, var(--blue) 70%, transparent); }
46
+ .rt-nowmark { position: absolute; left: var(--rt-now, 0%); top: 4px; width: 2px; height: 20px; border-radius: 1px; background: var(--alert); }
45
47
  .rt-mk { position: absolute; left: var(--rt-x); top: 0; transform: translateX(-50%); }
46
- .rt-star { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--cz-dot-risk); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
48
+ .rt-star { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
47
49
  .rt-star svg { fill: currentColor; stroke: none; }
48
- .rt-star:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
49
- .rt-hv { display: none; position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 240px; padding: 10px; border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); font-size: var(--fs-body); z-index: 3; flex-direction: column; gap: 4px; line-height: var(--lh-body); }
50
- .rt-hv b { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
51
- .rt-hv img { width: 100%; border-radius: 8px; margin-top: 4px; display: block; }
50
+ .rt-star:focus-visible { outline: none; box-shadow: var(--glow); }
51
+ .rt-hv { display: none; position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 240px; padding: 10px; border-radius: var(--radius-md); background: var(--card); color: var(--ink); box-shadow: var(--lift); font-size: var(--fs-body); z-index: 3; flex-direction: column; gap: 4px; line-height: var(--lh-body); }
52
+ .rt-hv b { font-size: var(--fs-meta); color: var(--muted); line-height: var(--lh-meta); }
53
+ .rt-hv img { width: 100%; border-radius: var(--radius-sm); margin-top: 4px; display: block; }
52
54
  .rt-mk:hover .rt-hv, .rt-mk:focus-within .rt-hv { display: flex; }
53
55
 
54
- .rt-msg { margin: 8px 0 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); text-align: center; line-height: var(--lh-label); }
55
- .rt[data-mode="screen"] .rt-msg { color: var(--cz-c-9ea4ad); }
56
+ .rt-msg { margin: 8px 0 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--muted); text-align: center; line-height: var(--lh-label); }
56
57
 
57
58
  /* the bar: icon only; Stop is the one red press */
58
- .rt-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
59
+ .rt-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-12); margin-top: var(--space-12); }
59
60
  .rt-slot { display: contents; }
60
- .rt-b { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
61
+ .rt-b { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
61
62
  .rt-b svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
62
- .rt-b.on { background: var(--cz-ink); color: var(--cz-card); }
63
- .rt-b.dark { background: var(--cz-ink); color: var(--cz-card); border-color: transparent; }
63
+ .rt-b.on { background: var(--ink); color: var(--card); }
64
+ .rt-b.dark { background: var(--ink); color: var(--card); border-color: transparent; }
64
65
  .rt-b.dark svg { fill: currentColor; }
65
- .rt-b.red { width: 64px; border-radius: 26px; background: var(--cz-dot-red); color: var(--cz-onsolid); border-color: transparent; margin-left: 12px; }
66
+ .rt-b.red { width: 64px; border-radius: var(--radius-pill); background: var(--alert); color: var(--card); border-color: transparent; margin-left: var(--space-12); }
66
67
  .rt-b.red svg { fill: currentColor; stroke: none; }
67
68
  .rt-b.big { width: 64px; height: 64px; border-radius: 50%; margin: 0; }
68
- .rt-b:focus-visible, .rt-t:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
69
+ .rt-b:focus-visible, .rt-t:focus-visible { outline: none; box-shadow: var(--glow); }
69
70
  .rt-b:disabled { opacity: .5; cursor: default; }
70
- .rt[data-mode="screen"] .rt-b:not(.red):not(.on) { background: var(--cz-c-33363c); color: var(--cz-c-eceef1); border-color: transparent; }
71
+ .rt[data-mode="screen"] .rt-b:not(.red):not(.on) { background: var(--card); color: var(--ink); border-color: transparent; }
71
72
  .rt-alert .rt-b { width: 36px; height: 36px; background: transparent; border: 0; color: inherit; }
72
- .rt-scr.off .rt-b { background: var(--cz-c-eceef1); color: var(--cz-c-17191c); }
73
+ .rt-scr.off .rt-b { background: var(--ink); color: var(--ground); }
73
74
 
74
75
  /* Stop asks first; the next meeting asks once */
75
- .rt-ask { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cz-c-17191c) 35%, transparent); z-index: 5; }
76
- .rt-askc { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border-radius: 20px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); }
76
+ .rt-ask { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ground-night) 35%, transparent); z-index: 5; }
77
+ .rt-askc { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border-radius: var(--radius-card); background: var(--card); color: var(--ink); box-shadow: var(--lift); }
77
78
  .rt-askc b { font-size: var(--fs-body); line-height: var(--lh-body); }
78
- .rt-askc p { margin: 8px 0 0; font-size: var(--fs-body); color: var(--cz-ink2); line-height: var(--lh-body); }
79
- .rt-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
80
- .rt-t { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: var(--fw-strong) var(--fs-row)/var(--lh-row) var(--cz-sans); cursor: pointer; }
81
- .rt-t.red { background: var(--cz-dot-red); color: var(--cz-onsolid); border-color: transparent; }
82
- .rt-t.blue { background: var(--cz-solid); color: var(--cz-onsolid); border-color: transparent; }
79
+ .rt-askc p { margin: var(--space-8) 0 0; font-size: var(--fs-body); color: var(--ink); line-height: var(--lh-body); }
80
+ .rt-acts { display: flex; justify-content: flex-end; gap: var(--space-8); margin-top: var(--space-16); }
81
+ /* the two answers are the system's Yes / No pair: outline + one filled answer, with words because Stop cannot be undone */
82
+ .rt-t { min-height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: var(--fw-strong) var(--fs-row)/var(--lh-row) var(--font-sans); cursor: pointer; }
83
+ .rt-t.red { background: var(--alert); color: var(--card); border-color: transparent; }
84
+ .rt-t.blue { background: var(--blue); color: var(--on-blue); border-color: transparent; }
83
85
 
84
86
  /* a phone: the recording view in the same tab; the side card goes under the stage */
85
87
  @media (max-width: 760px) {
@@ -105,6 +105,7 @@ function drawStage() {
105
105
  const own = mine || Object.assign(document.createElement('div'), { className: 'rt-own' });
106
106
  if (!mine) st.prepend(own);
107
107
  $('rt').dataset.mode = S.mode;
108
+ { const main = $('rt').querySelector('.rt-main'); if (main) main.classList.toggle('dark', S.mode === 'screen'); } // a shared screen: the stage is a Dark-theme island (pm-ds dark)
108
109
  const scr = C.screen();
109
110
  if (S.mode === 'screen') {
110
111
  if (scr.track) {
@@ -0,0 +1,145 @@
1
+ /* pm/cozy-welcome.css — the Welcome page (premium-welcome.html, premium-welcome.js; initiative premium-welcome), on the PMOS design
2
+ * system (design-system-meeting-pages). The page no longer loads premium.css: body.pm-ds, the single-column layout, one pm-block per
3
+ * step, the system's inputs and Bar. Every colour, corner, space and shadow is a system token; sizes and weights are the type roles.
4
+ * The step buttons keep their words: a first-run step needs to say where it goes (Next, Import 12 initiatives, Open Home). The
5
+ * Claude-setup panel (cozy-claude-setup.js, cs-*) is drawn here too, so its rules moved with the page. */
6
+ body.pm-ds.wl-page { min-height: 100vh; font-variant-numeric: tabular-nums; overflow-x: hidden; }
7
+ .wl-page h1, .wl-page h2, .wl-page h3, .wl-page p { margin: 0; }
8
+ :where(.wl-page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
9
+ .wl-page :focus-visible { outline: none; box-shadow: var(--glow); }
10
+ .wl-page .i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
11
+ .wl-page .note { font-size: var(--fs-meta); color: var(--muted); line-height: var(--lh-meta); }
12
+ .wl-page .mono, .wl-page code { font-family: var(--font-mono); }
13
+ .wl-page .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-8); border-radius: var(--radius-pill); background: var(--well); color: var(--muted); font-size: var(--fs-badge); font-weight: var(--fw-regular); line-height: var(--lh-badge); white-space: nowrap; }
14
+
15
+ /* the toast: the system's Toast, ink on the page */
16
+ .wl-page .toast { position: fixed; z-index: 50; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 24px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: var(--space-12); padding: 10px var(--space-16); border-radius: var(--radius-md); background: var(--ink); color: var(--card); box-shadow: var(--lift); font-size: var(--fs-meta); line-height: var(--lh-meta); transition: opacity var(--duration-enter) var(--ease-out), transform var(--duration-enter) var(--ease-out); }
17
+ .wl-page .toast:empty { display: none; }
18
+ .wl-page .toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
19
+ .wl-page .toast span { overflow-wrap: anywhere; }
20
+
21
+ /* the column */
22
+ .wl-in { position: relative; max-width: 700px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top, 0px)) var(--space-16) calc(40px + env(safe-area-inset-bottom, 0px)); }
23
+ .wl-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
24
+ .wl-brand { height: 44px; display: inline-flex; align-items: center; gap: var(--space-12); font-weight: var(--fw-strong); }
25
+ .wl-brand small { font-size: var(--fs-meta); font-weight: var(--fw-regular); line-height: var(--lh-meta); color: var(--muted); }
26
+
27
+ /* the step buttons: primary blue, outline for the second choice, quiet for Not now and Back */
28
+ .wl-page .wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-sm); background: var(--blue); color: var(--on-blue); font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); white-space: nowrap; transition: background var(--duration-quick) var(--ease-out); }
29
+ .wl-page .wl-btn:active { transform: translateY(1px); }
30
+ .wl-page .wl-btn:disabled { opacity: .4; pointer-events: none; }
31
+ .wl-page .wl-btn.alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
32
+ .wl-page .wl-btn.quiet { background: none; color: var(--ink); padding: 0 var(--space-12); }
33
+ @media (hover: hover) { .wl-page .wl-btn.alt:hover, .wl-page .wl-btn.quiet:hover { background: var(--well); } }
34
+ .wl-page .wl-btn svg { width: 16px; height: 16px; }
35
+
36
+ /* the steps: the system's Bar, one per step; the step you are on is the one lit (leaf) */
37
+ .wl-steps { display: flex; gap: var(--space-8); list-style: none; margin: var(--space-24) 0 0; padding: 0; }
38
+ .wl-steps li { flex: 1; min-width: 0; }
39
+ .wl-steps b { display: block; height: 4px; border-radius: var(--radius-pill); background: var(--well); margin-bottom: var(--space-8); overflow: hidden; }
40
+ .wl-steps b i { display: block; height: 100%; width: 0; background: var(--muted); border-radius: var(--radius-pill); transition: width var(--duration-leaf) var(--ease-drift); }
41
+ .wl-steps li[data-s="done"] b i { width: 100%; background: var(--muted); }
42
+ .wl-steps li[data-s="now"] b i { width: 100%; background: var(--leaf); }
43
+ .wl-steps span { display: block; font-size: var(--fs-label); font-weight: var(--fw-strong); line-height: var(--lh-label); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
44
+ .wl-steps li[data-s="now"] span { color: var(--ink); }
45
+ @media (prefers-reduced-motion: reduce) { .wl-steps b i { transition: none; } }
46
+
47
+ /* the step: one block */
48
+ .pm-ds .wl-card.pm-block { margin-top: var(--space-16); padding: var(--space-32); display: block; }
49
+ .wl-card h1 { font-size: var(--fs-page); line-height: var(--lh-page); font-weight: var(--fw-strong); text-wrap: balance; }
50
+ .wl-lede { margin-top: 10px; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
51
+ .wl-lede:empty { display: none; }
52
+ .wl-sec { display: flex; align-items: center; gap: 10px; margin: var(--space-32) 0 10px; font-size: var(--fs-section); font-weight: var(--fw-strong); line-height: var(--lh-section); color: var(--ink); }
53
+ .wl-sec .chip { margin-left: auto; }
54
+ .wl-sec0 { margin: 0; }
55
+
56
+ /* fields: the system's Input */
57
+ .wl-f { display: grid; gap: var(--space-16); margin-top: var(--space-24); }
58
+ .wl-f label, .wl-edit label { display: grid; gap: 6px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--ink); line-height: var(--lh-label); }
59
+ .wl-f label em { font-style: normal; font-weight: var(--fw-regular); color: var(--muted); margin-left: 4px; }
60
+ .wl-f input, .wl-f select, .wl-f textarea, .wl-edit input, .wl-edit select, .wl-q select, .wl-q input, .wl-first-task input {
61
+ height: 40px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); padding: 0 var(--space-12); font: inherit; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); min-width: 0; width: 100%; }
62
+ .wl-f textarea { height: auto; min-height: 118px; padding: var(--space-12); resize: vertical; }
63
+ .wl-f input:focus, .wl-f select:focus, .wl-f textarea:focus, .wl-edit input:focus, .wl-edit select:focus, .wl-q select:focus, .wl-q input:focus, .wl-first-task input:focus { outline: none; box-shadow: var(--glow); }
64
+ @media (pointer: coarse) { .wl-f input, .wl-f select, .wl-edit input, .wl-edit select, .wl-q select, .wl-q input, .wl-first-task input { font-size: var(--fs-field); min-height: 44px; } }
65
+
66
+ /* rows: the system's ListRow on the well */
67
+ .wl-list { display: grid; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
68
+ .wl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px var(--space-16); border-radius: var(--radius-md); background: var(--well); width: 100%; text-align: left; }
69
+ @media (hover: hover) { button.wl-row:hover { box-shadow: inset 0 0 0 1px var(--line); } }
70
+ .wl-row > .wl-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); }
71
+ .wl-row b { display: block; font-weight: var(--fw-strong); overflow-wrap: anywhere; }
72
+ .wl-row small { display: block; margin-top: 2px; font-size: var(--fs-meta); color: var(--muted); line-height: var(--lh-meta); }
73
+ .wl-row .path { font: var(--fw-regular) var(--fs-meta)/var(--lh-meta) var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
74
+ .wl-row.off { opacity: .62; }
75
+ .wl-page .wl-tog { min-height: 32px; padding: 0 var(--space-12); border-radius: var(--radius-pill); display: inline-flex; align-items: center; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-label); font-weight: var(--fw-strong); line-height: var(--lh-label); white-space: nowrap; }
76
+ button.wl-row[aria-pressed="true"] .wl-tog { background: var(--leaf); color: var(--card); box-shadow: none; } /* chosen: the switch's leaf */
77
+ .wl-n, .wl-row .wl-ic.wl-n { font: var(--fw-strong) var(--fs-label)/var(--lh-label) var(--font-mono); color: var(--ink); }
78
+ .wl-edit { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin: 10px 0 0; }
79
+ .wl-ed { background: var(--well); border-radius: var(--radius-md); padding: 14px var(--space-16); }
80
+ .wl-ed .wl-row { padding: 0; background: none; border-radius: 0; }
81
+ .wl-ed .acts { display: flex; gap: 6px; align-items: center; }
82
+ .wl-ed.off b { text-decoration: line-through; text-decoration-color: var(--muted); }
83
+ .wl-page .wl-ed .wgo, .wl-page .wl-q .wgo { flex: none; white-space: nowrap; min-height: 32px; padding: 0 var(--space-12); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-label); font-weight: var(--fw-strong); line-height: var(--lh-label); }
84
+ @media (pointer: coarse) { .wl-ed .wgo, .wl-q .wgo { min-height: 44px; padding: 0 var(--space-16); } .wl-page .wl-btn.quiet { min-height: 44px; } }
85
+
86
+ /* what PMOS will set: the Detail block's fields, flat and dashed (later) */
87
+ .wl-def { margin-top: var(--space-24); border-radius: var(--radius-md); border: 1px dashed var(--line); padding: var(--space-16) 18px; }
88
+ .wl-def dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 10px 0 0; font-size: var(--fs-meta); line-height: var(--lh-meta); }
89
+ .wl-def dt { color: var(--muted); font-weight: var(--fw-regular); }
90
+ .wl-def dd { margin: 0; color: var(--ink); }
91
+
92
+ .wl-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: var(--space-32); flex-wrap: wrap; }
93
+ .wl-foot .r { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
94
+ .wl-lock { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; }
95
+ .wl-lock svg { width: 16px; height: 16px; margin-top: 2px; }
96
+ .wl-scan { display: grid; gap: var(--space-12); margin-top: var(--space-24); }
97
+ .wl-scan div { display: flex; gap: var(--space-12); align-items: center; color: var(--ink); }
98
+ .wl-scan svg { width: 18px; height: 18px; color: var(--muted); }
99
+ .wl-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: wl-spin .8s linear infinite; flex: none; } /* PMOS working: the one loop allowed */
100
+ @keyframes wl-spin { to { transform: rotate(360deg); } }
101
+ @media (prefers-reduced-motion: reduce) { .wl-spin { animation: none; } }
102
+ .wl-about { margin-top: 18px; }
103
+ .wl-about summary { cursor: pointer; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--ink); padding: var(--space-8) 0; line-height: var(--lh-label); }
104
+ .wl-about ul { margin: var(--space-8) 0 0; padding-left: 18px; font-size: var(--fs-meta); color: var(--muted); line-height: var(--lh-meta); display: grid; gap: 6px; }
105
+ .wl-about code { font: var(--fw-regular) var(--fs-meta)/var(--lh-meta) var(--font-mono); }
106
+ .wl-first { margin-top: var(--space-24); }
107
+ .wl-first-note { margin: var(--space-12) 0 14px; }
108
+ .wl-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
109
+ .wl-err, .wl-bad, .wl-first-err { color: var(--alert); font-size: var(--fs-meta); line-height: var(--lh-meta); margin: var(--space-12) 0 0; }
110
+ .wl-add { margin-top: 10px; }
111
+ .wl-bh { display: flex; align-items: center; gap: 10px; margin: 14px 0 var(--space-8); }
112
+ .wl-qs { display: grid; gap: 14px; margin-top: 14px; }
113
+ .wl-q { display: grid; gap: var(--space-8); }
114
+ .wl-q .wgo { justify-self: start; }
115
+ .wl-in h1:focus { outline: none; box-shadow: none; }
116
+ .wl-ad { max-width: 420px; margin: 0 0 var(--space-12); }
117
+ .wl-hi { margin: 0 0 6px; font-weight: var(--fw-strong); color: var(--ink); }
118
+ .wl-first-task { display: grid; gap: var(--space-12); margin: var(--space-16) 0; }
119
+ .wl-first-task label { display: grid; gap: 6px; }
120
+ .wl-source-progress { margin: var(--space-12) 0; }
121
+
122
+ /* the Claude-setup panel (cozy-claude-setup.js), drawn inside a step */
123
+ .cs-panel { display: grid; gap: 14px; max-width: 100%; }
124
+ .cs-panel p { margin: 0; }
125
+ .cs-label { display: grid; gap: 6px; }
126
+ .cs-label select { max-width: 100%; min-height: 44px; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); font: inherit; }
127
+ .cs-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
128
+ .cs-term { height: 320px; width: 100%; min-width: 0; overflow: hidden; border-radius: var(--radius-md); }
129
+ .cs-term .xterm { height: 100%; }
130
+ .cs-checklist { padding: var(--space-16); margin: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: var(--fs-body); line-height: var(--lh-body); }
131
+ .cs-checklist p { margin: var(--space-8) 0; }
132
+ .cs-checklist a { display: inline-block; min-height: 44px; padding: 10px 0; color: var(--blue); text-decoration: underline; }
133
+
134
+ @media (max-width: 640px) {
135
+ .pm-ds .wl-card.pm-block { padding: 22px 18px; border-radius: var(--radius-card); }
136
+ .wl-brand small { display: none; }
137
+ .wl-edit { grid-template-columns: minmax(0, 1fr); }
138
+ .wl-row { grid-template-columns: auto minmax(0, 1fr); }
139
+ .wl-row > :nth-child(3) { grid-column: 2; justify-self: start; }
140
+ .wl-row > :nth-child(3):empty { display: none; }
141
+ .wl-foot { position: sticky; bottom: 0; margin: 28px -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-card) var(--radius-card); z-index: 2; }
142
+ .wl-foot .r { flex: 1; justify-content: flex-end; }
143
+ .wl-foot .wl-btn { flex: 1; }
144
+ .wl-foot .wl-btn.quiet { flex: 0 0 auto; }
145
+ }
@@ -0,0 +1,19 @@
1
+ /* ds-bridge.css: the bridge from the cozy tokens to the PMOS design system (initiative design-system-meeting-pages).
2
+ * A page that has moved to the system loads brand.css, charts.css and komorebi.css, puts pm-ds on its root, then loads this sheet.
3
+ * Shared modules (rows, sheets, the nav, the presenter) still name the old --cz-* tokens. Here those names point at the system's
4
+ * tokens, so what the shared modules draw on a moved page follows the system too. Only on body.pm-ds: a page without pm-ds is
5
+ * unchanged. Selectors are one step stronger than cozy.css's dark block so the bridge holds in both themes. Remove a name when no
6
+ * shared module uses it any more. */
7
+ :root body.pm-ds, :root body.pm-ds .cz, :root body.pm-ds .pm-ds { /* a nested pm-ds (a Dark-theme island) resolves the names again */
8
+ --cz-ink: var(--ink); --cz-ink2: var(--ink); --cz-ink3: var(--muted);
9
+ --cz-card: var(--card); --cz-well: var(--well); --cz-well2: var(--well); --cz-hair: var(--line);
10
+ --cz-blue: var(--blue); --cz-blueink: var(--blue); --cz-bluebg: var(--blue-tint);
11
+ --cz-late: var(--alert); --cz-latebg: var(--alert-tint); --cz-risk: var(--alert); --cz-riskbg: var(--alert-tint);
12
+ --cz-red: var(--alert); --cz-redbg: var(--alert-tint); --cz-ok: var(--muted); --cz-okbg: var(--well);
13
+ --cz-dot-late: var(--alert); --cz-dot-risk: var(--alert); --cz-dot-red: var(--alert); --cz-dot-ok: var(--muted); --cz-dot-q: var(--line);
14
+ --cz-ground: var(--ground);
15
+ --cz-lift: var(--lift); --cz-float: var(--lift); --cz-sheet: var(--lift); --cz-vlift: var(--raise);
16
+ --cz-sans: var(--font-sans); --cz-mono: var(--font-mono);
17
+ --cz-done: var(--blue); --cz-bubble: var(--blue-tint); --cz-solid: var(--blue); --cz-onsolid: var(--on-blue);
18
+ }
19
+ :root body.pm-ds :focus-visible { outline: none; box-shadow: var(--glow); }
@@ -90,9 +90,11 @@
90
90
  .pm-ds .pm-doc h3{font-size:18px;line-height:24px;margin:0 0 4px}
91
91
  .pm-ds .pm-stage{background:var(--well);border-radius:var(--radius-md);aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}
92
92
  .pm-ds .pm-set{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
93
- .pm-ds .pm-rail{width:92px;background:var(--well);border-radius:var(--radius-panel);padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:4px}
94
- .pm-ds .pm-rail a{position:relative;width:76px;height:64px;border-radius:var(--radius-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
93
+ .pm-ds .pm-rail{width:72px;background:var(--well);border-radius:var(--radius-panel);padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:4px}
94
+ .pm-ds .pm-rail a{position:relative;width:60px;height:56px;border-radius:var(--radius-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
95
95
  .pm-ds .pm-rail a[aria-current="page"]{background:var(--card);box-shadow:var(--glow)}
96
+ .pm-ds .pm-rail.roomy{width:92px}
97
+ .pm-ds .pm-rail.roomy a{width:76px;height:64px}
96
98
  .pm-ds .pm-rail .pm-count{position:absolute;top:3px;right:5px}
97
99
  .pm-ds .pm-path{display:flex;align-items:center;gap:6px;font-size:13px}
98
100
  .pm-ds .pm-path a{color:var(--blue)}
@@ -103,7 +103,12 @@ const notNow = () => run('dismiss', async () => {
103
103
  });
104
104
 
105
105
  /* ── views ─────────────────────────────────────────────────────────────────────────────────────── */
106
- const btn = (act, label, o = {}) => `<button class="wl-btn${o.alt ? ' alt' : ''}${o.quiet ? ' quiet' : ''}" type="button" data-w="${act}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}${S.busy === o.busy ? ' aria-busy="true"' : ''}>${S.busy === o.busy && o.busyText ? spin(o.busyText) : (o.lead || '') + label}</button>`;
106
+ /* Icon-only for a step that can be taken back (Komorebi Button v7): Open Home and Back show an icon, the label is the tooltip and
107
+ * aria-label. The answers to a step that cannot be undone (Import 12 initiatives) keep their words. */
108
+ const ICON_ONLY = { finish: '<svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-7 9 7"/><path d="M5 10v10h14V10"/></svg>', back: '<svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg>' };
109
+ const btn = (act, label, o = {}) => ICON_ONLY[act] && !(S.busy === o.busy && o.busyText)
110
+ ? `<button class="pm-btn ${act === 'finish' ? 'primary' : 'outline'}" type="button" data-w="${act}" aria-label="${esc(label)}" title="${esc(label)}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}>${ICON_ONLY[act]}</button>`
111
+ : `<button class="wl-btn${o.alt ? ' alt' : ''}${o.quiet ? ' quiet' : ''}" type="button" data-w="${act}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}${S.busy === o.busy ? ' aria-busy="true"' : ''}>${S.busy === o.busy && o.busyText ? spin(o.busyText) : (o.lead || '') + label}</button>`;
107
112
  const foot = (left, right) => `<div class="wl-foot"><div>${left}</div><div class="r">${right}</div></div>`;
108
113
  const err = () => (S.error ? `<p class="wl-err" role="alert">${esc(S.error)}</p>` : '');
109
114