create-pmos 0.641.0 → 0.643.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.641.0",
3
+ "version": "0.643.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,16 +34,23 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.641.0",
38
- "at": "2026-11-20T01:40:00.165Z",
37
+ "v": "0.643.0",
38
+ "at": "2026-11-20T02:02:59.828Z",
39
39
  "f": 4,
40
40
  "prs": [
41
41
  {
42
- "n": 1424,
43
- "t": "Goals and Intelligence on the PMOS design system",
44
- "s": "Goals and Intelligence on the PMOS design system",
42
+ "n": 1425,
43
+ "t": "The Work page moves to the PMOS design system",
44
+ "s": "The Work page moves to the PMOS design system",
45
45
  "k": "new"
46
- },
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.642.0",
51
+ "at": "2026-11-20T01:43:00.385Z",
52
+ "f": 4,
53
+ "prs": [
47
54
  {
48
55
  "n": 1423,
49
56
  "t": "Welcome, capture and the meeting pages on the PMOS design system",
@@ -55,6 +62,12 @@
55
62
  "t": "The rail of places is the design system's Navigation part",
56
63
  "s": "The rail of places is the design system's Navigation part",
57
64
  "k": "new"
65
+ },
66
+ {
67
+ "n": 1421,
68
+ "t": "Library, Present and the Viewer page on the PMOS design system",
69
+ "s": "Library, Present and the Viewer page on the PMOS design system",
70
+ "k": "new"
58
71
  }
59
72
  ]
60
73
  },
@@ -309,49 +322,6 @@
309
322
  "k": "new"
310
323
  }
311
324
  ]
312
- },
313
- {
314
- "v": "0.616.0",
315
- "at": "2026-11-19T03:45:31.884Z",
316
- "f": 4,
317
- "prs": [
318
- {
319
- "n": 1393,
320
- "t": "Library By names a known person or nothing; Product uses the shared product name",
321
- "s": "Library By names a known person or nothing; Product uses the shared product name",
322
- "k": "fix"
323
- },
324
- {
325
- "n": 1388,
326
- "t": "The Backlog in Work, every task in one list, and PMOS finishing tasks itself",
327
- "s": "The Backlog in Work, every task in one list, and PMOS finishing tasks itself",
328
- "k": "new"
329
- },
330
- {
331
- "n": 1396,
332
- "t": "Routine prints products by the shared productName()",
333
- "s": "Routine prints products by the shared productName()",
334
- "k": "fix"
335
- },
336
- {
337
- "n": 1398,
338
- "t": "Product chip and headings say the product's name, not its folder",
339
- "s": "Product chip and headings say the product's name, not its folder",
340
- "k": "fix"
341
- },
342
- {
343
- "n": 1392,
344
- "t": "Today: PMOS clears an ask someone else answered; audit round 2 fixes",
345
- "s": "Today: PMOS clears an ask someone else answered; audit round 2 fixes",
346
- "k": "new"
347
- },
348
- {
349
- "n": 1397,
350
- "t": "Work and its product chip print each product's display name",
351
- "s": "Work and its product chip print each product's display name",
352
- "k": "fix"
353
- }
354
- ]
355
325
  }
356
326
  ]
357
327
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@4bd093fc
1
+ kernel-source: pmos@2b6fa8e5
2
2
  assembled: 2026-11-20
3
3
  mode: vendor
@@ -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:39:57Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T02:02:56Z"}
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:39:57Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T02:02:56Z"}
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:39:57Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T02:02:56Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,15 +1,22 @@
1
1
  [
2
2
  {
3
- "v": "0.641.0",
4
- "at": "2026-11-20T01:40:00.165Z",
3
+ "v": "0.643.0",
4
+ "at": "2026-11-20T02:02:59.828Z",
5
5
  "f": 4,
6
6
  "prs": [
7
7
  {
8
- "n": 1424,
9
- "t": "Goals and Intelligence on the PMOS design system",
10
- "s": "Goals and Intelligence on the PMOS design system",
8
+ "n": 1425,
9
+ "t": "The Work page moves to the PMOS design system",
10
+ "s": "The Work page moves to the PMOS design system",
11
11
  "k": "new"
12
- },
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.642.0",
17
+ "at": "2026-11-20T01:43:00.385Z",
18
+ "f": 4,
19
+ "prs": [
13
20
  {
14
21
  "n": 1423,
15
22
  "t": "Welcome, capture and the meeting pages on the PMOS design system",
@@ -21,6 +28,12 @@
21
28
  "t": "The rail of places is the design system's Navigation part",
22
29
  "s": "The rail of places is the design system's Navigation part",
23
30
  "k": "new"
31
+ },
32
+ {
33
+ "n": 1421,
34
+ "t": "Library, Present and the Viewer page on the PMOS design system",
35
+ "s": "Library, Present and the Viewer page on the PMOS design system",
36
+ "k": "new"
24
37
  }
25
38
  ]
26
39
  },
@@ -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
 
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "The Backlog"
4
4
  description: "Every open task of your products in one list, the way Jira lists them, and the tasks PMOS takes and finishes itself."
5
- timestamp: 2026-11-19
5
+ timestamp: 2026-11-20
6
6
  ---
7
7
 
8
8
  # The Backlog
@@ -16,6 +16,8 @@ The Backlog lists every open task of the products you picked, the way Jira's bac
16
16
 
17
17
  On a phone the switch has its own line above the list. PMOS remembers your choice for each pick of products.
18
18
 
19
+ The Work page uses the PMOS design system (see [Layout](layout.md#the-design-system)): the switch is its Tabs, the toolbar buttons its Buttons, and the timeline its chart colours. Done is leaf green, now is blue, planned is grey, and late and the today line are the alert colour.
20
+
19
21
  ## The columns
20
22
 
21
23
  | Column | What it shows |
@@ -89,6 +89,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
89
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.
90
90
  - Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
91
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.
92
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.
93
94
 
94
95
  ## Work and its chat, in one popup
@@ -170,6 +171,8 @@ A Jira date and the planned finish of an initiative get no ✓: PMOS cannot writ
170
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.
171
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.
172
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
+
173
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.
174
177
 
175
178
  ## Goals
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.641.0",
3
+ "version": "0.643.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.641.0",
9
+ "version": "0.643.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.641.0",
3
+ "version": "0.643.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",
@@ -96,8 +96,8 @@ export async function load() {
96
96
  function drawSwitch() {
97
97
  if (!sw) return;
98
98
  const n = DATA ? DATA.tasks.filter(BM.isOpen).length : null, bk = on();
99
- sw.innerHTML = `<button type="button" role="tab" aria-selected="${!bk}" class="${bk ? '' : 'on'}" data-bksw="ini">Initiatives</button>`
100
- + `<button type="button" role="tab" aria-selected="${bk}" class="${bk ? 'on' : ''}" data-bksw="bk">Backlog${n ? `<span class="k">${n}</span>` : ''}</button>`;
99
+ sw.innerHTML = `<button type="button" role="tab" aria-selected="${!bk}" class="pm-tab${bk ? '' : ' on'}" data-bksw="ini">Initiatives</button>`
100
+ + `<button type="button" role="tab" aria-selected="${bk}" class="pm-tab${bk ? ' on' : ''}" data-bksw="bk">Backlog${n ? `<span class="k">${n}</span>` : ''}</button>`;
101
101
  }
102
102
  function apply() {
103
103
  const bk = on();
@@ -524,7 +524,7 @@ export function sync(api) {
524
524
  const p = get(PREFS, {}) || {}; SORT = BM.SORTS.some(([k]) => k === p.sort) ? p.sort : 'due'; FOLD = p.fold && typeof p.fold === 'object' ? p.fold : {};
525
525
  const crumb = document.getElementById('crumbHost'), ib = document.getElementById('ibBody');
526
526
  if (!crumb || !ib) return;
527
- sw = document.createElement('span'); sw.className = 'bk-sw'; sw.setAttribute('role', 'tablist'); sw.setAttribute('aria-label', 'Work');
527
+ sw = document.createElement('span'); sw.className = 'bk-sw pm-tabs'; // the system's Tabs (design-system ui/components/Tabs) sw.setAttribute('role', 'tablist'); sw.setAttribute('aria-label', 'Work');
528
528
  // on a desk the switch sits in the toolbar after the product picker; on a phone the toolbar is full, so it takes its own line above the list
529
529
  const PH = matchMedia('(max-width: 760px)');
530
530
  const place = () => { if (PH.matches) ib.insertAdjacentElement('beforebegin', sw); else crumb.insertAdjacentElement('afterend', sw); sw.classList.toggle('bk-sw-row', PH.matches); };
@@ -0,0 +1,64 @@
1
+ /* bd-ds.css — the Work page (Board, Program, Backlog and sprint, Initiative) on the PMOS design system (workspace/design-system/ui, "Komorebi").
2
+ * premium-board.html loads brand.css, charts.css and komorebi.css and puts pm-ds on <body>; this sheet, loaded last, does two things:
3
+ * 1. The token bridge. The page's sheets (cozy-board, bd-work, bd-backlog, bd-pin-card, the popup) name the cozy tokens (--cz-*, --bd-*).
4
+ * Here each one takes the system's value, so the page's colours, lines, shadows and fonts come from the system and follow its dark theme.
5
+ * The bridge sits on the page's own parts (every child of <body> but the place menu and Search): the shared shell keeps its own look
6
+ * until it moves itself.
7
+ * 2. The parts. The toolbar buttons are the system's Button, the Initiatives | Backlog switch its Tabs, the menus its Menu, the toast its
8
+ * Toast, the Work and Backlog grids its Table, the timeline its chart colours (done leaf, now blue, planned rest, late alert).
9
+ * No colour or size is written here: every value names a system token or a cozy type role. */
10
+
11
+ /* ── 1. the token bridge ── */
12
+ body.cz.bd-page.pm-ds > :not(#czNav, .pv-scrim, .pv-ov) {
13
+ --cz-ink: var(--ink); --cz-ink2: var(--ink); --cz-ink3: var(--muted);
14
+ --cz-card: var(--card); --cz-well: var(--well); --cz-well2: var(--well); --cz-hair: var(--line);
15
+ --cz-blue: var(--blue); --cz-blueink: var(--blue); --cz-bluebg: var(--blue-tint);
16
+ --cz-solid: var(--blue); --cz-onsolid: var(--on-blue); --cz-done: var(--blue); --cz-bubble: var(--blue-tint);
17
+ /* the system has one warning colour: late, at risk and blocked are all alert (Badge: "alert only for late, at risk or blocked") */
18
+ --cz-late: var(--alert); --cz-latebg: var(--alert-tint); --cz-risk: var(--alert); --cz-riskbg: var(--alert-tint);
19
+ --cz-red: var(--alert); --cz-redbg: var(--alert-tint); --cz-ok: var(--leaf); --cz-okbg: var(--leaf-tint);
20
+ --cz-dot-late: var(--alert); --cz-dot-risk: var(--alert); --cz-dot-red: var(--alert); --cz-dot-ok: var(--leaf); --cz-dot-q: var(--chart-rest);
21
+ --cz-lift: var(--lift); --cz-float: var(--lift); --cz-sheet: var(--lift); --cz-vlift: var(--raise);
22
+ --cz-sans: var(--font-sans); --cz-mono: var(--font-mono);
23
+ /* the timeline: the system's chart colours (charts/ owns them) */
24
+ --bd-done: var(--chart-done); --bd-plan: var(--chart-rest); --bd-pass: var(--chart-plan);
25
+ }
26
+
27
+ /* Focus shows the leaf ring (glow) everywhere on the page, as in every part of the system. */
28
+ body.bd-page.pm-ds > :not(#czNav, .pv-scrim, .pv-ov) :focus-visible { outline: none; box-shadow: var(--glow); }
29
+
30
+ /* ── 2. the parts ── */
31
+
32
+ /* Button: every icon button of the page (.bd-ib) is the system's Button: 32 px, small corners, ghost; 44 px on a phone or a touch screen.
33
+ * :where() keeps these at the weight of .bd-ib, so the page's own sizes (.sm, the panel's 44 px rows) still win. */
34
+ :where(.bd-page.pm-ds) .bd-ib { width: 32px; height: 32px; border-radius: var(--radius-sm); transition: background var(--duration-quick) var(--ease-out); }
35
+ :where(.bd-page.pm-ds) .bd-ib svg { width: 16px; height: 16px; }
36
+ :where(.bd-page.pm-ds) .bd-ib:active { transform: translateY(1px); }
37
+ @media (pointer: coarse), (max-width: 720px) { :where(.bd-page.pm-ds) .bd-ib, .bd-page.pm-ds .bd-ib.pm-btn { width: 44px; height: 44px; } }
38
+ /* The page's own button variants stay on top of the Button part even when the place menu loads komorebi.css after this page's sheets. */
39
+ .bd-page.pm-ds .bd-ib.bd-new { color: var(--blue); }
40
+ .bd-page.pm-ds .bd-ib.bd-new:hover { background: var(--blue-tint); }
41
+ .bd-page.pm-ds .bd-ib.on { background: var(--blue-tint); color: var(--blue); }
42
+ .bd-page.pm-ds .bd-ib.solid { background: var(--ink); color: var(--card); }
43
+
44
+ /* Tabs: Initiatives | Backlog (pm/bd-backlog.js writes pm-tabs and pm-tab). The count stays quiet beside the name. */
45
+ .bd-page.pm-ds .bk-sw.pm-tabs { border-radius: var(--radius-md); }
46
+ .bd-page.pm-ds .bk-sw .pm-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; font-size: var(--fs-label); font-weight: var(--fw-strong); }
47
+ .bd-page.pm-ds .bk-sw .pm-tab.on { box-shadow: var(--raise); }
48
+ .bd-page.pm-ds .bk-sw .k { font-weight: var(--fw-regular); color: var(--muted); }
49
+
50
+ /* Table: the Work grid and the Backlog list. Column heads are label-size, muted; lines are the system's line; a row lights on hover. */
51
+ .bd-page.pm-ds .wk-h { border-radius: var(--radius-card) var(--radius-card) 0 0; color: var(--muted); }
52
+ .bd-page.pm-ds .wk-g { background: var(--well); color: var(--muted); }
53
+ @media (hover: hover) { .bd-page.pm-ds .wk-r:not(.wk-h):not(.wk-g):hover { background: var(--well); } }
54
+ .bd-page.pm-ds .wk-now { background: var(--alert); opacity: 1; }
55
+ .bd-page.pm-ds .wk-nowl { background: var(--alert); color: var(--card); }
56
+
57
+ /* Menu: the View menu, the stage menu, the milestone lists, the Backlog's small popovers and the Publish popover sit on the system's Menu
58
+ * surface: card, medium corners, lift. */
59
+ .bd-page.pm-ds :is(.wk-menu, .wk-stm, .tg-msp, .bk-pop, .bppop) { border-radius: var(--radius-md); background: var(--card); box-shadow: var(--lift); }
60
+ .bd-page.pm-ds .wk-stm > button { border-radius: var(--radius-sm); min-height: 36px; box-sizing: border-box; display: flex; align-items: center; }
61
+ .bd-page.pm-ds .bk-rvc { border-radius: var(--radius-panel); box-shadow: var(--lift); }
62
+
63
+ /* Toast: ink on card, medium corners, lift, bottom centre (the system's Toast). */
64
+ .bd-page.pm-ds .bd-toast { border-radius: var(--radius-md); box-shadow: var(--lift); font-size: var(--fs-meta); }
@@ -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
  }
@@ -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; }
@@ -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); }
@@ -11,6 +11,11 @@
11
11
  about it in a panel on the Board (pm/page-chat.js); a phone goes to Home. -->
12
12
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
13
13
  <link rel="stylesheet" href="/pm/cozy.css" />
14
+ <!-- the PMOS design system (workspace/design-system/): brand, then charts, then the UI system (Komorebi). The page's own sheets come after it,
15
+ so a page variant (the open View chip, the blue New) still wins over a part's base look; pm/bd-ds.css, last, maps the page onto the system. -->
16
+ <link rel="stylesheet" href="/pm/brand.css" />
17
+ <link rel="stylesheet" href="/pm/charts.css" />
18
+ <link rel="stylesheet" href="/pm/komorebi.css" />
14
19
  <link rel="stylesheet" href="/pm/cozy-pick.css" />
15
20
  <link rel="stylesheet" href="/pm/cozy-board.css" />
16
21
  <link rel="stylesheet" href="/pm/load-shapes.css" />
@@ -18,8 +23,9 @@
18
23
  <link rel="stylesheet" href="/pm/cozy-panel.css" />
19
24
  <link rel="stylesheet" href="/pm/bd-work.css" />
20
25
  <link rel="stylesheet" href="/pm/bd-backlog.css" />
26
+ <link rel="stylesheet" href="/pm/bd-ds.css" />
21
27
  </head>
22
- <body class="cz bd-page">
28
+ <body class="cz bd-page pm-ds">
23
29
  <!-- The Board has no dialog, dock, toast or hero of the old shell: pm/premium-shell.js binds to a detached copy when #dlg is absent. Its panels
24
30
  are the side panel below (initiative premium-agreed-design). -->
25
31
  <main class="stage cz-panel bd-main" id="stage">
@@ -36,10 +42,10 @@
36
42
  <!-- what needs a look: one pill of dots and numbers, and its (i): the timeline's legend, the sprints and releases, the Jira read -->
37
43
  <div class="bd-chipset" id="bdChipset"></div>
38
44
  <div class="bd-tools">
39
- <button type="button" class="bd-ib" id="bdFind" aria-label="Find an initiative or work-item" title="Find an initiative or work-item" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button>
45
+ <button type="button" class="bd-ib pm-btn" id="bdFind" aria-label="Find an initiative or work-item" title="Find an initiative or work-item" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button>
40
46
  <!-- the tune button: Group, Sort and the filters (owner, category, sprint), with a dot while one is on -->
41
- <button type="button" class="bd-ib" id="bdFilter" aria-label="Group, sort and filter" title="Group, sort and filter" aria-haspopup="dialog"><svg class="bd-icf" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></svg><svg class="bd-ict" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h9M17 7h3M4 17h3M11 17h9M15 5v4M9 15v4"/></svg><i class="bd-pip bd-tune-pip" hidden></i></button>
42
- <button type="button" class="bd-ib bd-new" id="newIni" aria-label="New program or initiative" title="New program or initiative" aria-haspopup="menu"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
47
+ <button type="button" class="bd-ib pm-btn" id="bdFilter" aria-label="Group, sort and filter" title="Group, sort and filter" aria-haspopup="dialog"><svg class="bd-icf" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></svg><svg class="bd-ict" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h9M17 7h3M4 17h3M11 17h9M15 5v4M9 15v4"/></svg><i class="bd-pip bd-tune-pip" hidden></i></button>
48
+ <button type="button" class="bd-ib pm-btn bd-new" id="newIni" aria-label="New program or initiative" title="New program or initiative" aria-haspopup="menu"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
43
49
  <div class="tools tools-top"><span class="vh" id="snap" role="status">Reading the board</span></div>
44
50
  </div>
45
51
  </div>
@@ -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>