create-pmos 0.600.0 → 0.602.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.
@@ -18,7 +18,7 @@
18
18
  * Prototype by chatting (initiative live-round-iterative): the compare view of a live round carries its version's companions as data
19
19
  * (data: { flow, lanes, copy, tweaks, edits }, lib/live-round.js partsAt) and the initiative's comments; GET /api/lab/specimen with rt=1
20
20
  * adds the canvas runtime (lib/proto-runtime.js) inside the same sandbox, so the canvas can point, pin, play and edit through postMessage.
21
- * POST /api/lab/edit { ws, file, copy?: { key: text }, vars?: { --var: value } } → { ok } the PM's in-place copy edits and tweaks,
21
+ * POST /api/lab/edit { ws, file, copy?: { key: text }, vars?: { --var: value }, styles?: { el: { prop: value } | null } } → { ok } the PM's in-place copy edits, tweaks and inspector styles,
22
22
  * kept with the version (edits.json next to it); the next version reads them
23
23
  * POST /api/lab/comment { ws, ini, file, el?, label?, text, x?, y?, send? } → { ok, id } a comment pinned to an element (send: it was
24
24
  * sent to PMOS as the next change; else it is kept for the team)
@@ -204,12 +204,16 @@ const WRITES = {
204
204
  const abs = liveFile(ctx, body.file); if (!abs) return fail(ctx, res, 404, 'That version is not in the live round folder');
205
205
  const LR = require('./live-round.js'), f = require('path').join(require('path').dirname(abs), 'edits.json');
206
206
  let was = {}; try { was = JSON.parse(fs.readFileSync(f, 'utf8')); } catch { was = {}; }
207
- const add = LR.editsOf({ copy: body.copy, vars: body.vars }), old = LR.editsOf(was);
208
- const next = { copy: { ...old.copy, ...add.copy }, vars: { ...old.vars, ...add.vars } };
207
+ const add = LR.editsOf({ copy: body.copy, vars: body.vars, styles: body.styles }), old = LR.editsOf(was);
208
+ // inspector styles merge per element; { el: null } (the layer's undo) drops that element's styles
209
+ const styles = { ...old.styles };
210
+ for (const [el, ps] of Object.entries(add.styles)) styles[el] = { ...(styles[el] || {}), ...ps };
211
+ if (body.styles && typeof body.styles === 'object') for (const [el, ps] of Object.entries(body.styles)) if (ps === null) delete styles[el];
212
+ const next = { copy: { ...old.copy, ...add.copy }, vars: { ...old.vars, ...add.vars }, styles };
209
213
  try { fs.writeFileSync(f, JSON.stringify(next, null, 1)); } catch { return fail(ctx, res, 500, 'The edit was not saved'); }
210
214
  // the edits are part of the version the initiative is at (2026-11-18: they lived only in edits.json): its kept line says so, once per
211
215
  // new line edited (not on every key press)
212
- const n0 = Object.keys(old.copy).length + Object.keys(old.vars).length, n1 = Object.keys(next.copy).length + Object.keys(next.vars).length;
216
+ const n0 = Object.keys(old.copy).length + Object.keys(old.vars).length + Object.keys(old.styles).length, n1 = Object.keys(next.copy).length + Object.keys(next.vars).length + Object.keys(next.styles).length;
213
217
  if (n1 > n0) try { keptEdited(dir, String(body.file), next, g); } catch { /* edits.json holds them */ }
214
218
  ctx.json(res, { ok: true, edits: next });
215
219
  return true;
@@ -247,8 +251,8 @@ function keptEdited(dir, file, ed, g) {
247
251
  }
248
252
  const cur = ini ? PR.currentOf(F, ini) : null;
249
253
  if (!cur || cur.file !== file) return;
250
- const nc = Object.keys(ed.copy).length, nv = Object.keys(ed.vars).length;
251
- const what = [nc ? nc + (nc === 1 ? ' line of copy' : ' lines of copy') : '', nv ? nv + (nv === 1 ? ' tweak' : ' tweaks') : ''].filter(Boolean).join(' and ');
254
+ const nc = Object.keys(ed.copy).length, nv = Object.keys(ed.vars).length, ns = Object.keys(ed.styles || {}).length;
255
+ const what = [nc ? nc + (nc === 1 ? ' line of copy' : ' lines of copy') : '', nv ? nv + (nv === 1 ? ' tweak' : ' tweaks') : '', ns ? ns + (ns === 1 ? ' restyled layer' : ' restyled layers') : ''].filter(Boolean).join(' and ');
252
256
  const AF = require('./artefacts.js'), by = (g.actor && /^(pm|agent):/.test(String(g.actor.by || ''))) ? g.actor : { by: 'agent:live-round' };
253
257
  AF.set(AF.file(dir), { scope: 'experiment:' + ini, artefact: 'specimens', field: 'kept', text: `Version ${cur.n}, with your edits in the Viewer (${what}): ${cur.said || cur.title || ''} (${LAB.specimenUrl(file)})`.slice(0, 600), sources: [{ label: 'live round', ref: LAB.specimenUrl(file) }] }, by);
254
258
  }
@@ -4,7 +4,9 @@
4
4
  * GET /api/refresh?ws=<id> → { ok, ws, rules, quiet, window, rows: [row] } lib/refresh.js rowsOf
5
5
  * POST /api/refresh/source { id, on?, schedule? } → { ok, source } on or off, and a skill source's schedule
6
6
  * POST /api/refresh/rules { catchup?, retry?, tell?, max?, keep? } → { ok, rules }
7
- * POST /api/refresh/run { id, ws?, with_inputs? } → { ok, source, started?|waiting?, inputs } Refresh now
7
+ * POST /api/refresh/source { id: 'tools', svc, schedule|null } → { ok, source, svc } one service's own rhythm (null follows Your tools)
8
+ * POST /api/refresh/run { id, ws?, with_inputs?, svcs? } → { ok, source, started?|waiting?, inputs } Refresh now (svcs: some services of Your tools)
9
+ * POST /api/refresh/stop { id, ws?, again? } → { ok, stopped, again } Stop and read again (batch 31 item 6)
8
10
  * POST /api/refresh/run-all { ws? } → { ok, started: [id], failed: [{ id, error }] } every source that is on
9
11
  * GET /api/refresh/log?source=&result=&limit= → { ok, runs: [run] } newest first
10
12
  * GET /api/refresh/log.csv → text/csv, every run kept
@@ -47,7 +49,7 @@ async function handle(req, res, url, ctx) {
47
49
  return true;
48
50
  }
49
51
 
50
- if (!['/api/refresh/source', '/api/refresh/rules', '/api/refresh/run', '/api/refresh/run-all'].includes(p)) return false;
52
+ if (!['/api/refresh/source', '/api/refresh/rules', '/api/refresh/run', '/api/refresh/run-all', '/api/refresh/stop'].includes(p)) return false;
51
53
  if (req.method !== 'POST') { ctx.json(res, { ok: false, error: 'POST only' }, 405); return true; }
52
54
  const got = await ctx.readJson(req);
53
55
  if (!got.ok) { ctx.json(res, { ok: false, error: 'the body is not JSON' }, 400); return true; }
@@ -62,7 +64,7 @@ async function handle(req, res, url, ctx) {
62
64
  }
63
65
 
64
66
  if (p === '/api/refresh/source') {
65
- const r = run.setSource(String(body.id || ''), { on: body.on, schedule: body.schedule });
67
+ const r = run.setSource(String(body.id || ''), body.svc !== undefined ? { svc: body.svc, schedule: body.schedule } : { on: body.on, schedule: body.schedule });
66
68
  ctx.json(res, r, r.ok ? 200 : 400);
67
69
  return true;
68
70
  }
@@ -74,7 +76,13 @@ async function handle(req, res, url, ctx) {
74
76
  return true;
75
77
  }
76
78
  if (p === '/api/refresh/run') {
77
- const r = run.runNow(String(body.id || ''), { ws, withInputs: body.with_inputs === true });
79
+ if (body.svcs !== undefined && !(Array.isArray(body.svcs) && body.svcs.every((x) => typeof x === 'string'))) { ctx.json(res, { ok: false, error: 'svcs must be a list of service ids' }, 400); return true; }
80
+ const r = run.runNow(String(body.id || ''), { ws, withInputs: body.with_inputs === true, svcs: body.svcs });
81
+ ctx.json(res, r, r.ok ? 200 : r.status || 400);
82
+ return true;
83
+ }
84
+ if (p === '/api/refresh/stop') {
85
+ const r = run.stopAndRead(String(body.id || ''), { ws, again: body.again !== false });
78
86
  ctx.json(res, r, r.ok ? 200 : r.status || 400);
79
87
  return true;
80
88
  }
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+ /* routes-relay.js — Settings › Connectors › Listening (initiative event-relay; D110). Page presses only; the host is never given a way in.
3
+ *
4
+ * GET /api/relay -> { ok, host, sources: { github, jira }, recent, last } (no secret, no key)
5
+ * POST /api/relay/setup { source } -> { ok, source, url, secret, steps } makes the address on the host; the PM pastes it into the service
6
+ * POST /api/relay/steps { source } -> { ok, source, url, secret, steps } shows the same steps again
7
+ * POST /api/relay/stop { source } -> { ok } the address and its queue are deleted on the host
8
+ * POST /api/relay/pull -> { ok, events, rang } pull now (the background queue pulls every minute)
9
+ * The secret goes only to this loopback page, for the PM to paste. Nothing here writes a record (D110 point 5). */
10
+ const relay = require('./event-relay.js');
11
+
12
+ module.exports = {
13
+ prefixes: ['/api/relay'],
14
+ handle: async (req, res, url, ctx) => {
15
+ const p = url.pathname; const dir = ctx.runtimeDir;
16
+ if (p === '/api/relay' && req.method === 'GET') { ctx.json(res, { ok: true, ...relay.status(dir) }); return true; }
17
+ if (!['/api/relay/setup', '/api/relay/steps', '/api/relay/stop', '/api/relay/pull'].includes(p)) return false;
18
+ if (req.method !== 'POST') { ctx.json(res, { ok: false, error: 'POST only' }, 405); return true; }
19
+ const b = await ctx.readJson(req); const body = b && b.ok ? b.body || {} : {};
20
+ const source = String(body.source || '');
21
+ let r;
22
+ if (p === '/api/relay/setup') r = await relay.setup(dir, source, {});
23
+ else if (p === '/api/relay/steps') r = relay.steps(dir, source);
24
+ else if (p === '/api/relay/stop') r = await relay.stop(dir, source, {});
25
+ else r = await relay.pull(dir, { ring: ctx.refreshRun ? relay.doorbell(ctx.refreshRun) : null });
26
+ ctx.json(res, r, r.ok ? 200 : r.status || 400);
27
+ return true;
28
+ },
29
+ };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.600.0",
3
+ "version": "0.602.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.600.0",
9
+ "version": "0.602.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.600.0",
3
+ "version": "0.602.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",
@@ -423,6 +423,15 @@
423
423
  .cz .ev-ls { display: flex; flex-direction: column; gap: 2px; }
424
424
  .cz .ev-ls .ev-ms { color: var(--cz-late); }
425
425
  .cz .ev-ls .ev-nx { color: var(--cz-blueink); }
426
+ /* Settings › Connectors › Listening (event-relay, D110; pm/cozy-relay.js) */
427
+ .ev-st .ev-rl-acts { display: flex; gap: 2px; }
428
+ .ev-st .ev-rl-steps { margin: 2px 0 10px 28px; padding: 10px 12px; border-radius: 12px; background: var(--cz-well); }
429
+ .ev-st .ev-rl-steps ol { margin: 0 0 8px; padding-left: 18px; }
430
+ .ev-st .ev-rl-steps li { margin: 3px 0; }
431
+ .ev-st .ev-rl-kv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 4px; }
432
+ .ev-st .ev-rl-kv code { overflow-wrap: anywhere; }
433
+ .ev-st .ev-rl-ev { margin: 4px 0 0 28px; padding: 0; list-style: none; }
434
+ .ev-st .ev-rl-ev li { padding: 2px 0; }
426
435
  /* Settings › Connectors › Scheduled work (batch 31 item 2, agreed design SwC; pm/cozy-schedwork.js): the quiet entry, the list, and a
427
436
  * job's page like the Claude app's scheduled task: Active, Next run, Repeats in one card, PMOS's ✦ rhythm, History, ▶ Read now */
428
437
  .ev-st .ev-sw-ic { color: var(--cz-ink3); display: inline-flex; flex: none; }
@@ -8,6 +8,7 @@
8
8
  * (self-heal, feedback batch 26 item 7): null while Claude repairs a source by itself, or after it did
9
9
  * sourceRows(sources, now) → [{ id, name, sub, when, risk, act: 'read' | 'connect' | '' }] the Sources table (EvSources)
10
10
  * connectorRows(sources, health, now) → [{ id, name, trouble, why, when, act }] Settings › Connectors, design A (CnA): trouble first
11
+ * svcRow(svc, schedule, job, now) → one service of Your tools as a Connectors row (batch 31 item 6, StA)
11
12
  * issueRow(issue) → { src, name, why } a harness-health issue split into a row's name and reason
12
13
  * clockOf(iso, now) → '09:15' today · 'yesterday' · '3 Nov'
13
14
  * partsOf(id) → what may be out of date when that source is old ('Board and the Jira-linked initiatives')
@@ -137,6 +138,17 @@ export function scheduleLine(s, now = Date.now()) {
137
138
  const nx = sch.next_run ? nextOf(sch.next_run, now) : '';
138
139
  return { text: everyLine(sch.cadence) + (nx ? ' · next ' + nx : ''), missed: false };
139
140
  }
141
+ /** One service of Your tools as a Connectors row (batch 31 item 6). `id` is 'tools.<svc>', which ↻ and › read. */
142
+ export function svcRow(v, sch, job, now = Date.now()) {
143
+ const id = (job || 'tools') + '.' + v.id, base = { id, name: v.label, job: id, svc: v.id };
144
+ const st = sch.stall && v.reading && (!sch.stall.svcs || sch.stall.svcs.includes(v.id)) ? sch.stall : null;
145
+ if (st) return { ...base, trouble: 1, why: 'Stuck since ' + clockOf(st.since, now) + ' · ' + st.why.replace(/^./, (c) => c.toLowerCase()), when: '', act: null };
146
+ if (v.cadence === 'off') return { ...base, trouble: 0, why: 'Off', when: '', act: null };
147
+ if (v.last_state === 'not-reached' && !v.reading) return { ...base, trouble: 2, why: 'Not reached' + (v.last_why ? ': ' + v.last_why : '') + '.', when: '', act: { kind: 'read', label: 'Read ' + v.label + ' again' } };
148
+ if (v.missed_at && !v.reading) return { ...base, trouble: 4, why: (v.last_at ? 'Read ' + atOf(v.last_at, now) : 'Never read') + ' · missed ' + atOf(v.missed_at, now), when: '', act: { kind: 'read', label: 'Read ' + v.label + ' again' } };
149
+ const nx = v.next_run ? nextOf(v.next_run, now) : '';
150
+ return { ...base, trouble: 0, why: v.reading ? 'Reading now' : everyLine(v.cadence) + (nx ? ' · next ' + nx : ''), when: v.reading ? '' : v.last_at ? short(ago(v.last_at, now)) : 'Never read', act: null };
151
+ }
140
152
  /**
141
153
  * connectorRows(sources, health, now) → [{ id, name, trouble, why, when, act }] trouble rows first (needs you, then failed, then
142
154
  * the other issues), then the quiet rows in the server's order.
@@ -169,6 +181,8 @@ export function connectorRows(sources, health, now = Date.now()) {
169
181
  }
170
182
  const mend = h && h.state === 'repairing' && (s.state === 'stale' || s.state === 'never');
171
183
  const sch = s.schedule || {}, job = sch.refresh || null, line = scheduleLine(s, now);
184
+ // batch 31 item 6 (A): Your tools is one row per service, each with its own rhythm; a stuck read names why on the services it holds
185
+ if (Array.isArray(sch.svcs) && sch.svcs.length && sch.cadence !== 'off') { for (const v of sch.svcs) out.push(svcRow(v, sch, job, now)); continue; }
172
186
  if (line && line.missed && !mend && s.state !== 'building' && s.state !== 'off') {
173
187
  out.push({ id: s.id, name, trouble: 4, why: line.text, when: '', act: read, ...(job ? { job } : {}) });
174
188
  continue;
@@ -34,10 +34,32 @@
34
34
 
35
35
  /* the canvas */
36
36
  .pc-vp { overflow: auto; border-radius: 16px; background-color: var(--cz-well); background-image: radial-gradient(var(--cz-hair) 1px, transparent 1px); background-size: 16px 16px; padding: 14px; min-height: 420px; }
37
- .pc-board { display: grid; grid-template-columns: auto minmax(520px, 820px); grid-template-areas: "proto col" "lanes lanes"; gap: 16px; align-items: start; width: max-content; min-width: 100%; }
38
- .pc-proto { grid-area: proto; }
39
- .pc-col { grid-area: col; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
40
- .pc-lanesc { grid-area: lanes; }
37
+ .pc-dbody { display: flex; gap: 10px; align-items: stretch; min-height: 420px; }
38
+ .pc-dbody > .pc-vp { flex: 1; min-width: 0; }
39
+ .pc-leftw:empty, .pc-rightw:empty { display: none; }
40
+ .pc-board { display: flex; justify-content: center; align-items: flex-start; width: max-content; min-width: 100%; }
41
+
42
+ /* design mode: Pages > Screens > Layers on the left, Exact values on the right (canvas FpA); both hide */
43
+ .pc-left, .pc-insp, .pc-side { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 10px; border: 1px solid var(--cz-hair); border-radius: 16px; background: var(--cz-card); overflow: auto; max-height: 72vh; }
44
+ .pc-left { width: 210px; }
45
+ .pc-insp { width: 270px; gap: 0; }
46
+ .pc-lh { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 6px 2px 14px; font-size: var(--fs-badge); font-weight: var(--fw-strong); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
47
+ .pc-lh span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
48
+ .pc-lh .pc-ib { border-color: transparent; background: transparent; }
49
+ .pc-lrow { display: block; width: 100%; min-height: 32px; padding: 6px 14px; border: 0; background: transparent; text-align: left; font: inherit; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--cz-ink2); cursor: pointer; }
50
+ .pc-lrow.in { padding-left: 26px; }
51
+ .pc-lrow:hover { background: var(--cz-well); }
52
+ .pc-lrow[aria-pressed="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); font-weight: var(--fw-strong); }
53
+ .pc-left .pc-hint, .pc-insp > .pc-hint { padding: 4px 14px; }
54
+ .pc-isec { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--cz-hair); }
55
+ .pc-isec:first-of-type { border-top: 0; }
56
+ .pc-isec > b { font-size: var(--fs-badge); font-weight: var(--fw-strong); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
57
+ .pc-ir { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--cz-ink2); }
58
+ .pc-ir input, .pc-ir select { min-width: 0; width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--cz-hair); border-radius: 8px; background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-meta); }
59
+ .pc-ir input[type="color"] { padding: 2px; cursor: pointer; }
60
+ .pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
61
+ .pc-ifoot { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 8px 0 14px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--cz-ink3); }
62
+ .pc-ifoot .pc-ib { margin-left: auto; }
41
63
  .pc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--cz-hair); border-radius: 16px; background: var(--cz-card); min-width: 0; }
42
64
  .pc-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
43
65
  .pc-upd { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--cz-okbg); color: var(--cz-ok); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
@@ -60,9 +82,9 @@
60
82
  .pc-dev { position: relative; }
61
83
  .pc-dev.phone { width: 300px; padding: 10px; border-radius: 34px; background: var(--cz-ink); }
62
84
  .pc-dev.phone .pc-frame { height: 600px; border-radius: 26px; }
63
- .pc-dev.desktop { width: 760px; padding: 26px 0 0; border-radius: 12px; background: var(--cz-well2, var(--cz-well)); border: 1px solid var(--cz-hair); }
85
+ .pc-dev.desktop { width: 900px; padding: 26px 0 0; border-radius: 12px; background: var(--cz-well2, var(--cz-well)); border: 1px solid var(--cz-hair); }
64
86
  .pc-dev.desktop::before { content: ''; position: absolute; left: 12px; top: 10px; width: 36px; height: 8px; border-radius: 4px; background: radial-gradient(circle at 4px 4px, var(--cz-hair) 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; }
65
- .pc-dev.desktop .pc-frame { height: 480px; border-radius: 0 0 12px 12px; }
87
+ .pc-dev.desktop .pc-frame { height: 560px; border-radius: 0 0 12px 12px; }
66
88
  .pc-frame { position: relative; overflow: hidden; background: var(--cz-c-ffffff); }
67
89
  .pc-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--cz-c-ffffff); }
68
90
  .pc-frame .pc-none { padding: 20px; }
@@ -119,7 +141,7 @@
119
141
  .pc-chip[aria-pressed="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); border-color: transparent; }
120
142
 
121
143
  /* the page copy: a side panel over the canvas, behind the toolbar's Page copy press (closed by default) */
122
- .pc-side { position: absolute; top: 44px; right: 0; bottom: 0; z-index: 4; width: min(380px, 100%); overflow: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
144
+ .pc-side { width: min(420px, 100%); padding: 14px; gap: 8px; }
123
145
  .pc-side h3 { display: flex; align-items: center; gap: 8px; }
124
146
  .pc-side h3 .pc-ib { margin-left: auto; width: 28px; height: 28px; }
125
147
  .pc .pc-ib.upd { position: relative; }
@@ -132,18 +154,45 @@
132
154
  .pc-cr [contenteditable]:hover { background: var(--cz-well); }
133
155
  .pc-cr.ch [contenteditable] { box-shadow: inset 2px 0 0 var(--cz-ok); }
134
156
 
135
- /* Play */
136
- .pc-play { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; background: var(--cz-card); }
137
- .pc-pbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
138
- .pc-pstep { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--cz-ink2); }
139
- .pc-pstep b { color: var(--cz-ink); font-weight: var(--fw-strong); }
140
- .pc-pframe { flex: 1; min-height: 0; align-self: center; width: 100%; display: flex; justify-content: center; }
141
- .pc-pframe iframe { border: 0; background: var(--cz-c-ffffff); height: 100%; min-height: 560px; }
142
- .pc-pframe.phone iframe { width: 390px; border-radius: 26px; box-shadow: 0 0 0 10px var(--cz-ink); margin: 10px; }
143
- .pc-pframe.desktop iframe { width: 100%; border-radius: 12px; border: 1px solid var(--cz-hair); }
157
+ /* Play (canvas FpC): the prototype bare, the device switch, the flow beside it as steps */
158
+ .pc-play { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; background: var(--cz-ink); color: var(--cz-onsolid); }
159
+ .pc-play .pc-ib { background: transparent; border-color: transparent; color: var(--cz-onsolid); }
160
+ .pc-play .pc-ib.blue { background: var(--cz-blue); color: var(--cz-ink); }
161
+ .pc-play .pc-grp { background: rgba(255, 255, 255, .08); }
162
+ .pc-play .pc-grp .pc-ib[aria-pressed="true"], .pc-play .pc-ib[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: var(--cz-onsolid); box-shadow: none; }
163
+ .pc-pbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
164
+ .pc-pbar b { font-weight: var(--fw-strong); }
165
+ .pc-pbar small { font-size: var(--fs-meta); opacity: .7; }
166
+ .pc-pmain { flex: 1; min-height: 0; display: flex; gap: 12px; }
167
+ .pc-pstage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
168
+ .pc-pstage .pc-hint { color: var(--cz-onsolid); opacity: .6; text-align: center; }
169
+ .pc-pframe { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; }
170
+ .pc-pframe iframe { border: 0; background: var(--cz-c-ffffff); height: 100%; min-height: 420px; }
171
+ .pc-pframe.phone iframe { width: 390px; border-radius: 26px; box-shadow: 0 0 0 10px var(--cz-ink2); margin: 10px; }
172
+ .pc-pframe.desktop iframe { width: min(1280px, 100%); border-radius: 12px; }
173
+ .pc-pframe.own iframe { width: 100%; border-radius: 6px; }
174
+ .pc-pctl { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
175
+ .pc-pctl > span { min-width: 120px; text-align: center; font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
176
+ .pc-pflow { width: 300px; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); overflow: auto; }
177
+ .pc-pflow .pc-lh { color: var(--cz-onsolid); opacity: .7; padding-left: 4px; }
178
+ .pc-psel select { width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--cz-onsolid); font: inherit; font-size: var(--fs-meta); }
179
+ .pc-psel option { color: var(--cz-ink); }
180
+ .pc-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
181
+ .pc-pflow .pc-bar2 { background: rgba(255, 255, 255, .12); }
182
+ .pc-psteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
183
+ .pc-pst { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--cz-onsolid); font: inherit; font-size: var(--fs-meta); text-align: left; cursor: pointer; }
184
+ .pc-pst:hover { background: rgba(255, 255, 255, .06); }
185
+ .pc-pst.on { background: rgba(255, 255, 255, .14); }
186
+ .pc-pst.done { opacity: .7; }
187
+ .pc-pn { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-badge); background: rgba(255, 255, 255, .12); }
188
+ .pc-pst.on .pc-pn { background: var(--cz-blue); color: var(--cz-ink); }
189
+ .pc-pst.done .pc-pn { background: var(--cz-okbg); color: var(--cz-ok); }
144
190
 
145
191
  @media (max-width: 760px) {
146
- .pc-board { grid-template-columns: 1fr; grid-template-areas: "proto" "col" "lanes"; width: auto; }
192
+ .pc-dbody { flex-direction: column; }
193
+ .pc-left, .pc-insp, .pc-side { width: 100%; max-height: none; }
194
+ .pc-pmain { flex-direction: column; }
195
+ .pc-pflow { width: 100%; }
147
196
  .pc .pc-ib { width: 44px; height: 44px; }
148
197
  .pc-dev.desktop { width: 100%; }
149
198
  .pc-pframe.phone iframe { width: 100%; box-shadow: none; margin: 0; }