create-pmos 0.696.0 → 0.697.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 (49) hide show
  1. package/package.json +9 -9
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/ui/components/bundle.css +35 -35
  4. package/payload/design-system/ui/tokens.css +6 -5
  5. package/payload/planning/evals/eval-calibration.md +1 -1
  6. package/payload/planning/okrs/health-budgets.md +1 -1
  7. package/payload/state/discoveries.md +1 -1
  8. package/workspace/briefing-premium-insights-test.js +2 -1
  9. package/workspace/changelog.json +8 -8
  10. package/workspace/design-system/ui/components/bundle.css +35 -35
  11. package/workspace/design-system/ui/tokens.css +6 -5
  12. package/workspace/design-token-reach.js +93 -0
  13. package/workspace/guide/cli.md +8 -0
  14. package/workspace/lib/design-system.js +22 -4
  15. package/workspace/lib/premium-console-type.js +2 -1
  16. package/workspace/package-lock.json +2 -2
  17. package/workspace/package.json +1 -1
  18. package/workspace/premium-menu-rows-test.js +2 -1
  19. package/workspace/premium-vw-item-test.js +2 -0
  20. package/workspace/public/capture.html +1 -0
  21. package/workspace/public/pm/console3.css +1 -1
  22. package/workspace/public/pm/cozy.css +3 -7
  23. package/workspace/public/pm/ds-bridge.css +3 -1
  24. package/workspace/public/pm/komorebi.css +44 -40
  25. package/workspace/public/pm/premium-mtg-present.js +1 -1
  26. package/workspace/public/pm/premium-vw-backlog.css +0 -1
  27. package/workspace/public/pm/premium-vw-cal.css +0 -1
  28. package/workspace/public/pm/premium-vw-copy.css +0 -1
  29. package/workspace/public/pm/premium-vw-doc.css +0 -1
  30. package/workspace/public/pm/premium-vw-guide.css +0 -1
  31. package/workspace/public/pm/premium-vw-item.css +0 -1
  32. package/workspace/public/pm/premium-vw-jira.css +0 -1
  33. package/workspace/public/pm/premium-vw-meet.css +0 -1
  34. package/workspace/public/pm/premium-vw-notepad.css +0 -1
  35. package/workspace/public/pm/premium-vw-notes.css +0 -1
  36. package/workspace/public/pm/premium-vw-rec.css +0 -1
  37. package/workspace/public/pm/premium-vw-report.css +0 -1
  38. package/workspace/public/pm/premium-vw-slides.css +0 -1
  39. package/workspace/public/pm/premium-vw-slides.js +1 -1
  40. package/workspace/public/pm/premium.css +0 -1
  41. package/workspace/public/premium-board.html +1 -0
  42. package/workspace/public/premium-events.html +1 -0
  43. package/workspace/public/premium-goals.html +1 -0
  44. package/workspace/public/premium-intelligence.html +1 -0
  45. package/workspace/public/premium-library.html +1 -0
  46. package/workspace/public/premium-present.html +1 -0
  47. package/workspace/public/premium-routine.html +1 -0
  48. package/workspace/public/premium-viewer.html +1 -0
  49. package/workspace/test-lists/design-token-alias.json +9 -0
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ /* design-token-reach.js — proof that one design token change reaches every page (initiative token-first-design-system, done test T7, T8).
4
+ * Not a suite: a look at the pages, run by hand or by the Checker. It serves the workspace, and for each page in public/*.html that loads
5
+ * stylesheets it takes a screenshot and reads every visible element's font size and colour. Then it serves a TEST COPY of a system sheet
6
+ * with one token changed and does the same again. Nothing on disk changes:
7
+ * type komorebi.css with --type-body 15px → 17px must change every page
8
+ * colour brand.css with the light --ink → a red must change every page whose body carries pm-ds (the colour tokens are scoped to it)
9
+ * A page that did not change fails the run (exit 1). Each page prints one "[token-reach]" line, and the run prints the computed type roles
10
+ * (--fs-body, --fs-meta, --fs-panel, --fs-display) of the unchanged page, which must still read 15, 13, 18 and 26 px.
11
+ * OUT=<dir> where the before/after PNGs go (default: this run's state folder). PAGES=a.html,b.html only these pages. */
12
+ const fs = require('fs');
13
+ const path = require('path');
14
+ const { spawn } = require('child_process');
15
+ const { findBrowser } = require('./lib/find-browser');
16
+ const T = require('./test-run').configure({ name: 'design-token-reach' });
17
+ const OUT = process.env.OUT || path.join(T.STATE_DIR, 'token-reach');
18
+ const PUB = path.join(__dirname, 'public');
19
+ const read = (f) => fs.readFileSync(f, 'utf8');
20
+
21
+ const PAGES = (process.env.PAGES ? process.env.PAGES.split(',') : fs.readdirSync(PUB).filter((f) => f.endsWith('.html')))
22
+ .filter((f) => /href="\/pm\/[^"]+\.css"/.test(read(path.join(PUB, f))));
23
+ // each change is one token in a test copy of one system sheet; [from, to] pairs (a colour has a light and a dark value)
24
+ const CHANGES = [
25
+ { key: 'type-body', sheet: 'komorebi.css', pairs: [['--type-body:15px', '--type-body:17px']], kind: 'type' },
26
+ { key: 'type-small', sheet: 'komorebi.css', pairs: [['--type-small:13px', '--type-small:15px']], kind: 'type' },
27
+ { key: 'ink', sheet: 'brand.css', pairs: [['--ink:#2A2E35', '--ink:#B03020'], ['--ink:#ECEEF1', '--ink:#FF8A80']], kind: 'colour' },
28
+ { key: 'muted', sheet: 'brand.css', pairs: [['--muted:#646A74', '--muted:#B03020'], ['--muted:#9EA4AD', '--muted:#FF8A80']], kind: 'colour' },
29
+ ];
30
+ // a page the server serves at another address
31
+ const URLS = { 'capture.html': '/console.html?capture=1', 'premium-present.html': '/pm/present' };
32
+ const log = (s) => console.log('[token-reach] ' + s);
33
+
34
+ /* every visible element's font size and colour, and the type roles on the body */
35
+ const sample = () => {
36
+ const out = [];
37
+ for (const el of document.querySelectorAll('body *')) {
38
+ const r = el.getBoundingClientRect();
39
+ if (!r.width || !r.height) continue;
40
+ const s = getComputedStyle(el);
41
+ out.push(s.fontSize + '|' + s.color);
42
+ }
43
+ const b = getComputedStyle(document.body);
44
+ return { els: out, pmds: document.body.classList.contains('pm-ds'), roles: ['--fs-body', '--fs-meta', '--fs-panel', '--fs-display'].map((n) => b.getPropertyValue(n).trim()) };
45
+ };
46
+
47
+ (async () => {
48
+ for (const c of CHANGES) for (const [from] of c.pairs) if (!read(path.join(PUB, 'pm', c.sheet)).includes(from)) { log(`${c.sheet} no longer holds "${from}": update CHANGES`); process.exit(2); }
49
+ const { chromium } = require('playwright-core');
50
+ const srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
51
+ await T.waitForServer(T.BASE);
52
+ const browser = await chromium.launch({ executablePath: findBrowser() });
53
+ fs.mkdirSync(OUT, { recursive: true });
54
+ const shoot = async (page, change) => {
55
+ const ctx = await browser.newContext({ viewport: { width: 1280, height: 800 }, colorScheme: 'light', reducedMotion: 'reduce' });
56
+ if (change) await ctx.route('**/pm/' + change.sheet + '*', (r) => r.fulfill({ contentType: 'text/css', body: change.pairs.reduce((t, [a, b]) => t.split(a).join(b), read(path.join(PUB, 'pm', change.sheet))) }));
57
+ const p = await ctx.newPage();
58
+ await p.goto(T.BASE + (URLS[page] || '/' + page), { waitUntil: 'load' }).catch(() => {});
59
+ await p.waitForTimeout(1500);
60
+ const s = await p.evaluate(sample);
61
+ const png = await p.screenshot({ fullPage: true });
62
+ await ctx.close();
63
+ return { ...s, png };
64
+ };
65
+ const misses = [];
66
+ const roleLines = [];
67
+ for (const page of PAGES) {
68
+ const base = await shoot(page, null);
69
+ const again = await shoot(page, null); // the same page twice: if it differs by itself, a changed screenshot proves nothing
70
+ const steady = Buffer.compare(base.png, again.png) === 0;
71
+ fs.writeFileSync(path.join(OUT, page.replace('.html', '') + '-before.png'), base.png);
72
+ roleLines.push(`${page}: ${base.roles.join(' / ')}`);
73
+ const parts = [], hit = { type: false, colour: false };
74
+ for (const c of CHANGES) {
75
+ const after = await shoot(page, c);
76
+ fs.writeFileSync(path.join(OUT, page.replace('.html', '') + '-' + c.key + '.png'), after.png);
77
+ const shot = Buffer.compare(base.png, after.png) !== 0;
78
+ const n = base.els.filter((v, i) => after.els[i] !== undefined && after.els[i] !== v).length;
79
+ const reached = shot && n > 0; // the screenshot changed AND at least one element's size or colour changed
80
+ if (reached) hit[c.kind] = true;
81
+ parts.push(`${c.key} ${reached ? 'yes' : 'no'} (${n})`);
82
+ }
83
+ for (const k of ['type', 'colour']) if (!hit[k]) misses.push(`${page} ${k}`);
84
+ log(`${page}${steady ? '' : ' (moves by itself)'} · type ${hit.type ? 'reached' : 'NOT reached'} · colour ${hit.colour ? 'reached' : 'NOT reached'} · ${parts.join(', ')}`);
85
+ }
86
+ console.log('\ntype roles on each page before the change (--fs-body / --fs-meta / --fs-panel / --fs-display):\n ' + roleLines.join('\n '));
87
+ const wrongRoles = roleLines.filter((l) => !l.endsWith('15px / 13px / 18px / 26px'));
88
+ if (wrongRoles.length) misses.push('type roles not 15/13/18/26 px on ' + wrongRoles.length + ' page(s)');
89
+ log(`${PAGES.length - new Set(misses.map((m) => m.split(' ')[0])).size} of ${PAGES.length} pages reached · screenshots in ${OUT}`);
90
+ if (misses.length) log('NOT reached: ' + misses.join(', '));
91
+ await browser.close(); srv.kill('SIGKILL'); T.killTmux && T.killTmux();
92
+ process.exit(misses.length ? 1 : 0);
93
+ })().catch((e) => { console.error(e); process.exit(2); });
@@ -350,6 +350,14 @@ The aim: change one token and every page follows. Each place this command counts
350
350
  - `--pages` shows the older measure instead: for each page, the share of its classes that the system defines and its own CSS rules.
351
351
  - A product sets the files to count and its system sheets in `design-drift.json` in its design-system folder, for example `{ "scan": ["web/**/*.css"], "systemSheets": ["ds.css"] }`.
352
352
 
353
+ ### One token, every page
354
+
355
+ The design system's own sheet (Komorebi, `komorebi.css`) is the only place the text sizes are written. Its type styles are tokens: `--type-title`, `--type-heading`, `--type-body`, `--type-small` and `--type-code`, each with a `--leading-` and a `--weight-` token. The older names that pages use (`--fs-body`, `--fs-meta` and the other `--fs-*` roles, `--fw-regular`, `--fw-strong`) point at them. Every page loads the colour bridge (`ds-bridge.css`), so the older `--cz-*` colours point at the system's colours.
356
+
357
+ To change a text size on every page, change the style in `workspace/design-system/ui/tokens.json` and run `node lib/design-system.js --write`. Do not write a `--fs-*` value in a page's stylesheet.
358
+
359
+ To see that a change reaches every page, run `node design-token-reach.js` in `workspace/`. It changes one token in a test copy of the system's sheets, takes a screenshot of each page before and after, and names each page the change did not reach. It changes no file.
360
+
353
361
  ### pmos pages: fix a page before you add to it
354
362
 
355
363
  A page that keeps breaking should get fixed before it gets a new feature. This command shows which pages keep breaking.
@@ -100,6 +100,9 @@ function tokensOf(json) {
100
100
  }
101
101
 
102
102
  // a token can name another one: "{blue}" is the brand's blue, so the chart role follows the brand in both themes
103
+ // the type tokens' block: written at :root in the workspace sheet too (not scoped to .pm-ds), so a page without pm-ds and the older
104
+ // names that alias them (LEGACY_TYPE) resolve them everywhere. The names are new, so declaring them on every page changes no rule.
105
+ const TYPE_ROOT = ':root:where(*)';
103
106
  const valueOf = (v) => String(v).replace(/\{([a-z0-9-]+)\}/g, 'var(--$1)');
104
107
  /** PURE. A system's tokens.json → its tokens.css: the themed tokens (light, then dark), the rest, and (ui only) the type classes. */
105
108
  function tokensCss(json, name) {
@@ -119,9 +122,11 @@ function tokensCss(json, name) {
119
122
  if (dark.length) L.push(`[data-theme="dark"] {${dark.join(';')}}`);
120
123
  if (rest.length) L.push(`:root {${rest.join(';')}}`);
121
124
  if ((SYSTEMS[name] || {}).types) {
122
- for (const g of ((json && json.type) || {}).groups || []) {
123
- for (const st of g.styles || []) L.push(`.${st.name}{font-family:var(--font-${st.family || g.family || 'sans'});font-size:${st.fontSize};line-height:${st.lineHeight};font-weight:${st.fontWeight}}`);
124
- }
125
+ // the type styles are tokens (--type-, --leading-, --weight-<style>), and the type classes read them: a change to one style's size in
126
+ // tokens.json reaches every class and part that names it (initiative token-first-design-system)
127
+ const styles = (((json && json.type) || {}).groups || []).flatMap((g) => (g.styles || []).map((st) => ({ ...st, family: st.family || g.family || 'sans' })));
128
+ if (styles.length) L.push(`${TYPE_ROOT} {${styles.map((st) => `--type-${st.name}:${st.fontSize};--leading-${st.name}:${st.lineHeight};--weight-${st.name}:${st.fontWeight}`).join(';')}}`);
129
+ for (const st of styles) L.push(`.${st.name}{font-family:var(--font-${st.family});font-size:var(--type-${st.name});line-height:var(--leading-${st.name});font-weight:var(--weight-${st.name})}`);
125
130
  }
126
131
  return L.join('\n') + '\n';
127
132
  }
@@ -175,6 +180,17 @@ const UI_GLUE = [
175
180
  `${SCOPE} .pm-chart-head:empty{display:none}`,
176
181
  ];
177
182
 
183
+ /* The workspace's older type names, pointed at Komorebi once, here (initiative token-first-design-system). The 16 stylesheets that
184
+ * wrote them again are gone, so a change to a Komorebi type token reaches every page. The values are the ones they had: 26, 18, 15, 13 px
185
+ * and 400 / 600. --fs-field is not a role (a phone zooms into a field under 16 px) and the line heights are the roles' own densities. */
186
+ const LEGACY_TYPE = ':root{' + [
187
+ '--fw-regular:var(--weight-body)', '--fw-strong:var(--weight-heading)', '--fs-field:16px',
188
+ '--fs-display:var(--type-title)', '--fs-page:var(--type-title)', '--fs-panel:var(--type-heading)',
189
+ '--fs-section:var(--type-body)', '--fs-row:var(--type-body)', '--fs-body:var(--type-body)',
190
+ '--fs-meta:var(--type-small)', '--fs-label:var(--type-small)', '--fs-badge:var(--type-small)',
191
+ '--lh-display:1.2', '--lh-page:1.2', '--lh-panel:1.3', '--lh-section:1.35', '--lh-row:1.4', '--lh-body:1.6', '--lh-meta:1.5', '--lh-label:1.35', '--lh-badge:1.2',
192
+ ].join(';') + '}';
193
+
178
194
  /** PURE. One system's workspace sheet from its tokens.css and components/bundle.css. */
179
195
  function sheetOf(name, tokens, bundle) {
180
196
  const sys = SYSTEMS[name];
@@ -183,6 +199,7 @@ function sheetOf(name, tokens, bundle) {
183
199
  ` * lib/design-system.js: do not edit; change the system's files and run \`node lib/design-system.js --write\`. Every rule is scoped to ${sys.scope},`,
184
200
  ' * so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system\'s own sheet. */',
185
201
  ];
202
+ if (sys.types) L.push('/* Except the type tokens (--type-, --leading-, --weight-<style>) and the workspace\'s older type names that point at them (--fs-*, --fw-*,\n * --lh-*): those sit at :root, so a change to one Komorebi type token reaches every page, with or without the class. */');
186
203
  if (name === 'brand') L.push(...FONTS);
187
204
  // brand and charts sit inside another system's page: their own page-level rules (body, the preview root) are that system's job
188
205
  const shared = sys.scope === FAMILY;
@@ -201,12 +218,13 @@ function sheetOf(name, tokens, bundle) {
201
218
  if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
202
219
  // a preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
203
220
  if ((sys.roots || []).includes(p.sel) && /padding/.test(p.body)) continue;
221
+ if (p.sel === TYPE_ROOT) { L.push(`${indent}:root{${p.body}}`); continue; }
204
222
  L.push(`${indent}${scopeList(p.sel, sys)}{${p.body}}`);
205
223
  }
206
224
  };
207
225
  emit(pieces(dropImports(tokens)), '', false);
208
226
  emit(pieces(dropImports(bundle)), '', true);
209
- if (name === 'ui') L.push(...UI_GLUE);
227
+ if (name === 'ui') L.push(...UI_GLUE, LEGACY_TYPE);
210
228
  return L.join('\n') + '\n';
211
229
  }
212
230
 
@@ -8,6 +8,8 @@
8
8
  * transform(css) maps a premium stylesheet onto the console's type and changes nothing else: every font size goes to the nearest console
9
9
  * step, every heavy weight to 600 (550 to 500), the two font families to the console's, and the body line height to 1.5. It is idempotent,
10
10
  * so a stylesheet already on console type comes back unchanged (premium-console-type.test.js holds the committed stylesheets to that).
11
+ * It no longer writes the role tokens into the stylesheet: they come from the design system, once, at :root in komorebi.css
12
+ * (initiative token-first-design-system). FS is the same values, for a caller that draws without komorebi.css.
11
13
  * The browser suites also run it over the mockup before they compare computed styles, so the mockup stays the reference for the look and
12
14
  * the console is the reference for the type. */
13
15
 
@@ -53,7 +55,6 @@ function transform(css, { base = '/vendor/', faces = true } = {}) {
53
55
  .replace(/(\bbody\{[^}]*?)line-height:1\.45/g, '$1line-height:1.5')
54
56
  .replace(/(\.brief\{[^}]*?)max-width:42ch/g, '$1max-width:64ch')
55
57
  .replace(/\u0000(\d+)\u0000/g, (m, k) => kept[+k]);
56
- if (!/--fs-body:/.test(out)) out = ':root{' + FS + '}\n' + out;
57
58
  if (faces && !/space-grotesk-var\.woff2/.test(out)) out = fontFaces(base) + out;
58
59
  return out;
59
60
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.696.0",
3
+ "version": "0.697.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.696.0",
9
+ "version": "0.697.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.696.0",
3
+ "version": "0.697.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",
@@ -16,7 +16,8 @@ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); c
16
16
  const PUB = path.join(__dirname, 'public');
17
17
  const ORIGIN = 'http://pmos-menus.test';
18
18
  const TYPES = { '.css': 'text/css', '.woff2': 'font/woff2', '.html': 'text/html', '.svg': 'image/svg+xml' };
19
- const SHEETS = ['pm/premium.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
19
+ // komorebi.css first, as every page loads it: the type roles (--fs-*) come from it since token-first-design-system
20
+ const SHEETS = ['pm/komorebi.css', 'pm/premium.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
20
21
 
21
22
  const LONG = ['Migration off Okta (tender, award, migration), incl. the Okta CIS renewal runway', 'Inline login for eShop onsite checkout',
22
23
  'MAGW migration to auth-service (Java to Go) — Phase 1 and Phase 2', 'Email OTP'];
@@ -52,6 +52,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
52
52
  await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
53
53
  await page.goto(BASE + '/today.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
54
54
  S.up = await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumWorkItem), 20000);
55
+ // When Home does not come up, say what the page holds instead, so a CI-only failure can be read from the log.
56
+ if (!S.up) console.log(' (R9 not up: ' + JSON.stringify(await page.evaluate(() => { const v = document.querySelector('#czViewer'); return { url: location.pathname + location.search, viewer: v ? { hidden: v.hidden, w: v.getBoundingClientRect().width, cls: v.className, html: v.innerHTML.replace(/\s+/g, ' ').slice(0, 300) } : null, item: !!window.__premiumWorkItem, body: document.body.className, fs: getComputedStyle(document.documentElement).getPropertyValue('--fs-body') }; }).catch((e) => String(e))) + ' errors ' + JSON.stringify(S.errors.slice(0, 3)) + ' gets ' + S.gets.length + ')');
55
57
  return { page, ctx, S };
56
58
  };
57
59
  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
@@ -12,6 +12,7 @@
12
12
  <link rel="stylesheet" href="/pm/brand.css" />
13
13
  <link rel="stylesheet" href="/pm/charts.css" />
14
14
  <link rel="stylesheet" href="/pm/komorebi.css" />
15
+ <link rel="stylesheet" href="/pm/ds-bridge.css" />
15
16
  <link rel="stylesheet" href="/pm/c3-capture.css" />
16
17
  </head>
17
18
  <body class="pm-ds cap-page">
@@ -13,7 +13,7 @@
13
13
  * alphas stay as written. */
14
14
  .c3{
15
15
  --fs-1:11px;--fs-2:12px;--fs-3:14px;--fs-4:16px;--fs-5:20px;--fs-6:28px; /* the old steps, still read by the few legacy rules that keep them (feedback batch 26 item 6) */
16
- --fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2;
16
+ /* the type roles (--fs-*, --fw-*, --lh-*) come from komorebi.css at :root (initiative token-first-design-system) */
17
17
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;
18
18
  --acc:oklch(0.623 0.214 259.815);--accw:oklch(0.623 0.214 259.815 / 18%);
19
19
  --sh1:0 1px 2px oklch(0 0 0 / 40%);
@@ -25,8 +25,9 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
25
25
  :root{
26
26
  /* Typography roles (feedback batch 26 item 6, agreed 2026-11-03): ONE face (Plus Jakarta Sans), TWO weights (400 text, 600 emphasis),
27
27
  FOUR sizes (13 / 15 / 18 / 26) and ONE density, the most comfortable. Every font size, weight and line height in workspace/public names a
28
- role token from this block; size and weight come from the role, never from the page. This file is the only place that writes the values
29
- (conformance-gate.js R28-14). The premium-*.css and console3.css :root copies repeat the same values for pages that load without this file.
28
+ role token; size and weight come from the role, never from the page. The values come from the design system (Komorebi): komorebi.css
29
+ points --fs-*, --fw-regular, --fw-strong and --lh-* at its --type-* and --weight-* tokens once, at :root, for every page
30
+ (initiative token-first-design-system). Change a size in workspace/design-system/ui/tokens.json, never here.
30
31
  display 26 / 600 / 1.2 big numbers: North Star, KPI values
31
32
  page 26 / 600 / 1.2 page and report titles
32
33
  panel 18 / 600 / 1.3 a side panel, popover or card header
@@ -37,11 +38,6 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
37
38
  label 13 / 600 / 1.35 column heads, field labels, time stamps
38
39
  badge 13 / 600 / 1.2 initials, count pills, status chips
39
40
  Kept on purpose: the slide canvases and report templates (their own scaled sizes) and the counts inside milestone diamonds. */
40
- --fw-regular: 400; --fw-strong: 600;
41
- /* not a role: a phone zooms the page into a field typed in under 16 px, so on a touch screen every field is 16 px (the rule below) */
42
- --fs-field: 16px;
43
- --fs-display: 26px; --fs-page: 26px; --fs-panel: 18px; --fs-section: 15px; --fs-row: 15px; --fs-body: 15px; --fs-meta: 13px; --fs-label: 13px; --fs-badge: 13px;
44
- --lh-display: 1.2; --lh-page: 1.2; --lh-panel: 1.3; --lh-section: 1.35; --lh-row: 1.4; --lh-body: 1.6; --lh-meta: 1.5; --lh-label: 1.35; --lh-badge: 1.2;
45
41
  --fw-display: var(--fw-strong); --fw-page: var(--fw-strong); --fw-panel: var(--fw-strong); --fw-section: var(--fw-strong); --fw-row: var(--fw-strong);
46
42
  --fw-body: var(--fw-regular); --fw-meta: var(--fw-regular); --fw-label: var(--fw-strong); --fw-badge: var(--fw-strong);
47
43
  /* The Agreed design's palette (premium-agreed-design): every colour the cozy sheets use, one token each, defined only here.
@@ -1,5 +1,7 @@
1
1
  /* ds-bridge.css: the bridge from the cozy tokens to the PMOS design system (initiative design-system-meeting-pages).
2
- * A page that has moved to the system loads brand.css, charts.css and komorebi.css, puts pm-ds on its root, then loads this sheet.
2
+ * Every workspace page loads brand.css, charts.css and komorebi.css, then this sheet after cozy.css (initiative token-first-design-system;
3
+ * design-token-alias.test.js T5). The console names (--foreground, --card, …) follow too: cozy.css points them at --cz-* inside .cz.
4
+ * The type names (--fs-*) are not here: komorebi.css points them at its --type-* tokens at :root.
3
5
  * Shared modules (rows, sheets, the nav, the presenter) still name the old --cz-* tokens. Here those names point at the system's
4
6
  * tokens, so what the shared modules draw on a moved page follows the system too. Only on body.pm-ds: a page without pm-ds is
5
7
  * unchanged. Selectors are one step stronger than cozy.css's dark block so the bridge holds in both themes. Remove a name when no
@@ -1,20 +1,23 @@
1
1
  /* komorebi.css: PMOS Komorebi, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/ui/ by
2
2
  * lib/design-system.js: do not edit; change the system's files and run `node lib/design-system.js --write`. Every rule is scoped to .pm-ds,
3
3
  * so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system's own sheet. */
4
+ /* Except the type tokens (--type-, --leading-, --weight-<style>) and the workspace's older type names that point at them (--fs-*, --fw-*,
5
+ * --lh-*): those sit at :root, so a change to one Komorebi type token reaches every page, with or without the class. */
4
6
  .pm-ds{--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)}
5
7
  .pm-ds.dark, html.dark .pm-ds, :root[data-theme="dark"] .pm-ds{--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)}
6
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}
7
- .pm-ds .title{font-family:var(--font-sans);font-size:26px;line-height:32px;font-weight:600}
8
- .pm-ds .heading{font-family:var(--font-sans);font-size:18px;line-height:24px;font-weight:600}
9
- .pm-ds .body{font-family:var(--font-sans);font-size:15px;line-height:24px;font-weight:400}
10
- .pm-ds .small{font-family:var(--font-sans);font-size:13px;line-height:20px;font-weight:400}
11
- .pm-ds .code{font-family:var(--font-mono);font-size:13px;line-height:20px;font-weight:400}
12
- .pm-ds{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-sans);font-size:15px;line-height:1.6}
9
+ :root{--type-title:26px;--leading-title:32px;--weight-title:600;--type-heading:18px;--leading-heading:24px;--weight-heading:600;--type-body:15px;--leading-body:24px;--weight-body:400;--type-small:13px;--leading-small:20px;--weight-small:400;--type-code:13px;--leading-code:20px;--weight-code:400}
10
+ .pm-ds .title{font-family:var(--font-sans);font-size:var(--type-title);line-height:var(--leading-title);font-weight:var(--weight-title)}
11
+ .pm-ds .heading{font-family:var(--font-sans);font-size:var(--type-heading);line-height:var(--leading-heading);font-weight:var(--weight-heading)}
12
+ .pm-ds .body{font-family:var(--font-sans);font-size:var(--type-body);line-height:var(--leading-body);font-weight:var(--weight-body)}
13
+ .pm-ds .small{font-family:var(--font-sans);font-size:var(--type-small);line-height:var(--leading-small);font-weight:var(--weight-small)}
14
+ .pm-ds .code{font-family:var(--font-mono);font-size:var(--type-code);line-height:var(--leading-code);font-weight:var(--weight-code)}
15
+ .pm-ds{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-sans);font-size:var(--type-body);line-height:1.6}
13
16
  .pm-ds *{box-sizing:border-box}
14
17
  .pm-ds .pm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
15
- .pm-ds .pm-meta{font-size:13px;line-height:20px;color:var(--muted)}
16
- .pm-ds .pm-h{margin:0;font-size:18px;line-height:24px;font-weight:600}
17
- .pm-ds .pm-h-sm{margin:0;font-size:15px;line-height:24px;font-weight:600}
18
+ .pm-ds .pm-meta{font-size:var(--type-small);line-height:20px;color:var(--muted)}
19
+ .pm-ds .pm-h{margin:0;font-size:var(--type-heading);line-height:24px;font-weight:600}
20
+ .pm-ds .pm-h-sm{margin:0;font-size:var(--type-body);line-height:24px;font-weight:600}
18
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}
19
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)}
20
23
  .pm-ds .pm-btn:hover{background:var(--well)}
@@ -25,40 +28,40 @@
25
28
  .pm-ds .pm-btn[disabled]{opacity:.4;cursor:default}
26
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%}
27
30
  .pm-ds .pm-input:focus{outline:none;box-shadow:var(--glow)}
28
- .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)}
31
+ .pm-ds .pm-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--radius-sm);font-size:var(--type-small);font-weight:600;white-space:nowrap;background:var(--well);color:var(--muted)}
29
32
  .pm-ds .pm-badge.alert{background:var(--alert-tint);color:var(--alert)}
30
33
  .pm-ds .pm-badge.blue{background:var(--blue-tint);color:var(--blue)}
31
- .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}
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:var(--type-small)}
32
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}
33
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)}
34
37
  .pm-ds .pm-switch[aria-checked="true"]{background:var(--leaf)}
35
38
  .pm-ds .pm-switch[aria-checked="true"]::after{left:19px}
36
39
  .pm-ds .pm-switch:focus-visible{outline:none;box-shadow:var(--glow)}
37
- .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}
38
- .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}
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:var(--type-small)}
41
+ .pm-ds .pm-kbd{font-family:var(--font-mono);font-size:var(--type-small);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}
39
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}
40
43
  .pm-ds .pm-li:hover{background:var(--well)}
41
44
  .pm-ds .pm-li .t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
42
- .pm-ds .pm-li .w{font-size:13px;line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
45
+ .pm-ds .pm-li .w{font-size:var(--type-small);line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
43
46
  .pm-ds .pm-li .txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
44
47
  .pm-ds .pm-li .acts{display:none;gap:2px}
45
48
  .pm-ds .pm-li:hover .acts, .pm-ds .pm-li:focus-within .acts{display:flex}
46
49
  .pm-ds .pm-li.now{background:var(--leaf-tint);box-shadow:inset 0 0 0 2px var(--leaf)}
47
50
  .pm-ds .pm-li.nest{padding-left:38px;min-height:44px}
48
51
  .pm-ds .pm-tabs{display:inline-flex;background:var(--well);border-radius:var(--radius-md);padding:3px;gap:2px}
49
- .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}
52
+ .pm-ds .pm-tab{height:30px;padding:0 10px;border-radius:var(--radius-sm);border:0;background:none;font:inherit;font-size:var(--type-small);font-weight:600;color:var(--muted);cursor:pointer}
50
53
  .pm-ds .pm-tab[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:var(--raise)}
51
- .pm-ds .pm-field{display:grid;grid-template-columns:110px 1fr;gap:8px;font-size:13px;line-height:20px}
54
+ .pm-ds .pm-field{display:grid;grid-template-columns:110px 1fr;gap:8px;font-size:var(--type-small);line-height:20px}
52
55
  .pm-ds .pm-field dt{color:var(--muted)}
53
56
  .pm-ds .pm-field dd{margin:0}
54
- .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}
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:var(--type-small);overflow:hidden}
55
58
  .pm-ds .pm-toast .in{display:inline-flex;align-items:center;gap:10px;padding:4px 4px 4px 14px}
56
59
  .pm-ds .pm-toast .pm-btn{color:var(--card)}
57
60
  .pm-ds .pm-toast .timer{height:2px;background:var(--leaf)}
58
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}
59
- .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}
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:var(--type-small);color:var(--ink);display:flex;align-items:center;gap:8px;cursor:pointer}
60
63
  .pm-ds .pm-menu button:hover{background:var(--well)}
61
- .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}
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:var(--type-small)}
62
65
  .pm-ds .pm-sug .say{flex:1}
63
66
  .pm-ds .pm-star{color:var(--blue)}
64
67
  .pm-ds .pm-sug.x{flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px}
@@ -71,11 +74,11 @@
71
74
  .pm-ds .pm-sug.x dd li{margin:0 0 2px}
72
75
  .pm-ds .pm-sug.x dd.src{color:var(--muted)}
73
76
  .pm-ds .pm-sug.x .ans{display:flex;gap:8px;justify-content:flex-end}
74
- .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}
77
+ .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:var(--type-small)}
75
78
  .pm-ds .pm-ev b{font-weight:600}
76
79
  .pm-ds .pm-ev.over{background:none;box-shadow:none;border-style:dashed;color:var(--muted)}
77
- .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}
78
- .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)}
80
+ .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:var(--type-small);font-weight:600;color:var(--muted);text-align:left;cursor:pointer}
81
+ .pm-ds .pm-group{height:32px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:var(--type-small);font-weight:600;background:var(--well);color:var(--muted)}
79
82
  .pm-ds .pm-group.now{background:var(--leaf-tint);color:var(--ink)}
80
83
  .pm-ds .pm-dia{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;padding:0;transform:rotate(45deg);background:var(--card);border:2px solid var(--ink);border-radius:2px;box-sizing:border-box;cursor:pointer;z-index:2}
81
84
  .pm-ds .pm-dia.late{border-color:var(--alert)}
@@ -84,28 +87,28 @@
84
87
  .pm-ds .pm-dia.n>b{transform:rotate(-45deg);color:var(--card);font-size:11px;line-height:1;font-weight:600}
85
88
  .pm-ds .pm-dia:focus-visible{outline:none;box-shadow:var(--glow)}
86
89
  .pm-ds .pm-now{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--alert);z-index:1}
87
- .pm-ds .pm-now>span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:13px;font-style:normal;font-weight:600;color:var(--alert);white-space:nowrap}
90
+ .pm-ds .pm-now>span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:var(--type-small);font-style:normal;font-weight:600;color:var(--alert);white-space:nowrap}
88
91
  .pm-ds .pm-gt{position:relative;height:24px}
89
92
  .pm-ds .pm-gt>.b{position:absolute;top:7px;height:10px;border-radius:var(--radius-pill);background:var(--well);box-shadow:inset 0 0 0 1px var(--line)}
90
93
  .pm-ds .pm-gt>.b.dn{background:var(--leaf);box-shadow:none}
91
94
  .pm-ds .pm-gt>.b.nw{background:var(--blue);box-shadow:none}
92
95
  .pm-ds .pm-dline{position:relative;padding:0 40px 0 8px}
93
- .pm-ds .pm-dline .axis{position:relative;height:20px;font-size:13px;color:var(--muted)}
96
+ .pm-ds .pm-dline .axis{position:relative;height:20px;font-size:var(--type-small);color:var(--muted)}
94
97
  .pm-ds .pm-dline .axis .tk{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
95
98
  .pm-ds .pm-dline .line{position:relative;height:calc(24px + var(--rows,1) * 76px);background:linear-gradient(var(--line),var(--line)) 0 12px/100% 1px no-repeat}
96
99
  .pm-ds .pm-dline .line>.pm-now{bottom:auto;height:34px;top:-8px}
97
100
  .pm-ds .pm-dline .ms{position:absolute;top:0;width:0}
98
101
  .pm-ds .pm-dline .ms>.pm-dia{top:12px}
99
- .pm-ds .pm-dline .ms .lb{position:absolute;top:calc(28px + var(--row) * 76px);left:-6px;display:flex;flex-direction:column;align-items:flex-start;gap:0;width:max-content;max-width:200px;height:68px;font-size:13px;line-height:20px;overflow:hidden}
102
+ .pm-ds .pm-dline .ms .lb{position:absolute;top:calc(28px + var(--row) * 76px);left:-6px;display:flex;flex-direction:column;align-items:flex-start;gap:0;width:max-content;max-width:200px;height:68px;font-size:var(--type-small);line-height:20px;overflow:hidden}
100
103
  .pm-ds .pm-dline .ms.flip .lb{left:auto;right:-6px;align-items:flex-end;text-align:right}
101
104
  .pm-ds .pm-dline .ms .lb .hd{display:flex;align-items:center;gap:6px;height:22px}
102
105
  .pm-ds .pm-dline .ms .lb .pm-badge{height:20px;padding:0 6px;font-size:12px}
103
106
  .pm-ds .pm-dline .ms .lb b, .pm-ds .pm-dline .ms .lb .pm-meta{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
104
- .pm-ds .pm-dline .ms .lb b{font-size:15px;line-height:24px;font-weight:600}
107
+ .pm-ds .pm-dline .ms .lb b{font-size:var(--type-body);line-height:24px;font-weight:600}
105
108
  .pm-ds .pm-dline .ms .lb .code{font-family:var(--font-mono);color:var(--muted)}
106
109
  .pm-ds .pm-dline .ms.low::before{content:"";position:absolute;left:0;top:20px;height:calc(var(--row) * 76px + 6px);border-left:1px dashed var(--line)}
107
110
  .pm-ds .pm-dline .ms.late .lb .code{color:var(--alert)}
108
- .pm-ds .pm-more{position:absolute;top:20px;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
111
+ .pm-ds .pm-more{position:absolute;top:20px;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:0;font:inherit;font-size:var(--type-small);color:var(--muted);cursor:pointer}
109
112
  .pm-ds .pm-more.r{right:0}
110
113
  .pm-ds .pm-more.l{left:-8px}
111
114
  .pm-ds .pm-more b{min-width:24px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--ink);color:var(--card);font-size:11px;line-height:20px;font-weight:600}
@@ -117,29 +120,29 @@
117
120
  .pm-ds .pm-block.list{padding:0;overflow:hidden;gap:0}
118
121
  .pm-ds .pm-block.list .head{padding:14px 16px}
119
122
  .pm-ds .pm-block.list .rows{padding:0 8px 8px}
120
- .pm-ds .pm-table{width:100%;border-collapse:collapse;font-size:13px}
123
+ .pm-ds .pm-table{width:100%;border-collapse:collapse;font-size:var(--type-small)}
121
124
  .pm-ds .pm-table th{text-align:left;font-weight:600;color:var(--muted);padding:8px;border-bottom:1px solid var(--line)}
122
125
  .pm-ds .pm-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
123
126
  .pm-ds .pm-table tr:hover td{background:var(--well)}
124
- .pm-ds .pm-num{font-size:26px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums}
127
+ .pm-ds .pm-num{font-size:var(--type-title);line-height:32px;font-weight:600;font-variant-numeric:tabular-nums}
125
128
  .pm-ds .pm-bar{display:flex;height:10px;border-radius:var(--radius-pill);overflow:hidden;background:var(--well)}
126
- .pm-ds .pm-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:13px}
129
+ .pm-ds .pm-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:var(--type-small)}
127
130
  .pm-ds .pm-cal span{height:32px;line-height:32px;border-radius:var(--radius-sm)}
128
131
  .pm-ds .pm-cal .today{box-shadow:var(--glow);font-weight:600}
129
132
  .pm-ds .pm-cal .has::after{content:"";display:block;width:4px;height:4px;margin:-8px auto 0;border-radius:2px;background:var(--blue)}
130
- .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}
131
- .pm-ds .pm-said{display:flex;gap:8px;font-size:13px;line-height:20px;max-width:85%}
132
- .pm-ds .pm-doc{font-size:15px;line-height:26px;max-width:62ch}
133
- .pm-ds .pm-doc h3{font-size:18px;line-height:24px;margin:0 0 4px}
134
- .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}
133
+ .pm-ds .pm-msg{align-self:flex-end;max-width:75%;background:var(--well);border-radius:var(--radius-md);padding:8px 12px;font-size:var(--type-small)}
134
+ .pm-ds .pm-said{display:flex;gap:8px;font-size:var(--type-small);line-height:20px;max-width:85%}
135
+ .pm-ds .pm-doc{font-size:var(--type-body);line-height:26px;max-width:62ch}
136
+ .pm-ds .pm-doc h3{font-size:var(--type-heading);line-height:24px;margin:0 0 4px}
137
+ .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:var(--type-small)}
135
138
  .pm-ds .pm-set{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
136
139
  .pm-ds .pm-rail{width:72px;background:var(--well);border-radius:var(--radius-panel);padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:4px}
137
- .pm-ds .pm-rail a{position:relative;width:60px;height:56px;border-radius:var(--radius-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
140
+ .pm-ds .pm-rail a{position:relative;width:60px;height:56px;border-radius:var(--radius-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink);text-decoration:none;font-size:var(--type-small);font-weight:600}
138
141
  .pm-ds .pm-rail a[aria-current="page"]{background:var(--card);box-shadow:var(--glow)}
139
142
  .pm-ds .pm-rail.roomy{width:92px}
140
143
  .pm-ds .pm-rail.roomy a{width:76px;height:64px}
141
144
  .pm-ds .pm-rail .pm-count{position:absolute;top:3px;right:5px}
142
- .pm-ds .pm-path{display:flex;align-items:center;gap:6px;font-size:13px}
145
+ .pm-ds .pm-path{display:flex;align-items:center;gap:6px;font-size:var(--type-small)}
143
146
  .pm-ds .pm-path a{color:var(--blue)}
144
147
  .pm-ds .pm-motion-enter{animation:pmEnter var(--duration-enter) var(--ease-out) both}
145
148
  @keyframes pmEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@@ -147,7 +150,7 @@
147
150
  .pm-ds *{animation:none!important;transition:none!important}
148
151
  }
149
152
  .pm-ds a{color:var(--blue)}
150
- .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}
153
+ .pm-ds .pm-tip{position:absolute;pointer-events:none;background:var(--ink);color:var(--card);font-size:var(--type-small);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}
151
154
  .pm-ds .pm-tip.on{opacity:1;transform:none}
152
155
  .pm-ds .pm-tip b{font-weight:600}
153
156
  .pm-ds .pm-chart{position:relative;outline:none;border-radius:var(--radius-md)}
@@ -160,13 +163,13 @@
160
163
  .pm-ds .pm-chart .series{transition:opacity var(--duration-enter) var(--ease-drift)}
161
164
  .pm-ds .pm-chart .series.off{opacity:0}
162
165
  .pm-ds .pm-chart path.line{transition:d var(--duration-enter) var(--ease-drift)}
163
- .pm-ds .pm-leg{display:flex;gap:12px;font-size:13px}
166
+ .pm-ds .pm-leg{display:flex;gap:12px;font-size:var(--type-small)}
164
167
  .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)}
165
168
  .pm-ds .pm-leg button:hover{background:var(--well)}
166
169
  .pm-ds .pm-leg button:focus-visible{box-shadow:var(--glow)}
167
170
  .pm-ds .pm-leg button[aria-pressed="false"]{color:var(--muted);text-decoration:line-through}
168
171
  .pm-ds .pm-leg i{width:10px;height:3px;border-radius:2px;display:inline-block}
169
- .pm-ds .pm-pick{margin-top:8px;font-size:13px;color:var(--muted);min-height:20px}
172
+ .pm-ds .pm-pick{margin-top:8px;font-size:var(--type-small);color:var(--muted);min-height:20px}
170
173
  .pm-ds .pm-pick a{color:var(--blue);font-weight:600}
171
174
  .pm-ds .pm-bar span{cursor:pointer;transition:filter var(--duration-quick)}
172
175
  .pm-ds .pm-bar span:hover{filter:brightness(1.12)}
@@ -185,3 +188,4 @@
185
188
  .pm-ds .pm-leg i.pm-sw-muted{background:var(--muted)}
186
189
  .pm-ds .pm-leg i.pm-sw-alert{background:var(--alert)}
187
190
  .pm-ds .pm-chart-head:empty{display:none}
191
+ :root{--fw-regular:var(--weight-body);--fw-strong:var(--weight-heading);--fs-field:16px;--fs-display:var(--type-title);--fs-page:var(--type-title);--fs-panel:var(--type-heading);--fs-section:var(--type-body);--fs-row:var(--type-body);--fs-body:var(--type-body);--fs-meta:var(--type-small);--fs-label:var(--type-small);--fs-badge:var(--type-small);--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
@@ -187,7 +187,7 @@ function sheets(doc, abs, again) {
187
187
  function copySheets(doc, again) {
188
188
  let st = doc.getElementById('vzxAudCss');
189
189
  if (st && st.dataset.full === '1') return;
190
- const want = CSS.concat([new URL('./cozy.css', import.meta.url).href]);
190
+ const want = CSS.concat([new URL('./komorebi.css', import.meta.url).href, new URL('./cozy.css', import.meta.url).href]); // komorebi.css: the type tokens (--fs-*) at :root
191
191
  const text = [], got = new Set();
192
192
  for (const sh of document.styleSheets) {
193
193
  const w = sh.href && want.find((x) => sh.href.split('?')[0].endsWith(x)); if (!w) continue;
@@ -1,4 +1,3 @@
1
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
2
1
  /* pm/premium-vw-backlog.css — the Jira backlog as a viewer tab (initiative premium-viewer, R10; premium-vw-backlog.js).
3
2
  * Loaded once by vwStyle('backlog'). Sizes are only var(--fs-1..6), weights 400/500/600 (premium-console-type.test.js). */
4
3
  .vbl .bl{display:grid;gap:14px}
@@ -2,7 +2,6 @@
2
2
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
3
3
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
4
4
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-700.woff2) format("woff2");font-weight:600 700;font-display:swap}
5
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
6
5
  /* pm/premium-vw-cal.css — the calendar grid in the premium viewer: Day, Week and Month (initiative premium-viewer, R8; premium-vw-cal.js).
7
6
  * Loaded once by vwStyle('cal'). Sizes are only var(--fs-1..6), weights 400/500/600 (premium-console-type.test.js).
8
7
  * The pane's own width picks the layout: the timeline from 560px, the day list below it (the mockup's Week and Agenda). */
@@ -2,7 +2,6 @@
2
2
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
3
3
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
4
4
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-700.woff2) format("woff2");font-weight:600 700;font-display:swap}
5
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
6
5
  /* pm/premium-vw-copy.css — a Confluence page or Google Doc in the premium viewer (premium-vw-copies.js, premium-viewer R11). Loaded by vwStyle('copy'). */
7
6
  .cpv{display:grid;gap:12px;max-width:760px}
8
7
  .cpv-bar{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid);box-shadow:var(--card-shadow)}
@@ -1,4 +1,3 @@
1
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
2
1
  /* premium-vw-doc.css — the document page in the premium viewer (initiative premium-viewer, S2). Loaded once by vwStyle('doc'). Sizes are the console's
3
2
  * six steps only (var(--fs-1..6)), weights 400/500/600, the page's own tokens otherwise. Checked by premium-console-type.test.js. */
4
3
  :root{--vw-lnk:rgb(36,92,190);--vw-pur:rgb(110,72,190)}
@@ -2,7 +2,6 @@
2
2
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
3
3
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
4
4
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-700.woff2) format("woff2");font-weight:600 700;font-display:swap}
5
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
6
5
  /* premium-vw-guide.css — the guide in the Viewer (premium-vw-guide.js; canvas Exploring › User guide, option B): a page rail on the left,
7
6
  * the page on the right with its section chips. Under 720 px the rail hides and the list icon shows it over the page. Quiet: hairlines, one
8
7
  * well for the open page, no colour but the chips' hover. */
@@ -1,4 +1,3 @@
1
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
2
1
  /* pm/premium-vw-item.css — the work item view of the premium viewer (initiative premium-viewer, S7). Loaded by vwStyle('item'). Console type sizes only. */
3
2
  .vwi .vwi-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px}
4
3
  .vwi .vwi-head b{font-size:var(--fs-section);font-weight:var(--fw-strong);color:var(--ink);overflow-wrap:anywhere;line-height:var(--lh-section);}
@@ -2,7 +2,6 @@
2
2
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
3
3
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
4
4
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-700.woff2) format("woff2");font-weight:600 700;font-display:swap}
5
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
6
5
  /* pm/premium-vw-jira.css — the Jira ticket and sprint tabs of the premium viewer (initiative premium-viewer, S5). Loaded once by
7
6
  * pm/premium-vw-jira.js. Console type only: sizes var(--fs-1..6), weights 400, 500 and 600. */
8
7
  .jv{max-width:900px;margin:0 auto;display:grid;gap:12px;min-width:0}
@@ -2,7 +2,6 @@
2
2
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
3
3
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
4
4
  @font-face{font-family:"IBM Plex Mono";src:url(/vendor/ibm-plex-mono-700.woff2) format("woff2");font-weight:600 700;font-display:swap}
5
- :root{--fw-regular:400;--fw-strong:600;--fs-field:16px;--fs-display:26px;--fs-page:26px;--fs-panel:18px;--fs-section:15px;--fs-row:15px;--fs-body:15px;--fs-meta:13px;--fs-label:13px;--fs-badge:13px;--lh-display:1.2;--lh-page:1.2;--lh-panel:1.3;--lh-section:1.35;--lh-row:1.4;--lh-body:1.6;--lh-meta:1.5;--lh-label:1.35;--lh-badge:1.2}
6
5
  /* pm/premium-vw-meet.css — the meeting detail as the console's note sheet (initiative premium-viewer, S3; premium-vw-meet.js).
7
6
  * Loaded once by vmStyle(). Sizes are only var(--fs-1..6), weights 400/500/600 (premium-console-type.test.js). */
8
7
  .vm .vm-ln{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0;font-size:var(--fs-body);color:var(--ink-2);line-height:var(--lh-body);}