create-pmos 0.634.0 → 0.636.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 (151) hide show
  1. package/bin/create-pmos.js +1 -0
  2. package/package.json +22 -22
  3. package/payload/KIT-VERSION +2 -2
  4. package/payload/README.md +37 -113
  5. package/payload/design-system/README.md +98 -0
  6. package/payload/design-system/components/Badge/README.md +16 -0
  7. package/payload/design-system/components/Badge/preview.html +8 -0
  8. package/payload/design-system/components/Button/README.md +20 -0
  9. package/payload/design-system/components/Button/preview.html +8 -0
  10. package/payload/design-system/components/Calendar/README.md +14 -0
  11. package/payload/design-system/components/Calendar/preview.html +11 -0
  12. package/payload/design-system/components/Chart/README.md +24 -0
  13. package/payload/design-system/components/Chart/preview.html +50 -0
  14. package/payload/design-system/components/Conversation/README.md +14 -0
  15. package/payload/design-system/components/Conversation/preview.html +8 -0
  16. package/payload/design-system/components/Detail/README.md +17 -0
  17. package/payload/design-system/components/Detail/preview.html +8 -0
  18. package/payload/design-system/components/Document/README.md +15 -0
  19. package/payload/design-system/components/Document/preview.html +8 -0
  20. package/payload/design-system/components/Event/README.md +13 -0
  21. package/payload/design-system/components/Event/preview.html +8 -0
  22. package/payload/design-system/components/Field/README.md +13 -0
  23. package/payload/design-system/components/Field/preview.html +8 -0
  24. package/payload/design-system/components/Icon/README.md +12 -0
  25. package/payload/design-system/components/Icon/preview.html +8 -0
  26. package/payload/design-system/components/Input/README.md +17 -0
  27. package/payload/design-system/components/Input/preview.html +8 -0
  28. package/payload/design-system/components/List/README.md +21 -0
  29. package/payload/design-system/components/List/preview.html +15 -0
  30. package/payload/design-system/components/ListRow/README.md +19 -0
  31. package/payload/design-system/components/ListRow/preview.html +8 -0
  32. package/payload/design-system/components/MainItem/README.md +13 -0
  33. package/payload/design-system/components/MainItem/preview.html +8 -0
  34. package/payload/design-system/components/MainSide/README.md +12 -0
  35. package/payload/design-system/components/MainSide/preview.html +8 -0
  36. package/payload/design-system/components/Menu/README.md +13 -0
  37. package/payload/design-system/components/Menu/preview.html +8 -0
  38. package/payload/design-system/components/Navigation/README.md +14 -0
  39. package/payload/design-system/components/Navigation/preview.html +8 -0
  40. package/payload/design-system/components/Number/README.md +17 -0
  41. package/payload/design-system/components/Number/preview.html +8 -0
  42. package/payload/design-system/components/Settings/README.md +13 -0
  43. package/payload/design-system/components/Settings/preview.html +10 -0
  44. package/payload/design-system/components/SingleColumn/README.md +12 -0
  45. package/payload/design-system/components/SingleColumn/preview.html +8 -0
  46. package/payload/design-system/components/Stage/README.md +13 -0
  47. package/payload/design-system/components/Stage/preview.html +8 -0
  48. package/payload/design-system/components/Suggestion/README.md +14 -0
  49. package/payload/design-system/components/Suggestion/preview.html +10 -0
  50. package/payload/design-system/components/Summary/README.md +19 -0
  51. package/payload/design-system/components/Summary/preview.html +10 -0
  52. package/payload/design-system/components/Switch/README.md +13 -0
  53. package/payload/design-system/components/Switch/preview.html +10 -0
  54. package/payload/design-system/components/Table/README.md +18 -0
  55. package/payload/design-system/components/Table/preview.html +23 -0
  56. package/payload/design-system/components/Tabs/README.md +13 -0
  57. package/payload/design-system/components/Tabs/preview.html +11 -0
  58. package/payload/design-system/components/Timeline/README.md +15 -0
  59. package/payload/design-system/components/Timeline/preview.html +8 -0
  60. package/payload/design-system/components/Toast/README.md +14 -0
  61. package/payload/design-system/components/Toast/preview.html +8 -0
  62. package/payload/design-system/components/TodayPage/README.md +12 -0
  63. package/payload/design-system/components/TodayPage/preview.html +8 -0
  64. package/payload/design-system/components/bundle.css +126 -0
  65. package/payload/design-system/interactions.md +48 -0
  66. package/payload/design-system/pages.md +34 -0
  67. package/payload/design-system/tokens.css +9 -0
  68. package/payload/design-system/tokens.json +339 -0
  69. package/payload/planning/evals/eval-calibration.md +1 -1
  70. package/payload/planning/okrs/health-budgets.md +1 -1
  71. package/payload/state/discoveries.md +1 -1
  72. package/payload/state/log.md +1 -1
  73. package/workspace/changelog.json +21 -2
  74. package/workspace/ci-checks.sh +3 -0
  75. package/workspace/design-system/README.md +98 -0
  76. package/workspace/design-system/components/Badge/README.md +16 -0
  77. package/workspace/design-system/components/Badge/preview.html +8 -0
  78. package/workspace/design-system/components/Button/README.md +20 -0
  79. package/workspace/design-system/components/Button/preview.html +8 -0
  80. package/workspace/design-system/components/Calendar/README.md +14 -0
  81. package/workspace/design-system/components/Calendar/preview.html +11 -0
  82. package/workspace/design-system/components/Chart/README.md +24 -0
  83. package/workspace/design-system/components/Chart/preview.html +50 -0
  84. package/workspace/design-system/components/Conversation/README.md +14 -0
  85. package/workspace/design-system/components/Conversation/preview.html +8 -0
  86. package/workspace/design-system/components/Detail/README.md +17 -0
  87. package/workspace/design-system/components/Detail/preview.html +8 -0
  88. package/workspace/design-system/components/Document/README.md +15 -0
  89. package/workspace/design-system/components/Document/preview.html +8 -0
  90. package/workspace/design-system/components/Event/README.md +13 -0
  91. package/workspace/design-system/components/Event/preview.html +8 -0
  92. package/workspace/design-system/components/Field/README.md +13 -0
  93. package/workspace/design-system/components/Field/preview.html +8 -0
  94. package/workspace/design-system/components/Icon/README.md +12 -0
  95. package/workspace/design-system/components/Icon/preview.html +8 -0
  96. package/workspace/design-system/components/Input/README.md +17 -0
  97. package/workspace/design-system/components/Input/preview.html +8 -0
  98. package/workspace/design-system/components/List/README.md +21 -0
  99. package/workspace/design-system/components/List/preview.html +15 -0
  100. package/workspace/design-system/components/ListRow/README.md +19 -0
  101. package/workspace/design-system/components/ListRow/preview.html +8 -0
  102. package/workspace/design-system/components/MainItem/README.md +13 -0
  103. package/workspace/design-system/components/MainItem/preview.html +8 -0
  104. package/workspace/design-system/components/MainSide/README.md +12 -0
  105. package/workspace/design-system/components/MainSide/preview.html +8 -0
  106. package/workspace/design-system/components/Menu/README.md +13 -0
  107. package/workspace/design-system/components/Menu/preview.html +8 -0
  108. package/workspace/design-system/components/Navigation/README.md +14 -0
  109. package/workspace/design-system/components/Navigation/preview.html +8 -0
  110. package/workspace/design-system/components/Number/README.md +17 -0
  111. package/workspace/design-system/components/Number/preview.html +8 -0
  112. package/workspace/design-system/components/Settings/README.md +13 -0
  113. package/workspace/design-system/components/Settings/preview.html +10 -0
  114. package/workspace/design-system/components/SingleColumn/README.md +12 -0
  115. package/workspace/design-system/components/SingleColumn/preview.html +8 -0
  116. package/workspace/design-system/components/Stage/README.md +13 -0
  117. package/workspace/design-system/components/Stage/preview.html +8 -0
  118. package/workspace/design-system/components/Suggestion/README.md +14 -0
  119. package/workspace/design-system/components/Suggestion/preview.html +10 -0
  120. package/workspace/design-system/components/Summary/README.md +19 -0
  121. package/workspace/design-system/components/Summary/preview.html +10 -0
  122. package/workspace/design-system/components/Switch/README.md +13 -0
  123. package/workspace/design-system/components/Switch/preview.html +10 -0
  124. package/workspace/design-system/components/Table/README.md +18 -0
  125. package/workspace/design-system/components/Table/preview.html +23 -0
  126. package/workspace/design-system/components/Tabs/README.md +13 -0
  127. package/workspace/design-system/components/Tabs/preview.html +11 -0
  128. package/workspace/design-system/components/Timeline/README.md +15 -0
  129. package/workspace/design-system/components/Timeline/preview.html +8 -0
  130. package/workspace/design-system/components/Toast/README.md +14 -0
  131. package/workspace/design-system/components/Toast/preview.html +8 -0
  132. package/workspace/design-system/components/TodayPage/README.md +12 -0
  133. package/workspace/design-system/components/TodayPage/preview.html +8 -0
  134. package/workspace/design-system/components/bundle.css +126 -0
  135. package/workspace/design-system/interactions.md +48 -0
  136. package/workspace/design-system/pages.md +34 -0
  137. package/workspace/design-system/tokens.css +9 -0
  138. package/workspace/design-system/tokens.json +339 -0
  139. package/workspace/guide/agent-capabilities.md +2 -2
  140. package/workspace/guide/layout.md +7 -1
  141. package/workspace/lib/design-system.js +145 -0
  142. package/workspace/lib/idle-lab-engine.js +5 -1
  143. package/workspace/lib/live-round.js +15 -1
  144. package/workspace/package-lock.json +2 -2
  145. package/workspace/package.json +1 -1
  146. package/workspace/public/pm/cozy-today-model.js +53 -4
  147. package/workspace/public/pm/komorebi.css +145 -0
  148. package/workspace/public/pm/komorebi.js +240 -0
  149. package/workspace/run-tests.js +6 -1
  150. package/workspace/test-lists/design-system.json +9 -0
  151. package/workspace/test-lists/komorebi.json +9 -0
@@ -0,0 +1,145 @@
1
+ 'use strict';
2
+ /* design-system.js — the PMOS UI design system (Komorebi, agreed 2026-11-19) as code can use it. Slides get a separate system
3
+ * (Wawan 2026-11-19: "differentiate between the UI design system and slide design system"), so nothing here is about decks.
4
+ *
5
+ * The UI system's files live in workspace/design-system/ (tokens.json, tokens.css, components/bundle.css, README.md, pages.md and
6
+ * one README + preview per part). They travel three ways, all from that one folder:
7
+ * 1. the workspace: sheetOf() turns tokens.css + bundle.css into public/pm/komorebi.css, the workspace's one shared stylesheet. Every
8
+ * rule there is scoped to .pm-ds (the workspace already uses .pm as a modifier class on a few buttons and rows), the fonts are the
9
+ * self-hosted ones in public/vendor (no network), and nothing styles body, a or * outside the scope. A page moves to the system by
10
+ * loading the sheet and putting class="pm-ds" on its root.
11
+ * 2. prototypes: scaffoldOf() is the stylesheet a prototype run pastes into its page (lib/live-round.js, lib/idle-lab-engine.js), and
12
+ * RULES is the short form of README.md the run follows.
13
+ * 3. other projects: kit/build-kit.sh copies the folder into every kit as pmos/design-system/ (create-pmos KERNEL).
14
+ *
15
+ * node lib/design-system.js --write regenerate public/pm/komorebi.css after a change to the system's files
16
+ * node lib/design-system.js --check exit 1 when public/pm/komorebi.css is not what the files make (design-system.test.js)
17
+ *
18
+ * dirOf(roots) → the first <root>/{pmos/design-system, design-system, workspace/design-system} that has tokens.css, or null
19
+ * cssOf(dir) PURE-ish → tokens.css + components/bundle.css, comments and the font @import removed (for a prototype)
20
+ * sheetOf(tokens, bundle) PURE → the workspace stylesheet
21
+ */
22
+ const fs = require('fs');
23
+ const path = require('path');
24
+
25
+ const OWN = path.join(__dirname, '..', 'design-system');
26
+ const SHEET = path.join(__dirname, '..', 'public', 'pm', 'komorebi.css');
27
+ const SCOPE = '.pm-ds';
28
+ // where a product keeps the system: the kit's copy first (create-pmos), then a folder of its own, then PMOS-self's
29
+ const PLACES = ['pmos/design-system', 'design-system', 'workspace/design-system'];
30
+
31
+ /** The short form of README.md that a prototype run follows (the whole README is in the folder for a person or a long session). */
32
+ const RULES = [
33
+ 'Follow the PMOS design system (the stylesheet below is its tokens and parts):',
34
+ '- Wrap the page in <body class="pm">. Build only from the system\'s classes: pm-btn, pm-input, pm-badge, pm-li, pm-tabs, pm-field, pm-toast, pm-menu, pm-sug, pm-ev, pm-block, pm-table, pm-num, pm-cal, pm-chart, pm-leg, pm-tip, pm-pick, pm-doc, pm-stage, pm-rail; type classes title, heading, body, small. If you need something no part does, add an option to a part, not a new look.',
35
+ '- Colour has a meaning: blue is PMOS speaking (the ✦, the primary button, links); leaf is now (one lit thing per screen, never text); alert is late, at risk or blocked (never decoration). Text is ink, why lines and meta are muted. No other colours.',
36
+ '- Type: four sizes only (title 26, heading 18, body 15, small 13), bold only on what you act on. Nothing under 13 px.',
37
+ '- Every row says why it is there. Now is raised; later is flat and folded. Zero is silence: no "0 items", no empty charts.',
38
+ '- Buttons are icon-only (a 24 px stroke icon) with aria-label and a title tooltip. PMOS recommends, the person approves (Yes / No); safe actions happen at once with Undo, never "are you sure". No emoji.',
39
+ '- Write from the person\'s side in short plain sentences ("Moved to tomorrow", not "Success"). The assistant is PMOS, never "Claude".',
40
+ ].join('\n');
41
+
42
+ /** The first folder under roots that holds the system, or null. */
43
+ function dirOf(roots) {
44
+ for (const r of roots || []) {
45
+ if (!r) continue;
46
+ for (const p of PLACES) {
47
+ const d = path.join(r, p);
48
+ if (fs.existsSync(path.join(d, 'tokens.css')) && fs.existsSync(path.join(d, 'components', 'bundle.css'))) return d;
49
+ }
50
+ }
51
+ return null;
52
+ }
53
+
54
+ const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, '').replace(/\n\s*\n+/g, '\n').trim();
55
+ // the system loads its fonts from Google Fonts; a prototype is sandboxed with no network and the workspace self-hosts them
56
+ const dropImports = (css) => String(css || '').replace(/^@import[^;]*;\s*/gm, '');
57
+ const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
58
+
59
+ /** The system's CSS for a prototype: tokens then parts. */
60
+ function cssOf(dir) {
61
+ if (!dir) return '';
62
+ return stripComments(dropImports(read(path.join(dir, 'tokens.css')) + '\n' + read(path.join(dir, 'components', 'bundle.css'))));
63
+ }
64
+
65
+ /** The scaffold a prototype run gets: { css, rules, from } (empty css when no root has the system). */
66
+ function scaffoldOf(roots) {
67
+ const dir = dirOf(roots);
68
+ if (!dir) return { css: '', rules: '', from: [] };
69
+ return { css: cssOf(dir), rules: RULES, from: [path.join(dir, 'tokens.css'), path.join(dir, 'components', 'bundle.css')], ds: dir };
70
+ }
71
+
72
+ /* ── the workspace stylesheet ── */
73
+
74
+ /** Split CSS into top-level pieces: { at, sel, body } for a rule, { at: '@…', sel, body } for a block at-rule, { raw } for a statement. */
75
+ function pieces(css) {
76
+ const out = [], s = stripComments(css);
77
+ let i = 0;
78
+ while (i < s.length) {
79
+ while (i < s.length && /\s/.test(s[i])) i++;
80
+ if (i >= s.length) break;
81
+ const brace = s.indexOf('{', i), semi = s.indexOf(';', i);
82
+ if (s[i] === '@' && semi !== -1 && (brace === -1 || semi < brace)) { out.push({ raw: s.slice(i, semi + 1).trim() }); i = semi + 1; continue; }
83
+ if (brace === -1) break;
84
+ let depth = 0, j = brace;
85
+ for (; j < s.length; j++) { if (s[j] === '{') depth++; else if (s[j] === '}' && --depth === 0) break; }
86
+ out.push({ sel: s.slice(i, brace).trim(), body: s.slice(brace + 1, j).trim() });
87
+ i = j + 1;
88
+ }
89
+ return out;
90
+ }
91
+
92
+ /** One selector, scoped: the root selectors become the scope, everything else sits inside it. */
93
+ function scopeSel(sel) {
94
+ const t = sel.trim();
95
+ if (t === ':root' || t === '[data-theme="light"]' || t === 'body' || t === '.pm') return SCOPE;
96
+ if (t === '[data-theme="dark"]') return `${SCOPE}.dark, html.dark ${SCOPE}, :root[data-theme="dark"] ${SCOPE}`;
97
+ if (t === '.pm *') return `${SCOPE} *`;
98
+ if (t === '*') return `${SCOPE} *`;
99
+ return `${SCOPE} ${t}`;
100
+ }
101
+ const scopeList = (sels) => [...new Set(sels.split(',').map(scopeSel).join(', ').split(/,\s*/))].join(', ');
102
+
103
+ /** PURE. tokens.css + bundle.css → the workspace's stylesheet (public/pm/komorebi.css). */
104
+ function sheetOf(tokens, bundle) {
105
+ const L = [
106
+ '/* komorebi.css — the PMOS design system (Komorebi) for the workspace. GENERATED from workspace/design-system/ by lib/design-system.js:',
107
+ ' * do not edit; change the system\'s files and run `node lib/design-system.js --write`. Every rule is scoped to .pm-ds, so the sheet changes',
108
+ ' * nothing until a page puts class="pm-ds" on its root. The fonts are the self-hosted ones (public/vendor), never a network font. */',
109
+ "@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
110
+ "@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
111
+ ];
112
+ const emit = (list, indent) => {
113
+ for (const p of list) {
114
+ if (p.raw) continue; // @import (the network fonts): the @font-face lines above stand in for it
115
+ if (/^@media|^@supports/.test(p.sel)) { L.push(`${indent}${p.sel} {`); emit(pieces(p.body), indent + ' '); L.push(`${indent}}`); continue; }
116
+ if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
117
+ // the preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
118
+ if (p.sel === '.pm' && /padding/.test(p.body) && /flex-direction/.test(p.body)) continue;
119
+ L.push(`${indent}${scopeList(p.sel)}{${p.body}}`);
120
+ }
121
+ };
122
+ emit(pieces(tokens), '');
123
+ emit(pieces(bundle), '');
124
+ // the workspace's own glue for pm/komorebi.js (the parts' behaviour): the tooltip is placed through two custom properties, never an
125
+ // inline style, and a legend swatch takes its colour from its role class
126
+ L.push(`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`);
127
+ for (const r of ['blue', 'leaf', 'muted', 'alert']) L.push(`${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`);
128
+ L.push(`${SCOPE} .pm-chart-head:empty{display:none}`);
129
+ return L.join('\n') + '\n';
130
+ }
131
+
132
+ function sheetFromDir(dir = OWN) {
133
+ return sheetOf(read(path.join(dir, 'tokens.css')), read(path.join(dir, 'components', 'bundle.css')));
134
+ }
135
+
136
+ if (require.main === module) {
137
+ const want = sheetFromDir();
138
+ if (process.argv.includes('--write')) { fs.writeFileSync(SHEET, want); console.log('✓ wrote ' + path.relative(process.cwd(), SHEET)); }
139
+ else if (process.argv.includes('--check')) {
140
+ if (read(SHEET) !== want) { console.error('✗ public/pm/komorebi.css is not what workspace/design-system/ makes. Run: node lib/design-system.js --write'); process.exit(1); }
141
+ console.log('✓ public/pm/komorebi.css matches workspace/design-system/');
142
+ } else { console.log('usage: node lib/design-system.js --write | --check'); process.exit(2); }
143
+ }
144
+
145
+ module.exports = { OWN, SHEET, SCOPE, PLACES, RULES, dirOf, cssOf, scaffoldOf, sheetOf, sheetFromDir, pieces };
@@ -44,6 +44,7 @@
44
44
  * create(deps) → { tick(turn), finish(run, r), active(), status(), products(now) }
45
45
  */
46
46
  const fs = require('fs');
47
+ const DS = require('./design-system.js');
47
48
  const path = require('path');
48
49
  const crypto = require('crypto');
49
50
  const LAB = require('./idle-lab.js');
@@ -228,6 +229,7 @@ function promptOf(skill, c, o = {}) {
228
229
  L.push('- File only what is NEW since then, with "refreshed" saying how much is new. Nothing new: file nothing.');
229
230
  }
230
231
  if (c.kind.startsWith('scan')) L.push(`- Read pages ONLY with \`pmos lab page <url>\` (at most ${MAX_PAGES}). File with \`pmos lab file ${c.ini ? 'scanned' : 'scan'} --json -\`.`);
232
+ if (o.design && o.design.css) L.push('', o.design.rules, 'Paste this stylesheet in each specimen\'s <style> tag and add only the layout you need:', '```css', o.design.css, '```');
231
233
  L.push('', 'File with `pmos lab file` only. Send nothing.');
232
234
  return L.join('\n');
233
235
  }
@@ -392,7 +394,9 @@ function create(deps) {
392
394
  if (proto) fs.mkdirSync(spec, { recursive: true }); else fs.mkdirSync(pagesDir(r, run), { recursive: true });
393
395
  } catch (e) { warn('idle lab folders', e); return { ok: false }; }
394
396
  const day = new Date(now); const today = day.getFullYear() + '-' + String(day.getMonth() + 1).padStart(2, '0') + '-' + String(day.getDate()).padStart(2, '0');
395
- const prompt = promptOf(skill, c, { run, today, budget, specimens: spec, specimenRoot: LAB.specimenDir(r) });
397
+ // a prototype is drawn in the PMOS design system: the product's copy of it (pmos/design-system/), else PMOS's own (lib/design-system.js)
398
+ const design = proto ? DS.scaffoldOf([pr.w.root, path.join(__dirname, '..')]) : null;
399
+ const prompt = promptOf(skill, c, { run, today, budget, specimens: spec, specimenRoot: LAB.specimenDir(r), design });
396
400
  const env = { PMOS_LAB_RUN: run, PMOS_LAB_KIND: c.kind, PMOS_LAB_PENDING: pendingFile(r, run), PMOS_LAB_INI: c.ini || '', PMOS_LAB_BUDGET: String(budget),
397
401
  ...(proto ? { PMOS_LAB_SPECIMENS: spec } : { PMOS_LAB_PAGES: pagesDir(r, run) }) };
398
402
  active = { run, c, start: now, session: null, dir: pr.dir, root: pr.w.root };
@@ -22,7 +22,7 @@
22
22
  * new THREE headless runs in parallel, one specimen each (origin `live-round:<ws>:<ini>:<run>:<A|B|C>`, headless kind `live-round`:
23
23
  * Read and Glob, and Write only in the run's own folder <runtime>/idle-lab/specimens/<round>/<key>/). Files group `prototyped`.
24
24
  * feedback ONE run on the base specimen (it reads the earlier file). Files group `improved`, `changed` = the PM's sentence.
25
- * Each run gets a per-product scaffold (scaffoldOf: the product's tokens.css and the head of its components.css, else PMOS's own), the
25
+ * Each run gets a per-product scaffold (scaffoldOf: the PMOS design system, lib/design-system.js, the product's copy first; else the product's tokens.css and the head of its components.css), the
26
26
  * initiative's name, description and Intent, and the viewport pin (dry run finding a: 2 of 9 ran wider than the phone and were cut off).
27
27
  * NO TIME LIMIT (Wawan 2026-11-18: "No need limit, but need a visual guidance of the progression"). The run writes progress.json
28
28
  * ({ now, done, total }) at each step; the Viewer shows it with the time so far and a Stop press (stop()). Only a run that writes
@@ -62,6 +62,7 @@ const PR = require('./proposals.js');
62
62
  const LAB = require('./idle-lab.js');
63
63
  const E = require('./idle-lab-engine.js');
64
64
  const RULES = require('./prototype-rules.js');
65
+ const DS = require('./design-system.js');
65
66
 
66
67
  const JOB = 'live-round';
67
68
  const ORIGIN = 'live-round';
@@ -223,6 +224,18 @@ const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, ''
223
224
  /** The product's token sheet and the head of its component sheet, the first folder that has them (dry run finding b: assemble from what
224
225
  * exists). roots: folders to look in, the product's first, PMOS's own last. → { css, from: [paths] } */
225
226
  function scaffoldOf(roots) {
227
+ // the PMOS design system first (Wawan 2026-11-19: "when a user create a prototype on PMOS, it also use a proper design system that is
228
+ // provided by the PMOS"): the product's copy of it (pmos/design-system/ from the kit), then the product's own token sheet, then PMOS's own
229
+ const [prod, ...rest] = (roots || []).filter(Boolean);
230
+ const own = DS.scaffoldOf([prod]);
231
+ if (own.css) return own;
232
+ const theirs = tokensOf([prod]);
233
+ if (theirs.css) return theirs;
234
+ const ds = DS.scaffoldOf(rest);
235
+ return ds.css ? ds : tokensOf(rest);
236
+ }
237
+ /** The product's token sheet and the head of its component sheet (the scaffold before the design system). */
238
+ function tokensOf(roots) {
226
239
  const rel = ['public/pm', 'workspace/public/pm', 'src/styles', 'styles', 'public/css', 'css'];
227
240
  for (const r of roots || []) {
228
241
  if (!r) continue;
@@ -292,6 +305,7 @@ function promptOf(o) {
292
305
  `4. ${path.join(dir, 'tweaks.json')} (optional): { "tweaks": [{ "var": "--gap", "label": "Spacing", "min": 4, "max": 32, "step": 1, "unit": "px", "value": 16, "el"? }] }, at most 6, for the custom properties the prototype reads. "el" is the data-el a tweak belongs to; without it, it is for the whole screen.`,
293
306
  `5. ${path.join(dir, 'notes.json')} (optional): { "notes": [{ "text", "screen"?, "el"? }] }, at most 8: what the PM should know that is not part of the design (the format and its size, that the data is sample data, what a placeholder stands for, the other option to compare). PMOS shows them as annotations beside the design. "screen" is the data-screen a note is about, "el" the data-el it points at; without them, it is for the whole prototype.`,
294
307
  'Write nothing else and do not read anything else' + (o.base || (o.refs || []).length ? ' but what is named above.' : '.'));
308
+ if (o.scaffold && o.scaffold.rules) L.push('', o.scaffold.rules);
295
309
  if (o.scaffold && o.scaffold.css) L.push('', 'The stylesheet:', '```css', o.scaffold.css, '```');
296
310
  return L.join('\n');
297
311
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.634.0",
3
+ "version": "0.636.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.634.0",
9
+ "version": "0.636.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.634.0",
3
+ "version": "0.636.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",
@@ -65,6 +65,21 @@ const jobOfAsk = (r) => (r.kind === 'call' ? (r.call && r.call.kind === 'update'
65
65
  const cap1 = (s) => String(s || '').replace(/^[a-z]/, (c) => c.toUpperCase());
66
66
  /** No ids in a title (audit round 2): "KR-A1 Signup conversion up: …" reads "Signup conversion up: …". */
67
67
  const ID_SHAPED = /^(?:[0-9a-f]{8,}|[a-z0-9]+(?:[-_][a-z0-9]+)+)$/;
68
+ /* ── one thing, one line (Wawan's live Today, 2026-11-19): the morning brief's item reaches Today up to three ways, as a call (call:n:src:<id>),
69
+ * as a need of Your move (n:src:<id>) and as the item the PM put on today (work:brief:<id>); a Jira ticket as n:src:jira:<KEY> and work:jira:<KEY>.
70
+ * srcOf names the one thing behind a key: 'brief:<id>' or 'jira:<KEY>'; '' for any other key. */
71
+ export function srcOf(key) {
72
+ let k = String(key || '').replace(/^(?:call:|work:|n:)+/, '');
73
+ if (/^brief:[0-9a-f]{12}$/.test(k)) return k;
74
+ k = k.replace(/^src:/, '');
75
+ if (/^[0-9a-f]{12}$/.test(k)) return 'brief:' + k;
76
+ const j = ticketOf(k);
77
+ return j ? 'jira:' + j : '';
78
+ }
79
+ /** A Jira ticket's key from a source id: 'jira:jira:IDP-55' → 'IDP-55'; '' when it is not one. */
80
+ export function ticketOf(id) { const m = /^(?:jira:)+([A-Za-z][A-Za-z0-9_]*-\d+)$/.exec(String(id || '')); return m ? m[1].toUpperCase() : ''; }
81
+ /** An initiative id, or null: a source id ('jira:…', 'brief:…', 'src:…') is where a line came from, never an initiative. */
82
+ export const iniOnly = (x) => (x && !/^(?:jira|brief|src|n):/i.test(String(x)) ? x : null);
68
83
  export const noId = (t) => String(t || '').replace(/^(?:[A-Z]{1,4}-[A-Z0-9][\w.]*|health:[\w-]+)\s+/, '');
69
84
  /** An ask's What and Work, split as the board says them: the rank names a row "<work>: <what>" (a verdict, a grill finding, a meeting's or a
70
85
  * program's milestone changes, the changes to keep); What is the thing to do, Work the initiative or program it is about. */
@@ -192,8 +207,9 @@ export function logModel(o = {}) {
192
207
  }
193
208
  // Work holds an initiative; a product shows by its display name, never its id (audit round 2)
194
209
  const prodW = c ? c.sub : (r.shared || []).map((x) => productOf(x)).filter(Boolean)[0] || productOf(r.ws || '');
195
- put({ key: c ? 'call:' + c.id : r.key, src: 'ask', bullet: 'task', title: noId(sp.what || r.title || (c && c.name) || ''), ini: r.ini || (c && c.ini) || null, ws: r.ws || '',
196
- work: work(r.ini || (c && c.ini), prodW) || sp.work, job: jobOfAsk(r), carried, late: carried >= LATE_DAYS,
210
+ const ai = iniOnly(r.ini || (c && c.ini));
211
+ put({ key: c ? 'call:' + c.id : r.key, src: 'ask', bullet: 'task', title: noId(sp.what || r.title || (c && c.name) || ''), ini: ai, ws: r.ws || '',
212
+ work: work(ai, prodW) || sp.work || ticketOf(r.ini || (c && c.ini)), job: jobOfAsk(r), carried, late: carried >= LATE_DAYS,
197
213
  when: whenWord({ carried, send }, today), first: r.rank <= 2 || (c && c.kind === 'update' && /^(today|now)/i.test(String(c.when || ''))) || false, ref: r });
198
214
  }
199
215
  // the rest of Your move: the PM's own late tasks and the next steps (a call is in the asks already; an item is in the items)
@@ -203,7 +219,8 @@ export function logModel(o = {}) {
203
219
  const late = r.kind === 'task' && due && due < today ? between(due, today) : 0;
204
220
  // a task whose date passed long ago and nobody touched (an old import) is not a Today row: one ✦ line in the Overview (round 3 point 12)
205
221
  if (late > OLD_TASK_DAYS) { const m = marks[r.id] || {}; if (!m.dropped && !(m.kept && between(m.kept, today) < CARRY_DROP)) old.push(r.id); if (!(m.kept && between(m.kept, today) < CARRY_DROP)) continue; }
206
- put({ key: r.id, src: 'move', bullet: 'task', title: r.name, ini: r.ini || null, work: work(r.ini, r.sub), job: 'Do', late: late > 0, carried: late,
222
+ const mi = iniOnly(r.ini);
223
+ put({ key: r.id, src: 'move', bullet: 'task', title: r.name, ini: mi, work: mi ? work(mi, r.sub) : ticketOf(r.ini) || work(null, r.sub), job: 'Do', late: late > 0, carried: late,
207
224
  when: whenWord({ late, due }, today), dates: r.kind === 'task' ? 'task' : 'mark', ref: r });
208
225
  }
209
226
  // the PM's own items placed in Today
@@ -211,7 +228,8 @@ export function logModel(o = {}) {
211
228
  if (!it || !it.id) continue;
212
229
  const from = it.due && it.due < today ? it.due : !it.due && it.at ? dayKey(Date.parse(it.at)) : '';
213
230
  const carried = from && from < today ? between(from, today) : 0;
214
- put({ key: 'work:' + it.id, src: 'item', bullet: 'task', title: it.title, ini: it.ini || null, work: work(it.ini, ''), job: 'Do', carried, late: !!it.overdue || carried >= LATE_DAYS,
231
+ const ii = iniOnly(it.ini);
232
+ put({ key: 'work:' + it.id, src: 'item', bullet: 'task', title: it.title, ini: ii, work: ii ? work(ii, '') : ticketOf(it.id) || ticketOf(it.ini), job: 'Do', carried, late: !!it.overdue || carried >= LATE_DAYS,
215
233
  when: whenWord({ carried, due: it.due }, today), dates: 'item', ref: it });
216
234
  }
217
235
  for (const d of o.drafts || []) if (d && d.id) put({ key: 'draft:' + d.id, src: 'draft', bullet: 'task', title: d.title, ini: d.ini || null, work: work(d.ini, ''), job: 'Send', did: ['finished the draft'], ref: d });
@@ -224,6 +242,7 @@ export function logModel(o = {}) {
224
242
  when: whenWord({ carried, time: e.bullet === 'event' && !carried ? e.time : '' }, today), done: !!e.done, ref: e });
225
243
  }
226
244
  for (const f of o.lab || []) if (f && f.id) put({ key: 'lab:' + (f.ws || '') + ':' + f.id, src: 'lab', bullet: 'lab', title: f.title, work: '', job: 'Decide', why: f.why || '', ref: f });
245
+ oneLine(out);
227
246
  // a row done today whose source has let it go keeps its × from what it said when it was done
228
247
  for (const [k, m] of Object.entries(marks)) {
229
248
  if (!m || !m.done || seen.has(k) || !m.snap) continue;
@@ -249,6 +268,36 @@ export function logModel(o = {}) {
249
268
  const merged = open.reduce((k, r) => k + (r.merged ? r.merged - 1 : 0), 0);
250
269
  return { rows: G.first.concat(G.today, done, G.wait), first: G.first, todayRows: G.today.concat(done), wait: G.wait, open: open.length, done: done.length, counts, types, merged, line, today, old };
251
270
  }
271
+ /** ONE THING, ONE LINE (Wawan's live Today, 2026-11-19): the lines of one brief item or one Jira ticket (srcOf) are one line, with every key
272
+ * behind it (a mark goes to each). The item the PM put on today stays, since Done, Later and a date write to it; it takes the ask's Work, Type
273
+ * and Job when it has none. Then a brief item that says what an open Ask (a mention) says is that Ask: the Ask stays. In place, on out. */
274
+ export function oneLine(out) {
275
+ const join = (keep, r) => {
276
+ for (const k of r.keys || [r.key]) if (!keep.keys.includes(k)) keep.keys.push(k);
277
+ keep.merged = (keep.merged || 1) + (r.merged || 1);
278
+ keep.carried = Math.max(keep.carried || 0, r.carried || 0); keep.late = !!(keep.late || r.late); keep.first = !!(keep.first || r.first);
279
+ };
280
+ const by = new Map();
281
+ for (const r of out) { const s = r.done ? '' : srcOf(r.key); if (s) { if (!by.has(s)) by.set(s, []); by.get(s).push(r); } }
282
+ for (const L of by.values()) {
283
+ if (L.length < 2) continue;
284
+ const keep = L.find((r) => r.src === 'item') || L[0], at = out.indexOf(L[0]);
285
+ for (const r of L) {
286
+ if (r === keep) continue;
287
+ join(keep, r);
288
+ if (keep.src === 'item' && r.src !== 'item') { if (!keep.work) keep.work = r.work; if (r.type && r.type !== 'Task') keep.type = r.type; if (r.job && r.job !== 'Do') keep.job = r.job; }
289
+ out.splice(out.indexOf(r), 1);
290
+ }
291
+ out.splice(out.indexOf(keep), 1); out.splice(Math.min(at, out.length), 0, keep);
292
+ }
293
+ for (const r of [...out]) {
294
+ if (r.done || r.src === 'item' || !/^brief:/.test(srcOf(r.key))) continue;
295
+ const ask = out.find((x) => x !== r && x.type === 'Ask' && !x.done && sameAsk(x.ask, r.title));
296
+ if (!ask) continue;
297
+ join(ask, r); out.splice(out.indexOf(r), 1);
298
+ }
299
+ return out;
300
+ }
252
301
  /** SAME JOB, MANY INITIATIVES (audit round 2): open asks that read the same for two or more initiatives ("Draft the PRD, or let PMOS draft
253
302
  * it" five times) become one row: "5 initiatives have no PRD", its members under it when opened. When each one is a step PMOS drafts, a ✦
254
303
  * line says "PMOS drafts them for you to read" with ✓ ✕ (✕ is kept for a month as the mark kept on the group). In place, on out. */
@@ -0,0 +1,145 @@
1
+ /* komorebi.css — the PMOS design system (Komorebi) for the workspace. GENERATED from workspace/design-system/ by lib/design-system.js:
2
+ * do not edit; change the system's files and run `node lib/design-system.js --write`. Every rule is scoped to .pm-ds, so the sheet changes
3
+ * nothing until a page puts class="pm-ds" on its root. The fonts are the self-hosted ones (public/vendor), never a network font. */
4
+ @font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }
5
+ @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }
6
+ .pm-ds{--ground:#EFE8E3;--ground-morning:#EEF3F8;--ground-afternoon:#F5EEE2;--ground-evening:#EFE8E3;--ground-night:#1B1D21;--card:#FFFFFF;--well:#F4F2EE;--line:rgba(42,46,53,.12);--ink:#2A2E35;--muted:#646A74;--blue:#2F5FB3;--on-blue:#FFFFFF;--blue-tint:#ECF1F8;--leaf:#5F7A45;--leaf-tint:#F2F4F0;--alert:#A4461A;--alert-tint:#F7EEEA;--raise:0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14);--lift:0 10px 28px -10px rgba(42,46,53,.28);--glow:0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)}
7
+ .pm-ds.dark, html.dark .pm-ds, :root[data-theme="dark"] .pm-ds{--ground:#1B1D21;--card:#24262B;--well:#1B1D21;--line:rgba(236,238,241,.12);--ink:#ECEEF1;--muted:#9EA4AD;--blue:#6AAAF0;--on-blue:#14161A;--blue-tint:#2A323D;--leaf:#A9C48C;--leaf-tint:#2F3333;--alert:#E8A07A;--alert-tint:#363132;--raise:0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08);--lift:0 10px 28px -10px rgba(0,0,0,.6);--glow:0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)}
8
+ .pm-ds{--space-4:4px;--space-8:8px;--space-12:12px;--space-16:16px;--space-24:24px;--space-32:32px;--space-48:48px;--space-64:64px;--radius-sm:6px;--radius-md:10px;--radius-card:16px;--radius-panel:24px;--radius-pill:999px;--duration-quick:120ms;--duration-enter:200ms;--duration-leaf:600ms;--duration-light:20min;--ease-out:cubic-bezier(.2, .7, .2, 1);--ease-drift:cubic-bezier(.4, 0, .2, 1);--font-sans:"Plus Jakarta Sans", system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, monospace}
9
+ .pm-ds .title{font-family:var(--font-sans);font-size:26px;line-height:32px;font-weight:600}
10
+ .pm-ds .heading{font-family:var(--font-sans);font-size:18px;line-height:24px;font-weight:600}
11
+ .pm-ds .body{font-family:var(--font-sans);font-size:15px;line-height:24px;font-weight:400}
12
+ .pm-ds .small{font-family:var(--font-sans);font-size:13px;line-height:20px;font-weight:400}
13
+ .pm-ds .code{font-family:var(--font-mono);font-size:13px;line-height:20px;font-weight:400}
14
+ .pm-ds 600&family=IBM+Plex+Mono&display=swap");
15
+ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-sans);font-size:15px;line-height:1.6}
16
+ .pm-ds *{box-sizing:border-box}
17
+ .pm-ds .pm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
18
+ .pm-ds .pm-meta{font-size:13px;line-height:20px;color:var(--muted)}
19
+ .pm-ds .pm-h{margin:0;font-size:18px;line-height:24px;font-weight:600}
20
+ .pm-ds .pm-h-sm{margin:0;font-size:15px;line-height:24px;font-weight:600}
21
+ .pm-ds .pm-ic{width:16px;height:16px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
22
+ .pm-ds .pm-btn{width:32px;height:32px;border-radius:var(--radius-sm);border:0;background:none;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--duration-quick) var(--ease-out)}
23
+ .pm-ds .pm-btn:hover{background:var(--well)}
24
+ .pm-ds .pm-btn:focus-visible{outline:none;box-shadow:var(--glow)}
25
+ .pm-ds .pm-btn.primary{background:var(--blue);color:var(--on-blue)}
26
+ .pm-ds .pm-btn.outline{border:1px solid var(--line);background:var(--card)}
27
+ .pm-ds .pm-btn.danger{color:var(--alert)}
28
+ .pm-ds .pm-btn[disabled]{opacity:.4;cursor:default}
29
+ .pm-ds .pm-input{height:40px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);padding:0 12px;font:inherit;color:var(--ink);width:100%}
30
+ .pm-ds .pm-input:focus{outline:none;box-shadow:var(--glow)}
31
+ .pm-ds .pm-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;white-space:nowrap;background:var(--well);color:var(--muted)}
32
+ .pm-ds .pm-badge.alert{background:var(--alert-tint);color:var(--alert)}
33
+ .pm-ds .pm-badge.blue{background:var(--blue-tint);color:var(--blue)}
34
+ .pm-ds .pm-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--blue);color:var(--on-blue);font-size:13px}
35
+ .pm-ds .pm-switch{width:40px;height:24px;border-radius:var(--radius-pill);background:var(--line);border:0;position:relative;cursor:pointer;flex-shrink:0}
36
+ .pm-ds .pm-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:var(--radius-pill);background:var(--card);box-shadow:var(--raise);transition:left var(--duration-quick) var(--ease-out)}
37
+ .pm-ds .pm-switch[aria-checked="true"]{background:var(--leaf)}
38
+ .pm-ds .pm-switch[aria-checked="true"]::after{left:19px}
39
+ .pm-ds .pm-switch:focus-visible{outline:none;box-shadow:var(--glow)}
40
+ .pm-ds .pm-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--radius-pill);background:var(--well);font-size:13px}
41
+ .pm-ds .pm-kbd{font-family:var(--font-mono);font-size:13px;min-width:24px;height:24px;padding:0 6px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--well);display:inline-flex;align-items:center;justify-content:center}
42
+ .pm-ds .pm-li{min-height:56px;border-radius:var(--radius-md);display:flex;align-items:center;gap:12px;padding:6px 8px 6px 14px}
43
+ .pm-ds .pm-li:hover{background:var(--well)}
44
+ .pm-ds .pm-li .t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
45
+ .pm-ds .pm-li .w{font-size:13px;line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
46
+ .pm-ds .pm-li .txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
47
+ .pm-ds .pm-li .acts{display:none;gap:2px}
48
+ .pm-ds .pm-li:hover .acts, .pm-ds .pm-li:focus-within .acts{display:flex}
49
+ .pm-ds .pm-li.now{background:var(--leaf-tint);box-shadow:inset 0 0 0 2px var(--leaf)}
50
+ .pm-ds .pm-li.nest{padding-left:38px;min-height:44px}
51
+ .pm-ds .pm-tabs{display:inline-flex;background:var(--well);border-radius:var(--radius-md);padding:3px;gap:2px}
52
+ .pm-ds .pm-tab{height:30px;padding:0 10px;border-radius:var(--radius-sm);border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
53
+ .pm-ds .pm-tab[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:var(--raise)}
54
+ .pm-ds .pm-field{display:grid;grid-template-columns:110px 1fr;gap:8px;font-size:13px;line-height:20px}
55
+ .pm-ds .pm-field dt{color:var(--muted)}
56
+ .pm-ds .pm-field dd{margin:0}
57
+ .pm-ds .pm-toast{display:inline-flex;flex-direction:column;background:var(--ink);color:var(--card);border-radius:var(--radius-md);box-shadow:var(--lift);font-size:13px;overflow:hidden}
58
+ .pm-ds .pm-toast .in{display:inline-flex;align-items:center;gap:10px;padding:4px 4px 4px 14px}
59
+ .pm-ds .pm-toast .pm-btn{color:var(--card)}
60
+ .pm-ds .pm-toast .timer{height:2px;background:var(--leaf)}
61
+ .pm-ds .pm-menu{background:var(--card);border-radius:var(--radius-md);box-shadow:var(--lift);padding:4px;min-width:200px;display:flex;flex-direction:column}
62
+ .pm-ds .pm-menu button{height:36px;border:0;background:none;text-align:left;padding:0 10px;border-radius:var(--radius-sm);font:inherit;font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px;cursor:pointer}
63
+ .pm-ds .pm-menu button:hover{background:var(--well)}
64
+ .pm-ds .pm-sug{display:flex;align-items:center;gap:10px;background:var(--blue-tint);border-radius:var(--radius-md);padding:4px 4px 4px 12px;font-size:13px}
65
+ .pm-ds .pm-sug .say{flex:1}
66
+ .pm-ds .pm-star{color:var(--blue)}
67
+ .pm-ds .pm-ev{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--raise);padding:6px 10px;display:flex;flex-direction:column;line-height:1.35;font-size:13px}
68
+ .pm-ds .pm-ev b{font-weight:600}
69
+ .pm-ds .pm-ev.over{background:none;box-shadow:none;border-style:dashed;color:var(--muted)}
70
+ .pm-ds .pm-fold{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border:0;border-top:1px dashed var(--line);background:none;width:100%;font:inherit;font-size:13px;font-weight:600;color:var(--muted);text-align:left;cursor:pointer}
71
+ .pm-ds .pm-group{height:32px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:600;background:var(--well);color:var(--muted)}
72
+ .pm-ds .pm-group.now{background:var(--leaf-tint);color:var(--ink)}
73
+ .pm-ds .pm-block{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--raise);padding:16px 18px;display:flex;flex-direction:column;gap:12px;min-width:0}
74
+ .pm-ds .pm-block.flat{background:var(--well);box-shadow:none;border-color:transparent}
75
+ .pm-ds .pm-block .head{display:flex;align-items:center;gap:10px}
76
+ .pm-ds .pm-block .head .sp{flex:1}
77
+ .pm-ds .pm-block.list{padding:0;overflow:hidden;gap:0}
78
+ .pm-ds .pm-block.list .head{padding:14px 16px}
79
+ .pm-ds .pm-block.list .rows{padding:0 8px 8px}
80
+ .pm-ds .pm-table{width:100%;border-collapse:collapse;font-size:13px}
81
+ .pm-ds .pm-table th{text-align:left;font-weight:600;color:var(--muted);padding:8px;border-bottom:1px solid var(--line)}
82
+ .pm-ds .pm-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
83
+ .pm-ds .pm-table tr:hover td{background:var(--well)}
84
+ .pm-ds .pm-num{font-size:26px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums}
85
+ .pm-ds .pm-bar{display:flex;height:10px;border-radius:var(--radius-pill);overflow:hidden;background:var(--well)}
86
+ .pm-ds .pm-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:13px}
87
+ .pm-ds .pm-cal span{height:32px;line-height:32px;border-radius:var(--radius-sm)}
88
+ .pm-ds .pm-cal .today{box-shadow:var(--glow);font-weight:600}
89
+ .pm-ds .pm-cal .has::after{content:"";display:block;width:4px;height:4px;margin:-8px auto 0;border-radius:2px;background:var(--blue)}
90
+ .pm-ds .pm-msg{align-self:flex-end;max-width:75%;background:var(--well);border-radius:var(--radius-md);padding:8px 12px;font-size:13px}
91
+ .pm-ds .pm-said{display:flex;gap:8px;font-size:13px;line-height:20px;max-width:85%}
92
+ .pm-ds .pm-doc{font-size:15px;line-height:26px;max-width:62ch}
93
+ .pm-ds .pm-doc h3{font-size:18px;line-height:24px;margin:0 0 4px}
94
+ .pm-ds .pm-stage{background:var(--well);border-radius:var(--radius-md);aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}
95
+ .pm-ds .pm-set{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
96
+ .pm-ds .pm-rail{width:92px;background:var(--well);border-radius:var(--radius-panel);padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:4px}
97
+ .pm-ds .pm-rail a{position:relative;width:76px;height:64px;border-radius:var(--radius-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
98
+ .pm-ds .pm-rail a[aria-current="page"]{background:var(--card);box-shadow:var(--glow)}
99
+ .pm-ds .pm-rail .pm-count{position:absolute;top:3px;right:5px}
100
+ .pm-ds .pm-path{display:flex;align-items:center;gap:6px;font-size:13px}
101
+ .pm-ds .pm-path a{color:var(--blue)}
102
+ .pm-ds .pm-motion-enter{animation:pmEnter var(--duration-enter) var(--ease-out) both}
103
+ @keyframes pmEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
104
+ @media (prefers-reduced-motion: reduce) {
105
+ .pm-ds *{animation:none!important;transition:none!important}
106
+ }
107
+ .pm-ds a{color:var(--blue)}
108
+ .pm-ds .pm-tip{position:absolute;pointer-events:none;background:var(--ink);color:var(--card);font-size:13px;line-height:20px;padding:6px 10px;border-radius:var(--radius-md);box-shadow:var(--lift);white-space:nowrap;opacity:0;transform:translateY(4px);transition:opacity var(--duration-quick) var(--ease-out),transform var(--duration-quick) var(--ease-out);z-index:5}
109
+ .pm-ds .pm-tip.on{opacity:1;transform:none}
110
+ .pm-ds .pm-tip b{font-weight:600}
111
+ .pm-ds .pm-chart{position:relative;outline:none;border-radius:var(--radius-md)}
112
+ .pm-ds .pm-chart:focus-visible{box-shadow:var(--glow)}
113
+ .pm-ds .pm-chart .hit{fill:transparent;cursor:pointer}
114
+ .pm-ds .pm-chart .pt{fill:var(--card);stroke:var(--blue);stroke-width:2;transition:r var(--duration-quick)}
115
+ .pm-ds .pm-chart .pt.on{stroke:var(--leaf);stroke-width:3}
116
+ .pm-ds .pm-chart .xh{stroke:var(--line);stroke-width:1;opacity:0}
117
+ .pm-ds .pm-chart .xh.on{opacity:1}
118
+ .pm-ds .pm-chart .series{transition:opacity var(--duration-enter) var(--ease-drift)}
119
+ .pm-ds .pm-chart .series.off{opacity:0}
120
+ .pm-ds .pm-chart path.line{transition:d var(--duration-enter) var(--ease-drift)}
121
+ .pm-ds .pm-leg{display:flex;gap:12px;font-size:13px}
122
+ .pm-ds .pm-leg button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:2px 6px;border-radius:var(--radius-sm);color:var(--ink)}
123
+ .pm-ds .pm-leg button:hover{background:var(--well)}
124
+ .pm-ds .pm-leg button:focus-visible{box-shadow:var(--glow)}
125
+ .pm-ds .pm-leg button[aria-pressed="false"]{color:var(--muted);text-decoration:line-through}
126
+ .pm-ds .pm-leg i{width:10px;height:3px;border-radius:2px;display:inline-block}
127
+ .pm-ds .pm-pick{margin-top:8px;font-size:13px;color:var(--muted);min-height:20px}
128
+ .pm-ds .pm-pick a{color:var(--blue);font-weight:600}
129
+ .pm-ds .pm-bar span{cursor:pointer;transition:filter var(--duration-quick)}
130
+ .pm-ds .pm-bar span:hover{filter:brightness(1.12)}
131
+ .pm-ds .pm-table th[aria-sort]{cursor:pointer;user-select:none}
132
+ .pm-ds .pm-table th[aria-sort]:hover{color:var(--ink)}
133
+ .pm-ds .pm-table th[aria-sort="ascending"]::after{content:" ↑"}
134
+ .pm-ds .pm-table th[aria-sort="descending"]::after{content:" ↓"}
135
+ .pm-ds .pm-table tr.sel td{background:var(--leaf-tint)}
136
+ .pm-ds .pm-li.gone{opacity:0;transform:translateX(12px);transition:opacity var(--duration-enter) var(--ease-out),transform var(--duration-enter) var(--ease-out)}
137
+ @media (prefers-reduced-motion:reduce) {
138
+ .pm-ds .pm-chart path.line, .pm-ds .pm-li.gone, .pm-ds .pm-tip{transition:none}
139
+ }
140
+ .pm-ds .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}
141
+ .pm-ds .pm-leg i.pm-sw-blue{background:var(--blue)}
142
+ .pm-ds .pm-leg i.pm-sw-leaf{background:var(--leaf)}
143
+ .pm-ds .pm-leg i.pm-sw-muted{background:var(--muted)}
144
+ .pm-ds .pm-leg i.pm-sw-alert{background:var(--alert)}
145
+ .pm-ds .pm-chart-head:empty{display:none}