create-pmos 0.632.0 → 0.634.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/package.json +27 -135
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +3 -0
  7. package/workspace/briefing-premium-board-test.js +4 -2
  8. package/workspace/briefing-premium-doc-edit-test.js +3 -0
  9. package/workspace/briefing-premium-initiative-test.js +4 -0
  10. package/workspace/briefing-premium-insights-test.js +1 -1
  11. package/workspace/briefing-premium-sources-test.js +2 -2
  12. package/workspace/changelog.json +26 -0
  13. package/workspace/core-docs-workflow-test.js +3 -0
  14. package/workspace/ev-everywhere-test.js +7 -17
  15. package/workspace/guide/layout.md +12 -5
  16. package/workspace/ini-workflow-test.js +3 -0
  17. package/workspace/lib/meeting-focus.js +5 -3
  18. package/workspace/lib/repo-identity.js +99 -0
  19. package/workspace/lib/routes-meeting-focus.js +2 -2
  20. package/workspace/live-pill-round-test.js +7 -2
  21. package/workspace/package-lock.json +2 -2
  22. package/workspace/package.json +1 -1
  23. package/workspace/premium-board-actions-test.js +3 -1
  24. package/workspace/premium-vw-backlog-test.js +2 -2
  25. package/workspace/premium-vw-doc-test.js +3 -0
  26. package/workspace/premium-vw-item-test.js +1 -1
  27. package/workspace/premium-vw-jira-test.js +4 -3
  28. package/workspace/public/pm/bd-ini-panel.js +4 -1
  29. package/workspace/public/pm/bd-prog-panel.js +3 -3
  30. package/workspace/public/pm/bd-views.js +8 -2
  31. package/workspace/public/pm/buddy-core.js +2 -2
  32. package/workspace/public/pm/cozy-board.css +15 -0
  33. package/workspace/public/pm/cozy-ev.css +25 -0
  34. package/workspace/public/pm/cozy-home.css +38 -2
  35. package/workspace/public/pm/cozy-nav.js +72 -6
  36. package/workspace/public/pm/cozy-phone-rec.css +68 -0
  37. package/workspace/public/pm/cozy-phone-rec.js +105 -0
  38. package/workspace/public/pm/cozy-phone-settings.css +18 -0
  39. package/workspace/public/pm/cozy-phone-settings.js +73 -0
  40. package/workspace/public/pm/cozy-phone-swipe.js +51 -0
  41. package/workspace/public/pm/cozy-pop-work.css +56 -0
  42. package/workspace/public/pm/cozy-pop-work.js +72 -4
  43. package/workspace/public/pm/cozy-rec-tab.js +10 -0
  44. package/workspace/public/pm/cozy-today-app.js +56 -5
  45. package/workspace/public/pm/cozy-today-page.css +75 -1
  46. package/workspace/public/pm/cozy-today-view.js +87 -0
  47. package/workspace/public/pm/cozy-viewer.js +27 -7
  48. package/workspace/public/pm/home-app.js +31 -2
  49. package/workspace/public/pm/home-chat.js +8 -0
  50. package/workspace/public/pm/home-ini.js +7 -3
  51. package/workspace/public/pm/phone-ask.js +57 -0
  52. package/workspace/server.js +8 -7
  53. package/workspace/split-merge-ui-test.js +3 -1
  54. package/workspace/stage-card-tasks-test.js +6 -0
  55. package/workspace/stage-card-test.js +3 -0
  56. package/workspace/task-delete-test.js +3 -0
  57. package/workspace/task-links-test.js +3 -0
  58. package/workspace/task-plans-test.js +3 -0
  59. package/workspace/task-views-test.js +3 -0
  60. package/workspace/test-lists/phone-design-v2.json +9 -0
  61. package/workspace/test-lists/repo-identity.json +9 -0
  62. package/workspace/tk-tasks-test.js +4 -0
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+ /* repo-identity — which repository a workspace folder belongs to, its working tree, its origin and its branch, read
3
+ * WITHOUT blocking the server (workspace-event-loop-lag).
4
+ *
5
+ * server.js used to read this with four to six synchronous `git` calls per workspace, again every 15 seconds, on the
6
+ * request path (sessionList → treeOfWsMap → repoIdentity). With a dozen workspaces that froze the one Node process —
7
+ * every HTTP answer and every terminal — for about 1.2 s every 15 s, and for 3 to 10 s when a slow repository joined
8
+ * in. The launcher's keep-alive probe (2.5 s) then logged "no workspace server answered", and the tunnel answered 502.
9
+ *
10
+ * Now: the first read of a folder is synchronous, as before, because callers need a real answer (the tree is the
11
+ * collision key). After that a caller always gets the cached answer at once. When the answer is older than the TTL,
12
+ * one background read (async `git`) replaces it; a folder already being read is not read twice.
13
+ *
14
+ * The answer's fields and meanings are unchanged: { at, key, name, branch, branchError, branchCode, remote, tree }.
15
+ */
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+ const { execFile } = require('child_process');
19
+
20
+ const TTL_MS = 15000;
21
+ const GIT_TIMEOUT = 5000;
22
+
23
+ /** Async git: { code, out, failed }. Never rejects. */
24
+ function gitAsync(cwd, args) {
25
+ return new Promise((resolve) => {
26
+ execFile('git', args, { cwd, encoding: 'utf8', timeout: GIT_TIMEOUT, maxBuffer: 1 << 20, env: { ...process.env, GIT_OPTIONAL_LOCKS: '0' } },
27
+ (err, stdout, stderr) => {
28
+ const code = err ? (typeof err.code === 'number' ? err.code : null) : 0;
29
+ const failed = !!err && typeof err.code !== 'number'; // spawn failure or timeout, not a git exit code
30
+ resolve({ code, out: String(stdout || '').trim(), err: String(stderr || '').trim(), failed });
31
+ });
32
+ });
33
+ }
34
+
35
+ const isDir = (p) => { try { return fs.statSync(p).isDirectory(); } catch { return false; } };
36
+ const hasGitMarker = (root) => { try { return fs.existsSync(path.join(root, '.git')); } catch { return false; } };
37
+
38
+ /**
39
+ * Reads one folder with async git. Mirrors what repoIdentity did with git-info's sync helpers:
40
+ * repoRoot (tree), worktrees()[0] (key, name), originUrl (remote), headInfo (branch / branchError / branchCode).
41
+ */
42
+ async function readIdentity(root, run = gitAsync, now = () => Date.now()) {
43
+ let key = root, name = path.basename(root), branch = null, branchError = null, branchCode = null, remote = null, tree = null;
44
+ const dir = isDir(root);
45
+ if (dir) {
46
+ const top = await run(root, ['rev-parse', '--show-toplevel']);
47
+ if (!top.failed && top.code === 0 && top.out) tree = path.resolve(top.out.split('\n')[0].trim());
48
+ }
49
+ if (tree) {
50
+ const [wt, origin, head] = await Promise.all([
51
+ run(tree, ['worktree', 'list', '--porcelain']),
52
+ run(root, ['remote', 'get-url', 'origin']),
53
+ run(root, ['rev-parse', '--abbrev-ref', 'HEAD']),
54
+ ]);
55
+ if (!wt.failed && wt.code === 0 && wt.out) {
56
+ const first = wt.out.split('\n').find((l) => l.startsWith('worktree '));
57
+ if (first) { key = path.resolve(first.slice(9).trim()); name = path.basename(key); }
58
+ }
59
+ if (!origin.failed && origin.code === 0 && origin.out) remote = origin.out.split('\n')[0].trim() || null;
60
+ if (head.failed) { branchError = 'git not available'; branchCode = 'git-error'; }
61
+ else if (head.code !== 0) { branchError = head.err || 'could not read HEAD'; branchCode = 'git-error'; }
62
+ else branch = head.out === 'HEAD' ? null : head.out;
63
+ } else if (dir && hasGitMarker(root)) {
64
+ branchError = 'git not available'; branchCode = 'git-error';
65
+ } else {
66
+ branchError = 'not a git repository'; branchCode = 'no-git';
67
+ }
68
+ return { at: now(), key, name, branch, branchError, branchCode, remote, tree };
69
+ }
70
+
71
+ /**
72
+ * The cache. `compute(root)` is the synchronous first read (the server's existing one); `read(root)` is the async one.
73
+ * get(root) never waits on git after the first read of a folder.
74
+ */
75
+ function createRepoIdentityCache({ compute, read = readIdentity, ttlMs = TTL_MS, now = () => Date.now() } = {}) {
76
+ const cache = new Map();
77
+ const pending = new Map();
78
+ function refresh(root) {
79
+ if (pending.has(root)) return pending.get(root);
80
+ const p = Promise.resolve().then(() => read(root)).then((v) => { if (v) cache.set(root, v); return v; })
81
+ .catch(() => null)
82
+ .finally(() => pending.delete(root));
83
+ pending.set(root, p);
84
+ return p;
85
+ }
86
+ function get(root) {
87
+ const hit = cache.get(root);
88
+ if (hit) {
89
+ if (!(now() - hit.at < ttlMs)) refresh(root); // an answer with no clock counts as stale
90
+ return hit;
91
+ }
92
+ const val = compute(root);
93
+ cache.set(root, val);
94
+ return val;
95
+ }
96
+ return { get, refresh, cache, pending };
97
+ }
98
+
99
+ module.exports = { TTL_MS, readIdentity, gitAsync, createRepoIdentityCache };
@@ -2,7 +2,7 @@
2
2
  /* routes-meeting-focus.js — the Meeting focus page's server side (initiative c3-meeting-focus; lib/route-modules.js).
3
3
  *
4
4
  * GET /api/meeting-focus?event=<id>&date=YYYY-MM-DD[&ws=]
5
- * → { ok, now_ms, event, brief, material, note, topics, current, runs, tail, captured, gist, chips, notes, raise, asks, companion }
5
+ * → { ok, now_ms, event, brief, material, note, topics, current, runs, tail, captured, gist, gists, chips, notes, raise, asks, companion }
6
6
  * event.call is the meeting's call address ({ url, app } or null, lib/meeting-focus.js callLinkOf; meeting-buddy). Each caught item that
7
7
  * came from a bullet carries its id (bid), so the buddy's Undo drops it with POST /api/notes/bullet.
8
8
  * The meeting (the calendar read for that day), its brief (lib/calendar-layers.js briefOf), the note linked to it, the last
@@ -282,7 +282,7 @@ async function read(q, ctx) {
282
282
  note: note ? { id: note.id, title: note.title || ev.title, state: note.state, recorded_from: note.recorded_from || null, lines: (note.transcript || []).length, sessions } : null,
283
283
  topics: fresh.topics, current: fresh.current, runs: fresh.runs,
284
284
  tail: note ? F.tailOf(note, { now: nowMs }) : [], captured, agenda,
285
- gist: fresh.gist, chips: fresh.chips, notes: fresh.notes, raise: fresh.raise, asks: fresh.asks,
285
+ gist: fresh.gist, gists: fresh.gists, chips: fresh.chips, notes: fresh.notes, raise: fresh.raise, asks: fresh.asks,
286
286
  companion: { on: !F.off(env) && kindOk() && typeof ctx.spawnSession === 'function', running: !!fresh.pending, started, reason: call.reason, last_run_at: fresh.last_run_at || null, error: fresh.error },
287
287
  } };
288
288
  }
@@ -169,8 +169,13 @@ const ASKS = () => RUNNING().concat([{ id: 'b', name: 'Redistribute plan items',
169
169
  await pctx.route('**/api/live', (r) => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ ok: true, sessions: ASKS(), titles: {} }) }));
170
170
  const ph = await pctx.newPage();
171
171
  await ph.goto(BASE + '/premium-board.html');
172
- const f2 = await until(() => ph.evaluate(() => { const l = document.getElementById('czLive'), f = document.getElementById('czFab'); if (!l || l.hidden) return null; const a = l.getBoundingClientRect(), b = f.getBoundingClientRect(); return { above: a.bottom <= b.top, right: Math.abs((a.left + a.width / 2) - (b.left + b.width / 2)) <= 1, w: Math.round(a.width), text: l.textContent.trim() }; }), 30000);
173
- ok('F2 a phone: the round pill stacks above the menu button at the bottom right', f2 && f2.above && f2.right && f2.w === 44 && f2.text === '3', JSON.stringify(f2));
172
+ // the phone design (Ph2_menu): no round button and no pill; ⋯ sits at the top right and its menu has "Live now 3"
173
+ const f2 = await until(() => ph.evaluate(() => { const l = document.getElementById('czLive'), f = document.getElementById('czFab'); if (!f || !document.body.classList.contains('cz-phmore')) return null; return { pill: !!l && !l.hidden && getComputedStyle(l).display !== 'none', top: Math.round(f.getBoundingClientRect().top) }; }), 30000);
174
+ ok('F2 a phone: no round pill, and ⋯ is at the top right', f2 && !f2.pill && f2.top < 80, JSON.stringify(f2));
175
+ await ph.click('#czFab');
176
+ const lv = await until(() => ph.evaluate(() => { const b = document.querySelector('#czMenu [data-cz-live]'); return b ? b.textContent.trim() : null; }), 30000);
177
+ ok('F2 a phone: the ⋯ menu says Live now 3', lv === 'Live now3' || /Live now\s*3/.test(lv || ''), JSON.stringify(lv));
178
+ await ph.click('#czFab');
174
179
  await shot(ph, 'phone-pill');
175
180
  await ph.goto(BASE + '/premium.html');
176
181
  await until(() => ph.evaluate(() => !!document.querySelector('#hmList .hm-hd')), 30000);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.632.0",
3
+ "version": "0.634.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.632.0",
9
+ "version": "0.634.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.632.0",
3
+ "version": "0.634.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",
@@ -58,6 +58,8 @@ const tap = (pg, sel) => pg.$eval(sel, (b) => b.click());
58
58
  // the Board's first questions (board-grill: start, file, answer, later) write only triage-answers.jsonl and the material folder; intake/draft only drafts
59
59
  const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive|wontdo|ini-delete|ini-restore)|lifecycle|briefing-premium\/note|board-grill\/(?:start|file|answer|later)|intake\/draft|initiative-layout|proposals\/look)$/; // initiative-layout: the card's Moves on by itself switch (premium-uncovered-features); proposals/look: Create asks Claude to look for the new initiative elsewhere (batch 12 item 4); wontdo: the stage picker's Won't do and its Undo (batch 16 item 5c)
60
60
 
61
+ // the phone design (Ph2_init): a phone shows an initiative as the popup's phone page; the old page is ⋯ › Every part
62
+ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); await pg.evaluate(() => { const r = (window.__czVwMore ? window.__czVwMore(document.body) : []).find((x) => x.label === 'Every part'); if (r) r.go(); }); await pg.waitForTimeout(800); };
61
63
  (async () => {
62
64
  const exe = findBrowser();
63
65
  if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
@@ -308,7 +310,7 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
308
310
  await until(() => S.page.evaluate(() => document.querySelectorAll('#ibBody .ini2').length > 0), 30000);
309
311
  const f = await S.page.evaluate(() => ({ wide: document.documentElement.scrollWidth > innerWidth + 1, small: [...document.querySelectorAll('#ibBody .ini2, #chNeed, #newIni')].filter((b) => b.offsetParent && (b.getBoundingClientRect().width < 44 || b.getBoundingClientRect().height < 44)).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().width) + 'x' + Math.round(b.getBoundingClientRect().height)) }));
310
312
  ok('F1 at 390 px there is no sideways scroll and every new control is at least 44 px', !f.wide && !f.small.length, JSON.stringify(f));
311
- await S.page.click('#ibBody .ini2'); await until(() => S.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-iv-stagepick]'))); await S.page.click('#czViewer [data-iv-stagepick]');
313
+ await S.page.click('#ibBody .ini2'); await everyPart(S.page); await until(() => S.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-iv-stagepick]'))); await S.page.click('#czViewer [data-iv-stagepick]');
312
314
  const mi = await until(() => S.page.evaluate(() => { const L = [...document.querySelectorAll('.hi-pop .hi-mi')]; return L.length ? L.every((b) => b.getBoundingClientRect().height >= 44) && document.documentElement.scrollWidth <= innerWidth + 1 : null; }));
313
315
  ok('F2 the action rows are 44 px tall and the open sheet adds no sideways scroll', !!mi);
314
316
  await S.ctx.close();
@@ -67,8 +67,8 @@ const SPRINTS = { ok: true, source: 'jira', readAt: '2026-10-19T09:00:00Z', velo
67
67
  };
68
68
  const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
69
69
  const toSprint = async (page) => {
70
- if (!(await page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')))) { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(page); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ }
71
- await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')), 5000);
70
+ if (!(await page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)')))) { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(page); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ }
71
+ await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)')), 5000); // a phone: the popup's phone page (Ph2_init)
72
72
  await viaMore(page, 'Sprint');
73
73
  return until(() => page.evaluate(() => !!document.querySelector('#czViewer .obody.vw[data-vw="sprint:w1"] [data-jbl]')), 5000);
74
74
  };
@@ -40,6 +40,8 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
40
40
  { name: 'Goal', kind: 'changed', before: '- a first call without help', after: '- a first call in under ten minutes', current: '- a first call without help', stale: false },
41
41
  { name: 'Requirements', kind: 'changed', before: 'x', after: 'y', current: 'z', stale: true }] }, o || {});
42
42
 
43
+ // the phone design (Ph2_init): a phone shows an initiative as the popup's phone page; the old page is ⋯ › Every part
44
+ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); await pg.evaluate(() => { const r = (window.__czVwMore ? window.__czVwMore(document.body) : []).find((x) => x.label === 'Every part'); if (r) r.go(); }); await pg.waitForTimeout(800); };
43
45
  (async () => {
44
46
  const exe = findBrowser();
45
47
  if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
@@ -80,6 +82,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
80
82
  return send({ ok: false, error: 'not in this test' }, 404);
81
83
  });
82
84
  await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&theme=' + theme);
85
+ if (w <= 760) await everyPart(page);
83
86
  await until(() => page.evaluate(() => !!document.querySelector('#czViewer [data-iv-docs]')), 15000); // the initiative's page (canvas HbC)
84
87
  // the page's Documents "Show all N" opens every document in the Viewer
85
88
  await page.click('#czViewer [data-iv-docs]');
@@ -130,7 +130,7 @@ const openCard = async (pg, uid, V = '#czViewer') => {
130
130
  }
131
131
  {
132
132
  const { page, ctx, S } = await open({ w: 390, h: 844, theme: 'dark' });
133
- await overview(page);
133
+ await page.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); // a phone: the popup's phone page (Ph2_init), its ⋯ holds the record (pm/home-ini.js)
134
134
  await viaMore(page, 'Open the full record');
135
135
  await until(async () => /Checks/.test(await paneTxt(page, INI)));
136
136
  const fl = await page.evaluate((k) => {
@@ -76,7 +76,7 @@ const TICKETS = {
76
76
  // Home's initiative layout (premium-agreed-design): the card's Overview has the Sprint press; the Viewer shows one item at a time
77
77
  const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
78
78
  const overview = async (pg) => { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(pg); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ return until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]'))); };
79
- const openSprint = async (pg) => { if (!(await pg.$('#czViewer:not([hidden]) [data-hi-v]'))) await overview(pg); /* open() already showed the Overview */ await viaMore(pg, 'Sprint'); };
79
+ const openSprint = async (pg) => { if (!(await pg.$('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)'))) await overview(pg); /* open() already showed the Overview */ await viaMore(pg, 'Sprint'); };
80
80
  const open = async ({ w = 1280, h = 900, theme = 'light', sprints = SPRINTS, tickets = TICKETS } = {}) => {
81
81
  const ctx = await openMission(await browser.newContext({ viewport: { width: w, height: h }, colorScheme: theme }));
82
82
  await ctx.addInitScript((t) => { try { localStorage.setItem('pmos.c3.theme', t); } catch { /* none */ } }, theme);
@@ -90,8 +90,9 @@ const TICKETS = {
90
90
  await page.route('**/api/initiative-premium*', (r) => json(r, { ok: true, state: 'ready', model: IMODEL, as_of: Date.now() }));
91
91
  await page.route('**/api/briefing-premium/**', (r) => json(r, { ok: true, turns: [], working: false }));
92
92
  await page.goto(BASE + '/premium-initiative.html?id=self-serve-v2&ws=w1&board=w1&theme=' + theme); // the Board's expand link: Home with the initiative
93
- await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumVwJira), 20000);
94
- await overview(page);
93
+ // a phone shows the popup's phone page (Ph2_init); its ⋯ keeps Sprint (pm/home-ini.js)
94
+ if (w <= 760) await page.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 });
95
+ else { await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumVwJira), 20000); await overview(page); }
95
96
  await sleep(300); reads.length = 0; posts.length = 0; // Home's own reads; the checks below are about the sprint view's
96
97
  return { ctx, page, errors, posts, reads };
97
98
  };
@@ -211,7 +211,8 @@ function popExtra(r) {
211
211
  const x = O.rowOf(r.key) || r;
212
212
  VW.drill();
213
213
  VW.open({ kind: 'Initiative', title: x.title, icon: 'goal', id: 'all:' + vidOf(x), back: true,
214
- render: (b) => { b.dataset.pwAll = '1'; const y = O.rowOf(r.key) || x; b.innerHTML = iniBody(y, b); wire(b, y.key); } });
214
+ // the Board's next read draws it again (refresh): it is the initiative shown while it is open
215
+ render: (b) => { b.dataset.pwAll = '1'; const y = O.rowOf(r.key) || x; cur = { key: y.key, tk: null, vid: vidOf(y) }; O.onShow(y.key); b.innerHTML = iniBody(y, b); wire(b, y.key); } });
215
216
  },
216
217
  props: r.id ? () => { const x = O.rowOf(r.key) || r; VW.drill(); PP.open(viewOf(x), H); } : null,
217
218
  product: () => openProduct(O.rowOf(r.key) || r),
@@ -372,6 +373,8 @@ export function refresh(force) {
372
373
  if (!cur) return;
373
374
  const r = O.rowOf(cur.key); if (!r || !r.track) { close(); return; }
374
375
  // the Viewer that shows this initiative, not the one used last (a chat beside it took the initiative's body, batch 31 item 10)
376
+ // Every part (the old page as a drill-in, the way a phone reaches it, Ph2_init) reads the same row, so it is drawn again too
377
+ const all = !cur.tk && VW.bodyOf('all:' + vidOf(r)); if (all) { const t = all.scrollTop; all.innerHTML = iniBody(r, all); all.scrollTop = t; }
375
378
  const b = VW.bodyOf(vidOf(r)); if (!b || (!force && document.activeElement && b.contains(document.activeElement))) return;
376
379
  if (cur.tk) return; // the ticket Viewer reads its own records (tk-view.js); Read Jira again opens it fresh
377
380
  const top = b.scrollTop;
@@ -414,7 +414,7 @@ function draw(keepFocus) {
414
414
  const p = progOf(cur.id); if (!p) { VW.close(); return; }
415
415
  readAway(p); readMore(p); readDrafts(p);
416
416
  const b = VW.body(); if (!b) return;
417
- if (PW.on(b)) { const t = b.scrollTop, L = levelOf(cur.id); if (L) { b.innerHTML = PW.levelHtml(L, { today: L.today, add: false }); b.scrollTop = t; } return; } // the program in the popup (board 26)
417
+ if (PW.inPop(b)) { const t = b.scrollTop, L = levelOf(cur.id); if (L) { b.innerHTML = PW.levelHtml(L, { today: L.today, add: false }); b.scrollTop = t; } return; } // the program in the popup (board 26)
418
418
  const f = keepFocus && document.activeElement && b.contains(document.activeElement) ? document.activeElement : null;
419
419
  const sel = f ? (f.dataset.pp ? `[data-pp="${f.dataset.pp}"]` + (f.dataset.fold ? `[data-fold="${CSS.escape(f.dataset.fold)}"]` : '') + (f.dataset.key ? `[data-key="${CSS.escape(f.dataset.key)}"]` : '') + (f.dataset.ms ? `[data-ms="${CSS.escape(f.dataset.ms)}"]` : '') : f.dataset.czsFold ? `[data-czs-fold="${CSS.escape(f.dataset.czsFold)}"]` : null) : null;
420
420
  const top = b.scrollTop;
@@ -478,10 +478,10 @@ function openPanel(id, from, via) {
478
478
  VW.open({ kind: 'Program', title: titleOf(p), icon: I.prog, id: 'program:' + id,
479
479
  // on a desk the program opens in the one popup, the chat about it beside it (slice 3 of the six-place navigation, board 26)
480
480
  pop: RO ? undefined : { id: p.id, kind: 'program', title: p.title, ws: p.home || board().ws || undefined },
481
- discuss: true, more: () => (PW.on(VW.bodyOf('program:' + id)) ? [{ label: 'Every part', on: () => allParts(id) }, { sep: true }] : []).concat(moreOf(progOf(id) || p)), rename,
481
+ discuss: true, more: () => (PW.inPop(VW.bodyOf('program:' + id)) ? [{ label: 'Every part', on: () => allParts(id) }, { sep: true }] : []).concat(moreOf(progOf(id) || p)), rename,
482
482
  render: (body) => {
483
483
  { const q = progOf(id); if (q && VW.current() && VW.current().title !== titleOf(q)) VW.retitle('program:' + id, titleOf(q)); } // a rename in the charter, on ←
484
- if (PW.on(body)) { levelDraw(body, id, from); return; }
484
+ if (PW.inPop(body)) { levelDraw(body, id, from); return; }
485
485
  oldDraw(body, id, from);
486
486
  },
487
487
  onClose: () => {
@@ -263,8 +263,14 @@ export function stagesHtml(L, o = {}) {
263
263
  /** A phone row: the status dot, the title, the stage and what it waits on; the workflow's icon at the end when the board has more than one. */
264
264
  function phoneRow(r) {
265
265
  const s = statusLine(r), t = r.track || {}, w = WF.stageOfRow(r);
266
- const sub = [stageName(r) || (w && w.name), t.you ? t.you.replace(/^Your /, 'your ') : s.tone !== 'ok' && s.tone !== 'q' ? s.text.toLowerCase() : '', r.owner].filter(Boolean).join(' · ');
267
- return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${WK.iconHtml(r.kind)}${nameHtml(r)}</span><span class="s${t.you ? '' : ' q'}">${esc(sub)}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
266
+ // the phone design (Ph2_work): "Discover · 15 days over · wawan", the late or at risk words in their own tone, no kind icon before the name
267
+ const say = t.you ? t.you.replace(/^Your /, 'your ') : s.tone !== 'ok' && s.tone !== 'q' ? s.text.toLowerCase() : '';
268
+ const st = stageName(r) || (w && w.name) || '';
269
+ // a Project (Ph2 checks across kinds): the end date leads the late words, "ends 4 Dec"
270
+ const em = WK.kindOf(r.kind) === 'project' && /^\d{4}-\d{2}-\d{2}/.test(String(r.end || '')) ? String(r.end).slice(0, 10).split('-') : null;
271
+ const ends = em ? 'ends ' + (+em[2]) + ' ' + ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][+em[1] - 1] : '';
272
+ const sub = [st ? esc(st) : '', ends, say ? `<em class="${t.you ? 'you' : esc(s.tone)}">${esc(say)}</em>` : '', r.owner ? esc(r.owner) : ''].filter(Boolean).join(' · ');
273
+ return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${nameHtml(r)}</span><span class="s q">${sub}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
268
274
  }
269
275
  export function phoneListHtml(L) {
270
276
  const you = L.filter((r) => r.track && r.track.you), bad = L.filter((r) => !you.includes(r) && needOf(r) <= 3), left = L.filter((r) => !you.includes(r) && !bad.includes(r));
@@ -143,12 +143,12 @@ export function contextHtml(m) {
143
143
  return m.context.map((c) => row(c.label, esc(c.text), c.href ? `<a class="mb-ib" href="${esc(c.href)}" target="_blank" rel="noopener noreferrer" aria-label="Open it" title="Open it">${svg(P.open)}</a>` : '')).join('');
144
144
  }
145
145
  export function draftsHtml(m) {
146
- return m.drafts.map((d) => `<div class="mb-r mb-draft" data-draft="${esc(d.id)}"><span class="t"><small>Draft for the call chat</small>${esc(d.text)}</span>`
146
+ return m.drafts.map((d) => `<div class="mb-r mb-draft" data-draft="${esc(d.id)}" data-sw-right="copy" data-sw-left="chat-x"><span class="t"><small>Draft for the call chat</small>${esc(d.text)}</span>`
147
147
  + ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ` data-id="${esc(d.id)}"`, 'go') + ib('chat-x', 'Not now', P.x, ` data-id="${esc(d.id)}"`) + '</div>').join('');
148
148
  }
149
149
  export function consentHtml(m) {
150
150
  if (!m.consent.show) return '';
151
- return `<div class="mb-r mb-consent"><span class="t"><small>PMOS proposes</small>Tell the call you are taking notes with PMOS?<q class="mb-line">${esc(CONSENT_LINE)}</q></span>`
151
+ return `<div class="mb-r mb-consent" data-sw-right="copy" data-sw-left="consent-x"><span class="t"><small>PMOS proposes</small>Tell the call you are taking notes with PMOS?<q class="mb-line">${esc(CONSENT_LINE)}</q></span>`
152
152
  + `<span class="mb-acts">${ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ' data-id="consent"', 'go')}${ib('consent-x', 'Not now', P.x)}</span></div>`;
153
153
  }
154
154
  export function answerHtml(m) {
@@ -1586,3 +1586,18 @@ html.ro body.wk-on .bd-hd { display: none; } /* find and tune moved to the top
1586
1586
  /* slice 1: the rail of places leaves the toolbar 80 px less beside a Viewer; the "what needs a look" pill gives way first (it leaves the
1587
1587
  toolbar with slice 4), so ⋯ never runs past the panel's edge (its menu hangs from the wrapper, so only the chip clips) */
1588
1588
  @media (min-width: 761px) { .bd-hd #bdNeedw { min-width: 0; } .bd-hd #bdNeedw .bd-chip.bd-need { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; } .bd-hd .bd-chip.bd-need > span { flex: none; } }
1589
+
1590
+ /* ── The phone design (board Ph2_work; build brief nav-structure/phone/build-brief-v2.md) ──
1591
+ * The product chip with its name, then Find and the tune button; the ⋯ of the menu sits at the right (pm/cozy-nav.js), so the head leaves it
1592
+ * 48 px. The View chip, the needs pill and New stay as they were (a phone list by default). A row says "Discover · 15 days over · wawan", the late words in their
1593
+ * tone, and its name wraps to two lines. */
1594
+ @media (max-width: 760px) {
1595
+ body.cz-phmore .bd-hd { padding-right: 48px; }
1596
+ body.cz-phmore .bd-lrow.ini2 { align-items: flex-start; border-radius: 12px; }
1597
+ body.cz-phmore .bd-lrow.ini2 > .cz-dot { margin-top: 8px; }
1598
+ body.cz-phmore .bd-lrow.ini2 .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
1599
+ body.cz-phmore .bd-lrow.ini2 .s em { font-style: normal; }
1600
+ body.cz-phmore .bd-lrow.ini2 .s em.red, body.cz-phmore .bd-lrow.ini2 .s em.late { color: var(--cz-late); }
1601
+ body.cz-phmore .bd-lrow.ini2 .s em.risk { color: var(--cz-risk); }
1602
+ body.cz-phmore .bd-lrow.ini2 .s em.you { color: var(--cz-blueink); }
1603
+ }
@@ -507,3 +507,28 @@
507
507
  html.ro body.cz-railon.cz-pn-page { padding-left: 16px; }
508
508
  html.ro body.cz.cz-railon main.cz-panel.stage { margin-left: 16px; }
509
509
  }
510
+
511
+ /* ── The phone's ⋯ (phone design, boards Ph2_menu and Ph2_today; build brief nav-structure/phone/build-brief-v2.md) ──
512
+ * No round button and no bottom bar: #czFab is a plain ⋯ at the top right of every page, its one dot on its top right corner, and the menu
513
+ * drops under it. The pages leave 48 px free at the right of their top line (body.cz-phmore). Rules here win over a page's own phone
514
+ * position of the old round button (bottom right), so they carry !important on the place only. */
515
+ @media (max-width: 760px) {
516
+ body.cz-phmore .cz-fabw { top: calc(env(safe-area-inset-top, 0px) + 8px) !important; right: 8px !important; bottom: auto !important; left: auto !important;
517
+ flex-direction: column-reverse; align-items: flex-end; gap: 6px; z-index: 70; }
518
+ body.cz-phmore .cz-fab { width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; color: var(--cz-ink); }
519
+ body.cz-phmore .cz-fab[aria-expanded="true"] { background: var(--cz-well); }
520
+ body.cz-phmore .cz-fab svg { width: 22px; height: 22px; stroke-width: 2.6; }
521
+ body.cz-phmore .ev-fd { top: 5px; width: 8px; height: 8px; border-width: 2px; }
522
+ body.cz-phmore .ev-fd.you, body.cz-phmore .ev-fd.risk { left: auto; right: 5px; }
523
+ body.cz-phmore .cz-ears, body.cz-phmore .cz-fabw .cz-live, body.cz-phmore .cz-fabw .lv-pill { display: none !important; } /* Live now is a menu row */
524
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm { width: 232px; padding: 8px; gap: 2px; border-radius: 18px; }
525
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm a, body.cz-phmore .cz-fabm.ev-menu.ev-phm button.ev-mi { min-height: 44px; font-weight: var(--fw-regular); position: relative; }
526
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .bad { color: var(--cz-late); }
527
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm [aria-current="page"] { font-weight: var(--fw-strong); }
528
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-k { color: var(--cz-ink2); font-size: var(--fs-row); font-weight: var(--fw-regular); }
529
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-k + .ev-md.you { margin-left: 8px; width: 7px; height: 7px; }
530
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-md.risk { position: static; margin-left: auto; border: 0; }
531
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-hr { border: 0; border-top: 1px solid var(--cz-hair); margin: 4px 6px; width: auto; }
532
+ body.cz-phmore .ins-bar { padding-right: 48px; } /* Goals keeps its own top line clear of the ⋯ */
533
+ body.cz-phmore .ev-scrim { background: rgba(42,46,53,.22); }
534
+ }
@@ -928,9 +928,11 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
928
928
  /* no name and time line and no "You · 12:09": still read out to a screen reader. The ask card keeps its name line. */
929
929
  body.cz-home:not(.hm-plist) .hm-a:not(.ask):not(.hm-intro) .hm-ab > .hm-who:not(:has(.hm-say)),
930
930
  body.cz-home:not(.hm-plist) .hm-u > .hm-you { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
931
- /* Copy, Retry and Make it a task: on the newest message; an older one shows them on press and hold, or on focus */
931
+ /* Copy, Retry and Make it a task, and the "Worked …" line: only on a touch of the message (phone design, Ph2_ask), or on focus. A tap on
932
+ * the message shows them; a tap elsewhere hides them (home-chat.js). An opened "Worked" line stays. */
932
933
  body.cz-home:not(.hm-plist) .hm-tools { margin-top: 8px; }
933
- body.cz-home:not(.hm-plist) .hm-a:not(.last):not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
934
+ body.cz-home:not(.hm-plist) .hm-a:not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
935
+ body.cz-home:not(.hm-plist) .hm-log > .hm-worked:has(+ .hm-a:not(.held):not(:focus-within)):not(:has([aria-expanded="true"])):not(:focus-within) { display: none; }
934
936
 
935
937
  /* the foot: one box, + · input · mic · send, on the card with no fade over the stream */
936
938
  body.cz-home:not(.hm-plist) #hmFoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--cz-card); }
@@ -988,3 +990,37 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
988
990
  /* the notes a turn's worked line folds (popup round 3 point 19c): quiet, above its steps */
989
991
  .hm-notes { padding: 4px 0 2px 18px; }
990
992
  .hm-notes p { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--cz-ink2); }
993
+
994
+ /* ── Ask PMOS on a phone (phone design, board Ph2_asklist; pm/phone-ask.js) ──
995
+ * Home's page on a phone: the chats grouped by work, on the white page, no cards. The title alone at the top (the menu's ⋯ is at its right,
996
+ * cozy-ev.css); the composer is fixed at the foot and starts a chat. Home's own list is not drawn; an open chat covers the page as before. */
997
+ .pa-page[hidden] { display: none !important; }
998
+ @media (max-width: 760px) {
999
+ body.cz-home.pa-on.hm-plist { background: var(--cz-card); }
1000
+ body.cz-home.pa-on.hm-plist #hmDesk > .hm-list { display: none !important; }
1001
+ body.cz-home.pa-on:not(.hm-plist) .pa-page { display: none !important; }
1002
+ .pa-page { display: block; font-family: var(--cz-sans); color: var(--cz-ink); padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 112px; }
1003
+ .pa h1, .pa h2, .pa ul { margin: 0; padding: 0; }
1004
+ .pa ul { list-style: none; }
1005
+ .pa-top { min-height: 44px; display: flex; align-items: center; padding-right: 44px; margin-bottom: 14px; }
1006
+ .pa-top h1 { font-size: var(--fs-display); font-weight: var(--fw-strong); line-height: 1.25; }
1007
+ .pa-none { margin: 12px 0; font-size: var(--fs-body); color: var(--cz-ink3); line-height: var(--lh-body); }
1008
+ .pa-g { padding-top: 16px; }
1009
+ .pa-g h2 { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: var(--lh-body); color: var(--cz-ink); }
1010
+ .pa-gi { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--cz-bluebg); color: var(--cz-blue); }
1011
+ .pa-gi.loose { background: var(--cz-well); color: var(--cz-ink3); }
1012
+ .pa-gt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1013
+ .pa-g h2 em { font-style: normal; font-weight: var(--fw-regular); color: var(--cz-ink3); font-size: var(--fs-meta); }
1014
+ .pa-r { all: unset; box-sizing: border-box; position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--cz-hair); cursor: pointer; }
1015
+ .pa-r:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
1016
+ .pa-d { position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--cz-blue); }
1017
+ .pa-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
1018
+ .pa-x b { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1019
+ .pa-x small { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1020
+ .pa-r time { flex: none; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-row); }
1021
+ .pa-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--cz-card); }
1022
+ .pa-new { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); cursor: text; }
1023
+ .pa-ph { flex: 1; font-size: var(--fs-field); }
1024
+ .pa-pl, .pa-mic { display: inline-grid; place-items: center; color: var(--cz-ink2); }
1025
+ .pa-go { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cz-solid); color: var(--cz-onsolid); }
1026
+ }