create-pmos 0.637.0 → 0.638.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.637.0",
3
+ "version": "0.638.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -33,6 +33,19 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.638.0",
38
+ "at": "2026-11-20T01:26:44.343Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1422,
43
+ "t": "Events and Routine are drawn from the PMOS design system",
44
+ "s": "Events and Routine are drawn from the PMOS design system",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.637.0",
38
51
  "at": "2026-11-20T00:56:06.689Z",
@@ -327,19 +340,6 @@
327
340
  "k": "fix"
328
341
  }
329
342
  ]
330
- },
331
- {
332
- "v": "0.615.0",
333
- "at": "2026-11-19T03:31:44.083Z",
334
- "f": 4,
335
- "prs": [
336
- {
337
- "n": 1394,
338
- "t": "Events audit round 2: product names, report names, old drafts, people's names",
339
- "s": "Events audit round 2: product names, report names, old drafts, people's names",
340
- "k": "fix"
341
- }
342
- ]
343
343
  }
344
344
  ]
345
345
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@86604455
1
+ kernel-source: pmos@1025b98b
2
2
  assembled: 2026-11-20
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-20T00:56:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:26:40Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-11-20T00:56:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:26:40Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-11-20T00:56:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T01:26:40Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.638.0",
4
+ "at": "2026-11-20T01:26:44.343Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1422,
9
+ "t": "Events and Routine are drawn from the PMOS design system",
10
+ "s": "Events and Routine are drawn from the PMOS design system",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.637.0",
4
17
  "at": "2026-11-20T00:56:06.689Z",
@@ -125,6 +125,8 @@ The **Product** and **Program** facts go one level up. A program or a product op
125
125
 
126
126
  ## Events
127
127
 
128
+ Events is drawn from the PMOS design system. Each group (Late, Today, Coming up) is one card. A suggestion sits in a blue box with ✓ and ✕. Today's date in the small month has a green ring. Undo is the arrow in the toast at the bottom.
129
+
128
130
  Events is one page for everything with a date, from every source PMOS reads: your meetings and focus time from the calendar (the same calendar as Today), the milestones and planned finish dates of every initiative and program, your tasks in PMOS and your Jira tickets with a due day, the days a report goes out, and the dates people state in your sources. A date stated in a source is, for example, an ask with a deadline in Slack or email, a date decided in meeting notes, or a release date in Jira or Confluence. PMOS keeps such a date only when the text states the day ("30 Nov"). It does not guess a day from "Friday" or "next week".
129
131
 
130
132
  - Each row starts its grey line with its type: **Meeting**, **Focus time**, **Milestone**, **Task**, **Report** or **Deadline**. A deadline names its source, for example "From Slack · Ang, 18 Nov". Press it to see the line that states the date, with a link to the source.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  type: Guide
3
3
  title: "Routine: everything that repeats"
4
- timestamp: 2026-11-19
4
+ timestamp: 2026-11-20
5
5
  ---
6
6
 
7
7
  # Routine: everything that repeats
@@ -10,6 +10,8 @@ Routine is the place for everything PMOS does by itself on a schedule, and for y
10
10
 
11
11
  ## The table
12
12
 
13
+ Routine is drawn from the PMOS design system. A switch that is on is green. A late Next shows as a rust-coloured label. Undo is the arrow in the toast at the bottom.
14
+
13
15
  Routine is one table. Each row has these columns:
14
16
 
15
17
  | Column | What it shows |
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.637.0",
3
+ "version": "0.638.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.637.0",
9
+ "version": "0.638.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.637.0",
3
+ "version": "0.638.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",
@@ -41,7 +41,7 @@ const MONTH = ['January', 'February', 'March', 'April', 'May', 'June', 'July', '
41
41
  const WD = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
42
42
 
43
43
  export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
44
- const svg = (d, w = 16) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
44
+ const svg = (d, w = 16) => `<svg class="pm-ic" aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
45
45
  export const ICON = {
46
46
  yes: 'M5 12.5l4.5 4.5L19 7.5', no: 'M6 6l12 12M18 6L6 18', go: 'M9 6l6 6-6 6', back: 'M15 6l-6 6 6 6', plus: 'M12 5v14M5 12h14',
47
47
  lock: 'M7 11V8a5 5 0 0 1 10 0v3M5.5 11h13v9h-13z', date: 'M7 5.5h10a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-8a3 3 0 0 1 3-3zM4 10h16M8.5 3.5v4M15.5 3.5v4',
@@ -99,34 +99,34 @@ export function rowHtml(x, o = {}) {
99
99
  let a = '';
100
100
  if (x.suggest) {
101
101
  const s = x.suggest;
102
- a = `<span class="evp-sg"><i class="evp-sp" aria-hidden="true">${svg(ICON.spark, 14)}</i><span title="${esc(s.why || '')}">${esc(s.text)}</span></span>`
103
- + `<button type="button" class="evp-ib evp-yes" data-evp-yes aria-label="Yes: ${esc(s.text)}" title="Yes">${svg(ICON.yes, 15)}</button>`
104
- + `<button type="button" class="evp-ib" data-evp-no aria-label="No: ${esc(s.text)}" title="No">${svg(ICON.no, 15)}</button>`;
102
+ a = `<span class="evp-sg"><i class="evp-sp pm-star" aria-hidden="true">${svg(ICON.spark, 14)}</i><span class="say" title="${esc(s.why || '')}">${esc(s.text)}</span></span>`
103
+ + `<button type="button" class="evp-ib evp-yes pm-btn primary" data-evp-yes aria-label="Yes: ${esc(s.text)}" title="Yes">${svg(ICON.yes, 15)}</button>`
104
+ + `<button type="button" class="evp-ib pm-btn outline" data-evp-no aria-label="No: ${esc(s.text)}" title="No">${svg(ICON.no, 15)}</button>`;
105
105
  } else if (x.act && x.act.href) {
106
- a = `<a class="evp-go" href="${esc(x.act.href)}">${esc(x.act.label)}${svg(ICON.go, 14)}</a>`;
106
+ a = `<a class="evp-go pm-chip" href="${esc(x.act.href)}">${esc(x.act.label)}${svg(ICON.go, 14)}</a>`;
107
107
  } else if (x.group === 'today' && x.kind === 'meeting' && x.work && x.work.title) {
108
108
  // a meeting or focus time about a piece of work: one press to that work (no record says more, so PMOS does not name the act)
109
- a = `<button type="button" class="evp-go" data-evp-open aria-label="Open the work: ${esc(x.work.title)}">Open the work${svg(ICON.go, 14)}</button>`;
109
+ a = `<button type="button" class="evp-go pm-chip" data-evp-open aria-label="Open the work: ${esc(x.work.title)}">Open the work${svg(ICON.go, 14)}</button>`;
110
110
  } else if (x.group === 'today' && (x.task || x.own)) {
111
- a = `<button type="button" class="evp-ib" data-evp-done aria-label="Mark it done: ${esc(x.title)}" title="Mark it done">${svg(ICON.done, 16)}</button>`;
111
+ a = `<button type="button" class="evp-ib pm-btn" data-evp-done aria-label="Mark it done: ${esc(x.title)}" title="Mark it done">${svg(ICON.done, 16)}</button>`;
112
112
  }
113
113
  // the tools show on a row you point at or step to: a new day (edit in place) and Fixed
114
- const tools = (x.editable && !(x.fixed && x.kind === 'milestone') ? `<label class="evp-ib evp-dt" title="Set a date"><span class="vh">Set a date for ${esc(x.title)}</span>${svg(ICON.date, 15)}<input type="date" data-evp-date value="${esc(x.date)}" /></label>` : '')
115
- + (x.canFix ? `<button type="button" class="evp-ib evp-fx" data-evp-fix aria-pressed="${x.fixed ? 'true' : 'false'}" aria-label="${x.fixed ? 'Fixed date. Press to let PMOS suggest a new date' : 'Mark as a fixed date'}" title="${x.fixed ? 'Fixed date' : 'Fixed date: never move it'}">${svg(ICON.lock, 15)}</button>` : '');
114
+ const tools = (x.editable && !(x.fixed && x.kind === 'milestone') ? `<label class="evp-ib evp-dt pm-btn" title="Set a date"><span class="vh">Set a date for ${esc(x.title)}</span>${svg(ICON.date, 15)}<input type="date" data-evp-date value="${esc(x.date)}" /></label>` : '')
115
+ + (x.canFix ? `<button type="button" class="evp-ib evp-fx pm-btn" data-evp-fix aria-pressed="${x.fixed ? 'true' : 'false'}" aria-label="${x.fixed ? 'Fixed date. Press to let PMOS suggest a new date' : 'Mark as a fixed date'}" title="${x.fixed ? 'Fixed date' : 'Fixed date: never move it'}">${svg(ICON.lock, 15)}</button>` : '');
116
116
  // a date stated in a source opens the line that states it, under the row: who said it, when, and a link to the source
117
117
  // the sentence from the source only when it says more than the title; else who and when, and the link (say it once)
118
118
  const said = x.source && x.source.text && x.source.text.trim().toLowerCase() !== String(x.title).trim().toLowerCase() ? `<q>${esc(x.source.text)}</q>` : '';
119
119
  const src = srcOpen ? `<div class="evp-src" data-key="${esc(x.key)}">${said}<span>${esc([x.source.who, x.source.said ? shortDay(x.source.said, today) : ''].filter(Boolean).join(', '))}</span>`
120
- + (x.source.link ? `<a class="evp-go" href="${esc(x.source.link)}" target="_blank" rel="noopener">Open in ${esc(x.source.from)}${svg(ICON.go, 14)}</a>` : '')
121
- + (x.work ? `<button type="button" class="evp-go" data-evp-open>Open the work${svg(ICON.go, 14)}</button>` : '') + '</div>' : '';
122
- return `<div class="evp-r${o.child ? ' evp-kid' : ''}${x.fixed ? ' fixed' : ''}${o.busy && o.busy.has(x.key) ? ' busy' : ''}" data-key="${esc(x.key)}" data-kind="${esc(x.kind)}" data-type="${esc(typeOf(x))}" aria-label="${esc(kindWord)}">`
120
+ + (x.source.link ? `<a class="evp-go pm-chip" href="${esc(x.source.link)}" target="_blank" rel="noopener">Open in ${esc(x.source.from)}${svg(ICON.go, 14)}</a>` : '')
121
+ + (x.work ? `<button type="button" class="evp-go pm-chip" data-evp-open>Open the work${svg(ICON.go, 14)}</button>` : '') + '</div>' : '';
122
+ return `<div class="evp-r${o.child ? ' evp-kid' : ''}${x.fixed ? ' fixed' : ''}${o.busy && o.busy.has(x.key) ? ' busy' : ''} pm-li" data-key="${esc(x.key)}" data-kind="${esc(x.kind)}" data-type="${esc(typeOf(x))}" aria-label="${esc(kindWord)}">`
123
123
  + `<span class="evp-d ${x.tone || ''}"><b>${esc(d.b)}</b><small>${esc(d.s)}${x.fixed ? ' · fixed' : ''}</small></span>${markHtml(x)}${t}`
124
- + `<span class="evp-a">${a}</span><span class="evp-tl">${tools}</span></div>${src}`;
124
+ + `<span class="evp-a${x.suggest ? ' pm-sug' : ''}">${a}</span><span class="evp-tl">${tools}</span></div>${src}`;
125
125
  }
126
126
 
127
127
  function groupHtml(key, label, rows, o, head = '', tail = '', n = rows.length, body = null) {
128
128
  if (!rows.length) return ''; // zero is silence
129
- return `<section class="evp-g evp-${key}" aria-label="${esc(label)}"><h2>${esc(label)}<small>${n}</small>${head}</h2><div class="evp-b">${body != null ? body : rows.map((x) => rowHtml(x, o)).join('')}</div>${tail}</section>`;
129
+ return `<section class="evp-g evp-${key} pm-block list" aria-label="${esc(label)}"><div class="head"><h2 class="pm-h">${esc(label)}<small>${n}</small></h2><span class="sp"></span>${head}</div><div class="evp-b rows">${body != null ? body : rows.map((x) => rowHtml(x, o)).join('')}</div>${tail}</section>`;
130
130
  }
131
131
  const isMeet = (x) => x.kind === 'meeting';
132
132
  /** Coming up: a day with BUSY meetings or more is one line, "Fri 20 Nov · 5 meetings", that opens them; every other date keeps its row. */
@@ -143,7 +143,7 @@ function comingBody(rows, o) {
143
143
  done.add(x.date);
144
144
  const k = 'day:' + x.date, isOpen = open.has(k), dayRows = rows.filter((y) => y.date === x.date && isMeet(y));
145
145
  const word = dayRows.every((y) => typeOf(y) === 'focus') ? plural(n, 'focus time', 'focus times') : plural(n, 'meeting', 'meetings');
146
- html += `<button type="button" class="evp-r evp-day" data-evp-fold="${esc(k)}" aria-expanded="${isOpen ? 'true' : 'false'}"><span class="evp-d"><b>${esc(shortDay(x.date, o.today))}</b><small>${esc(weekday(x.date))}</small></span>${markOf('meeting')}<span class="evp-t"><b>${esc(weekday(x.date) + ' ' + shortDay(x.date, o.today))} · ${n} ${word}</b><small>${esc(dayRows.slice(0, 3).map((y) => (y.time ? y.time + ' ' : '') + y.title).join(', ') + (n > 3 ? ', …' : ''))}</small></span><i class="evp-fi" aria-hidden="true">${svg(ICON.go, 14)}</i></button>`;
146
+ html += `<button type="button" class="evp-r evp-day pm-li" data-evp-fold="${esc(k)}" aria-expanded="${isOpen ? 'true' : 'false'}"><span class="evp-d"><b>${esc(shortDay(x.date, o.today))}</b><small>${esc(weekday(x.date))}</small></span>${markOf('meeting')}<span class="evp-t"><b>${esc(weekday(x.date) + ' ' + shortDay(x.date, o.today))} · ${n} ${word}</b><small>${esc(dayRows.slice(0, 3).map((y) => (y.time ? y.time + ' ' : '') + y.title).join(', ') + (n > 3 ? ', …' : ''))}</small></span><i class="evp-fi" aria-hidden="true">${svg(ICON.go, 14)}</i></button>`;
147
147
  if (isOpen) html += dayRows.map((y) => rowHtml(y, { ...o, child: true })).join('');
148
148
  }
149
149
  return html;
@@ -164,7 +164,7 @@ export function hiddenHtml(items, o = {}) {
164
164
  const what = tw + (scoped ? ' of ' + o.scopeWords : '') + (typesCut && onL.length > 3 ? '' : ' only');
165
165
  return `<p class="evp-hid" role="status">Showing ${esc(what)} · ${hidden} more hidden · <button type="button" data-evp-showall>Show all</button></p>`;
166
166
  }
167
- const fold = (key, open, text) => `<button type="button" class="evp-fold" data-evp-fold="${key}" aria-expanded="${open ? 'true' : 'false'}"><i aria-hidden="true">${svg(ICON.go, 14)}</i><span>${text}</span></button>`;
167
+ const fold = (key, open, text) => `<button type="button" class="evp-fold pm-fold" data-evp-fold="${key}" aria-expanded="${open ? 'true' : 'false'}"><i aria-hidden="true">${svg(ICON.go, 14)}</i><span>${text}</span></button>`;
168
168
 
169
169
  /** The late rows in view: the newest LATE_SHOWN while the rest are folded, else all. Yes to all takes these. */
170
170
  export function lateInView(model, o = {}) {
@@ -178,7 +178,7 @@ export function listHtml(model, o = {}) {
178
178
  const open = o.open || new Set();
179
179
  // Yes to all says yes only to what is in view: "Yes to these 5" while the older late rows are folded (as the Backlog does)
180
180
  const seen = lateInView(model, o), yes = seen.filter((x) => x.suggest).length, folded = seen.length < G.late.length;
181
- const all = yes > 1 ? `<button type="button" class="evp-all" data-evp-all>${folded ? 'Yes to these' : 'Yes to all'} ${yes}</button>` : '';
181
+ const all = yes > 1 ? `<button type="button" class="evp-all pm-chip" data-evp-all>${folded ? 'Yes to these' : 'Yes to all'} ${yes}</button>` : '';
182
182
  const ro = { today, busy: o.busy, open };
183
183
  let later = '';
184
184
  const on = new Set(o.show || TYPES);
@@ -189,7 +189,7 @@ export function listHtml(model, o = {}) {
189
189
  const far = G.later.filter((x) => x.kind === 'milestone'), n = far.length, nx = far[0];
190
190
  const years = [...new Set(far.map((x) => x.date.slice(0, 4)))], year = years.length === 1 && years[0] !== String(today).slice(0, 4) ? years[0] : null;
191
191
  later = fold('later', open.has('later'), `${n} ${plural(n, 'delivery milestone', 'delivery milestones')} ${year ? 'in ' + esc(year) : 'after the next 30 days'}. The next is ${esc(year ? shortDay(nx.date) : shortDay(nx.date, today))}: ${esc(nx.title)}`)
192
- + (open.has('later') && far.length ? `<div class="evp-b evp-far">${far.map((x) => rowHtml(x, ro)).join('')}</div>` : '');
192
+ + (open.has('later') && far.length ? `<div class="evp-b evp-far pm-block list"><div class="rows">${far.map((x) => rowHtml(x, ro)).join('')}</div></div>` : '');
193
193
  }
194
194
  // Late: the newest first (the model sorts them), LATE_SHOWN of them, then one line that opens the rest
195
195
  let lateRows = G.late, lateTail = '';
@@ -200,8 +200,8 @@ export function listHtml(model, o = {}) {
200
200
  }
201
201
  const body = groupHtml('late', 'Late', lateRows, ro, all, lateTail, G.late.length) + groupHtml('now', 'Today', G.today, ro) + groupHtml('coming', 'Coming up', G.coming, ro, '', '', G.coming.length, o.day ? null : comingBody(G.coming, ro)) + later;
202
202
  if (body) return body;
203
- if (o.day) return `<p class="evp-quiet">Nothing has a date on ${esc(weekday(o.day) + ' ' + shortDay(o.day, today))}.</p>`;
204
- return '<p class="evp-quiet">Nothing is late, and nothing has a date in the next 30 days.</p>';
203
+ if (o.day) return `<p class="evp-quiet pm-meta">Nothing has a date on ${esc(weekday(o.day) + ' ' + shortDay(o.day, today))}.</p>`;
204
+ return '<p class="evp-quiet pm-meta">Nothing is late, and nothing has a date in the next 30 days.</p>';
205
205
  }
206
206
 
207
207
  /** 'YYYY-MM' moved by n months. */
@@ -228,7 +228,7 @@ export function monthHtml(ym, items, o = {}) {
228
228
  const lab = `${t.getUTCDate()} ${MONTH[t.getUTCMonth()]}${xs.length ? ', ' + xs.length + ' ' + plural(xs.length, 'date', 'dates') : ''}`;
229
229
  cells += `<button type="button" class="evp-md${out ? ' out' : ''}${k === o.today ? ' now' : ''}${k === o.day ? ' on' : ''}" data-evp-day="${k}" aria-pressed="${k === o.day ? 'true' : 'false'}" aria-label="${esc(lab)}">${t.getUTCDate()}<em>${marks.join('')}</em></button>`;
230
230
  }
231
- return `<div class="evp-mt-top"><button type="button" class="evp-mn" data-evp-full aria-label="${MONTH[m - 1]} ${y}. Open the full calendar">${MONTH[m - 1]} ${y}</button><button type="button" class="evp-ib" data-evp-month="-1" aria-label="The month before" title="The month before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib" data-evp-month="1" aria-label="The month after" title="The month after">${svg(ICON.go, 16)}</button></div>`
231
+ return `<div class="evp-mt-top"><button type="button" class="evp-mn" data-evp-full aria-label="${MONTH[m - 1]} ${y}. Open the full calendar">${MONTH[m - 1]} ${y}</button><button type="button" class="evp-ib pm-btn" data-evp-month="-1" aria-label="The month before" title="The month before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib pm-btn" data-evp-month="1" aria-label="The month after" title="The month after">${svg(ICON.go, 16)}</button></div>`
232
232
  + `<div class="evp-mg" role="group" aria-label="${MONTH[m - 1]} ${y}">${cells}</div>`;
233
233
  }
234
234
 
@@ -240,7 +240,7 @@ export function showHtml(show, o = {}) {
240
240
  if (unread[k] && !counts[k]) return `<button type="button" class="evp-un" data-evp-connect aria-label="${esc(TYPE_LABEL[k])}: ${esc(unread[k])}. Open Connectors">${markOf(k)}<span>${esc(TYPE_LABEL[k])} · ${esc(unread[k])}</span><span class="evp-on" aria-hidden="true">${svg(ICON.go, 14)}</span></button>`;
241
241
  return `<button type="button" data-evp-show="${k}" aria-pressed="${on.has(k) ? 'true' : 'false'}">${markOf(k)}${esc(TYPE_LABEL[k])}${counts[k] ? `<small>${counts[k]}</small>` : ''}<span class="evp-on" aria-hidden="true">${on.has(k) ? svg(ICON.yes, 14) : ''}</span></button>`;
242
242
  });
243
- return `<h3 class="evp-sh">Show</h3><div class="evp-f" role="group" aria-label="Show">${rows.join('')}</div>`
243
+ return `<h3 class="evp-sh pm-h-sm">Show</h3><div class="evp-f" role="group" aria-label="Show">${rows.join('')}</div>`
244
244
  + '<div class="evp-key"><span><i class="evp-k evp-rd late" aria-hidden="true"></i>Late</span><span><i class="evp-k evp-rd risk" aria-hidden="true"></i>At risk</span></div>';
245
245
  }
246
246
  /** How many dates of each type the page lists (Late, Today, Coming up and the far milestones), under the chip. */
@@ -264,8 +264,8 @@ export function calHtml(model, o = {}) {
264
264
  const today = model.today, view = o.view === 'week' ? 'week' : 'month';
265
265
  const byDay = new Map();
266
266
  for (const x of visible(model.items, o)) { if (!byDay.has(x.date)) byDay.set(x.date, []); byDay.get(x.date).push(x); }
267
- const seg = `<div class="cz-seg" role="group" aria-label="Calendar view">${['month', 'week'].map((v) => `<button type="button" data-evp-view="${v}" aria-pressed="${v === view ? 'true' : 'false'}">${v === 'month' ? 'Month' : 'Week'}</button>`).join('')}</div>`;
268
- const back = `<button type="button" class="evp-ib" data-evp-list aria-label="Back to the list" title="Back to the list">${svg(ICON.back, 18)}</button>`;
267
+ const seg = `<div class="pm-tabs evp-seg" role="group" aria-label="Calendar view">${['month', 'week'].map((v) => `<button type="button" class="pm-tab" data-evp-view="${v}" aria-pressed="${v === view ? 'true' : 'false'}">${v === 'month' ? 'Month' : 'Week'}</button>`).join('')}</div>`;
268
+ const back = `<button type="button" class="evp-ib pm-btn" data-evp-list aria-label="Back to the list" title="Back to the list">${svg(ICON.back, 18)}</button>`;
269
269
  const dayBtn = (k, label) => `<button type="button" class="evp-cd${k === today ? ' now' : ''}" data-evp-day="${k}" aria-label="${esc(label)}. See only this day">${new Date(ms(k)).getUTCDate()}</button>`;
270
270
  if (view === 'week') {
271
271
  const mon = weekOf(o.day || today);
@@ -275,7 +275,7 @@ export function calHtml(model, o = {}) {
275
275
  cols.push(`<div class="evp-wc${k === today ? ' now' : ''}"><div class="evp-wh"><span>${WD[(i + 1) % 7]}</span>${dayBtn(k, weekday(k) + ' ' + shortDay(k, today))}</div>${xs.map(chipHtml).join('')}</div>`);
276
276
  }
277
277
  const end = addDays(mon, 6);
278
- return `<div class="evp-ch">${back}<h2>${esc(shortDay(mon, today))} to ${esc(shortDay(end, today))}</h2><button type="button" class="evp-ib" data-evp-week="-1" aria-label="The week before" title="The week before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib" data-evp-week="1" aria-label="The week after" title="The week after">${svg(ICON.go, 16)}</button>${seg}</div>`
278
+ return `<div class="evp-ch">${back}<h2 class="pm-h">${esc(shortDay(mon, today))} to ${esc(shortDay(end, today))}</h2><button type="button" class="evp-ib pm-btn" data-evp-week="-1" aria-label="The week before" title="The week before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib pm-btn" data-evp-week="1" aria-label="The week after" title="The week after">${svg(ICON.go, 16)}</button>${seg}</div>`
279
279
  + `<div class="evp-wk" role="group" aria-label="The week of ${esc(shortDay(mon, today))}">${cols.join('')}</div>`;
280
280
  }
281
281
  const ym = o.ym || String(today).slice(0, 7);
@@ -288,6 +288,6 @@ export function calHtml(model, o = {}) {
288
288
  const more = xs.length > 3 ? `<button type="button" class="evp-cm" data-evp-day="${k}">${xs.length - 3} more</button>` : '';
289
289
  cells += `<div class="evp-mc${t.getUTCMonth() !== m - 1 ? ' out' : ''}${k === today ? ' now' : ''}">${dayBtn(k, t.getUTCDate() + ' ' + MONTH[t.getUTCMonth()] + (xs.length ? ', ' + xs.length + ' ' + plural(xs.length, 'date', 'dates') : ''))}${xs.slice(0, 3).map(chipHtml).join('')}${more}</div>`;
290
290
  }
291
- return `<div class="evp-ch">${back}<h2>${MONTH[m - 1]} ${y}</h2><button type="button" class="evp-ib" data-evp-month="-1" aria-label="The month before" title="The month before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib" data-evp-month="1" aria-label="The month after" title="The month after">${svg(ICON.go, 16)}</button>${seg}</div>`
291
+ return `<div class="evp-ch">${back}<h2 class="pm-h">${MONTH[m - 1]} ${y}</h2><button type="button" class="evp-ib pm-btn" data-evp-month="-1" aria-label="The month before" title="The month before">${svg(ICON.back, 16)}</button><button type="button" class="evp-ib pm-btn" data-evp-month="1" aria-label="The month after" title="The month after">${svg(ICON.go, 16)}</button>${seg}</div>`
292
292
  + `<div class="evp-fm" role="group" aria-label="${MONTH[m - 1]} ${y}">${cells}</div>`;
293
293
  }
@@ -1,167 +1,163 @@
1
- /* cozy-events.css — Events (slice 6 of the six-place navigation, initiative events-place; board 2, StEvPlan). One container: the white page
2
- * panel; the dates sit in one card per group with a thin border; the small month and Show sit in one grey box on the right. Tokens only. */
3
- .evp-page .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
1
+ /* cozy-events.css — Events (slice 6 of the six-place navigation, initiative events-place; board 2, StEvPlan), drawn from the PMOS design
2
+ * system (Komorebi, ui/pages.md: Main + side, Calendar + Timeline). The parts come from pm/komorebi.css: each group is a List block
3
+ * (pm-block list, its rows pm-li), the suggestion is the Suggestion part (pm-sug with a primary Yes and an outline No), icon buttons are
4
+ * pm-btn, Month | Week is Tabs, the fold lines are pm-fold, the toast is pm-toast and the grey box on the right is a flat block.
5
+ * This sheet only places them and draws what no part has: the day column, the type marks and the month grid. System tokens only. */
6
+ .evp .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
4
7
  .evp-hd { display: flex; align-items: center; gap: 12px; min-height: 44px; }
5
- .evp-hd h1 { margin: 0; font-size: var(--fs-page); font-weight: var(--fw-page); line-height: var(--lh-page); }
6
- .evp-dayf { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--cz-ink2); background: var(--cz-bluebg); border-radius: 999px; padding: 2px 4px 2px 12px; }
8
+ .evp-hd h1 { margin: 0; }
9
+ .evp-dayf { margin: 0; gap: 4px; padding: 0 2px 0 10px; height: 32px; background: var(--blue-tint); color: var(--ink); }
7
10
  .evp-dayf[hidden] { display: none; }
8
- .evp-dayf b { font-weight: var(--fw-strong); color: var(--cz-blueink); }
11
+ .evp-dayf b { font-weight: var(--fw-strong); color: var(--blue); }
9
12
  .evp-scope { margin-right: auto; }
10
13
  /* the list takes at most about 1100 px, so a suggestion sits near its row on a wide screen (round 2, point 6) */
11
- .evp-grid { display: grid; grid-template-columns: minmax(0, 1100px) 316px; gap: 28px; align-items: start; }
12
- .evp-left { min-width: 0; }
14
+ .evp-grid { display: grid; grid-template-columns: minmax(0, 1100px) 316px; gap: var(--space-32); align-items: start; }
15
+ .evp-left { min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); }
16
+ #evpList { display: flex; flex-direction: column; gap: var(--space-16); }
17
+ #evpList:empty, #evpHid:empty { display: none; }
18
+ .evp .evp-ib.evp-dt { position: relative; }
19
+ .evp .evp-dt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
20
+ .evp-t:focus-visible, .evp-md:focus-visible, .evp-f button:focus-visible, .evp-mn:focus-visible, .evp-cc:focus-visible, .evp-cd:focus-visible, .evp-cm:focus-visible { outline: none; box-shadow: var(--glow); }
21
+ @media (hover: hover) { .evp-t:hover b { text-decoration: underline; text-underline-offset: 3px; } .evp-mn:hover { text-decoration: underline; text-underline-offset: 3px; } }
13
22
 
14
- /* the icon buttons */
15
- .evp-ib { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--cz-ink2); flex: none; }
16
- .evp-ib:focus-visible, .evp-t:focus-visible, .evp-md:focus-visible, .evp-f button:focus-visible, .evp-all:focus-visible, .evp-go:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
17
- .evp-a .evp-ib { background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); }
18
- .evp-ib.evp-yes { color: var(--cz-ok); }
19
- .evp-add { width: 36px; height: 36px; border-radius: 12px; color: var(--cz-blueink); }
20
- @media (hover: hover) { .evp-ib:hover { background: var(--cz-well2); } .evp-t:hover b { text-decoration: underline; text-underline-offset: 3px; } .evp-md:hover { background: var(--cz-card); } }
23
+ /* a group: a List block; its heading carries the count, Yes to all sits at the right of the head */
24
+ .evp .evp-g h2 small { margin-left: 8px; font-size: var(--fs-meta); font-weight: var(--fw-regular); color: var(--muted); }
25
+ .evp .evp-late h2 small { color: var(--alert); }
26
+ .evp .evp-all { height: 32px; padding: 0 12px; border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--blue); background: var(--blue-tint); cursor: pointer; }
27
+ .evp .evp-far { margin-top: var(--space-8); }
21
28
 
22
- /* the groups */
23
- .evp-g { margin: 0 0 20px; }
24
- .evp-g h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
25
- .evp-g h2 small { font-size: var(--fs-label); font-weight: var(--fw-label); }
26
- .evp-late h2 { color: var(--cz-late); }
27
- .evp-now h2 { color: var(--cz-blueink); }
28
- .evp-all { all: unset; box-sizing: border-box; cursor: pointer; margin-left: auto; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--cz-well); font-size: var(--fs-meta); font-weight: var(--fw-strong); letter-spacing: 0; text-transform: none; color: var(--cz-ink); }
29
- .evp-b { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cz-hair); background: var(--cz-card); overflow: hidden; }
30
- .evp-now .evp-b { background: var(--cz-bluebg); box-shadow: none; }
31
-
32
- /* a row */
33
- .evp-r { display: grid; grid-template-columns: 104px 10px minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; min-height: 60px; padding: 6px 12px 6px 16px; box-sizing: border-box; }
34
- .evp-r + .evp-r { box-shadow: inset 0 1px 0 var(--cz-hair); }
35
- .evp-r.busy { opacity: .55; pointer-events: none; }
36
- .evp-d b { display: block; font-size: var(--fs-row); font-weight: var(--fw-row); }
37
- .evp-d small { font-size: var(--fs-meta); color: var(--cz-ink3); }
38
- .evp-d.late small { color: var(--cz-late); }
39
- .evp-d.risk small { color: var(--cz-risk); }
29
+ /* a row: a ListRow laid out as day · mark · what · act · tools */
30
+ .evp .evp-r { display: grid; grid-template-columns: 104px 10px minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; min-height: 56px; padding: 6px 8px 6px 14px; }
31
+ .evp .evp-r.busy { opacity: .55; pointer-events: none; }
32
+ .evp-d b { display: block; font-weight: var(--fw-strong); }
33
+ .evp-d small { font-size: var(--fs-meta); line-height: 20px; color: var(--muted); }
34
+ .evp-d.late small, .evp-d.risk small { color: var(--alert); }
40
35
  .evp-t { all: unset; box-sizing: border-box; min-width: 0; cursor: default; display: block; }
41
36
  button.evp-t { cursor: pointer; }
42
- .evp-t b { display: block; font-size: var(--fs-row); font-weight: var(--fw-row); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
43
- .evp-t small { display: block; margin-top: 1px; font-size: var(--fs-meta); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
44
- .evp-a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; }
37
+ .evp-t b { display: block; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
38
+ .evp-t small { display: block; margin-top: 1px; font-size: var(--fs-meta); line-height: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
39
+ .evp-a { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-meta); white-space: nowrap; }
45
40
  .evp-sg { display: inline-flex; align-items: center; gap: 6px; }
46
- .evp-sp { display: inline-grid; color: var(--cz-blueink); }
47
- button.evp-go { border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); cursor: pointer; }
48
- .evp-go { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--cz-card); font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink); text-decoration: none; }
41
+ .evp-sp { display: inline-grid; }
42
+ .evp .evp-go { height: 32px; gap: 4px; padding: 0 6px 0 12px; border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--blue); text-decoration: none; cursor: pointer; }
43
+ .evp .evp-go:focus-visible, .evp .evp-all:focus-visible, .evp-hid button:focus-visible { outline: none; box-shadow: var(--glow); }
49
44
  /* the tools: a new day and Fixed, shown on a row you point at or step into; a fixed row keeps its lock */
50
- .evp-tl { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 62px; opacity: 0; }
45
+ .evp-tl { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 66px; opacity: 0; transition: opacity var(--duration-quick) var(--ease-out); }
51
46
  .evp-r:focus-within .evp-tl, .evp-r.fixed .evp-tl { opacity: 1; }
52
47
  @media (hover: hover) { .evp-r:hover .evp-tl { opacity: 1; } }
53
48
  @media (hover: none) { .evp-tl { opacity: 1; } }
54
- .evp-r.fixed .evp-fx { color: var(--cz-blueink); }
55
- .evp-dt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
49
+ .evp .evp-r.fixed .evp-fx { color: var(--blue); }
56
50
 
57
- /* the marks: a diamond for a delivery milestone, round for a task or a report, a ring for a meeting or focus time */
58
- .evp-k { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--cz-blueink); }
51
+ /* the marks, one per type, the same in the rows, the small month and the key (chart roles from charts.css):
52
+ * a diamond for a delivery milestone, round for a task, a ring for a meeting, a leaf ring for focus time, a square for a report */
53
+ .evp-k { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--chart-read); }
59
54
  .evp-k.evp-dm { transform: rotate(45deg); border-radius: 2px; }
60
- .evp-k.evp-rd { border-radius: 50%; background: var(--cz-blue); }
61
- .evp-k.evp-mt { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--cz-blue); }
62
- .evp-k.late { background: var(--cz-dot-late); }
63
- .evp-k.risk { background: var(--cz-dot-risk); }
64
- .evp-k.evp-mt.late { background: transparent; box-shadow: inset 0 0 0 2px var(--cz-dot-late); }
65
- /* round 2: one mark per type, the same in the rows, the small month and the key */
66
- .evp-k.evp-fo { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--cz-ok); }
67
- .evp-k.evp-rp { border-radius: 2px; background: var(--cz-ink3); }
68
- .evp-k.evp-dl { border-radius: 50%; background: var(--cz-c-b07cc6); }
69
- .evp-k.evp-fo.late, .evp-k.evp-fo.risk { background: transparent; }
70
- .evp-ty { font-style: normal; font-weight: var(--fw-strong); color: var(--cz-ink2); }
55
+ .evp-k.evp-rd { border-radius: 50%; }
56
+ .evp-k.evp-mt { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--chart-read); }
57
+ .evp-k.evp-fo { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--chart-done); }
58
+ .evp-k.evp-rp { border-radius: 2px; background: var(--chart-plan); }
59
+ .evp-k.evp-dl { border-radius: 50%; background: var(--chart-rest); box-shadow: inset 0 0 0 2px var(--chart-plan); }
60
+ .evp-k.late { background: var(--chart-risk); box-shadow: none; }
61
+ .evp-k.risk { background: var(--alert-tint); box-shadow: inset 0 0 0 2px var(--chart-risk); }
62
+ .evp-k.evp-mt.late, .evp-k.evp-fo.late { background: transparent; box-shadow: inset 0 0 0 2px var(--chart-risk); }
63
+ .evp-ty { font-style: normal; font-weight: var(--fw-strong); color: var(--ink); }
71
64
  /* the line over the list when a filter hides dates */
72
- .evp-hid { margin: 0 0 12px; font-size: var(--fs-meta); color: var(--cz-ink2); }
73
- .evp-hid button { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--cz-blueink); }
74
- .evp-hid button:focus-visible, .evp-un:focus-visible, .evp-day:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
65
+ .evp-hid { margin: 0; font-size: var(--fs-meta); color: var(--muted); }
66
+ .evp-hid button { height: 22px; padding: 0 8px; border-radius: var(--radius-pill); border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--blue); background: var(--blue-tint); cursor: pointer; }
75
67
  /* a coming day with many meetings: one line that opens them */
76
- button.evp-day { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 104px 10px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; min-height: 60px; padding: 6px 16px; }
77
- .evp-r + .evp-day, .evp-day + .evp-r { box-shadow: inset 0 1px 0 var(--cz-hair); }
78
- .evp-fi { display: inline-grid; color: var(--cz-ink3); transition: transform .15s; }
68
+ .evp .evp-day { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; grid-template-columns: 104px 10px minmax(0, 1fr) auto; }
69
+ .evp .evp-day:focus-visible { outline: none; box-shadow: var(--glow); }
70
+ .evp-fi { display: inline-grid; color: var(--muted); transition: transform var(--duration-quick) var(--ease-drift); }
79
71
  .evp-day[aria-expanded="true"] .evp-fi { transform: rotate(90deg); }
80
72
  /* a date stated in a source: the line that states it, under the row */
81
- .evp-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 16px 12px 158px; font-size: var(--fs-meta); color: var(--cz-ink2); }
82
- .evp-src q { flex: 1 1 100%; color: var(--cz-ink); }
83
- .evp-r.evp-kid { padding-left: 32px; }
84
- .evp-r.evp-kid .evp-d b { font-size: var(--fs-meta); }
85
- .evp-src .evp-go { background: var(--cz-well); }
73
+ .evp-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 16px 12px 158px; font-size: var(--fs-meta); color: var(--muted); }
74
+ .evp-src q { flex: 1 1 100%; color: var(--ink); }
75
+ .evp .evp-r.evp-kid { padding-left: 32px; min-height: 44px; }
76
+ .evp .evp-r.evp-kid .evp-d b { font-size: var(--fs-meta); }
77
+
78
+ .evp-more { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 2px; font-size: var(--fs-meta); color: var(--muted); }
79
+ .evp-quiet { margin: 8px 0; }
80
+ .evp-note { margin: 0; color: var(--alert); }
81
+ .evp-note[hidden] { display: none; }
86
82
 
87
- .evp-more { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 2px; font-size: var(--fs-meta); color: var(--cz-ink2); }
88
- .evp-quiet { margin: 8px 0; font-size: var(--fs-body); color: var(--cz-ink3); }
89
- .evp-note { margin: 0 0 12px; font-size: var(--fs-meta); color: var(--cz-risk); }
83
+ /* the fold lines: the rest of Late, and the far delivery milestones */
84
+ .evp .evp-fold i { display: inline-grid; transition: transform var(--duration-quick) var(--ease-drift); }
85
+ .evp .evp-fold[aria-expanded="true"] i { transform: rotate(90deg); }
86
+ .evp .evp-fold:focus-visible { outline: none; box-shadow: var(--glow); }
87
+ .evp > .evp-grid .evp-left > #evpList > .evp-fold { border-top: 0; border-radius: var(--radius-md); } /* the far milestones line stands alone */
90
88
 
91
89
  /* your own date, written in place */
92
- .evp-new { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 8px; align-items: center; margin: 0 0 16px; padding: 8px 8px 8px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cz-hair); }
90
+ .evp-new { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 8px; align-items: center; margin: 0; padding: 8px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--raise); }
93
91
  .evp-new[hidden] { display: none; }
94
- .evp-new input { box-sizing: border-box; height: 36px; border: 0; background: var(--cz-well); border-radius: 10px; padding: 0 10px; font: inherit; font-size: var(--fs-body); color: var(--cz-ink); min-width: 0; }
92
+ .evp-new .pm-input { min-width: 0; }
95
93
 
96
- /* the grey box: the small month, then Show */
97
- .evp-side { border-radius: 20px; background: var(--cz-well); padding: 16px; }
98
- .evp-mt-top { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; }
99
- .evp-mt-top b { margin-right: auto; font-size: var(--fs-section); font-weight: var(--fw-section); }
100
- .evp-mg { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
101
- .evp-mh { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); text-align: center; padding-bottom: 4px; }
102
- .evp-md { all: unset; box-sizing: border-box; cursor: pointer; height: 40px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-meta); color: var(--cz-ink); }
103
- .evp-md.out { color: var(--cz-ink3); }
104
- .evp-md.now { background: var(--cz-card); box-shadow: inset 0 0 0 1.5px var(--cz-blue); color: var(--cz-blueink); font-weight: var(--fw-strong); }
105
- .evp-md.on { background: var(--cz-blue); color: var(--cz-onsolid); }
94
+ /* the grey box: the small month, then Show (a flat block: the side is context, not now) */
95
+ .evp .evp-side { gap: 0; padding: 16px; }
96
+ .evp-mt-top { display: flex; align-items: center; gap: 2px; margin: 0 0 10px; }
97
+ .evp-mn { all: unset; box-sizing: border-box; cursor: pointer; margin-right: auto; font-size: var(--fs-body); font-weight: var(--fw-strong); border-radius: var(--radius-sm); }
98
+ .evp-mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
99
+ .evp-mh { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--muted); text-align: center; padding-bottom: 4px; }
100
+ /* a day of the Calendar part: today carries the leaf ring, the day picked is filled blue */
101
+ .evp-md { all: unset; box-sizing: border-box; cursor: pointer; height: 40px; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-meta); color: var(--ink); transition: background var(--duration-quick) var(--ease-out); }
102
+ @media (hover: hover) { .evp-md:hover { background: var(--card); } }
103
+ .evp-md.out { color: var(--muted); }
104
+ .evp-md.now { background: var(--card); box-shadow: var(--glow); font-weight: var(--fw-strong); }
105
+ .evp-md.on { background: var(--blue); color: var(--on-blue); }
106
106
  .evp-md em { display: flex; gap: 3px; height: 6px; }
107
107
  .evp-md em .evp-k { width: 6px; height: 6px; }
108
- .evp-md.on em .evp-k { background: var(--cz-onsolid); box-shadow: none; }
109
- .evp-sh { margin: 16px 0 6px; font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
108
+ .evp-md.on em .evp-k { background: var(--on-blue); box-shadow: none; }
109
+ .evp-sh { margin: 16px 0 6px; }
110
110
  .evp-f { display: grid; gap: 4px; }
111
- .evp-f button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--cz-card); font-size: var(--fs-meta); color: var(--cz-ink); }
112
- .evp-f button[aria-pressed="false"] { background: transparent; color: var(--cz-ink3); }
113
- .evp-on { margin-left: auto; display: inline-grid; color: var(--cz-blueink); }
114
- .evp-f button small { font-size: var(--fs-meta); color: var(--cz-ink3); }
115
- .evp-f button.evp-un { color: var(--cz-ink2); background: transparent; box-shadow: inset 0 0 0 1px var(--cz-hair); }
116
- .evp-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: var(--fs-meta); color: var(--cz-ink2); }
111
+ .evp-f button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-md); background: var(--card); font-size: var(--fs-meta); color: var(--ink); }
112
+ .evp-f button[aria-pressed="false"] { background: transparent; color: var(--muted); }
113
+ .evp-on { margin-left: auto; display: inline-grid; color: var(--leaf); }
114
+ .evp-f button small { font-size: var(--fs-meta); color: var(--muted); }
115
+ .evp-f button.evp-un { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
116
+ .evp-f button.evp-un .evp-on { color: var(--blue); }
117
+ .evp-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: var(--fs-meta); color: var(--muted); }
117
118
  .evp-key span { display: inline-flex; align-items: center; gap: 6px; }
118
- .evp-hint { margin: 12px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
119
+ .evp-hint { margin: 12px 0 0; }
119
120
 
120
- /* the fold lines: the rest of Late, and the far delivery milestones */
121
- .evp-fold { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 0; padding: 8px 4px; border-radius: 10px; font-size: var(--fs-meta); color: var(--cz-ink2); }
122
- .evp-fold i { display: inline-grid; transition: transform .15s; }
123
- .evp-fold[aria-expanded="true"] i { transform: rotate(90deg); }
124
- .evp-fold:focus-visible, .evp-mn:focus-visible, .evp-cc:focus-visible, .evp-cd:focus-visible, .evp-cm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
125
- .evp-far { margin: 4px 0 0; }
126
- @media (hover: hover) { .evp-fold:hover { background: var(--cz-well); } .evp-mn:hover { text-decoration: underline; text-underline-offset: 3px; } .evp-cc:hover { background: var(--cz-well2); } }
127
-
128
- /* the month name opens the full calendar */
129
- .evp-mn { all: unset; box-sizing: border-box; cursor: pointer; margin-right: auto; font-size: var(--fs-section); font-weight: var(--fw-section); border-radius: 8px; }
130
-
131
- /* the full calendar, in the left column */
132
- .evp-ch { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
133
- .evp-ch h2 { margin: 0 auto 0 4px; font-size: var(--fs-section); font-weight: var(--fw-section); }
134
- .evp-ch .cz-seg { margin-left: 8px; }
135
- .evp-fm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; }
121
+ /* the full calendar, in the left column: Calendar with Month | Week as Tabs */
122
+ .evp-ch { display: flex; align-items: center; gap: 2px; }
123
+ .evp-ch h2 { margin: 0 auto 0 4px; }
124
+ .evp-seg { margin-left: 8px; }
125
+ .evp .pm-tab[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--raise); }
126
+ .evp .pm-tab:focus-visible { outline: none; box-shadow: var(--glow); }
127
+ .evp-fm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
136
128
  .evp-fm .evp-mh { padding: 8px 0 6px; }
137
- .evp-mc { min-height: 104px; min-width: 0; padding: 4px; box-shadow: inset 1px 1px 0 var(--cz-hair); display: flex; flex-direction: column; gap: 2px; }
138
- .evp-mc.out { background: var(--cz-well); }
139
- .evp-mc.out .evp-cd { color: var(--cz-ink3); }
140
- .evp-cd { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-grid; place-items: center; font-size: var(--fs-meta); color: var(--cz-ink); }
141
- .evp-cd.now { background: var(--cz-blue); color: var(--cz-onsolid); font-weight: var(--fw-strong); }
142
- .evp-cc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 6px; border-radius: 8px; font-size: var(--fs-meta); color: var(--cz-ink); }
129
+ .evp-mc { min-height: 104px; min-width: 0; padding: 4px; box-shadow: inset 1px 1px 0 var(--line); display: flex; flex-direction: column; gap: 2px; }
130
+ .evp-mc.out { background: var(--well); }
131
+ .evp-mc.out .evp-cd { color: var(--muted); }
132
+ .evp-cd { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; font-size: var(--fs-meta); color: var(--ink); }
133
+ .evp-cd.now { box-shadow: var(--glow); font-weight: var(--fw-strong); }
134
+ .evp-cc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 6px; border-radius: var(--radius-sm); font-size: var(--fs-meta); color: var(--ink); }
135
+ @media (hover: hover) { .evp-cc:hover { background: var(--well); } }
143
136
  .evp-cc span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
144
- .evp-cc.late span { color: var(--cz-late); }
145
- .evp-cm { all: unset; box-sizing: border-box; cursor: pointer; padding: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink3); }
137
+ .evp-cc.late span { color: var(--alert); }
138
+ .evp-cm { all: unset; box-sizing: border-box; cursor: pointer; padding: 0 6px; font-size: var(--fs-meta); color: var(--muted); }
146
139
  .evp-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
147
- .evp-wc { min-width: 0; min-height: 240px; padding: 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--cz-hair); display: flex; flex-direction: column; gap: 4px; }
148
- .evp-wc.now { background: var(--cz-bluebg); box-shadow: none; }
140
+ .evp-wc { min-width: 0; min-height: 240px; padding: 6px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
141
+ .evp-wc.now { background: var(--leaf-tint); border-color: var(--leaf); }
149
142
  .evp-wc .evp-cc { align-items: flex-start; }
150
143
  .evp-wc .evp-cc .evp-k { margin-top: 5px; }
151
144
  .evp-wc .evp-cc span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
152
- .evp-wh { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--fs-label); font-weight: var(--fw-label); color: var(--cz-ink3); }
145
+ .evp-wh { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--muted); }
153
146
 
154
- /* the toast with Undo */
155
- .evp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 80; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--cz-ink); color: var(--cz-card); font-size: var(--fs-meta); box-shadow: var(--cz-float); transition: opacity .18s, transform .18s; }
156
- .evp-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
157
- .evp-undo { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--cz-card); text-decoration: underline; text-underline-offset: 3px; }
147
+ /* the toast with Undo: the Toast part, bottom centre */
148
+ .evp .evp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 80; transition: opacity var(--duration-enter) var(--ease-out), transform var(--duration-enter) var(--ease-out); }
149
+ .evp .evp-toast:empty { display: none; }
150
+ .evp .evp-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
151
+ .evp .evp-toast .in { padding: 4px 4px 4px 14px; min-height: 40px; }
152
+ .evp .evp-toast.on .timer { animation: evpTimer 6s linear both; transform-origin: left; }
153
+ @keyframes evpTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
158
154
 
159
155
  /* the phone: the month and Show go under the dates */
160
156
  @media (max-width: 760px) {
161
157
  .evp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
162
- .evp-r { grid-template-columns: 76px 10px minmax(0, 1fr); row-gap: 6px; padding: 8px 12px; }
158
+ .evp .evp-r { grid-template-columns: 76px 10px minmax(0, 1fr); row-gap: 6px; padding: 8px 12px; }
163
159
  .evp-a, .evp-tl { grid-column: 3; justify-self: start; }
164
- button.evp-day { grid-template-columns: 76px 10px minmax(0, 1fr) auto; padding: 8px 12px; }
160
+ .evp .evp-day { grid-template-columns: 76px 10px minmax(0, 1fr) auto; padding: 8px 12px; }
165
161
  .evp-src { padding-left: 112px; }
166
162
  .evp-tl { min-width: 0; justify-content: flex-start; }
167
163
  .evp-a .evp-sg { flex: 1 1 100%; } /* the suggestion on its own line, then ✓ ✕ together */
@@ -173,7 +169,12 @@ button.evp-day { all: unset; box-sizing: border-box; cursor: pointer; display: g
173
169
  .evp-mc .evp-cc span { display: none; }
174
170
  .evp-wk { grid-template-columns: minmax(0, 1fr); }
175
171
  .evp-wc { min-height: 0; }
172
+ .evp .pm-btn { width: 44px; height: 44px; }
176
173
  }
177
174
  @media (max-width: 760px) and (hover: hover) {
178
175
  .evp-r:not(:hover):not(:focus-within):not(.fixed) .evp-tl { display: none; } /* a narrow window: no empty line for tools you are not pointing at */
179
176
  }
177
+ @media (prefers-reduced-motion: reduce) {
178
+ .evp .evp-toast { transform: translate(-50%, 0); }
179
+ .evp .evp-toast.on .timer { animation: none; }
180
+ }
@@ -57,13 +57,13 @@ async function load() {
57
57
  clearTimeout(S.timer);
58
58
  const r = await pmGet('/api/events-place');
59
59
  if (r && r.ok && r.state === 'reading') {
60
- if (!S.model) $('#evpList').innerHTML = '<p class="evp-quiet" role="status">Reading the dates from every product.</p>';
60
+ if (!S.model) $('#evpList').innerHTML = '<p class="evp-quiet pm-meta" role="status">Reading the dates from every product.</p>';
61
61
  S.timer = setTimeout(load, Math.min(4000, 400 * 2 ** S.tries++));
62
62
  return;
63
63
  }
64
64
  S.tries = 0;
65
65
  if (!r || !r.ok) {
66
- if (!S.model) $('#evpList').innerHTML = `<p class="evp-quiet" role="alert"><b>The dates could not be read</b>, so this page shows nothing rather than guess.${r && r.error ? ' The reason: ' + esc(r.error) : ''}</p>`;
66
+ if (!S.model) $('#evpList').innerHTML = `<p class="evp-quiet pm-meta" role="alert"><b>The dates could not be read</b>, so this page shows nothing rather than guess.${r && r.error ? ' The reason: ' + esc(r.error) : ''}</p>`;
67
67
  S.timer = setTimeout(load, 15000);
68
68
  return;
69
69
  }
@@ -98,7 +98,7 @@ const itemOf = (el) => { const r = el && el.closest('[data-key]'); return r && S
98
98
  function say(text, undo) {
99
99
  const t = $('#toast');
100
100
  clearTimeout(S.toastT);
101
- t.innerHTML = `<span>${esc(text)}</span>${undo ? '<button type="button" class="evp-undo">Undo</button>' : ''}`;
101
+ t.innerHTML = `<span class="in"><span>${esc(text)}</span>${undo ? '<button type="button" class="evp-undo pm-btn" aria-label="Undo" title="Undo"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24"><path d="M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3"/></svg></button>' : ''}</span><span class="timer"></span>`;
102
102
  t.classList.add('on');
103
103
  const b = t.querySelector('.evp-undo');
104
104
  if (b) b.onclick = async () => { t.classList.remove('on'); await undo(); load(); };
@@ -1,54 +1,90 @@
1
- /* pm/cozy-routine.css — Routine (initiative routine-place, board 11) and a routine in the popup (board 10). One container: the page panel; the
2
- * table is one card with a thin border; the setup is one grey box. Tokens are cozy.css's. */
3
- .rt-page { gap: 14px; }
1
+ /* pm/cozy-routine.css — Routine (initiative routine-place, board 11) and a routine in the popup (board 10).
2
+ * The page is drawn from the PMOS design system (Komorebi, ui/pages.md: Main + open item). Its parts come from pm/komorebi.css: the
3
+ * kinds are Tabs, + is the primary pm-btn, "PMOS did" is the Suggestion part (PMOS speaking), the table is a List block whose group rows
4
+ * are pm-group, the switch is pm-switch (on is leaf), a late Next is an alert badge, the fold line is pm-fold and the toast is pm-toast.
5
+ * This first part only places them, in system tokens. The popup (board 10, below) opens outside the page and keeps cozy.css's tokens. */
6
+ .rt-page { gap: var(--space-16); }
4
7
  /* on a wide screen the page keeps one reading width and does not stretch (round 2) */
5
8
  .rt-page > * { width: 100%; max-width: 1200px; }
9
+ .rt-page .rt-toast { width: auto; max-width: none; }
6
10
  .rt-pick:empty { display: none; }
7
- .rt-seg .rt-n { margin-left: 6px; font-weight: var(--fw-strong); color: var(--cz-ink3); font-variant-numeric: tabular-nums; }
8
- .rt-hid { margin: 0 0 10px; font-size: var(--fs-meta); color: var(--cz-ink3); }
9
- .rt-hid button { all: unset; cursor: pointer; color: var(--cz-blue); font-weight: var(--fw-strong); }
10
- .rt-hid button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
11
- .rt-bar { display: flex; align-items: center; gap: 12px; }
12
- .rt-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--cz-well); flex-wrap: wrap; }
13
- .rt-seg button { all: unset; cursor: pointer; height: 30px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--cz-ink2); display: inline-flex; align-items: center; }
14
- .rt-seg button[aria-pressed="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 2px rgba(30, 40, 60, .12); }
15
- .rt-seg button:focus-visible, .rt-add:focus-visible, .rt-did:focus-visible, .rt-r:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
16
- .rt-add { all: unset; cursor: pointer; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--cz-ink2); }
17
- .rt-add svg, .rt-did svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
18
- .rt-add:hover { background: var(--cz-well); }
19
- .rt-did { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--cz-well); font-size: var(--fs-body); color: var(--cz-ink); }
20
- .rt-did > b { color: var(--cz-c-6b4fa3); }
21
- .rt-did span { flex: 1; min-width: 0; }
22
- .rt-did em { font-style: normal; color: var(--cz-ink3); }
23
- .rt-tbl { border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
24
- .rt-r { display: grid; grid-template-columns: 26px minmax(180px, 1.3fr) 76px minmax(160px, 1fr) 196px 112px 44px 14px; align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); }
11
+ .rt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
12
+ .rt-page .rt-seg { flex-wrap: wrap; }
13
+ .rt-page .pm-tab { display: inline-flex; align-items: center; }
14
+ .rt-page .pm-tab[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--raise); }
15
+ .rt-page .pm-tab:focus-visible, .rt-page .rt-did:focus-visible, .rt-r:focus-visible { outline: none; box-shadow: var(--glow); }
16
+ .rt-seg .rt-n { margin-left: 6px; color: var(--muted); font-weight: var(--fw-regular); font-variant-numeric: tabular-nums; }
17
+ .rt-page .rt-add { margin-left: auto; }
18
+ .rt-hid { margin: 0 0 10px; font-size: var(--fs-meta); color: var(--muted); }
19
+ .rt-hid button { height: 22px; padding: 0 8px; border: 0; border-radius: var(--radius-pill); background: var(--blue-tint); font: inherit; font-weight: var(--fw-strong); color: var(--blue); cursor: pointer; }
20
+ .rt-hid button:focus-visible { outline: none; box-shadow: var(--glow); }
21
+ /* PMOS did: PMOS speaking, one line that opens the full log */
22
+ .rt-page .rt-did { width: 100%; border: 0; font: inherit; font-size: var(--fs-body); color: var(--ink); text-align: left; cursor: pointer; padding: 10px 14px; gap: 10px; }
23
+ .rt-did > b { font-weight: var(--fw-strong); }
24
+ .rt-did em { font-style: normal; color: var(--muted); }
25
+ .rt-page .rt-did .pm-ic { color: var(--muted); }
26
+ /* the table: one List block; rows are a grid of cells */
27
+ .rt-page .rt-tbl { font-size: var(--fs-body); color: var(--ink); }
28
+ .rt-r { display: grid; grid-template-columns: 26px minmax(180px, 1.3fr) 76px minmax(160px, 1fr) 196px 112px 44px 14px; align-items: center; column-gap: 12px; min-height: 48px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--line); }
25
29
  .rt-tbl.multi .rt-r { grid-template-columns: 26px minmax(180px, 1.3fr) 76px 128px minmax(160px, 1fr) 196px 112px 44px 14px; }
30
+ .rt-r:last-child { box-shadow: none; }
26
31
  /* the row is the way in: a small chevron shows on hover (round 3 item 5) */
27
- .rt-r .go { color: var(--cz-ink3); display: grid; place-items: center; opacity: 0; }
28
- .rt-r .go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
32
+ .rt-r .go { color: var(--muted); display: grid; place-items: center; opacity: 0; }
29
33
  .rt-r.rt-row:hover .go, .rt-r.rt-row:focus-visible .go { opacity: 1; }
30
- /* one-time reports and loose drafts: one fold line at the end of Reports (round 3 item 1) */
31
- .rt-r.rt-fold { display: block; min-height: 40px; padding: 0 18px; }
32
- .rt-fold button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: var(--fs-meta); color: var(--cz-ink3); }
33
- .rt-fold button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
34
- .rt-fold button[aria-expanded="true"] svg { transform: rotate(90deg); }
35
- .rt-fold button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
36
- .rt-r:last-child { box-shadow: none; }
37
- .rt-r.rt-h { min-height: 38px; background: var(--cz-well); font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink2); }
38
- .rt-r.rt-g { min-height: 34px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); background: var(--cz-well); }
34
+ .rt-r.rt-h { min-height: 40px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--muted); }
35
+ .rt-page .rt-r.rt-g { display: grid; height: auto; min-height: 32px; padding: 0 18px; }
39
36
  .rt-r.rt-g > div { grid-column: 1 / -1; }
40
- .rt-r.rt-row { cursor: pointer; }
41
- .rt-r.rt-row:hover { background: var(--cz-well); }
37
+ .rt-r.rt-row { cursor: pointer; transition: background var(--duration-quick) var(--ease-out); }
38
+ .rt-r.rt-row:hover { background: var(--well); }
42
39
  .rt-r .e { display: flex; justify-content: flex-end; align-items: center; }
43
- .rt-r .ic { color: var(--cz-ink3); display: grid; place-items: center; }
44
- .rt-r .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
40
+ .rt-r .ic { color: var(--muted); display: grid; place-items: center; }
41
+ .rt-r .ic .pm-ic { width: 17px; height: 17px; }
45
42
  .rt-r .n { font-weight: var(--fw-strong); }
46
43
  /* nothing is cut off (round 2): a long name or sentence takes a second line, and only a third is cut */
47
44
  .rt-r .n, .rt-r .c { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0; line-height: 1.35; }
48
- .rt-r .c { color: var(--cz-ink2); }
49
- .rt-r .w { color: var(--cz-risk); font-weight: var(--fw-strong); display: inline-flex; align-items: center; gap: 7px; }
50
- .rt-r .w::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-dot-risk); flex: none; }
51
- .rt-r.off .n, .rt-r.off .c { color: var(--cz-ink3); }
45
+ .rt-r .c { color: var(--muted); }
46
+ .rt-r .c .w { white-space: normal; height: auto; min-height: 22px; }
47
+ .rt-r.off .n, .rt-r.off .c { color: var(--muted); }
48
+ .rt-r.off .n { font-weight: var(--fw-regular); }
49
+ .rt-page .rt-sw { justify-self: end; }
50
+ .rt-page .rt-sw[disabled] { opacity: .5; cursor: default; }
51
+ /* one-time reports and loose drafts: one fold line at the end of Reports (round 3 item 1) */
52
+ .rt-page .rt-r.rt-fold { display: block; min-height: 0; padding: 0; }
53
+ .rt-page .rt-fold .pm-fold { border-top: 0; padding: 0 18px; }
54
+ .rt-page .rt-fold .pm-ic, .rt-gf .pm-ic { width: 14px; height: 14px; transition: transform var(--duration-quick) var(--ease-drift); }
55
+ .rt-page .rt-fold button[aria-expanded="true"] .pm-ic, .rt-gf[aria-expanded="true"] .pm-ic { transform: rotate(90deg); }
56
+ .rt-page .rt-fold button:focus-visible { outline: none; box-shadow: var(--glow); }
57
+ /* ✕ on a proposed report: shown on hover, where the chevron is */
58
+ .rt-page .rt-r .go .rt-drop { width: 28px; height: 28px; margin: -7px; color: var(--muted); }
59
+ .rt-r .go:has(.rt-drop) { opacity: 0; }
60
+ .rt-r.rt-row:hover .go:has(.rt-drop), .rt-r .go:has(.rt-drop:focus-visible) { opacity: 1; }
61
+ /* PMOS reads and PMOS jobs fold to their heading while a program or project is picked */
62
+ .rt-gf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
63
+ .rt-gf em { font-style: normal; color: var(--muted); font-weight: var(--fw-regular); }
64
+ .rt-gf:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
65
+ .rt-page .rt-note, .rt-page .rt-quiet { margin: 0 6px; }
66
+ .rt-page .rt-msg { margin: 0 6px; min-height: 1em; }
67
+ /* the toast: the Toast part, bottom centre; the leaf line counts down the time the Undo has */
68
+ .rt-page .rt-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--duration-enter) var(--ease-out), transform var(--duration-enter) var(--ease-out); }
69
+ .rt-page .rt-toast:empty { display: none; }
70
+ .rt-page .rt-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
71
+ .rt-page .rt-toast .in { min-height: 40px; }
72
+ .rt-page .rt-toast .in:not(:has(button)) { padding-right: 14px; }
73
+ .rt-page .rt-toast .timer { transform-origin: left; }
74
+ .rt-page .rt-toast.on .timer { animation: rtTimer 4.2s linear both; }
75
+ @keyframes rtTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
76
+ @media (prefers-reduced-motion: reduce) { .rt-page .rt-toast { transform: translate(-50%, 0); } .rt-page .rt-toast.on .timer { animation: none; } }
77
+ @media (max-width: 760px) {
78
+ .rt-r { grid-template-columns: 22px minmax(0, 1fr) minmax(0, .8fr) 44px; padding: 0 12px; min-height: 52px; }
79
+ .rt-r .go { display: none; }
80
+ .rt-tbl.multi .rt-r { grid-template-columns: 22px minmax(0, 1fr) minmax(0, .8fr) 44px; }
81
+ .rt-r .c.does, .rt-r .c.when, .rt-r.rt-h .does, .rt-r.rt-h .when, .rt-r .type, .rt-r .prod { display: none; }
82
+ .rt-page .pm-btn { width: 44px; height: 44px; }
83
+ }
84
+ .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
85
+
86
+ /* ── the popup (board 10): it opens outside the page panel, so it keeps cozy.css's tokens ── */
87
+ /* the switch in the popup (the page's switch is pm-switch) */
52
88
  .rt-sw { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; height: 20px; border-radius: 999px; background: var(--cz-well2); position: relative; justify-self: end; flex: none; }
53
89
  .rt-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); box-shadow: 0 1px 2px rgba(30, 40, 60, .25); transition: left .15s; }
54
90
  .rt-sw[aria-checked="true"] { background: var(--cz-blue); }
@@ -58,17 +94,6 @@
58
94
  .rt-yes svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
59
95
  .rt-yes[disabled], .rt-sw[disabled] { opacity: .5; cursor: default; }
60
96
  .rt-note, .rt-quiet { margin: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink3); }
61
- .rt-msg { margin: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink2); min-height: 1em; }
62
- .rt-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 12px; background: var(--cz-ink); color: var(--cz-card); font-size: var(--fs-body); opacity: 0; pointer-events: none; transition: opacity .2s; }
63
- .rt-toast.on { opacity: 1; }
64
- @media (max-width: 760px) {
65
- .rt-r { grid-template-columns: 22px minmax(0, 1fr) minmax(0, .8fr) 44px; padding: 0 12px; min-height: 52px; }
66
- .rt-r .go { display: none; }
67
- .rt-tbl.multi .rt-r { grid-template-columns: 22px minmax(0, 1fr) minmax(0, .8fr) 44px; }
68
- .rt-r .c.does, .rt-r .c.when, .rt-r.rt-h .does, .rt-r.rt-h .when, .rt-r .type, .rt-r .prod { display: none; }
69
- .rt-seg { border-radius: 16px; }
70
- }
71
- .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
72
97
 
73
98
  /* PMOS did, the full log (in the popup) */
74
99
  .rt-log { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 20px; font-size: var(--fs-body); color: var(--cz-ink); }
@@ -133,23 +158,11 @@
133
158
  .rj-run span { flex: none; width: 110px; color: var(--cz-ink3); }
134
159
  .rj-run em { font-style: normal; min-width: 0; overflow-wrap: anywhere; }
135
160
  .rj-run.bad em { color: var(--cz-risk); }
136
- .rj-undo, .rt-tundo { all: unset; cursor: pointer; font-weight: var(--fw-strong); text-decoration: underline; text-underline-offset: 2px; }
137
- .rt-toast.on:has(.rt-tundo) { pointer-events: auto; }
161
+ .rj-undo { all: unset; cursor: pointer; font-weight: var(--fw-strong); text-decoration: underline; text-underline-offset: 2px; }
138
162
  .rj-act .rp-n { all: unset; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink); }
139
163
  .rp-ins h6 { display: flex; align-items: center; gap: 4px; min-height: 32px; }
140
164
  .rp-ins h6 .rp-ed { margin-left: 0; width: 28px; height: 28px; }
141
165
  .rp-insx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--cz-ink2); }
142
- /* ✕ on a proposed report: shown on hover, where the chevron is */
143
- .rt-r .go .rt-drop { all: unset; cursor: pointer; width: 26px; height: 26px; margin: -6px; border-radius: 50%; display: grid; place-items: center; color: var(--cz-ink3); }
144
- .rt-r .go .rt-drop:hover { background: var(--cz-well); color: var(--cz-ink); }
145
- .rt-r .go:has(.rt-drop) { opacity: 0; }
146
- .rt-r.rt-row:hover .go:has(.rt-drop), .rt-r .go:has(.rt-drop:focus-visible) { opacity: 1; }
147
166
  .rp-hold ol { margin: 0; padding-left: 20px; font-size: var(--fs-body); line-height: 1.5; }
148
167
  .rp-hold li { margin: 0 0 4px; color: var(--cz-ink2); }
149
168
  .rp-hold li b { font-weight: var(--fw-strong); color: var(--cz-ink); }
150
- /* PMOS reads and PMOS jobs fold to their heading while a program or project is picked */
151
- .rt-gf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
152
- .rt-gf svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
153
- .rt-gf[aria-expanded="true"] svg { transform: rotate(90deg); }
154
- .rt-gf em { font-style: normal; color: var(--cz-ink3); font-weight: var(--fw-regular); }
155
- .rt-gf:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
@@ -24,7 +24,7 @@ import { openReport } from './cozy-routine-pop.js';
24
24
  import { openJob, openNew } from './cozy-routine-job.js'; // reads, jobs, services and your tasks: manage them in the popup (round 3 item 3)
25
25
 
26
26
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
27
- const svg = (d, n = 18) => `<svg viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true"><path d="${d}"/></svg>`;
27
+ const svg = (d, n = 18) => `<svg class="pm-ic" viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true"><path d="${d}"/></svg>`;
28
28
  const I = {
29
29
  reports: 'M4 20V10M10 20V4M16 20v-8M22 20H2', reads: 'M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6zM12 9.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 1 0 0-5',
30
30
  jobs: 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z', tasks: 'M5 5h14v14H5zM8.5 12.5l2.5 2.5 4.5-5',
@@ -37,9 +37,13 @@ const $ = (id) => document.getElementById(id);
37
37
  /** A short line at the bottom. With `undo`, it carries an Undo button and stays 10 s, the time the undo has. */
38
38
  const toast = (t, undo) => {
39
39
  const el = $('toast'); if (!el) return;
40
- el.textContent = t;
41
- if (undo) { const b = document.createElement('button'); b.type = 'button'; b.className = 'rt-tundo'; b.textContent = 'Undo'; b.onclick = () => { undo(); el.classList.remove('on'); }; el.append(' ', b); }
42
- el.classList.add('on'); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove('on'), undo ? 10000 : 4200);
40
+ // the Toast part: the words, an icon Undo while the undo lasts, and the leaf line that counts down
41
+ const inn = document.createElement('span'); inn.className = 'in';
42
+ const w = document.createElement('span'); w.textContent = t; inn.append(w);
43
+ if (undo) { const b = document.createElement('button'); b.type = 'button'; b.className = 'rt-tundo pm-btn'; b.setAttribute('aria-label', 'Undo'); b.title = 'Undo'; b.innerHTML = svg(I.undo, 16); b.onclick = () => { undo(); el.classList.remove('on'); }; inn.append(b); }
44
+ const bar = document.createElement('span'); bar.className = 'timer'; bar.style.animationDuration = (undo ? 10 : 4.2) + 's';
45
+ el.replaceChildren(inn, bar);
46
+ el.classList.remove('on'); void el.offsetWidth; el.classList.add('on'); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove('on'), undo ? 10000 : 4200);
43
47
  };
44
48
  const say = (t) => { const el = $('rtMsg'); if (el) el.textContent = t || ''; };
45
49
  const enc = encodeURIComponent;
@@ -89,7 +93,7 @@ async function load() {
89
93
 
90
94
  function kindsHtml(n) {
91
95
  // each kind says how many it holds (round 2); All needs no number, and a kind with none says none (zero is silence)
92
- return KINDS.map(([k, l]) => `<button type="button" data-kind="${k}" aria-pressed="${S.kind === k}"${k !== 'all' && n ? ` aria-label="${esc(l + ', ' + (n[k] || 0))}"` : ''}>${esc(l)}${k !== 'all' && n && n[k] ? `<span class="rt-n">${n[k]}</span>` : ''}</button>`).join('');
96
+ return KINDS.map(([k, l]) => `<button type="button" class="pm-tab" data-kind="${k}" aria-pressed="${S.kind === k}"${k !== 'all' && n ? ` aria-label="${esc(l + ', ' + (n[k] || 0))}"` : ''}>${esc(l)}${k !== 'all' && n && n[k] ? `<span class="rt-n">${n[k]}</span>` : ''}</button>`).join('');
93
97
  }
94
98
  /* ── the chip (round 2, PR 3): the shared scope chip of Events (pm/scope-chip.js). Products is the saved pick of Work; Programs and Projects
95
99
  * are this page's own (kept on this computer). A report is under a program or a project when its setup says so (lib/routine-reports.js
@@ -151,7 +155,7 @@ function drawPick(groups) {
151
155
  whenNames().then(() => draw()); // product display names (IDPF, not a folder name) arrive after the first draw
152
156
  addEventListener('pp:changed', (e) => { if (e.detail && e.detail.ok) { S.pick = e.detail; S.all = false; draw(); } });
153
157
  /** The fold line at the end of Reports: one-time reports and loose drafts, opened as plain rows. */
154
- const foldHtml = (f) => `<div class="rt-r rt-fold" role="row"><button type="button" role="cell" data-once aria-expanded="${!!S.once}">${svg(I.chev, 14)}<span>${esc(f.words)}</span></button></div>`;
158
+ const foldHtml = (f) => `<div class="rt-r rt-fold" role="row"><button type="button" class="pm-fold" role="cell" data-once aria-expanded="${!!S.once}">${svg(I.chev, 14)}<span>${esc(f.words)}</span></button></div>`;
155
159
  /** The Product cell: the product, or the first and +N when one report is in several. Empty for what serves every product. */
156
160
  const prodWords = (r) => (r.wss && r.wss.length ? r.wss[0] + (r.wss.length > 1 ? ' +' + (r.wss.length - 1) : '') : '');
157
161
  function rowHtml(r, multi) {
@@ -159,13 +163,13 @@ function rowHtml(r, multi) {
159
163
  // round 3 item 1: the same switch on every row. A proposed routine's switch is off, and turning it on is the yes.
160
164
  const label = r.proposed ? r.name + ': proposed by PMOS. Press to start it' : r.name + (r.on ? ': on. Press to pause it' : ': paused. Press to start it again');
161
165
  const end = r.on === null ? '<span></span>'
162
- : `<button type="button" class="rt-sw" role="switch" aria-checked="${r.on}" data-sw="${esc(r.key)}" aria-label="${esc(label)}" title="${r.proposed ? 'Proposed. Turn on to start it' : r.on ? 'On' : 'Paused'}"${busy ? ' disabled' : ''}></button>`;
163
- const next = r.late || (r.group === 'once' && r.draft) ? `<span class="w">${esc(r.next)}</span>` : esc(r.next);
166
+ : `<button type="button" class="rt-sw pm-switch" role="switch" aria-checked="${r.on}" data-sw="${esc(r.key)}" aria-label="${esc(label)}" title="${r.proposed ? 'Proposed. Turn on to start it' : r.on ? 'On' : 'Paused'}"${busy ? ' disabled' : ''}></button>`;
167
+ const next = r.late || (r.group === 'once' && r.draft) ? `<span class="w pm-badge alert">${esc(r.next)}</span>` : esc(r.next);
164
168
  return `<div class="rt-r rt-row${r.off ? ' off' : ''}" role="row" tabindex="0" data-key="${esc(r.key)}" aria-label="${esc('Open ' + r.name)}">`
165
169
  + `<span class="ic" role="cell">${svg(I[r.kind], 17)}</span><span class="n" role="cell" title="${esc(r.name)}">${esc(r.name)}</span>`
166
170
  + `<span class="c type" role="cell">${esc(r.type || '')}</span>${multi ? `<span class="c prod" role="cell" title="${esc((r.wss || []).join(', '))}">${esc(prodWords(r))}</span>` : ''}`
167
171
  + `<span class="c does" role="cell" title="${esc(r.does)}">${esc(r.does)}</span><span class="c when" role="cell" title="${esc(r.when)}">${esc(r.when)}</span>`
168
- + `<span class="c" role="cell">${next}</span><span role="cell" class="e">${end}</span>${r.proposed && r.kind === 'reports' ? `<span class="go" role="cell"><button type="button" class="rt-drop" data-drop="${esc(r.key)}" aria-label="${esc('Drop ' + r.name + '. PMOS stops proposing it')}" title="Drop this proposal">${svg(I.x, 14)}</button></span>` : `<span class="go" aria-hidden="true">${svg(I.chev, 14)}</span>`}</div>`;
172
+ + `<span class="c" role="cell">${next}</span><span role="cell" class="e">${end}</span>${r.proposed && r.kind === 'reports' ? `<span class="go" role="cell"><button type="button" class="rt-drop pm-btn" data-drop="${esc(r.key)}" aria-label="${esc('Drop ' + r.name + '. PMOS stops proposing it')}" title="Drop this proposal">${svg(I.x, 14)}</button></span>` : `<span class="go" aria-hidden="true">${svg(I.chev, 14)}</span>`}</div>`;
169
173
  }
170
174
  function draw() {
171
175
  const on = onSet();
@@ -179,7 +183,7 @@ function draw() {
179
183
  $('rtKinds').innerHTML = kindsHtml(S.read ? kindCounts(mine.filter((r) => r.group !== 'once' && (!r.unclear || S.unclear))) : null); // the routines, not the one-time reports
180
184
  drawPick(groups);
181
185
  const D = didLine(S.done);
182
- $('rtDid').innerHTML = D ? `<button type="button" class="rt-did" data-did aria-label="${esc(D.text + ' Open the full log')}"><b aria-hidden="true">✦</b><span>${esc(D.text)} <em>${esc(D.sub)}</em></span>${svg(I.chev, 14)}</button>` : '';
186
+ $('rtDid').innerHTML = D ? `<button type="button" class="rt-did pm-sug" data-did aria-label="${esc(D.text + ' Open the full log')}"><b class="pm-star" aria-hidden="true">✦</b><span class="say">${esc(D.text)} <em>${esc(D.sub)}</em></span>${svg(I.chev, 14)}</button>` : '';
183
187
  if (!S.read) return;
184
188
  S.rows = mine.filter((r) => !S.gone.has(r.key)); // a deleted task leaves at once; its delete is sent when the Undo has passed
185
189
  // rows a PM cannot read are held back, counted in one grey line (round 3 item 2); one-time reports fold under Reports (item 1)
@@ -201,8 +205,8 @@ function draw() {
201
205
  // work's own reports come first (design note on #1384). Pressing the heading opens the rows.
202
206
  const shut = (g) => extraOn() && (g.id === 'reads' || g.id === 'jobs') && !S.openG.has(g.id) && g.rows.length > 0;
203
207
  const head = (g) => shut(g) || (extraOn() && S.openG.has(g.id))
204
- ? `<div class="rt-r rt-g" role="row"><div role="rowheader"><button type="button" class="rt-gf" data-gfold="${esc(g.id)}" aria-expanded="${!shut(g)}" aria-label="${esc((shut(g) ? "Show " : "Fold ") + g.title)}">${svg(I.chev, 14)}<span>${esc(g.title)}</span>${shut(g) ? `<em>${g.rows.length}</em>` : ''}</button></div></div>`
205
- : `<div class="rt-r rt-g" role="row"><div role="rowheader">${esc(g.title)}</div></div>`;
208
+ ? `<div class="rt-r rt-g pm-group" role="row"><div role="rowheader"><button type="button" class="rt-gf" data-gfold="${esc(g.id)}" aria-expanded="${!shut(g)}" aria-label="${esc((shut(g) ? "Show " : "Fold ") + g.title)}">${svg(I.chev, 14)}<span>${esc(g.title)}</span>${shut(g) ? `<em>${g.rows.length}</em>` : ''}</button></div></div>`
209
+ : `<div class="rt-r rt-g pm-group" role="row"><div role="rowheader">${esc(g.title)}</div></div>`;
206
210
  const unLine = unclear.length ? `<p class="rt-hid">${unclear.length === 1 ? 'One row is' : unclear.length + ' rows are'} hidden because their source is unclear. <button type="button" data-unclear>Show</button></p>` : '';
207
211
  const only = extraOn() ? scopeWords(on ? S.pick : null, S.sel, groups) : '';
208
212
  const hidLine = unLine + (hid ? `<p class="rt-hid">${only ? esc('Showing ' + only + ' only. ') + (hid === 1 ? 'One routine is' : hid + ' routines are') : hid === 1 ? 'One routine of another product is' : hid + ' routines of other products are'} not shown. <button type="button" data-showall>Show all</button></p>` : '');
@@ -210,9 +214,9 @@ function draw() {
210
214
  const fk = f ? (f.dataset.key || f.dataset.sw || f.dataset.yes) + (f.dataset.sw ? ':sw' : f.dataset.yes ? ':yes' : '') : '';
211
215
  $('rtTable').innerHTML = hidLine + (S.err ? `<p class="rt-quiet">${esc(S.err)}</p>`
212
216
  : !G.length ? `<p class="rt-quiet">${S.kind === 'all' ? 'Nothing repeats yet. Tell PMOS what to do on a schedule with +.' : 'Nothing of this kind repeats.'}</p>`
213
- : `<div class="rt-tbl${multi ? ' multi' : ''}" role="table" aria-label="Routine"><div class="rt-r rt-h" role="row"><span role="columnheader"><span class="vh">Kind</span></span><span role="columnheader">Routine</span><span role="columnheader" class="type">Type</span>${multi ? '<span role="columnheader" class="prod">Product</span>' : ''}<span role="columnheader" class="does">What it does</span><span role="columnheader" class="when">When</span><span role="columnheader">Next</span><span role="columnheader"><span class="vh">On</span></span></div>`
217
+ : `<div class="rt-tbl${multi ? ' multi' : ''} pm-block list" role="table" aria-label="Routine"><div class="rt-r rt-h" role="row"><span role="columnheader"><span class="vh">Kind</span></span><span role="columnheader">Routine</span><span role="columnheader" class="type">Type</span>${multi ? '<span role="columnheader" class="prod">Product</span>' : ''}<span role="columnheader" class="does">What it does</span><span role="columnheader" class="when">When</span><span role="columnheader">Next</span><span role="columnheader"><span class="vh">On</span></span></div>`
214
218
  + G.map((g) => head(g) + (shut(g) ? '' : g.rows.map((r) => (r.fold ? foldHtml(r) : rowHtml(r, multi))).join(''))).join('') + '</div>'
215
- + '<p class="rt-note">Everything that repeats, in one table. Press a row to open it. The switch pauses it.</p>');
219
+ + '<p class="rt-note pm-meta">Everything that repeats, in one table. Press a row to open it. The switch pauses it.</p>');
216
220
  if (fk) { const [k, x] = [fk.replace(/:(sw|yes)$/, ''), (/:(sw|yes)$/.exec(fk) || [])[1]]; const el = $('rtTable').querySelector(x === 'sw' ? `[data-sw="${CSS.escape(k)}"]` : x === 'yes' ? `[data-yes="${CSS.escape(k)}"]` : `[data-key="${CSS.escape(k)}"]`); if (el) el.focus(); }
217
221
  }
218
222
 
@@ -7,38 +7,41 @@
7
7
  <title>PMOS · Events</title>
8
8
  <!-- Events (slice 6 of the six-place navigation, initiative events-place; board 2, StEvPlan): everything with a date in one page with no views.
9
9
  Left: Late, Today, Coming up and the later delivery milestones as one line. Right, in one grey box: the small month and Show. It reads
10
- GET /api/events-place; the page code is pm/cozy-events.js and its markup pm/cozy-events-view.js. -->
10
+ GET /api/events-place; the page is drawn from the PMOS design system (Komorebi: pm-ds on the page panel, brand, charts and komorebi sheets); the page code is pm/cozy-events.js and its markup pm/cozy-events-view.js. -->
11
11
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
12
+ <link rel="stylesheet" href="/pm/brand.css" />
13
+ <link rel="stylesheet" href="/pm/charts.css" />
14
+ <link rel="stylesheet" href="/pm/komorebi.css" />
12
15
  <link rel="stylesheet" href="/pm/cozy.css" />
13
16
  <link rel="stylesheet" href="/pm/cozy-events.css" />
14
17
  </head>
15
18
  <body class="cz evp-page">
16
- <main class="cz-panel stage evp" id="stage">
19
+ <main class="cz-panel stage evp pm-ds" id="stage">
17
20
  <div class="evp-hd">
18
- <h1>Events</h1>
21
+ <h1 class="title">Events</h1>
19
22
  <div class="evp-scope" id="evpScope"></div>
20
- <p class="evp-dayf" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib" data-evp-clear aria-label="Show every day" title="Show every day"><svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
21
- <button type="button" class="evp-ib evp-add" data-evp-add aria-label="Add your own date" title="Add your own date"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>
23
+ <p class="evp-dayf pm-chip" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib pm-btn" data-evp-clear aria-label="Show every day" title="Show every day"><svg class="pm-ic" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
24
+ <button type="button" class="evp-ib evp-add pm-btn primary" data-evp-add aria-label="Add your own date" title="Add your own date"><svg class="pm-ic" aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>
22
25
  </div>
23
26
  <div class="evp-grid">
24
27
  <div class="evp-left">
25
28
  <form class="evp-new" id="evpAdd" hidden aria-label="Your own date">
26
- <input name="what" type="text" placeholder="What, for example: Call Rina about the contract" aria-label="What" autocomplete="off" />
27
- <input name="when" type="date" aria-label="When" />
28
- <button type="submit" class="evp-ib evp-yes" aria-label="Add it" title="Add it"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button>
29
+ <input class="pm-input" name="what" type="text" placeholder="What, for example: Call Rina about the contract" aria-label="What" autocomplete="off" />
30
+ <input class="pm-input" name="when" type="date" aria-label="When" />
31
+ <button type="submit" class="evp-ib evp-yes pm-btn primary" aria-label="Add it" title="Add it"><svg class="pm-ic" aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button>
29
32
  </form>
30
- <p class="evp-note" id="evpNote" role="status" hidden></p>
33
+ <p class="evp-note small" id="evpNote" role="status" hidden></p>
31
34
  <div id="evpHid"></div>
32
- <div id="evpList" aria-live="polite"><p class="evp-quiet" role="status">Reading the dates.</p></div>
35
+ <div id="evpList" aria-live="polite"><p class="evp-quiet pm-meta" role="status">Reading the dates.</p></div>
33
36
  </div>
34
- <aside class="evp-side" aria-label="The month">
37
+ <aside class="evp-side pm-block flat" aria-label="The month">
35
38
  <div id="evpMonth"></div>
36
39
  <div id="evpShow"></div>
37
- <p class="evp-hint">Press a type to hide it or show it. Press a day to see only that day. Press the month to open the full calendar.</p>
40
+ <p class="evp-hint pm-meta">Press a type to hide it or show it. Press a day to see only that day. Press the month to open the full calendar.</p>
38
41
  </aside>
39
42
  </div>
43
+ <div class="evp-toast pm-toast" id="toast" role="status" aria-live="polite"></div>
40
44
  </main>
41
- <div class="evp-toast" id="toast" role="status" aria-live="polite"></div>
42
45
  <script type="module" src="/pm/cozy-events.js"></script>
43
46
  </body>
44
47
  </html>
@@ -8,24 +8,28 @@
8
8
  <!-- Routine (initiative routine-place, slice 8 of the six-place navigation; board 11 on Exploring 2): one table of everything that repeats.
9
9
  Reports with who they tell, what PMOS reads, PMOS's own jobs and your own scheduled tasks, each with When, Next and a switch that pauses it.
10
10
  "PMOS did" is one line on top. A row opens the one popup (pm/cozy-popup.js): a report with its newest issue and its setup, or the setup of
11
- the routine (pm/cozy-routine-pop.js). The rail (pm/cozy-nav.js) is the navigation. The page code is pm/cozy-routine.js. -->
11
+ the routine (pm/cozy-routine-pop.js). The rail (pm/cozy-nav.js) is the navigation. The page code is pm/cozy-routine.js.
12
+ The page is drawn from the PMOS design system (Komorebi): pm-ds on the page panel, brand, charts and komorebi sheets. -->
12
13
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
14
+ <link rel="stylesheet" href="/pm/brand.css" />
15
+ <link rel="stylesheet" href="/pm/charts.css" />
16
+ <link rel="stylesheet" href="/pm/komorebi.css" />
13
17
  <link rel="stylesheet" href="/pm/cozy.css" />
14
18
  <link rel="stylesheet" href="/pm/cozy-pick.css" />
15
19
  <link rel="stylesheet" href="/pm/cozy-routine.css" />
16
20
  </head>
17
21
  <body class="cz">
18
- <div class="rt-toast" id="toast" role="status" aria-live="polite"></div>
19
- <main class="cz-panel stage rt-page" id="stage">
22
+ <main class="cz-panel stage rt-page pm-ds" id="stage">
23
+ <div class="rt-toast pm-toast" id="toast" role="status" aria-live="polite"></div>
20
24
  <h1 class="vh">Routine</h1>
21
25
  <div class="rt-bar">
22
26
  <div class="rt-pick" id="rtPick"></div>
23
- <div class="rt-seg" id="rtKinds" role="group" aria-label="Show"></div>
24
- <button type="button" class="rt-add" id="rtAdd" aria-label="Tell PMOS a new routine" title="Tell PMOS a new routine"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
27
+ <div class="rt-seg pm-tabs" id="rtKinds" role="group" aria-label="Show"></div>
28
+ <button type="button" class="rt-add pm-btn primary" id="rtAdd" aria-label="Tell PMOS a new routine" title="Tell PMOS a new routine"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
25
29
  </div>
26
30
  <div id="rtDid"></div>
27
- <div id="rtTable"><p class="rt-quiet">Reading what repeats.</p></div>
28
- <p class="rt-msg" id="rtMsg" role="status"></p>
31
+ <div id="rtTable"><p class="rt-quiet pm-meta">Reading what repeats.</p></div>
32
+ <p class="rt-msg pm-meta" id="rtMsg" role="status"></p>
29
33
  </main>
30
34
  <noscript>This page needs JavaScript.</noscript>
31
35
  <script type="module" src="/pm/cozy-routine.js"></script>