create-pmos 0.640.0 → 0.642.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.640.0",
3
+ "version": "0.642.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -34,26 +34,26 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.640.0",
38
- "at": "2026-11-20T01:35:34.483Z",
37
+ "v": "0.642.0",
38
+ "at": "2026-11-20T01:43:00.385Z",
39
39
  "f": 4,
40
40
  "prs": [
41
41
  {
42
- "n": 1422,
43
- "t": "Events and Routine are drawn from the PMOS design system",
44
- "s": "Events and Routine are drawn from the PMOS design system",
42
+ "n": 1423,
43
+ "t": "Welcome, capture and the meeting pages on the PMOS design system",
44
+ "s": "Welcome, capture and the meeting pages on the PMOS design system",
45
45
  "k": "new"
46
46
  },
47
47
  {
48
- "n": 1424,
49
- "t": "Goals and Intelligence on the PMOS design system",
50
- "s": "Goals and Intelligence on the PMOS design system",
48
+ "n": 1420,
49
+ "t": "The rail of places is the design system's Navigation part",
50
+ "s": "The rail of places is the design system's Navigation part",
51
51
  "k": "new"
52
52
  },
53
53
  {
54
- "n": 1423,
55
- "t": "Welcome, capture and the meeting pages on the PMOS design system",
56
- "s": "Welcome, capture and the meeting pages on the PMOS design system",
54
+ "n": 1421,
55
+ "t": "Library, Present and the Viewer page on the PMOS design system",
56
+ "s": "Library, Present and the Viewer page on the PMOS design system",
57
57
  "k": "new"
58
58
  }
59
59
  ]
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@7215e7a9
1
+ kernel-source: pmos@43f49dbc
2
2
  assembled: 2026-11-20
3
3
  mode: vendor
@@ -2,11 +2,13 @@
2
2
  type: Reference
3
3
  title: "PMOS design system: Navigation"
4
4
  description: "The frame around every page: the rail (side menu; bottom bar on phones), the path at the top of the second panel, the sessions list in chat. The page you are on"
5
- timestamp: 2026-11-19
5
+ timestamp: 2026-11-20
6
6
  ---
7
7
 
8
8
  The frame around every page: the rail (side menu; bottom bar on phones), the path at the top of the second panel, the sessions list in chat. The page you are on carries the leaf ring.
9
9
 
10
+ Sizes: the rail is 72 px wide with 60 × 56 links. This is the default on desktop, so two panels and a table still fit at 1440 px. Add `roomy` (`pm-rail roomy`, 92 px with 76 × 64 links) only where there is space to spare, such as a tablet held upright. Both sizes keep the 44 px touch target.
11
+
10
12
  ## Interaction
11
13
 
12
14
  - Click or keys (`g` then `t` for Today, `g` then `w` for Work…) move between pages; the current one carries the leaf ring.
@@ -3,6 +3,6 @@
3
3
  <html>
4
4
  <head><meta charset="utf-8"><title>preview</title></head>
5
5
  <body>
6
- <div class="pm"><div style="display:flex;gap:12px"><nav class="pm-rail" aria-label="PMOS" style="width:72px"><a href="#" aria-current="page" style="width:60px"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v2M12 19v2M5 5l1.4 1.4M17.6 17.6L19 19M3 12h2M19 12h2M5 19l1.4-1.4M17.6 6.4L19 5M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z"/></svg>Today</a><a href="#" style="width:60px"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg>Work</a></nav><div style="flex:1;display:flex;flex-direction:column;gap:12px;min-width:0"><div><span class="pm-meta">Thursday 19 November · 21:46 · evening light</span><h2 style="margin:0;font-size:26px;line-height:32px">Good evening</h2></div><section class="pm-block"><h3 class="pm-h-sm pm-row"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg>Overview</h3><p style="margin:0">55 lines are open, 28 of them for today.</p><div class="pm-sug" role="group" aria-label="PMOS suggests"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span class="say">Drop the 2 checks due more than 60 days ago</span><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div></section><section class="pm-block list"><div class="head"><h3 class="pm-h">Today’s log</h3></div><div class="pm-group now">Do first</div><div class="rows"><div class="pm-li now"><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg></span><span class="txt"><span class="t">Tech blueprint approved</span><span class="w">for Tender new CIAM</span></span><span class="pm-badge alert" title="Due 29 Oct">21 days late</span></div></div><button class="pm-fold">Later <span style="font-weight:400">27 can wait</span></button></section></div><div style="width:230px;display:flex;flex-direction:column;gap:12px"><section class="pm-block flat"><h3 class="pm-h">Today</h3><div class="pm-ev"><b>CRSM 2.0 Sprint Planning</b><span class="pm-meta">14:00</span></div></section></div></div></div>
6
+ <div class="pm"><div style="display:flex;gap:12px"><nav class="pm-rail" aria-label="PMOS"><a href="#" aria-current="page"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v2M12 19v2M5 5l1.4 1.4M17.6 17.6L19 19M3 12h2M19 12h2M5 19l1.4-1.4M17.6 6.4L19 5M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z"/></svg>Today</a><a href="#"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg>Work</a></nav><div style="flex:1;display:flex;flex-direction:column;gap:12px;min-width:0"><div><span class="pm-meta">Thursday 19 November · 21:46 · evening light</span><h2 style="margin:0;font-size:26px;line-height:32px">Good evening</h2></div><section class="pm-block"><h3 class="pm-h-sm pm-row"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg>Overview</h3><p style="margin:0">55 lines are open, 28 of them for today.</p><div class="pm-sug" role="group" aria-label="PMOS suggests"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span class="say">Drop the 2 checks due more than 60 days ago</span><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div></section><section class="pm-block list"><div class="head"><h3 class="pm-h">Today’s log</h3></div><div class="pm-group now">Do first</div><div class="rows"><div class="pm-li now"><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg></span><span class="txt"><span class="t">Tech blueprint approved</span><span class="w">for Tender new CIAM</span></span><span class="pm-badge alert" title="Due 29 Oct">21 days late</span></div></div><button class="pm-fold">Later <span style="font-weight:400">27 can wait</span></button></section></div><div style="width:230px;display:flex;flex-direction:column;gap:12px"><section class="pm-block flat"><h3 class="pm-h">Today</h3><div class="pm-ev"><b>CRSM 2.0 Sprint Planning</b><span class="pm-meta">14:00</span></div></section></div></div></div>
7
7
  </body>
8
8
  </html>
@@ -83,9 +83,10 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
83
83
  .pm-doc h3{font-size:18px;line-height:24px;margin:0 0 4px}
84
84
  .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}
85
85
  .pm-set{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
86
- .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}
87
- .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}
86
+ .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}
87
+ .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}
88
88
  .pm-rail a[aria-current="page"]{background:var(--card);box-shadow:var(--glow)}
89
+ .pm-rail.roomy{width:92px}.pm-rail.roomy a{width:76px;height:64px}
89
90
  .pm-rail .pm-count{position:absolute;top:3px;right:5px}
90
91
  .pm-path{display:flex;align-items:center;gap:6px;font-size:13px}
91
92
  .pm-path a{color:var(--blue)}
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-20T01:35:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-11-20T01:35:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-11-20T01:35:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:42:57Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,25 +1,25 @@
1
1
  [
2
2
  {
3
- "v": "0.640.0",
4
- "at": "2026-11-20T01:35:34.483Z",
3
+ "v": "0.642.0",
4
+ "at": "2026-11-20T01:43:00.385Z",
5
5
  "f": 4,
6
6
  "prs": [
7
7
  {
8
- "n": 1422,
9
- "t": "Events and Routine are drawn from the PMOS design system",
10
- "s": "Events and Routine are drawn from the PMOS design system",
8
+ "n": 1423,
9
+ "t": "Welcome, capture and the meeting pages on the PMOS design system",
10
+ "s": "Welcome, capture and the meeting pages on the PMOS design system",
11
11
  "k": "new"
12
12
  },
13
13
  {
14
- "n": 1424,
15
- "t": "Goals and Intelligence on the PMOS design system",
16
- "s": "Goals and Intelligence on the PMOS design system",
14
+ "n": 1420,
15
+ "t": "The rail of places is the design system's Navigation part",
16
+ "s": "The rail of places is the design system's Navigation part",
17
17
  "k": "new"
18
18
  },
19
19
  {
20
- "n": 1423,
21
- "t": "Welcome, capture and the meeting pages on the PMOS design system",
22
- "s": "Welcome, capture and the meeting pages on the PMOS design system",
20
+ "n": 1421,
21
+ "t": "Library, Present and the Viewer page on the PMOS design system",
22
+ "s": "Library, Present and the Viewer page on the PMOS design system",
23
23
  "k": "new"
24
24
  }
25
25
  ]
@@ -2,11 +2,13 @@
2
2
  type: Reference
3
3
  title: "PMOS design system: Navigation"
4
4
  description: "The frame around every page: the rail (side menu; bottom bar on phones), the path at the top of the second panel, the sessions list in chat. The page you are on"
5
- timestamp: 2026-11-19
5
+ timestamp: 2026-11-20
6
6
  ---
7
7
 
8
8
  The frame around every page: the rail (side menu; bottom bar on phones), the path at the top of the second panel, the sessions list in chat. The page you are on carries the leaf ring.
9
9
 
10
+ Sizes: the rail is 72 px wide with 60 × 56 links. This is the default on desktop, so two panels and a table still fit at 1440 px. Add `roomy` (`pm-rail roomy`, 92 px with 76 × 64 links) only where there is space to spare, such as a tablet held upright. Both sizes keep the 44 px touch target.
11
+
10
12
  ## Interaction
11
13
 
12
14
  - Click or keys (`g` then `t` for Today, `g` then `w` for Work…) move between pages; the current one carries the leaf ring.
@@ -3,6 +3,6 @@
3
3
  <html>
4
4
  <head><meta charset="utf-8"><title>preview</title></head>
5
5
  <body>
6
- <div class="pm"><div style="display:flex;gap:12px"><nav class="pm-rail" aria-label="PMOS" style="width:72px"><a href="#" aria-current="page" style="width:60px"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v2M12 19v2M5 5l1.4 1.4M17.6 17.6L19 19M3 12h2M19 12h2M5 19l1.4-1.4M17.6 6.4L19 5M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z"/></svg>Today</a><a href="#" style="width:60px"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg>Work</a></nav><div style="flex:1;display:flex;flex-direction:column;gap:12px;min-width:0"><div><span class="pm-meta">Thursday 19 November · 21:46 · evening light</span><h2 style="margin:0;font-size:26px;line-height:32px">Good evening</h2></div><section class="pm-block"><h3 class="pm-h-sm pm-row"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg>Overview</h3><p style="margin:0">55 lines are open, 28 of them for today.</p><div class="pm-sug" role="group" aria-label="PMOS suggests"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span class="say">Drop the 2 checks due more than 60 days ago</span><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div></section><section class="pm-block list"><div class="head"><h3 class="pm-h">Today’s log</h3></div><div class="pm-group now">Do first</div><div class="rows"><div class="pm-li now"><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg></span><span class="txt"><span class="t">Tech blueprint approved</span><span class="w">for Tender new CIAM</span></span><span class="pm-badge alert" title="Due 29 Oct">21 days late</span></div></div><button class="pm-fold">Later <span style="font-weight:400">27 can wait</span></button></section></div><div style="width:230px;display:flex;flex-direction:column;gap:12px"><section class="pm-block flat"><h3 class="pm-h">Today</h3><div class="pm-ev"><b>CRSM 2.0 Sprint Planning</b><span class="pm-meta">14:00</span></div></section></div></div></div>
6
+ <div class="pm"><div style="display:flex;gap:12px"><nav class="pm-rail" aria-label="PMOS"><a href="#" aria-current="page"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v2M12 19v2M5 5l1.4 1.4M17.6 17.6L19 19M3 12h2M19 12h2M5 19l1.4-1.4M17.6 6.4L19 5M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z"/></svg>Today</a><a href="#"><svg class="pm-ic " width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg>Work</a></nav><div style="flex:1;display:flex;flex-direction:column;gap:12px;min-width:0"><div><span class="pm-meta">Thursday 19 November · 21:46 · evening light</span><h2 style="margin:0;font-size:26px;line-height:32px">Good evening</h2></div><section class="pm-block"><h3 class="pm-h-sm pm-row"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg>Overview</h3><p style="margin:0">55 lines are open, 28 of them for today.</p><div class="pm-sug" role="group" aria-label="PMOS suggests"><svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg><span class="say">Drop the 2 checks due more than 60 days ago</span><button type="button" class="pm-btn primary" aria-label="Yes" title="Yes"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button><button type="button" class="pm-btn outline" aria-label="No" title="No"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div></section><section class="pm-block list"><div class="head"><h3 class="pm-h">Today’s log</h3></div><div class="pm-group now">Do first</div><div class="rows"><div class="pm-li now"><span class="pm-meta" style="display:inline-flex"><svg class="pm-ic " width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5h14v14H5z"/></svg></span><span class="txt"><span class="t">Tech blueprint approved</span><span class="w">for Tender new CIAM</span></span><span class="pm-badge alert" title="Due 29 Oct">21 days late</span></div></div><button class="pm-fold">Later <span style="font-weight:400">27 can wait</span></button></section></div><div style="width:230px;display:flex;flex-direction:column;gap:12px"><section class="pm-block flat"><h3 class="pm-h">Today</h3><div class="pm-ev"><b>CRSM 2.0 Sprint Planning</b><span class="pm-meta">14:00</span></div></section></div></div></div>
7
7
  </body>
8
8
  </html>
@@ -83,9 +83,10 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
83
83
  .pm-doc h3{font-size:18px;line-height:24px;margin:0 0 4px}
84
84
  .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}
85
85
  .pm-set{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
86
- .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}
87
- .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}
86
+ .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}
87
+ .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}
88
88
  .pm-rail a[aria-current="page"]{background:var(--card);box-shadow:var(--glow)}
89
+ .pm-rail.roomy{width:92px}.pm-rail.roomy a{width:76px;height:64px}
89
90
  .pm-rail .pm-count{position:absolute;top:3px;right:5px}
90
91
  .pm-path{display:flex;align-items:center;gap:6px;font-size:13px}
91
92
  .pm-path a{color:var(--blue)}
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "What PMOS does behind the scenes, and what stays yours"
4
4
  description: "Every job PMOS runs by itself, what agents apply by themselves with Undo (D106), long-running goals, the team of role agents, the live round, the idle lab, and the PM-only acts."
5
- timestamp: 2026-11-18
5
+ timestamp: 2026-11-20
6
6
  ---
7
7
 
8
8
  # What PMOS does behind the scenes
@@ -259,7 +259,7 @@ To show a round to other people, press ⤢ (Present this round) in the compare v
259
259
  - In a full-screen frame, you can use the prototype. The arrow keys go to the next or the earlier frame.
260
260
  - To show all the frames again, press Esc or ⤡ in the corner. Esc works only when the focus is not in the prototype, so ⤡ is always there.
261
261
 
262
- On a phone, the frames show one under the other. Present mode keeps and drops nothing: go back to the compare view to do that.
262
+ On a phone, the frames show one under the other. Present mode keeps and drops nothing: go back to the compare view to do that. The tab is always dark, so the frames are the only light on the screen; each frame carries its key (A, B, C) at its lower left.
263
263
 
264
264
  ### Intelligence › Lab
265
265
 
@@ -31,7 +31,8 @@ On a computer, one thin panel at the left edge of every page holds the places. I
31
31
 
32
32
  - At its foot: the chat icon, **Search**, **Guide** and **Settings**.
33
33
  - A number on Today says how many lines of Today's log are for today (Do first and what waits today). It shows on every place. A number on the chat icon says how many sessions wait for you.
34
- - A blue dot on a place means that it has something new to show. An amber dot on Settings means that a source is stale.
34
+ - A blue dot on a place means that it has something new to show. A rust-coloured dot on Settings means that a source is stale.
35
+ - The place you are on has a green ring. The rail is the design system's Navigation part.
35
36
  - Settings opens over the page you are on. The navigation stays.
36
37
  - The navigation does not count as a panel.
37
38
  - The product choice is at the top left of Work and Goals. It is one choice for both. It shows the product's full name, "All products", or the first name and "+2".
@@ -88,6 +89,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
88
89
  - On a computer, work opens in the popup over the page, with Ask PMOS beside it. There is no setting for this: the popup is the one way.
89
90
  - Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
90
91
  - It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
92
+ - An item opened on its own page, with **Open in a new tab**, shows the Viewer card in the colours and type of the PMOS design system. When you close it, one line at the top links to Home.
91
93
  - One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
92
94
 
93
95
  ## Work and its chat, in one popup
@@ -169,6 +171,8 @@ A Jira date and the planned finish of an initiative get no ✓: PMOS cannot writ
169
171
  5. To add a file, a link or a new document, press **+**. Ask PMOS opens with "Add to Library" in the box. Say what to add; PMOS fills its kind, product and work and shows you the record.
170
172
  6. To open a thing, press its row. It opens in the popup with the chat about it. On a screen 1600 px or wider, the first press shows the record at the right: every field, the first lines, the files that link to it and its editions. Press again, press Enter or press the open button to open it. A link opens in a new browser tab.
171
173
 
174
+ The Library is drawn with the PMOS design system: the list is one table card, the row you picked is lit, and the record at the right is a card with its fields. On a phone the table shows the kind, the name and the day only. While the list loads, three soft lines stand in for it. When the list cannot be read, one line says why, with **Retry**.
175
+
172
176
  The notes of a held meeting look the same wherever you open them: a short summary, the decisions, the tasks that came out of it, and your notes. On the right, **The meeting** says when it was held, what it is about, who was there and what the notes were written from. Press a task to open its initiative. When some tasks are not in the initiative's Work breakdown, PMOS suggests adding them: press ✓ to add them, or ✕. Press the recording, or **Transcript and more**, for the replay, the transcript and the material.
173
177
 
174
178
  ## Goals
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.640.0",
3
+ "version": "0.642.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.640.0",
9
+ "version": "0.642.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.640.0",
3
+ "version": "0.642.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -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; }
@@ -1,125 +1,130 @@
1
- /* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2; board StLibrary). One container:
2
- * the white panel; the catalogue is one card with a thin border and set column widths (Name up to 560 px), so a wide screen does not stretch
3
- * the Name; at 1600 px and wider the record preview stands at its right. The filter chips are the product chip's shape (cozy-pick.css).
4
- * Colours are the cozy tokens (light and dark). */
1
+ /* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2), drawn with the PMOS design
2
+ * system (Komorebi, workspace/design-system/ui/; pm/komorebi.css). Layout Main + open item: the catalogue is a List block holding a Table
3
+ * (pm-block list + pm-table), the record at the right on a screen 1600 px or wider is a Detail block (pm-block + pm-field). This sheet
4
+ * holds only what the parts leave to the page: the column widths, where the blocks sit, and the narrow-screen columns. Colours, corners,
5
+ * space and shadow are the system's tokens (brand.css, komorebi.css), light and dark. The filter chips and their menus are the shared
6
+ * picker (cozy-pick.css), the same as the product, program and project chip beside them. */
5
7
  .lb-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
6
- .lb-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
7
- .lb-fl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
8
- .lb-chip.on, .lb-fl .scp-chip:not([aria-label$=": all"]) { background: var(--cz-bluebg); color: var(--cz-blueink); }
9
- .lb-chip .ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
10
- .lb-chip svg, .lb-ib svg, .lb-sg svg, .lb-s svg, .lb-fx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
11
- .lb-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 380px; max-width: 46vw; padding: 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); box-sizing: border-box; flex: none; }
12
- .lb-find svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
13
- .lb-find input { all: unset; flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); color: var(--cz-ink); }
14
- .lb-find input:focus, .lb-find input:focus-visible { outline: none; box-shadow: none; }
15
- .lb-find input::placeholder { color: var(--cz-ink3); }
8
+
9
+ /* the bar: filters, the search field (the Input part, with its icon inside), Group by and + */
10
+ .lb-bar { display: flex; align-items: center; gap: var(--space-8); min-height: 44px; }
11
+ .lb-fl { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; min-width: 0; }
12
+ .lb-chip.on, .lb-fl .scp-chip:not([aria-label$=": all"]) { background: var(--blue-tint); color: var(--blue); }
13
+ .lb-chip .ppk-nmc em { font-style: normal; color: var(--muted); }
14
+ .lb-chip .pm-ic { width: 14px; height: 14px; }
15
+ .lb-find { margin-left: auto; display: flex; align-items: center; gap: var(--space-8); height: 40px; width: 380px; max-width: 46vw; padding: 0 var(--space-12); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--muted); flex: none; }
16
+ .lb-find input { all: unset; flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); color: var(--ink); }
17
+ .lb-find input::placeholder { color: var(--muted); }
16
18
  .lb-find input::-webkit-search-cancel-button { cursor: pointer; }
17
- .lb-find:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
18
- .lb-tune svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
19
- .lb-hid { margin: 8px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
19
+ .lb-find:focus-within { box-shadow: var(--glow); }
20
+ .lb-hid { margin: var(--space-8) var(--space-4) 0; }
20
21
  .lb-hid:empty { display: none; }
21
- .lb-hid button { all: unset; cursor: pointer; color: var(--cz-blueink); font-weight: var(--fw-strong); }
22
- .lb-hid button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
22
+ .lb-hid button, .lb-retry { all: unset; cursor: pointer; color: var(--blue); font-weight: var(--fw-strong); }
23
+ .lb-hid button:focus-visible, .lb-retry:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
24
+
25
+ /* Main + open item */
26
+ .lb-wrap { display: flex; align-items: flex-start; gap: var(--space-16); margin-top: var(--space-12); }
27
+ .lb-main { flex: 1 1 auto; min-width: 0; max-width: 1400px; display: flex; flex-direction: column; gap: var(--space-16); }
28
+ #lbBody { display: flex; flex-direction: column; gap: var(--space-16); }
23
29
 
24
- /* the catalogue: set column widths */
25
- .lb-wrap { display: flex; align-items: flex-start; gap: 20px; margin-top: 12px; }
26
- .lb-main { flex: 0 1 auto; min-width: 0; max-width: 100%; }
27
- .lb-t { width: fit-content; max-width: 100%; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
28
- .lb-r { --lb-cols: 28px minmax(220px, 560px) 140px 130px minmax(120px, 230px) 110px 96px 76px;
29
- display: grid; grid-template-columns: var(--lb-cols); align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); box-sizing: border-box; }
30
- .lb-r:last-child { box-shadow: none; }
30
+ /* the catalogue: a Table inside a List block, with set column widths so a wide screen does not stretch the Name past reading */
31
+ .lb-t { table-layout: fixed; }
32
+ .lb-t th, .lb-t td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
33
+ .lb-t thead th { background: var(--well); }
34
+ .lb-t thead th:nth-child(1) { width: 40px; }
35
+ .lb-t thead th:nth-child(3) { width: 140px; }
36
+ .lb-t thead th:nth-child(4) { width: 130px; }
37
+ .lb-t thead th:nth-child(5) { width: 220px; }
38
+ .lb-t thead th:nth-child(6) { width: 110px; }
39
+ .lb-t thead th:nth-child(7) { width: 100px; }
40
+ .lb-t thead th:nth-child(8) { width: 88px; }
41
+ .lb-t tr:last-child td { border-bottom: 0; }
31
42
  .lb-i { cursor: pointer; }
32
- .lb-i:hover { background: var(--cz-well); }
33
- .lb-i.on { background: var(--cz-bluebg); }
34
- .lb-i.sub .n { padding-left: 18px; }
35
- .lb-i.sub .n .lb-nb { font-weight: var(--fw-regular); }
36
- .lb-h { min-height: 38px; background: var(--cz-well2, var(--cz-well)); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); }
37
- .lb-g { min-height: 34px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); background: var(--cz-well); }
38
- .lb-g > * { grid-column: 1 / -1; }
39
- .lb-g em, .lb-s em { font-style: normal; font-weight: var(--fw-regular); margin-left: 6px; }
40
- .lb-s { background: var(--cz-card); }
41
- .lb-s button { all: unset; grid-column: 1 / -1; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--cz-ink2); font-size: var(--fs-body); }
42
- .lb-s button b { font-weight: var(--fw-strong); color: var(--cz-ink); }
43
- .lb-s button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 6px; }
44
- .lb-r .ic { color: var(--cz-ink3); display: grid; place-items: center; }
45
- .lb-r .ic svg, .lb-mr .ic svg, .lb-pvh .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
46
- .lb-r .n { display: flex; align-items: center; gap: 6px; min-width: 0; }
47
- .lb-nb { all: unset; cursor: pointer; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
48
- .lb-nb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
49
- .lb-old { all: unset; cursor: pointer; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
50
- .lb-old[aria-expanded="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
51
- .lb-ib { all: unset; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--cz-ink3); }
52
- .lb-ib:hover { background: var(--cz-well); color: var(--cz-ink); }
53
- .lb-ib:focus-visible, .lb-old:focus-visible, .lb-sg:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
54
- .lb-sp { color: var(--cz-blueink); width: 22px; height: 22px; }
55
- .lb-nm input { all: unset; flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--cz-well); box-shadow: inset 0 0 0 1px var(--cz-hair); font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--cz-ink); }
56
- .lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--cz-blueink); }
43
+ .lb-i .c { color: var(--muted); }
44
+ .lb-i td.ic { color: var(--muted); }
45
+ .lb-i td.ic .pm-ic { display: block; }
46
+ .lb-i.sub .lb-nw { padding-left: var(--space-16); }
47
+ .lb-i.sub .lb-nb { font-weight: var(--fw-regular); }
48
+ .lb-t .lb-g th { padding: 0; border-bottom: 1px solid var(--line); }
49
+ .lb-g .pm-group em { font-style: normal; font-weight: var(--fw-regular); }
50
+ .lb-s .pm-group { width: 100%; border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); cursor: pointer; text-align: left; }
51
+ .lb-s .pm-group b { color: var(--ink); }
52
+ .lb-s .pm-group:focus-visible { outline: none; box-shadow: var(--glow); }
53
+ .lb-s .pm-group .pm-ic { width: 14px; height: 14px; }
54
+ .lb-nw { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
55
+ .lb-nb { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
56
+ .lb-nb:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
57
+ .lb-old { border: 0; flex: none; cursor: pointer; font: inherit; font-size: var(--fs-meta); color: var(--muted); }
58
+ .lb-old[aria-expanded="true"] { background: var(--blue-tint); color: var(--blue); }
59
+ .lb-old:focus-visible { outline: none; box-shadow: var(--glow); }
60
+ .lb-nw .lb-sp { color: var(--blue); width: 28px; height: 28px; }
61
+ .lb-nm .pm-row { flex-wrap: nowrap; }
62
+ .lb-nm .pm-input { height: 32px; font-weight: var(--fw-strong); }
63
+ .lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-4); max-width: 100%; color: var(--blue); }
57
64
  .lb-sg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
58
- .lb-r .c { color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
59
- .lb-r .c.q { color: var(--cz-ink3); }
60
- .lb-n { margin: 8px 6px 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
61
- .lb-sk .lb-r i { display: block; height: 10px; border-radius: 6px; background: var(--cz-well); width: 70%; }
62
- .lb-none { padding: 28px 18px; color: var(--cz-ink3); font-size: var(--fs-body); }
65
+ .lb-sg:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
66
+ .lb-n { margin: 0 var(--space-4); }
67
+ .lb-none { margin: 0; padding: var(--space-24) var(--space-16); }
68
+
69
+ /* loading: three soft placeholder rows, no spinner */
70
+ .lb-blk.lb-sk .rows { padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); }
71
+ .lb-sk i { display: block; height: 12px; border-radius: var(--radius-sm); background: var(--well); width: 70%; }
72
+ .lb-sk i:nth-child(2) { width: 55%; }
73
+ .lb-sk i:nth-child(3) { width: 62%; }
63
74
 
64
- /* search by meaning: under the title matches */
65
- .lb-mh { margin: 22px 4px 4px; font-size: var(--fs-section); font-weight: var(--fw-strong); color: var(--cz-ink); line-height: var(--lh-section); }
66
- .lb-mh em { font-style: normal; color: var(--cz-ink3); font-weight: var(--fw-regular); margin-left: 4px; }
67
- .lb-mq { margin: 6px 4px; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
68
- .lb-m { width: min(100%, 980px); }
69
- .lb-mr { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 12px 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); cursor: pointer; }
70
- .lb-mr:last-child { box-shadow: none; }
71
- .lb-mr:hover { background: var(--cz-well); }
72
- .lb-mr .ic { color: var(--cz-ink3); padding-top: 2px; }
73
- .lb-mr small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
74
- .lb-mr p { margin: 4px 0 0; color: var(--cz-ink2); line-height: var(--lh-body); }
75
- .lb-mr p b { color: var(--cz-ink); font-weight: var(--fw-strong); }
75
+ /* search by meaning: a List block under the title matches, each row with its passage and the idea in bold */
76
+ .lb-m .lb-mq { margin: 0 var(--space-16) var(--space-8); }
77
+ .lb-m .lb-mr { align-items: flex-start; padding-top: var(--space-8); padding-bottom: var(--space-8); cursor: pointer; }
78
+ .lb-mr .lb-nb { display: block; }
79
+ .lb-mi { display: inline-flex; padding-top: 2px; }
80
+ .lb-ps { margin-top: var(--space-4); white-space: normal; color: var(--ink); }
81
+ .lb-ps b { font-weight: var(--fw-strong); }
82
+ .lb-mq { margin: 0 var(--space-4); }
76
83
 
77
- /* the menus: Kind (families open to their kinds), State, Group by */
84
+ /* the menus: Kind (families open to their kinds), State, Group by (the Tabs part) */
78
85
  .lb-cw { position: relative; display: inline-flex; flex: none; }
79
86
  .lb-menu { position: absolute; left: 0; top: calc(100% + 8px); }
80
87
  .lb-cwr .lb-menu { left: auto; right: 0; }
81
88
  .lb-menu .ppk-mi { min-height: 44px; }
82
- .lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap: 8px; }
89
+ .lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap: var(--space-8); }
83
90
  .lb-menu .ppk-nm em { font-weight: var(--fw-regular); }
91
+ .lb-menu .ppk-tk .pm-ic { width: 14px; height: 14px; }
84
92
  .lb-fam { display: flex; align-items: center; }
85
93
  .lb-fam .ppk-mi { flex: 1; }
86
- .lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--cz-ink3); }
87
- .lb-fx:hover, .lb-fx:focus-visible { background: var(--cz-well); }
94
+ .lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--muted); }
95
+ .lb-fx:hover, .lb-fx:focus-visible { background: var(--well); }
88
96
  .lb-kmi { padding-left: 26px; }
89
- .lb-pl { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
90
- .lb-pl button { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--cz-ink2); background: var(--cz-well); }
91
- .lb-pl button.on { background: var(--cz-ink); color: var(--cz-card); font-weight: var(--fw-strong); }
92
- .lb-pl button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
93
- .lb-gm { width: 300px; }
97
+ .lb-pl { margin: var(--space-4) var(--space-8) var(--space-8); flex-wrap: wrap; }
98
+ .lb-pl .pm-tab[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--raise); }
99
+ .lb-pl .pm-tab:focus-visible { outline: none; box-shadow: var(--glow); }
100
+ .lb-gm { width: 320px; }
94
101
 
95
- /* the record preview: 1600 px and wider */
96
- .lb-pv { flex: 0 0 360px; position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink); font-size: var(--fs-body); }
102
+ /* the open item: a Detail block, 1600 px and wider */
103
+ .lb-pv { flex: 0 0 360px; position: sticky; top: var(--space-12); max-height: calc(100vh - 120px); overflow: auto; }
97
104
  .lb-pv[hidden] { display: none; }
98
- .lb-pvh { display: flex; align-items: flex-start; gap: 8px; }
99
- .lb-pvh .ic { color: var(--cz-ink3); padding-top: 3px; }
100
- .lb-pvh h2 { flex: 1; margin: 0; font-size: var(--fs-panel); font-weight: var(--fw-strong); line-height: var(--lh-panel); }
101
- .lb-pv dl { margin: 12px 0 0; display: grid; gap: 6px; }
102
- .lb-pv dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
103
- .lb-pv dt { color: var(--cz-ink3); font-size: var(--fs-meta); line-height: var(--lh-body); }
104
- .lb-pv dd { margin: 0; color: var(--cz-ink); overflow-wrap: anywhere; }
105
- .lb-pv h3 { margin: 16px 0 6px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); }
106
- .lb-pvl p { margin: 0 0 6px; color: var(--cz-ink2); line-height: var(--lh-body); }
107
- .lb-pv ul { margin: 0; padding-left: 18px; color: var(--cz-ink2); }
108
- .lb-pv li { margin: 0 0 4px; }
105
+ .lb-pv.pm-block .head { align-items: flex-start; }
106
+ .lb-pv .head .pm-h { flex: 1; min-width: 0; overflow-wrap: anywhere; }
107
+ .lb-pv .pm-field { margin: 0; }
108
+ .lb-pv .pm-field dd { overflow-wrap: anywhere; }
109
+ .lb-pv .pm-h-sm { margin-top: var(--space-4); }
110
+ .lb-pvl p { margin: 0 0 var(--space-4); font-size: var(--fs-meta); line-height: var(--lh-meta); }
111
+ .lb-pv ul { margin: 0; padding-left: 18px; font-size: var(--fs-meta); }
112
+ .lb-pv li { margin: 0 0 var(--space-4); }
109
113
  .lb-pv li .lb-nb { font-weight: var(--fw-regular); white-space: normal; }
110
- .lb-pv small { color: var(--cz-ink3); font-size: var(--fs-meta); }
111
114
  @media (max-width: 1599px) { .lb-pv { display: none; } }
112
115
 
116
+ /* fewer columns: the table sizes itself (a hidden column cannot keep a set width), and the Name takes what is left */
113
117
  @media (max-width: 1180px) {
114
- .lb-r { --lb-cols: 28px minmax(180px, 1fr) 120px 110px minmax(100px, 170px) 76px; }
115
- .lb-r > :nth-child(6), .lb-r > :nth-child(7) { display: none; }
118
+ .lb-t { table-layout: auto; }
119
+ .lb-t td.n { width: 100%; max-width: 0; }
120
+ .lb-t td.c { max-width: 160px; }
121
+ .lb-t tr > :nth-child(6), .lb-t tr > :nth-child(7) { display: none; }
116
122
  }
123
+ /* a phone: the Table becomes a List (the kind, the name, the day) */
117
124
  @media (max-width: 760px) {
118
125
  .lb-bar { flex-wrap: wrap; }
119
126
  .lb-fl { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
120
127
  .lb-find { order: 3; width: 100%; max-width: none; margin-left: 0; }
121
- .lb-t { width: 100%; }
122
- .lb-r { --lb-cols: 24px minmax(0, 1fr) 72px; }
123
- .lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: 28px 28px 0 0; padding: 18px 12px 28px; }
124
- .lb-r > :nth-child(n+3):not(:last-child) { display: none; }
128
+ .lb-t tr > :nth-child(n+3):not(:last-child):not([colspan]) { display: none; }
129
+ .lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding: 18px 12px 28px; }
125
130
  }
@@ -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,33 +1,34 @@
1
- /* pm/cozy-present.css — present mode (premium-present.html, cozy-present.js; live round W3). A dark ground to the edge, like the audience
2
- * tab: the frames are the only light on the screen. Type from the role tokens; colours from the cozy tokens. */
3
- body.cz.prs-page { margin: 0; min-height: 100vh; background: var(--cz-c-17191c); color: var(--cz-c-eceef1); }
4
- .prs { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 16px 24px 24px; box-sizing: border-box; gap: 12px; }
5
- .prs-hd { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
6
- .prs-title { margin: 0; font-size: var(--fs-page); line-height: var(--lh-page); font-weight: var(--fw-page); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
7
- .prs-round { flex: none; font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: var(--fw-meta); color: var(--cz-c-9ea4ad); }
8
- .prs-strip { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
9
- .prs-fr { position: relative; min-width: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: var(--cz-c-ffffff); }
1
+ /* pm/cozy-present.css — present mode (premium-present.html, cozy-present.js; live round W3), drawn with the PMOS design system (Komorebi:
2
+ * pm/komorebi.css) in its Dark theme. A dark ground to the edge, like the audience tab: the frames are the only light on the screen. Each
3
+ * frame is a Stage block (pm-stage), its key a Kbd badge (pm-kbd), the back press the Button part (pm-btn). Colours, corners, space and
4
+ * shadow are the system's tokens; type from the role tokens. */
5
+ body.cz.prs-page { margin: 0; min-height: 100vh; background: var(--ground-night); color: var(--ink); }
6
+ .prs { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: var(--space-16) var(--space-24) var(--space-24); gap: var(--space-12); }
7
+ .prs-hd { display: flex; align-items: baseline; gap: var(--space-12); min-width: 0; }
8
+ .prs-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
9
+ .prs-round { flex: none; }
10
+ .prs-strip { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--space-16); }
11
+ /* a Stage that fills its share of the screen instead of keeping 16:9; the specimen inside is a page on paper, so the frame stays white */
12
+ .prs-strip .prs-fr { display: block; position: relative; aspect-ratio: auto; min-width: 0; min-height: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--cz-c-ffffff); box-shadow: var(--raise); }
13
+ .prs-strip .prs-fr[hidden] { display: none; }
10
14
  .prs-fr iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--cz-c-ffffff); }
11
15
  .prs-tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
12
- .prs-tap:focus-visible, .prs-back:focus-visible { outline: 3px solid var(--cz-c-6aaaf0); outline-offset: -3px; }
13
- .prs-key { position: absolute; left: 12px; bottom: 12px; min-width: 28px; height: 28px; padding: 0 8px; box-sizing: border-box; border-radius: 14px;
14
- display: inline-flex; align-items: center; justify-content: center; pointer-events: none;
15
- font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); background: var(--cz-c-17191c); color: var(--cz-c-eceef1); opacity: .85; }
16
- .prs-none { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--cz-c-9ea4ad); }
16
+ .prs-tap:focus-visible { outline: none; box-shadow: inset var(--glow); }
17
+ .prs-fr .prs-key { position: absolute; left: var(--space-12); bottom: var(--space-12); pointer-events: none; background: var(--ground-night); color: var(--ink); border-color: var(--line); opacity: .85; }
18
+ .prs-none { margin: 0; }
17
19
  /* one frame fills the screen: the header goes, the frame takes the whole page */
18
20
  .prs:not([data-full=""]) { padding: 0; gap: 0; }
19
21
  .prs:not([data-full=""]) .prs-hd { display: none; }
20
22
  .prs:not([data-full=""]) .prs-strip { display: block; }
21
- .prs-fr.full { width: 100%; height: 100%; border-radius: 0; }
22
- .prs-back { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
23
- background: var(--cz-c-17191c); color: var(--cz-c-eceef1); opacity: .8; cursor: zoom-out; }
24
- .prs-back:hover { opacity: 1; }
23
+ .prs-strip .prs-fr.full { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
24
+ .prs-fr .prs-back { position: absolute; top: var(--space-12); right: var(--space-12); width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--ground-night); color: var(--ink); opacity: .8; cursor: zoom-out; }
25
+ .prs-fr .prs-back:hover { opacity: 1; background: var(--ground-night); }
25
26
  /* a phone: the frames stack, each tall enough to read, and the page scrolls */
26
27
  @media (max-width: 640px) {
27
- .prs { height: auto; min-height: 100dvh; padding: 12px 16px 16px; }
28
- .prs-title { font-size: var(--fs-panel); line-height: var(--lh-panel); }
28
+ .prs { height: auto; min-height: 100dvh; padding: var(--space-12) var(--space-16) var(--space-16); }
29
+ .prs-hd .prs-title { font-size: var(--fs-panel); line-height: var(--lh-panel); }
29
30
  .prs-strip { grid-template-columns: minmax(0, 1fr); }
30
- .prs-fr { height: 78dvh; }
31
+ .prs-strip .prs-fr { height: 78dvh; }
31
32
  .prs:not([data-full=""]) { height: 100dvh; }
32
- .prs-fr.full { height: 100dvh; }
33
+ .prs-strip .prs-fr.full { height: 100dvh; }
33
34
  }
@@ -1,5 +1,6 @@
1
1
  /* pm/cozy-present.js — present mode (live round W3, initiative live-round-present; premium-present.html at GET /pm/present?ws&board&id).
2
2
  *
3
+ * Drawn with the PMOS design system (pm-ds, Dark theme): each frame is a Stage block, the key a Kbd badge, the back press a Button.
3
4
  * A prototype round on a shared screen: its frames side by side (A, B, C of a first round, or the one file of a later round), the
4
5
  * initiative title and the round number. Nothing else: no keep or drop, no History, no nav, no Adler. It reads GET /api/lab/present and
5
6
  * loads every frame from GET /api/lab/specimen in a sandboxed frame (allow-scripts only: a specimen cannot reach PMOS).
@@ -13,7 +14,7 @@
13
14
  import { pmGet } from './http.js';
14
15
 
15
16
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
16
- const BACK = '<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"/></svg>';
17
+ const BACK = '<svg class="pm-ic" aria-hidden="true" viewBox="0 0 24 24"><path d="M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"/></svg>';
17
18
 
18
19
  /** The key map. n: how many frames. Digits 1..n and letters a.. pick a frame; Esc goes back; arrows step (in full screen only). */
19
20
  export function keyOf(e, n, full) {
@@ -32,11 +33,11 @@ export function stripHtml(v, full) {
32
33
  return v.frames.map((f, i) => {
33
34
  const on = full === i, off = full != null && !on;
34
35
  const label = (f.key || String(i + 1)) + (f.title ? ', ' + f.title : '');
35
- return `<section class="prs-fr${on ? ' full' : ''}"${off ? ' hidden' : ''} aria-label="${esc(label)}">`
36
+ return `<section class="pm-stage prs-fr${on ? ' full' : ''}"${off ? ' hidden' : ''} aria-label="${esc(label)}">`
36
37
  + `<iframe src="${esc(f.url)}" sandbox="allow-scripts" title="${esc(label)}" tabindex="${on ? 0 : -1}"></iframe>`
37
- + (on ? `<button type="button" class="prs-back" data-prs-back aria-label="Back to all frames">${BACK}</button>`
38
+ + (on ? `<button type="button" class="pm-btn prs-back" data-prs-back aria-label="Back to all frames">${BACK}</button>`
38
39
  : `<button type="button" class="prs-tap" data-prs-go="${i}" aria-label="${esc('Fill the screen with ' + label)}"></button>`)
39
- + (f.key ? `<span class="prs-key" aria-hidden="true">${esc(f.key)}</span>` : '')
40
+ + (f.key ? `<span class="pm-kbd prs-key" aria-hidden="true">${esc(f.key)}</span>` : '')
40
41
  + '</section>';
41
42
  }).join('');
42
43
  }
@@ -55,7 +56,7 @@ function go(i) { if (!S.v) return; S.full = i == null ? null : (i + S.v.frames.l
55
56
  async function boot() {
56
57
  const q = new URLSearchParams(location.search);
57
58
  const r = await pmGet('/api/lab/present?ws=' + encodeURIComponent(q.get('ws') || '') + '&board=' + encodeURIComponent(q.get('board') || '') + '&id=' + encodeURIComponent(q.get('id') || ''));
58
- if (!r || r.ok === false || !r.present) { $('prsStrip').innerHTML = `<p class="prs-none">${esc((r && r.error) || 'The prototype could not be read.')}</p>`; return; }
59
+ if (!r || r.ok === false || !r.present) { $('prsStrip').innerHTML = `<p class="pm-meta prs-none">${esc((r && r.error) || 'The prototype could not be read.')}</p>`; return; }
59
60
  S.v = r.present;
60
61
  $('prsTitle').textContent = S.v.title;
61
62
  $('prsRound').textContent = 'Round ' + S.v.round;
@@ -323,12 +323,33 @@
323
323
  }
324
324
  @media print { .vz-pop, .vz-tb { display: none; } }
325
325
 
326
- /* ── /premium-viewer.html: the Viewer card as the page ── */
326
+ /* ── /premium-viewer.html: the Viewer card as the page, on the PMOS design system (pm-ds on the body; brand.css, charts.css, komorebi.css).
327
+ * The card's parts are shared with every page that opens the Viewer, so here they keep their shapes and take the system's tokens: inside
328
+ * the host the cozy and premium colour names point at the brand's (ink, muted, card, well, line, blue, alert), the face is the brand's,
329
+ * and the card's shadow is the system's raise. A page without pm-ds is not touched. ── */
327
330
  body.vz-solo { min-height: 100vh; }
328
- .vz-host { display: flex; justify-content: center; padding: 16px; height: 100vh; box-sizing: border-box; }
331
+ .vz-host { display: flex; justify-content: center; padding: var(--space-16, 16px); height: 100vh; box-sizing: border-box; }
329
332
  .vz-host > .cz-vw { flex: 0 1 500px; width: 500px; } /* the design's card: flex 0 0 500px */
330
333
  .vz-gone { margin: 0; padding: 48px 16px; text-align: center; font: var(--fs-body)/1.5 var(--cz-sans); color: var(--cz-ink2); }
331
334
  .vz-gone a { color: var(--cz-blueink); }
335
+ .pm-ds .vz-host {
336
+ --cz-ink: var(--ink); --cz-ink2: var(--ink); --cz-ink3: var(--muted); --cz-card: var(--card); --cz-well: var(--well); --cz-well2: var(--well);
337
+ --cz-hair: var(--line); --cz-blue: var(--blue); --cz-blueink: var(--blue); --cz-bluebg: var(--blue-tint); --cz-solid: var(--blue); --cz-onsolid: var(--on-blue);
338
+ --cz-late: var(--alert); --cz-latebg: var(--alert-tint); --cz-red: var(--alert); --cz-redbg: var(--alert-tint);
339
+ --cz-sans: var(--font-sans); --cz-mono: var(--font-mono);
340
+ }
341
+ body.pm-ds .vz-host .cz-vw {
342
+ --ink: inherit; --card: inherit; --well: inherit; /* the brand's own, not the premium copy cozy-viewer.css writes on the card */
343
+ --ink-2: var(--ink); --ink-3: var(--muted); --card-solid: var(--card); --hair: var(--line); --b3: var(--line);
344
+ --ember: var(--blue); --ember-ink: var(--blue); --solid: var(--blue); --on-solid: var(--on-blue); --spot: var(--blue-tint);
345
+ --bad: var(--alert); --live: var(--alert); --live-bg: var(--alert-tint);
346
+ --glass: var(--card); --glass-edge: var(--line); --card-shadow: var(--raise); --glass-shadow: var(--lift); --sans: var(--font-sans);
347
+ border-radius: var(--radius-panel); box-shadow: var(--raise);
348
+ }
349
+ /* nothing open: the host gives way, so the line that links to Home stands at the top instead of under a screen of empty space */
350
+ .pm-ds .vz-host:not(:has(> .cz-vw:not([hidden]))) { height: auto; padding: 0; }
351
+ .pm-ds .vz-gone { font: inherit; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
352
+ .pm-ds .vz-gone a { color: var(--blue); font-weight: var(--fw-strong); }
332
353
 
333
354
  /* ── the report panel: desktop-only and phone-only controls, the editor host ── */
334
355
  .vz-pho { display: none; }
@@ -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)}
@@ -25,7 +25,7 @@ import { COLUMNS, FAMILIES, GROUPS, STATES, view, counts, passes, matches, about
25
25
  import { openItem } from './library-open.js';
26
26
 
27
27
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
28
- const svg = (d, cls = '') => `<svg viewBox="0 0 24 24" aria-hidden="true"${cls ? ` class="${cls}"` : ''}><path d="${d}"/></svg>`;
28
+ const svg = (d, cls = '') => `<svg class="pm-ic${cls ? ' ' + cls : ''}" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
29
29
  const ICON = {
30
30
  doc: 'M7 4h7l4 4v12H7zM14 4v4h4',
31
31
  link: 'M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1',
@@ -169,57 +169,58 @@ function statePress(b) {
169
169
  remember(); drawFilters(); draw();
170
170
  return b.dataset.ls ? `[data-ls="${b.dataset.ls}"]` : null;
171
171
  }
172
- const groupMenu = () => `<p class="scp-h" role="presentation">Group by</p><div class="lb-pl" role="radiogroup" aria-label="Group by">${GROUPS.map(([k, n]) => `<button type="button" role="radio" aria-checked="${k === S.group}" class="${k === S.group ? 'on' : ''}" data-lg="${k}">${esc(n)}</button>`).join('')}</div>`;
172
+ const groupMenu = () => `<p class="scp-h" role="presentation">Group by</p><div class="pm-tabs lb-pl" role="radiogroup" aria-label="Group by">${GROUPS.map(([k, n]) => `<button type="button" role="radio" aria-checked="${k === S.group}" class="pm-tab" data-lg="${k}">${esc(n)}</button>`).join('')}</div>`;
173
173
  function groupPress(b) { if (!b.dataset.lg) return false; S.group = b.dataset.lg; remember(); draw(); return `[data-lg="${S.group}"]`; }
174
174
 
175
175
  /* ── the table ── */
176
- const head = () => `<div class="lb-r lb-h" role="row"><span role="columnheader"><span class="vh">Kind of item</span></span>${COLUMNS.map((c) => `<span role="columnheader">${c}</span>`).join('')}</div>`;
176
+ const head = () => `<thead><tr><th scope="col" class="ic"><span class="vh">Kind of item</span></th>${COLUMNS.map((c) => `<th scope="col">${c}</th>`).join('')}</tr></thead>`;
177
+ const SPAN = COLUMNS.length + 1;
177
178
  function nameCell(x, extra = '') {
178
179
  if (S.naming === x.id) {
179
- return `<span class="n lb-nm" role="cell"><input id="lbNameIn" value="${esc(x.name)}" aria-label="The note's name" maxlength="120" />`
180
- + `<button type="button" class="lb-ib" data-lb-name-ok aria-label="Keep this name" title="Keep this name">${svg(TICK)}</button>`
181
- + `<button type="button" class="lb-ib" data-lb-name-no aria-label="Cancel" title="Cancel">${svg(X)}</button></span>`;
180
+ return `<td class="n lb-nm"><span class="pm-row"><input class="pm-input" id="lbNameIn" value="${esc(x.name)}" aria-label="The note's name" maxlength="120" />`
181
+ + `<button type="button" class="pm-btn" data-lb-name-ok aria-label="Keep this name" title="Keep this name">${svg(TICK)}</button>`
182
+ + `<button type="button" class="pm-btn" data-lb-name-no aria-label="Cancel" title="Cancel">${svg(X)}</button></span></td>`;
182
183
  }
183
- const spark = x.named ? `<button type="button" class="lb-ib lb-sp" data-lb-name="${esc(x.id)}" aria-label="PMOS named this note. Keep the name or rename it" title="PMOS named this note: keep or rename">${svg(SPARK)}</button>` : '';
184
- return `<span class="n" role="cell"><button type="button" class="lb-nb" data-lb-open>${esc(x.name)}</button>${spark}${extra}</span>`;
184
+ const spark = x.named ? `<button type="button" class="pm-btn pm-star lb-sp" data-lb-name="${esc(x.id)}" aria-label="PMOS named this note. Keep the name or rename it" title="PMOS named this note: keep or rename">${svg(SPARK)}</button>` : '';
185
+ return `<td class="n"><span class="lb-nw"><button type="button" class="lb-nb" data-lb-open>${esc(x.name)}</button>${spark}${extra}</span></td>`;
185
186
  }
186
187
  function aboutCell(x) {
187
188
  const a = aboutText(x);
188
189
  if (!a && x.kind === 'meeting' && x.suggest) {
189
- return `<span class="c" role="cell"><button type="button" class="lb-sg" data-lb-link="${esc(x.id)}" title="PMOS suggests: this note is about ${esc(x.suggest.title)}. Press to link it">${svg(SPARK)}<span>${esc(x.suggest.title)}</span></button></span>`;
190
+ return `<td class="c"><button type="button" class="lb-sg" data-lb-link="${esc(x.id)}" title="PMOS suggests: this note is about ${esc(x.suggest.title)}. Press to link it">${svg(SPARK, 'pm-star')}<span>${esc(x.suggest.title)}</span></button></td>`;
190
191
  }
191
- return `<span class="c" role="cell" title="${esc(a)}">${esc(a)}</span>`;
192
+ return `<td class="c" title="${esc(a)}">${esc(a)}</td>`;
192
193
  }
193
194
  function rowHtml(r, i, sub = false, shelf = '') {
194
195
  const x = r.x;
195
196
  // on a Work shelf, a name that only repeats the shelf's says its Kind instead, and About (which the shelf already says) is quiet
196
197
  const same = !!shelf && (bare(x.name) === bare(shelf) || (bare(shelf).length >= 4 && bare(x.name).startsWith(bare(shelf))));
197
- const older = r.older && r.older.length ? `<button type="button" class="lb-old" data-lb-ed="${esc(x.id)}" aria-expanded="${S.ed.has(x.id)}">${r.older.length} earlier</button>` : '';
198
+ const older = r.older && r.older.length ? `<button type="button" class="pm-chip lb-old" data-lb-ed="${esc(x.id)}" aria-expanded="${S.ed.has(x.id)}">${r.older.length} earlier</button>` : '';
198
199
  const label = `${x.name}${x.state ? ', ' + x.state : ''}. ${x.kindText}${aboutText(x) ? '. About ' + aboutText(x) : ''}${x.open && x.open.url ? '. Opens in a new tab' : ''}`;
199
- return `<div class="lb-r lb-i${sub ? ' sub' : ''}${S.pick === x.id ? ' on' : ''}" role="row" data-lb-i="${i}" aria-label="${esc(label)}">`
200
- + `<span class="ic" role="cell">${svg(ICON[x.kind] || ICON.doc)}</span>${nameCell(same ? { ...x, name: x.kindText } : x, older)}`
201
- + `<span class="c" role="cell">${same ? '' : esc(x.kindText)}</span><span class="c" role="cell">${esc(x.product || '')}</span>${shelf ? '<span class="c" role="cell"></span>' : aboutCell(x)}`
202
- + `<span class="c" role="cell">${esc(x.by || '')}</span><span class="c q" role="cell">${esc(stateText(r))}</span>`
203
- + `<span class="c" role="cell">${esc(dayText(when(x)))}</span></div>`;
200
+ return `<tr class="lb-i${sub ? ' sub' : ''}${S.pick === x.id ? ' sel' : ''}" data-lb-i="${i}" aria-label="${esc(label)}">`
201
+ + `<td class="ic">${svg(ICON[x.kind] || ICON.doc)}</td>${nameCell(same ? { ...x, name: x.kindText } : x, older)}`
202
+ + `<td class="c">${same ? '' : esc(x.kindText)}</td><td class="c">${esc(x.product || '')}</td>${shelf ? '<td class="c"></td>' : aboutCell(x)}`
203
+ + `<td class="c">${esc(x.by || '')}</td><td class="c q">${esc(stateText(r))}</td>`
204
+ + `<td class="c">${esc(dayText(when(x)))}</td></tr>`;
204
205
  }
205
206
  function checksHtml(r) {
206
207
  const open = S.ck.has(r.key), a = r.about || {};
207
208
  const newest = r.checks.reduce((m, x) => (String(when(x)) > String(when(m)) ? x : m), r.checks[0]);
208
- let h = `<div class="lb-r lb-i lb-ck" role="row"><span class="ic" role="cell">${svg(ICON.checks)}</span>`
209
- + `<span class="n" role="cell"><button type="button" class="lb-nb" data-lb-ck="${esc(r.key)}" aria-expanded="${open}">Checks · ${r.checks.length}</button></span>`
210
- + `<span class="c" role="cell">${esc([...new Set(r.checks.map((x) => x.kindText))].join(', '))}</span><span class="c" role="cell">${esc(a.product || '')}</span>`
211
- + `<span class="c" role="cell">${esc([a.programTitle, a.title].filter(Boolean).join(' › '))}</span><span class="c" role="cell">PMOS</span><span class="c" role="cell"></span>`
212
- + `<span class="c" role="cell">${esc(dayText(when(newest)))}</span></div>`;
209
+ let h = `<tr class="lb-i lb-ck"><td class="ic">${svg(ICON.checks)}</td>`
210
+ + `<td class="n"><span class="lb-nw"><button type="button" class="lb-nb" data-lb-ck="${esc(r.key)}" aria-expanded="${open}">Checks · ${r.checks.length}</button></span></td>`
211
+ + `<td class="c">${esc([...new Set(r.checks.map((x) => x.kindText))].join(', '))}</td><td class="c">${esc(a.product || '')}</td>`
212
+ + `<td class="c">${esc([a.programTitle, a.title].filter(Boolean).join(' › '))}</td><td class="c">PMOS</td><td class="c"></td>`
213
+ + `<td class="c">${esc(dayText(when(newest)))}</td></tr>`;
213
214
  if (open) for (const x of r.checks) { h += rowHtml({ x, older: [] }, S.shown.length, true); S.shown.push(x); }
214
215
  return h;
215
216
  }
216
217
  function tableHtml(groups) {
217
- let h = `<div class="lb-t" role="table" aria-label="Library">${head()}`;
218
+ let h = `<div class="pm-block list lb-blk"><table class="pm-table lb-t" aria-label="Library">${head()}<tbody>`;
218
219
  for (const g of groups) {
219
220
  if (g.level === 2) {
220
- h += `<div class="lb-r lb-g lb-s" role="row"><button type="button" role="rowheader" data-lb-fold="${esc(g.key)}" aria-expanded="${!g.folded}">${svg(g.folded ? CHEV_R : CHEV_D)}<b>${esc(g.label)}</b><em>${g.n}</em></button></div>`;
221
+ h += `<tr class="lb-g lb-s"><th scope="rowgroup" colspan="${SPAN}"><button type="button" class="pm-group" data-lb-fold="${esc(g.key)}" aria-expanded="${!g.folded}">${svg(g.folded ? CHEV_R : CHEV_D)}<b>${esc(g.label)}</b><em>${g.n}</em></button></th></tr>`;
221
222
  if (g.folded) continue;
222
- } else h += `<div class="lb-r lb-g" role="row"><div role="rowheader">${esc(g.label)}${S.group === 'work' ? ` <em>${g.n}</em>` : ''}</div></div>`;
223
+ } else h += `<tr class="lb-g"><th scope="rowgroup" colspan="${SPAN}"><div class="pm-group">${esc(g.label)}${S.group === 'work' ? ` <em>${g.n}</em>` : ''}</div></th></tr>`;
223
224
  const shelf = g.level === 2 && g.key !== 'w:none' ? g.label : '';
224
225
  for (const r of g.rows) {
225
226
  if (r.checks) { h += checksHtml(r); continue; }
@@ -227,7 +228,7 @@ function tableHtml(groups) {
227
228
  if (r.older.length && S.ed.has(r.x.id)) for (const o of r.older) { h += rowHtml({ x: o, older: [] }, S.shown.length, true, shelf); S.shown.push(o); }
228
229
  }
229
230
  }
230
- return h + '</div>';
231
+ return h + '</tbody></table></div>';
231
232
  }
232
233
 
233
234
  /* ── search by meaning ── */
@@ -246,14 +247,15 @@ function meaningHtml(titled) {
246
247
  const seen = new Set(titled);
247
248
  const list = (M.results || []).map((r) => ({ ...r, x: byId.get(r.id) })).filter((r) => r.x && !seen.has(r.id) && passes(r.x, F()));
248
249
  const line = M.busy ? 'PMOS is reading them for meaning…' : !M.ranked && M.why ? 'Ranked by shared words: ' + M.why + '.' : '';
249
- if (!list.length) return M.busy && !M.results ? `<p class="lb-mq">${esc(line || 'PMOS is reading for meaning…')}</p>` : '';
250
- let h = `<h2 class="lb-mh">${titled.length ? 'Also about this' : 'About this'} <em>${list.length}</em></h2>${line ? `<p class="lb-mq">${esc(line)}</p>` : ''}<div class="lb-t lb-m" role="list">`;
250
+ if (!list.length) return M.busy && !M.results ? `<p class="pm-meta lb-mq">${esc(line || 'PMOS is reading for meaning…')}</p>` : '';
251
+ let h = `<section class="pm-block list lb-m" aria-label="${titled.length ? 'Also about this' : 'About this'}"><div class="head"><h2 class="pm-h">${titled.length ? 'Also about this' : 'About this'}</h2><span class="pm-meta">${list.length}</span></div>`
252
+ + `${line ? `<p class="pm-meta lb-mq">${esc(line)}</p>` : ''}<div class="rows" role="list">`;
251
253
  for (const r of list) {
252
254
  const x = r.x, i = S.shown.length; S.shown.push(x);
253
- h += `<div class="lb-mr" role="listitem" data-lb-i="${i}"><span class="ic">${svg(ICON[x.kind] || ICON.doc)}</span><div><button type="button" class="lb-nb" data-lb-open>${esc(x.name)}</button>`
254
- + `<small>${esc([x.kindText, x.product, aboutText(x)].filter(Boolean).join(' · '))}</small><p>${bolded(r.passage || '', r.idea, r.words)}</p></div></div>`;
255
+ h += `<div class="pm-li lb-mr" role="listitem" data-lb-i="${i}"><span class="pm-meta lb-mi">${svg(ICON[x.kind] || ICON.doc)}</span><span class="txt"><button type="button" class="t lb-nb" data-lb-open>${esc(x.name)}</button>`
256
+ + `<span class="w">${esc([x.kindText, x.product, aboutText(x)].filter(Boolean).join(' · '))}</span><span class="lb-ps">${bolded(r.passage || '', r.idea, r.words)}</span></span></div>`;
255
257
  }
256
- return h + '</div>';
258
+ return h + '</div></section>';
257
259
  }
258
260
  let findT = null, findN = 0;
259
261
  function findByMeaning() {
@@ -278,7 +280,7 @@ function findByMeaning() {
278
280
  }
279
281
 
280
282
  /* ── the record preview (≥ 1600 px) ── */
281
- function field(k, v) { return v ? `<div><dt>${esc(k)}</dt><dd>${esc(v)}</dd></div>` : ''; }
283
+ function field(k, v) { return v ? `<dt>${esc(k)}</dt><dd>${esc(v)}</dd>` : ''; }
282
284
  async function drawPreview() {
283
285
  const x = S.pick && (S.items || []).find((i) => i.id === S.pick);
284
286
  if (!x || !wide()) { pv.hidden = true; pv.innerHTML = ''; document.body.classList.remove('lb-pv-on'); return; }
@@ -286,14 +288,14 @@ async function drawPreview() {
286
288
  const older = (S.items || []).filter((o) => o.ed && o.ed === x.ed && o.id !== x.id).sort((a, b) => (b.v || 0) - (a.v || 0) || String(when(b)).localeCompare(String(when(a))));
287
289
  const p = x.open && x.open.doc ? S.peek.get(x.id) : null;
288
290
  const lines = x.kind === 'meeting' ? x.gist || [] : p && p.head ? p.head : [];
289
- pv.innerHTML = `<div class="lb-pvh"><span class="ic">${svg(ICON[x.kind] || ICON.doc)}</span><h2>${esc(x.name)}</h2>`
290
- + `<button type="button" class="lb-ib" data-lb-pv-open aria-label="Open ${esc(x.name)}" title="Open">${svg(OPEN)}</button>`
291
- + `<button type="button" class="lb-ib" data-lb-pv-close aria-label="Close the preview" title="Close">${svg(X)}</button></div>`
292
- + `<dl>${field('Kind', x.kindText)}${field('Product', x.product)}${field('About', aboutText(x) || (x.about && x.about.title))}${field('By', x.by)}${field('State', stateText({ x, older }))}`
291
+ pv.innerHTML = `<div class="head"><span class="pm-meta lb-mi">${svg(ICON[x.kind] || ICON.doc)}</span><h2 class="pm-h">${esc(x.name)}</h2>`
292
+ + `<button type="button" class="pm-btn" data-lb-pv-open aria-label="Open ${esc(x.name)}" title="Open">${svg(OPEN)}</button>`
293
+ + `<button type="button" class="pm-btn" data-lb-pv-close aria-label="Close the preview" title="Close">${svg(X)}</button></div>`
294
+ + `<dl class="pm-field">${field('Kind', x.kindText)}${field('Product', x.product)}${field('About', aboutText(x) || (x.about && x.about.title))}${field('By', x.by)}${field('State', stateText({ x, older }))}`
293
295
  + `${field(x.kind === 'meeting' ? 'Held' : 'Updated', dayText(when(x)))}${field('Came out of it', x.came)}${field('Title', x.sub)}${field('File', x.path)}</dl>`
294
- + (lines.length ? `<h3>First lines</h3><div class="lb-pvl">${lines.map((l) => `<p>${esc(l)}</p>`).join('')}</div>` : x.open && x.open.doc && !p ? '<p class="lb-mq">Reading the first lines…</p>' : '')
295
- + (p && p.from && p.from.length ? `<h3>Linked from</h3><ul>${p.from.map((f) => `<li>${esc(f.title)}</li>`).join('')}</ul>` : '')
296
- + (older.length ? `<h3>Editions</h3><ul>${older.map((o) => `<li><button type="button" class="lb-nb" data-lb-pv-ed="${esc(o.id)}">${esc(o.name)}${o.v ? ' · v' + o.v : ''}</button> <small>${esc(dayText(when(o)))}</small></li>`).join('')}</ul>` : '');
296
+ + (lines.length ? `<h3 class="pm-h-sm">First lines</h3><div class="lb-pvl">${lines.map((l) => `<p>${esc(l)}</p>`).join('')}</div>` : x.open && x.open.doc && !p ? '<p class="pm-meta">Reading the first lines…</p>' : '')
297
+ + (p && p.from && p.from.length ? `<h3 class="pm-h-sm">Linked from</h3><ul>${p.from.map((f) => `<li>${esc(f.title)}</li>`).join('')}</ul>` : '')
298
+ + (older.length ? `<h3 class="pm-h-sm">Editions</h3><ul>${older.map((o) => `<li><button type="button" class="lb-nb" data-lb-pv-ed="${esc(o.id)}">${esc(o.name)}${o.v ? ' · v' + o.v : ''}</button> <span class="pm-meta">${esc(dayText(when(o)))}</span></li>`).join('')}</ul>` : '');
297
299
  if (x.open && x.open.doc && !p) {
298
300
  const r = await pmGet('/api/library-items/peek?ws=' + encodeURIComponent(x.open.doc.ws) + '&path=' + encodeURIComponent(x.open.doc.path)).catch(() => null);
299
301
  S.peek.set(x.id, r && r.ok ? r : { head: [], from: [] });
@@ -305,7 +307,7 @@ async function drawPreview() {
305
307
  function draw() {
306
308
  if (S.items == null) return;
307
309
  drawFilters();
308
- if (!S.items.length && S.error) { body.innerHTML = `<p class="lb-none">The Library could not be read: ${esc(S.error)}.</p>`; note.textContent = ''; hid.innerHTML = ''; return; }
310
+ if (!S.items.length && S.error) { body.innerHTML = `<p class="pm-meta lb-none">The Library could not be read: ${esc(S.error)}. <button type="button" class="lb-retry" data-lb-retry>Retry</button></p>`; note.textContent = ''; hid.innerHTML = ''; return; }
309
311
  const V = view(S.items, { q: S.q, f: F(), group: S.group, open: S.open, shut: S.shut });
310
312
  S.shown = [];
311
313
  const filtered = S.kinds.length || S.states.length || narrowed(S.P, S.sel);
@@ -316,7 +318,7 @@ function draw() {
316
318
  let h = '';
317
319
  if (!V.groups.length) {
318
320
  // zero is silence: one quiet line, no empty table
319
- h = S.q && S.meaning && S.meaning.q === S.q && (S.meaning.busy || (S.meaning.results || []).length) ? '' : `<p class="lb-none">${esc(S.q ? 'No title in the Library matches "' + S.q + '".' : filtered ? 'Nothing here fits the filters.' : 'Nothing was made yet. Documents, meeting notes and prototypes show here as they are made.')}</p>`;
321
+ h = S.q && S.meaning && S.meaning.q === S.q && (S.meaning.busy || (S.meaning.results || []).length) ? '' : `<p class="pm-meta lb-none">${esc(S.q ? 'No title in the Library matches "' + S.q + '".' : filtered ? 'Nothing here fits the filters.' : 'Nothing was made yet. Documents, meeting notes and prototypes show here as they are made.')}</p>`;
320
322
  } else h = tableHtml(V.groups);
321
323
  const titled = S.shown.map((x) => x.id);
322
324
  body.innerHTML = h + meaningHtml(titled);
@@ -380,6 +382,7 @@ async function saveName(id, name) {
380
382
  body.onclick = async (e) => {
381
383
  const t = e.target;
382
384
  let b;
385
+ if (t.closest('[data-lb-retry]')) { load(); return; }
383
386
  if ((b = t.closest('[data-lb-fold]'))) {
384
387
  const k = b.dataset.lbFold, folded = b.getAttribute('aria-expanded') !== 'true';
385
388
  if (folded) { S.open.add(k); S.shut.delete(k); } else { S.shut.add(k); S.open.delete(k); }
@@ -13,24 +13,30 @@
13
13
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
14
14
  <link rel="stylesheet" href="/pm/cozy.css" />
15
15
  <link rel="stylesheet" href="/pm/cozy-pick.css" />
16
+ <link rel="stylesheet" href="/pm/brand.css" />
17
+ <link rel="stylesheet" href="/pm/charts.css" />
18
+ <link rel="stylesheet" href="/pm/komorebi.css" />
16
19
  <link rel="stylesheet" href="/pm/cozy-library.css" />
17
20
  </head>
18
- <body class="cz lb-page">
21
+ <!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/): layout Main + open item, blocks List (the catalogue, as a
22
+ Table block) and Detail (the record at the right). The filter chips and their menus stay the shared picker (pm/cozy-pick.css) that the
23
+ product, program and project chip beside them uses. -->
24
+ <body class="cz pm-ds lb-page">
19
25
  <main class="stage cz-panel lb" id="stage">
20
26
  <h1 class="vh">Library</h1>
21
27
  <div class="lb-bar">
22
28
  <span class="lb-fl" id="lbFilters" role="group" aria-label="Filters"></span>
23
- <label class="lb-find"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
24
- <span class="lb-cw lb-cwr"><button type="button" class="cz-ib lb-tune" id="lbTune" aria-haspopup="menu" aria-expanded="false" aria-label="Group by" title="Group by"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4"/></svg></button></span>
25
- <button type="button" class="cz-ib lb-add" id="lbAdd" aria-label="Add a file, a link or a new document" title="Add a file, a link or a new document"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
29
+ <label class="lb-find"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
30
+ <span class="lb-cw lb-cwr"><button type="button" class="pm-btn lb-tune" id="lbTune" aria-haspopup="menu" aria-expanded="false" aria-label="Group by" title="Group by"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4"/></svg></button></span>
31
+ <button type="button" class="pm-btn lb-add" id="lbAdd" aria-label="Add a file, a link or a new document" title="Add a file, a link or a new document"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
26
32
  </div>
27
- <p class="lb-hid" id="lbHid" aria-live="polite"></p>
33
+ <p class="pm-meta lb-hid" id="lbHid" aria-live="polite"></p>
28
34
  <div class="lb-wrap">
29
35
  <div class="lb-main">
30
- <div id="lbBody" aria-live="polite"><div class="lb-t lb-sk" aria-hidden="true"><div class="lb-r lb-h"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div></div></div>
31
- <p class="lb-n" id="lbNote"></p>
36
+ <div id="lbBody" aria-live="polite"><div class="pm-block list lb-blk lb-sk" aria-hidden="true"><div class="rows"><i></i><i></i><i></i></div></div></div>
37
+ <p class="pm-meta lb-n" id="lbNote"></p>
32
38
  </div>
33
- <aside class="lb-pv" id="lbPv" hidden aria-label="The record"></aside>
39
+ <aside class="pm-block lb-pv" id="lbPv" hidden aria-label="The record"></aside>
34
40
  </div>
35
41
  </main>
36
42
  <noscript>This page needs JavaScript.</noscript>
@@ -9,11 +9,16 @@
9
9
  screen, with the initiative title and the round number only. It makes no press: no keep, no drop, no nav. pm/cozy-present.js draws it. -->
10
10
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
11
11
  <link rel="stylesheet" href="/pm/cozy.css" />
12
+ <link rel="stylesheet" href="/pm/brand.css" />
13
+ <link rel="stylesheet" href="/pm/charts.css" />
14
+ <link rel="stylesheet" href="/pm/komorebi.css" />
12
15
  <link rel="stylesheet" href="/pm/cozy-present.css" />
13
16
  </head>
14
- <body class="cz prs-page">
17
+ <!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/), always in its Dark theme: layout Single column, block
18
+ Stage (each frame is a pm-stage), the frame key a Kbd badge, the back press the Button part. -->
19
+ <body class="cz pm-ds dark prs-page">
15
20
  <main class="prs" id="prs" data-full="">
16
- <header class="prs-hd"><h1 class="prs-title" id="prsTitle"></h1><span class="prs-round" id="prsRound"></span></header>
21
+ <header class="prs-hd"><h1 class="title prs-title" id="prsTitle"></h1><span class="pm-meta prs-round" id="prsRound"></span></header>
17
22
  <div class="prs-strip" id="prsStrip" aria-live="polite"></div>
18
23
  </main>
19
24
  <script type="module" src="/pm/cozy-present.js"></script>
@@ -10,11 +10,17 @@
10
10
  each with an optional &ws=. The item opens in the same Viewer card Home shows (cozy-viewer.js), here as the whole page. -->
11
11
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
12
12
  <link rel="stylesheet" href="/pm/cozy.css" />
13
+ <link rel="stylesheet" href="/pm/brand.css" />
14
+ <link rel="stylesheet" href="/pm/charts.css" />
15
+ <link rel="stylesheet" href="/pm/komorebi.css" />
13
16
  <link rel="stylesheet" href="/pm/cozy-vw.css" />
14
17
  </head>
15
- <body class="cz vz-solo">
18
+ <!-- Drawn with the PMOS design system (Komorebi, workspace/design-system/ui/): layout Main + open item with only the open item, the Viewer
19
+ card. On this page the card reads the system's colour, font, line and shadow tokens (cozy-vw.css, "the Viewer card as the page"); its
20
+ parts are the Viewer's own, shared with every page that opens it. -->
21
+ <body class="cz pm-ds vz-solo">
16
22
  <main class="vz-host" data-cz-viewer-host></main>
17
- <p class="vz-gone" id="vzGone" hidden>Nothing is open. <a href="/premium.html">Go to Home</a></p>
23
+ <p class="pm-meta vz-gone" id="vzGone" hidden>Nothing is open. <a href="/premium.html">Go to Home</a></p>
18
24
  <script type="module" src="/pm/premium-vw-page.js"></script>
19
25
  </body>
20
26
  </html>