create-pmos 0.427.0 → 0.429.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/board-programs-test.js +16 -2
  7. package/workspace/briefing-premium-board-test.js +27 -22
  8. package/workspace/briefing-premium-insights-test.js +81 -60
  9. package/workspace/briefing-premium-metrics-test.js +5 -3
  10. package/workspace/briefing-premium-sources-test.js +5 -5
  11. package/workspace/briefing-premium-test.js +7 -5
  12. package/workspace/changelog.json +24 -0
  13. package/workspace/ev-everywhere-test.js +2 -2
  14. package/workspace/guide/briefing-premium.md +4 -2
  15. package/workspace/guide/home.md +34 -7
  16. package/workspace/guide/index.md +1 -0
  17. package/workspace/guide/metric-drafts.md +48 -0
  18. package/workspace/guide/programs.md +1 -0
  19. package/workspace/home-other-product-test.js +12 -2
  20. package/workspace/intel-report-ui-test.js +189 -0
  21. package/workspace/lib/board-metrics-premium.js +1 -1
  22. package/workspace/lib/headless.js +15 -2
  23. package/workspace/lib/insights-premium.js +5 -1
  24. package/workspace/lib/insights-records.js +14 -5
  25. package/workspace/lib/intel-report.js +419 -0
  26. package/workspace/lib/metric-draft-runs.js +193 -0
  27. package/workspace/lib/metric-drafts.js +231 -0
  28. package/workspace/lib/metrics-cli.js +104 -0
  29. package/workspace/lib/pmos-verbs.js +3 -0
  30. package/workspace/lib/report-setups.js +29 -13
  31. package/workspace/lib/route-modules.js +1 -0
  32. package/workspace/lib/routes-insights-premium.js +2 -2
  33. package/workspace/lib/routes-insights-records.js +13 -5
  34. package/workspace/lib/routes-meeting-material.js +22 -1
  35. package/workspace/lib/routes-metric-drafts.js +141 -0
  36. package/workspace/lib/routes-phone-day.js +13 -2
  37. package/workspace/lib/routes-report-setups.js +92 -3
  38. package/workspace/lib/routes-viewer.js +5 -2
  39. package/workspace/lib/settings-store.js +14 -0
  40. package/workspace/metric-drafts-ui-test.js +209 -0
  41. package/workspace/milestone-pins-test.js +13 -0
  42. package/workspace/milestone-suggest-test.js +10 -4
  43. package/workspace/package-lock.json +2 -2
  44. package/workspace/package.json +1 -1
  45. package/workspace/premium-board-actions-test.js +40 -13
  46. package/workspace/premium-phone-card-test.js +8 -5
  47. package/workspace/premium-rec-tab-test.js +8 -0
  48. package/workspace/premium-vw-item-test.js +7 -3
  49. package/workspace/premium-vw-jira-test.js +2 -1
  50. package/workspace/program-charter-test.js +1 -1
  51. package/workspace/program-leave-test.js +2 -2
  52. package/workspace/program-order-test.js +3 -2
  53. package/workspace/program-panel-test.js +2 -1
  54. package/workspace/public/pm/bd-acts.js +23 -29
  55. package/workspace/public/pm/bd-ini-panel.js +90 -32
  56. package/workspace/public/pm/bd-pin-card.css +4 -4
  57. package/workspace/public/pm/bd-pin-card.js +4 -1
  58. package/workspace/public/pm/bd-prog-panel.js +9 -4
  59. package/workspace/public/pm/bd-span.js +22 -12
  60. package/workspace/public/pm/cozy-aud.css +1 -1
  61. package/workspace/public/pm/cozy-board.css +256 -256
  62. package/workspace/public/pm/cozy-ev.css +45 -45
  63. package/workspace/public/pm/cozy-evmodel.js +1 -1
  64. package/workspace/public/pm/cozy-home-rows.css +23 -23
  65. package/workspace/public/pm/cozy-home.css +207 -207
  66. package/workspace/public/pm/cozy-insights.css +207 -108
  67. package/workspace/public/pm/cozy-live-pill.css +5 -5
  68. package/workspace/public/pm/cozy-mtg-present.css +23 -23
  69. package/workspace/public/pm/cozy-nav.js +1 -1
  70. package/workspace/public/pm/cozy-news.js +2 -2
  71. package/workspace/public/pm/cozy-panel.css +29 -29
  72. package/workspace/public/pm/cozy-pick.css +5 -5
  73. package/workspace/public/pm/cozy-rec-now.css +20 -20
  74. package/workspace/public/pm/cozy-rec-present.css +11 -11
  75. package/workspace/public/pm/cozy-rec-tab.css +13 -13
  76. package/workspace/public/pm/cozy-rec-tab.js +12 -3
  77. package/workspace/public/pm/cozy-settings.js +1 -1
  78. package/workspace/public/pm/cozy-steps.css +9 -9
  79. package/workspace/public/pm/cozy-today.css +107 -71
  80. package/workspace/public/pm/cozy-viewer.css +7 -7
  81. package/workspace/public/pm/cozy-viewer.js +157 -23
  82. package/workspace/public/pm/cozy-vw-mtg.css +81 -81
  83. package/workspace/public/pm/cozy-vw-rp.css +53 -53
  84. package/workspace/public/pm/cozy-vw-shell.css +34 -21
  85. package/workspace/public/pm/cozy-vw.css +117 -117
  86. package/workspace/public/pm/cozy-xv.css +11 -11
  87. package/workspace/public/pm/cozy.css +18 -15
  88. package/workspace/public/pm/hi-pop.css +82 -0
  89. package/workspace/public/pm/hi-pop.js +65 -0
  90. package/workspace/public/pm/home-app.js +83 -28
  91. package/workspace/public/pm/home-day.js +131 -26
  92. package/workspace/public/pm/home-ini.css +38 -108
  93. package/workspace/public/pm/home-ini.js +50 -68
  94. package/workspace/public/pm/home-line.css +7 -7
  95. package/workspace/public/pm/home-list.js +41 -4
  96. package/workspace/public/pm/home-phone-card.js +18 -15
  97. package/workspace/public/pm/home-today.js +18 -7
  98. package/workspace/public/pm/ini-more.js +67 -0
  99. package/workspace/public/pm/ini-view-model.js +3 -2
  100. package/workspace/public/pm/ini-view.css +104 -102
  101. package/workspace/public/pm/ini-view.js +16 -8
  102. package/workspace/public/pm/loose-props.css +13 -13
  103. package/workspace/public/pm/metric-drafts.css +82 -0
  104. package/workspace/public/pm/metric-drafts.js +165 -0
  105. package/workspace/public/pm/ms-suggest.css +8 -8
  106. package/workspace/public/pm/order-model.js +85 -0
  107. package/workspace/public/pm/ov-view.css +12 -12
  108. package/workspace/public/pm/premium-board.js +57 -11
  109. package/workspace/public/pm/premium-chart-tab.js +6 -6
  110. package/workspace/public/pm/premium-insights.js +306 -105
  111. package/workspace/public/pm/premium-report-intel.css +56 -0
  112. package/workspace/public/pm/premium-report-intel.js +232 -0
  113. package/workspace/public/pm/premium-shell.js +2 -2
  114. package/workspace/public/pm/premium-vw-file.js +2 -2
  115. package/workspace/public/pm/premium-vw-item.js +3 -1
  116. package/workspace/public/pm/premium-vw-jira.js +2 -0
  117. package/workspace/public/pm/premium.css +127 -128
  118. package/workspace/public/pm/prog-order.css +6 -6
  119. package/workspace/public/pm/prog-order.js +15 -2
  120. package/workspace/public/pm/program-charter.css +23 -23
  121. package/workspace/public/pm/rp-parts.js +2 -2
  122. package/workspace/public/pm/sort-order.css +17 -0
  123. package/workspace/public/pm/sort-order.js +108 -0
  124. package/workspace/public/pm/split-merge.css +15 -15
  125. package/workspace/public/pm/task-card.css +21 -21
  126. package/workspace/public/pm/tk-tasks.css +37 -37
  127. package/workspace/public/pm/tk-view.css +6 -6
  128. package/workspace/public/pm/tk-view.js +3 -2
  129. package/workspace/public/pm/wf-page.css +28 -28
  130. package/workspace/public/pm/wf-page.js +1 -1
  131. package/workspace/public/premium-board.html +1 -0
  132. package/workspace/public/premium-intelligence.html +82 -0
  133. package/workspace/server.js +38 -3
  134. package/workspace/skills/metric-draft.skill +47 -0
  135. package/workspace/sort-order-test.js +201 -0
  136. package/workspace/stage-card-test.js +1 -0
  137. package/workspace/task-card-test.js +1 -1
  138. package/workspace/test-lists/intel-report-ui.json +5 -0
  139. package/workspace/test-lists/intel-report.json +9 -0
  140. package/workspace/test-lists/metric-drafts-ui.json +5 -0
  141. package/workspace/test-lists/metric-drafts.json +9 -0
  142. package/workspace/test-lists/sort-order.json +6 -0
  143. package/workspace/test-lists/viewer-trail.json +5 -0
  144. package/workspace/test-run.js +3 -0
  145. package/workspace/tk-tasks-test.js +5 -3
  146. package/workspace/viewer-trail-test.js +145 -0
  147. package/workspace/public/premium-insights.html +0 -81
@@ -1,64 +1,169 @@
1
1
  /* pm/home-day.js — Your day in the Viewer, shell A (initiative viewer-shell-a, V10; canvas XvAPhDay, was TfPhone and the HvAOpen sheet).
2
2
  *
3
- * "Good morning" opens Your day as an item in the Viewer, not as a sheet over the list: on a phone the shell is full screen, on a desktop
4
- * it sits beside the chat like any other item. The summary card says what is yours and the day's meetings; three sections fold:
5
- * Your move every row that is the PM's move now (homeList's move), open by default
6
- * Now a phone only: the moment card (TfPhone: own late tasks with Done, finished drafts, the recap), open by default
7
- * Next meeting the meeting on now or the next one today
8
- * This week the Weekly review
9
- * The calendar is under ⋯. dayModel is pure; dayParts turns it into the shell's summary and sections. Text from records goes through esc(). */
3
+ * "Good morning" opens Your day as an item in the Viewer (a phone only since batch 14 item 4). Batch 15 item 3 (design E, frames YdE1Ready,
4
+ * YdE2AllClear, YdE3Evening, YdE6BigDay, YdE7Rough): the opening card is Claude's small mood face and one first-person line, with chips for
5
+ * the work Claude really did; Your move holds only the calls that need the PM; the rest folds:
6
+ * Your move the calls only the PM can make (homeList's move rows with call: true), open by default
7
+ * Drafted for you the drafts of today's morning prep run (GET /api/phone-day finished) and the weekly update
8
+ * Can wait every other row that was "Your move" (tasks, brief items, Jira)
9
+ * Now the phone's moment card (home-phone-card.js), open by default
10
+ * This week the Weekly review
11
+ * Every claim comes from what PMOS holds: a meeting is "prepped" only when it has the agent's prep note, "drafted" only from today's run,
12
+ * a thank-you only from a real mention, a miss only from a failed task. No data, no line (zero is silence). The mood is never happier than
13
+ * the data: concerned when something failed or is blocked, delighted at most once a week, calm on a packed or ordinary day.
14
+ * Voice: Claude's Adlerian rules (canvas note ydAdler): thanks for contribution, no praise, no orders, say whose task it is, no blame,
15
+ * no "N days late". dayModel is pure; dayParts turns it into the shell's sections. Text from records goes through esc(). */
10
16
 
11
17
  import { todayOf, hm } from './home-data.js';
12
18
 
13
19
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
14
20
  const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
21
+ const clip = (s, n) => { const t = String(s || '').replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1) + '…' : t; };
15
22
  export const DAY_ICON = 'M12 3l1.8 4.6L18 9l-4.2 1.4L12 15l-1.8-4.6L6 9l4.2-1.4z';
16
23
  const CLOCK = 'M12 4a8 8 0 1 0 0 16a8 8 0 1 0 0-16M12 8v4l3 2', CAL = 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', CHEV = 'M10 7l5 5-5 5';
17
- const svg = (d, w = 15) => `<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>`;
24
+ const CHECK = 'M5 12.5l4.5 4.5L19 7', OPEN = 'M14 4h6v6M20 4l-9 9M18 14v6H4V6h6';
25
+ const svg = (d, w = 15, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
18
26
 
19
27
  const span = (m) => { const a = Date.parse(m.start); const b = m.end ? Date.parse(m.end) : a + (m.minutes || 30) * 60000; return { a, b }; };
20
28
  const dur = (mins) => (mins >= 60 ? (Math.round(mins / 30) / 2).toString().replace(/\.0$/, '') + ' h' : mins + ' min');
29
+ const localDay = (ms) => new Date(ms).toDateString();
30
+ const PACKED = 5; // meetings in a day that make it a packed day (YdE6BigDay)
31
+ const THANKS = /\b(thank(s| you)?|thx|appreciate[ds]?)\b/i;
21
32
 
22
- /** Your day's words. M: homeList's model (move); D: Home's data (today's meetings); R: reviewModel. → { signal, text, move, next, week } */
23
- export function dayModel(M, D, R, now = Date.now()) {
33
+ /** The free stretches of 30 minutes or more between now (or 09:00) and 18:00, between today's meetings. [{ a, b }] in ms. */
34
+ export function gapsOf(t, now) {
35
+ const d0 = new Date(now); d0.setHours(9, 0, 0, 0); const d1 = new Date(now); d1.setHours(18, 0, 0, 0);
36
+ let at = Math.max(now, d0.getTime()); const out = [];
37
+ for (const m of t) { const s = span(m); if (s.b <= at) continue; if (s.a - at >= 30 * 60000) out.push({ a: at, b: Math.min(s.a, d1.getTime()) }); at = Math.max(at, s.b); }
38
+ if (d1.getTime() - at >= 30 * 60000) out.push({ a: at, b: d1.getTime() });
39
+ return out.filter((g) => g.b - g.a >= 30 * 60000);
40
+ }
41
+
42
+ /** A real thank-you to the PM today: the newest mention of today whose words thank them. { quote, who, where, at } or null. */
43
+ export function thanksOf(D, now) {
44
+ const L = (D && D.today && Array.isArray(D.today.mentions) ? D.today.mentions : []).filter((m) => m && m.text && THANKS.test(m.text) && (!m.at || localDay(Date.parse(m.at)) === localDay(now)));
45
+ const m = L[0];
46
+ return m ? { quote: clip(m.text, 160), who: m.who || '', where: m.source ? m.source.charAt(0).toUpperCase() + m.source.slice(1) : '', at: m.at ? hm(m.at) : '' } : null;
47
+ }
48
+
49
+ /** Your day's words. M: homeList's model (move); D: Home's data (today's meetings, phoneDay, the brief page's me and mentions);
50
+ * R: reviewModel. o: { delightOk: false when the delighted face showed on another day this week }.
51
+ * → { mood, line, sub, chips, misses, offer, calls, drafts, wait, done, next, week, thanks } */
52
+ export function dayModel(M, D, R, now = Date.now(), o = {}) {
53
+ D = D || {};
24
54
  const move = (M && M.move) || [];
25
- const t = todayOf(D || {}).filter((m) => m && m.start && !Number.isNaN(Date.parse(m.start))).sort((x, y) => Date.parse(x.start) - Date.parse(y.start));
55
+ const t = todayOf(D).filter((m) => m && m.start && !Number.isNaN(Date.parse(m.start))).sort((x, y) => Date.parse(x.start) - Date.parse(y.start));
26
56
  const mins = t.reduce((n, m) => { const s = span(m); return n + Math.max(0, Math.round((s.b - s.a) / 60000)); }, 0);
27
57
  const next = t.find((m) => m.state === 'now') || t.find((m) => m.state !== 'past' && span(m).b > now) || null;
28
- const lead = !t.length ? 'No meeting today.' : plural(t.length, 'meeting', 'meetings') + ', ' + dur(mins) + '. '
58
+ const meetText = !t.length ? 'No meeting today.' : plural(t.length, 'meeting', 'meetings') + ', ' + dur(mins) + '. '
29
59
  + (!next ? 'They are all over.' : next.state === 'now' ? (next.title || 'A meeting') + ' is on now.' : 'The ' + (next === t[0] ? 'first' : 'next') + ' is at ' + hm(next.start) + '.');
30
60
  const un = R && R.started && !R.done ? 'Step ' + (R.at + 1) + ' of 4' : '';
61
+
62
+ // what Claude really did: the agent's prep note on a meeting; today's run's drafts and sends
63
+ const PD = D.phoneDay || null, run = PD && PD.run ? PD.run : null;
64
+ const fin = (PD && Array.isArray(PD.finished) ? PD.finished : []);
65
+ const prepped = t.filter((m) => (m.prepared || []).some((x) => x && x.kind === 'prep')).length;
66
+ const drafted = fin.filter((x) => x.status !== 'sent').length, sent = fin.filter((x) => x.status === 'sent').length;
67
+ const chips = [prepped && plural(prepped, 'meeting prepped', 'meetings prepped'), drafted && plural(drafted, 'draft ready', 'drafts ready'), sent && sent + ' sent'].filter(Boolean);
68
+
69
+ const calls = move.filter((r) => r.call), drafts = [...fin.map((x) => ({ fin: x })), ...move.filter((r) => r.kind === 'update').map((r) => ({ row: r }))];
70
+ const wait = move.filter((r) => !r.call && r.kind !== 'update');
71
+ const misses = run ? (run.failed || []).map((f) => ({ id: f.id, title: f.title, why: f.error || '' })) : [];
72
+ const blocked = calls.filter((r) => r.state === 'blocked');
73
+ const rc = PD && PD.recap ? PD.recap : null;
74
+ const done = rc ? (rc.decided || 0) + (rc.done || 0) : 0;
75
+ const thanks = thanksOf(D, now);
76
+
77
+ const h = new Date(now).getHours(), name = D.today && D.today.me ? String(D.today.me) : '';
78
+ const hi = (h < 12 ? 'Morning' : h < 17 ? 'Afternoon' : 'Evening') + (name ? ', ' + name : '') + '.';
79
+ const gaps = gapsOf(t, now);
80
+ let mood = 'calm', line = hi, sub = meetText, offer = null;
81
+ if (misses.length || blocked.length) {
82
+ // concerned: said plainly, Claude's own miss first, then whose call it is (YdE7Rough)
83
+ mood = 'concerned';
84
+ line = 'Straight answer: ' + (misses.length ? (misses.length === 1 ? 'I couldn’t finish one of today’s drafts.' : 'I couldn’t finish ' + misses.length + ' of today’s drafts.')
85
+ : (blocked.length === 1 ? clip(blocked[0].name, 80) + ' is stuck.' : blocked.length + ' pieces of work are stuck.'));
86
+ sub = misses.length ? 'That one’s on me. I can run it again.' : 'It’s your call, so it’s first in Your move.';
87
+ } else if (!calls.length && done > 0 && o.delightOk !== false) {
88
+ // delighted: earned, at most once a week (YdE2AllClear)
89
+ mood = 'delighted'; line = 'That was everything that needed you today.';
90
+ sub = [rc.decided ? plural(rc.decided, 'decision of yours is', 'decisions of yours are') + ' on record' : '', rc.done ? plural(rc.done, 'item of yours is', 'items of yours are') + ' closed' : ''].filter(Boolean).join(', and ') + '.';
91
+ sub = sub.charAt(0).toUpperCase() + sub.slice(1);
92
+ } else if (t.length >= PACKED && h < 17) {
93
+ // a packed day: calm, Claude takes its share (YdE6BigDay)
94
+ line = plural(t.length, 'meeting', 'meetings') + ' today. You talk, I do the rest.';
95
+ sub = gaps.length === 1 ? hm(new Date(gaps[0].a).toISOString()) + ' is your only gap.' : gaps.length ? 'Your longest gap starts at ' + hm(new Date(gaps.slice().sort((x, y) => (y.b - y.a) - (x.b - x.a))[0].a).toISOString()) + '.' : 'No gap between them today.';
96
+ } else if (h >= 17 && (thanks || done > 0)) {
97
+ mood = 'glad'; line = hi;
98
+ sub = [t.length ? plural(t.length, 'meeting', 'meetings') + ' today.' : '', thanks && thanks.who ? thanks.who.split(/\s+/)[0] + ' thanked you.' : done ? 'Your work today moved things on.' : ''].filter(Boolean).join(' ');
99
+ } else if (run && !run.working && chips.length) {
100
+ mood = 'glad'; line = hi + ' My part’s done.'; sub = calls.length ? (calls.length === 1 ? 'One call is yours.' : 'The calls below are yours.') : 'Nothing needs your call right now.';
101
+ } else if (run && run.working) {
102
+ line = hi + ' I’m still on ' + plural(run.working, 'draft', 'drafts') + '.'; sub = meetText;
103
+ }
104
+ // no prep run today: say so, and offer it (Prepare my day); never claim work that did not happen
105
+ if (!run && h < 17) offer = { kind: 'prep', text: 'I haven’t prepared today yet.', sub: 'Shall I prep your meetings and draft what I can?' };
31
106
  return {
32
- signal: move.length ? { text: move.length === 1 ? '1 is yours' : move.length + ' are yours', tone: 'you' } : null, // zero is silence
33
- text: lead,
34
- move,
107
+ mood, line, sub, chips, misses, offer, calls, drafts, wait, done, thanks,
35
108
  next: next ? { meeting: next, now: next.state === 'now', time: hm(next.start), title: next.title || 'A meeting' } : null,
36
109
  week: { sub: un || 'Weekly review' },
37
110
  };
38
111
  }
39
112
 
40
- /* one row of Your move: the mark says what it is (a check box is a task, a dot waits on you, amber when blocked or late) */
41
- function moveRow(r) {
42
- const mark = r.check ? `<span class="hv-ck${r.late ? ' late' : ''}" role="img" aria-label="Your task${r.late ? ', late' : ''}"></span>`
43
- : `<span class="hv-d${r.state === 'blocked' ? ' am' : ''}" role="img" aria-label="${r.state === 'blocked' ? 'Blocked, waits on you' : 'Waits on you'}"></span>`;
113
+ /* Claude's small mood face (glad, delighted, calm, concerned): the frames' faces, drawn in currentColor on a tinted disc */
114
+ const MOUTH = {
115
+ glad: '<path d="M7.5 13.5c1.3 2.2 2.8 3.2 4.5 3.2s3.2-1 4.5-3.2" fill="none" stroke-width="1.6" stroke-linecap="round"/>',
116
+ delighted: '<path d="M7 13h10c-.6 3-2.6 4.6-5 4.6S7.6 16 7 13z" fill="currentColor" stroke-width="1.6" stroke-linejoin="round"/>',
117
+ calm: '<path d="M8.5 15c1 .9 2.2 1.3 3.5 1.3s2.5-.4 3.5-1.3" fill="none" stroke-width="1.6" stroke-linecap="round"/>',
118
+ concerned: '<path d="M7.6 7.6l2.4.9M16.4 7.6l-2.4.9" stroke-width="1.4" stroke-linecap="round"/><path d="M8.5 16.5c1-1.3 2.2-1.9 3.5-1.9s2.5.6 3.5 1.9" fill="none" stroke-width="1.6" stroke-linecap="round"/>',
119
+ };
120
+ export const faceHtml = (mood) => `<span class="yd-face ${esc(mood)}" role="img" aria-label="Claude is ${esc(mood)}"><svg width="32" height="32" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"><circle cx="9" cy="10.5" r="1.3" fill="currentColor" stroke="none"/><circle cx="15" cy="10.5" r="1.3" fill="currentColor" stroke="none"/>${MOUTH[mood] || MOUTH.calm}</svg></span>`;
121
+ const ok = (act, label, id) => `<button type="button" class="yd-ok" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(CHECK, 22, 2.6)}</button>`;
122
+ const alt = (act, label, id, icon) => `<button type="button" class="yd-alt" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(icon || OPEN, 18, 2)}</button>`;
123
+
124
+ /** The opening card: face, line, sub, the chips of real work, and Claude's own misses with a ✓ to run them again. */
125
+ export function openHtml(Y) {
126
+ const chips = Y.chips.length ? `<div class="yd-chips">${Y.chips.map((c) => `<span class="yd-chip">${svg(CHECK, 14, 2.6)}${esc(c)}</span>`).join('')}</div>` : '';
127
+ const miss = Y.misses.map((m) => `<div class="yd-miss" data-id="${esc(m.id)}"><div class="yd-mt"><b>My miss: ${esc(m.title)}</b>${m.why ? `<em>${esc(m.why)}</em>` : ''}</div>${ok('retry', 'Run it again', m.id)}</div>`).join('');
128
+ return `<div class="yd-open ${esc(Y.mood)}"><div class="yd-hd">${faceHtml(Y.mood)}<div class="yd-ht"><b>${esc(Y.line)}</b>${Y.sub ? `<em>${esc(Y.sub)}</em>` : ''}</div></div>${chips}${miss}</div>`
129
+ + (Y.offer ? `<div class="yd-card yd-offer"><div class="yd-mt"><b>${esc(Y.offer.text)}</b><em>${esc(Y.offer.sub)}</em></div>${ok('prep', 'Prepare my day')}</div>` : '');
130
+ }
131
+
132
+ /* one call (YdE1Ready): the sentence, Claude's pick when it has one ("I'd …. It's your call."), and one quiet round icon that opens it */
133
+ function callHtml(r) {
134
+ const why = r.pick ? 'I’d ' + r.pick.charAt(0).toLowerCase() + r.pick.slice(1).replace(/\.?$/, '.') + ' It’s your call.' : r.when ? 'Goes out ' + r.when + '.' : r.sub || '';
135
+ return `<div class="yd-card yd-call${r.state === 'blocked' ? ' am' : ''}" data-id="${esc(r.id)}"><div class="yd-mt"><b>${esc(r.name)}</b>${why ? `<em>${esc(why)}</em>` : ''}</div>${alt('sel', 'Open: ' + r.name, '', CHEV)}</div>`;
136
+ }
137
+ /* one row that can wait: the list's own row, so a press opens what the list row opens; no "late" words (here and now) */
138
+ function waitRow(r) {
139
+ const mark = r.check ? '<span class="hv-ck" role="img" aria-label="Your task"></span>' : '<span class="hv-d" role="img" aria-label="Waits on you"></span>';
44
140
  const sub = r.when ? `<em>${svg(CLOCK, 13)} ${esc(r.when)}</em>` : r.sub ? `<em>${esc(r.sub)}</em>` : '';
45
141
  return `<div class="hm-r hv-r two" data-id="${esc(r.id)}"><button type="button" class="hm-rm" data-hm-sel="${esc(r.id)}"><span class="hv-mk">${mark}</span><span class="hm-rt"><b>${esc(r.name)}</b>${sub}</span></button></div>`;
46
142
  }
143
+ const DSTATE = { review: 'Ready for you at your desk', done: 'Finished', sent: 'Sent' };
144
+ function draftRow(d) {
145
+ if (d.row) return waitRow({ ...d.row, sub: d.row.sub || 'Drafted for you' });
146
+ const f = d.fin;
147
+ return `<div class="hm-r hv-r two yd-fin"><div class="hm-rm"><span class="hv-mk"><span class="yd-tick">${svg(CHECK, 13, 2.6)}</span></span><span class="hm-rt"><b>${esc(f.title)}</b><em>${esc(DSTATE[f.status] || 'Finished')}${f.summary ? ' · ' + esc(f.summary) : ''}</em></span></div></div>`;
148
+ }
47
149
 
48
- /** The shell's parts for Your day (czSummary and czSections take them). o: { moment: true on a phone with the moment card } → { summary, sections } */
150
+ /** The shell's parts for Your day (czSections takes them). o: { moment: true on a phone with the moment card } → { open, sections } */
49
151
  export function dayParts(Y, o = {}) {
50
152
  const sections = [];
51
- if (Y.move.length) sections.push({ id: 'move', title: 'Your move', count: Y.move.length, open: true, html: `<div class="hv-card hd-move">${Y.move.map(moveRow).join('')}</div>` });
52
- if (o.moment) sections.push({ id: 'now', title: 'Now', open: true, html: '<div class="hd-now"></div>' }); // kept: the frame has no slot for it; drawDay puts the card in
53
- if (Y.next) {
153
+ if (Y.calls.length) sections.push({ id: 'move', title: 'Your move', count: Y.calls.length, open: true, html: Y.calls.map(callHtml).join('') });
154
+ else if (Y.mood === 'delighted') sections.push({ id: 'move', title: 'Your move', open: true, html: '<div class="yd-card"><div class="yd-mt"><em>That was everything that needed you today.</em></div></div>' });
155
+ if (Y.drafts.length) sections.push({ id: 'drafts', title: 'Drafted for you', count: Y.drafts.length, html: `<div class="hv-card">${Y.drafts.map(draftRow).join('')}</div>` });
156
+ if (Y.wait.length) sections.push({ id: 'wait', title: 'Can wait', count: Y.wait.length, html: `<div class="hv-card hd-move">${Y.wait.map(waitRow).join('')}</div>` });
157
+ if (o.moment) sections.push({ id: 'now', title: 'Now', open: true, html: '<div class="hd-now"></div>' }); // drawDay puts the moment card in
158
+ else if (Y.next) {
54
159
  sections.push({ id: 'next', title: Y.next.now ? 'On now' : 'Next meeting', count: Y.next.now ? '' : Y.next.time, html: `<div class="hv-card"><div class="hm-r hv-r two"><button type="button" class="hm-rm" data-hd-meet><span class="hv-mk">${svg(CLOCK, 15)}</span><span class="hm-rt"><b>${esc(Y.next.title)}</b><em>${esc(Y.next.now ? 'On now' : Y.next.time)}</em></span><span class="hv-cv">${svg(CHEV, 16)}</span></button></div></div>` });
55
160
  }
56
161
  sections.push({ id: 'week', title: 'This week', count: Y.week.sub, html: `<div class="hv-card"><div class="hm-r hv-r two" data-id="review"><button type="button" class="hm-rm" data-hm-review aria-label="Weekly review: ${esc(Y.week.sub)}. Open"><span class="hv-mk">${svg(CAL, 16)}</span><span class="hm-rt"><b>Weekly review</b><em>${esc(Y.week.sub)}</em></span><span class="hv-cv">${svg(CHEV, 16)}</span></button></div></div>` });
57
- return { summary: { line: Y.signal ? Y.signal.text : '', tone: Y.signal ? Y.signal.tone : '', text: Y.text }, sections };
162
+ return { open: openHtml(Y), sections };
58
163
  }
59
164
 
60
- /** Draws Your day into the Viewer's body with the shell's summary and folds; moment(el) puts the phone's moment card in Now. */
165
+ /** Draws Your day into the Viewer's body: the opening card, then the folds; moment(el) puts the phone's moment card in Now. */
61
166
  export function drawDay(body, P, VW, moment) {
62
- body.innerHTML = VW.czSummary(P.summary) + VW.czSections(P.sections, { key: 'day' });
167
+ body.innerHTML = `<div class="yd">${P.open}${VW.czSections(P.sections, { key: 'day' })}</div>`;
63
168
  const now = body.querySelector('.hd-now'); if (now && moment) moment(now);
64
169
  }
@@ -4,9 +4,9 @@
4
4
  /* ── the stage move in the card (InStage) ── */
5
5
  .hi-slot { display: contents; }
6
6
  .hi-mv { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
7
- .hi-why, .hi-note { margin: 0; font-size: 12.5px; color: var(--cz-ink3); }
7
+ .hi-why, .hi-note { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
8
8
  .hi-note b { color: var(--cz-ink2); }
9
- .hi-swl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cz-ink2); }
9
+ .hi-swl { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); }
10
10
  .hi-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius: 999px; background: var(--cz-c-d9dce1); border: 0; padding: 0; cursor: pointer; }
11
11
  .hi-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); transition: left .15s; }
12
12
  .hi-sw[aria-checked="true"] { background: var(--cz-blue); }
@@ -16,22 +16,10 @@
16
16
  .hi-mvb { display: flex; align-items: center; gap: 6px; }
17
17
  .hi-mvb .cz-ms { margin-right: 2px; }
18
18
 
19
- /* buttons, as the canvas draws them */
20
- .hi-btn { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 700; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); white-space: nowrap; cursor: pointer; }
21
- .hi-btn svg { flex: none; }
22
- .hi-btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
23
- .hi-btn.dark { background: var(--cz-ink); border-color: transparent; color: var(--cz-card); }
24
- .hi-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
25
- .hi-btn.ghost:hover { background: var(--cz-well); }
26
- .hi-btn:disabled { opacity: .45; cursor: default; }
27
19
  .hi-self { align-self: flex-start; }
28
- .hi-ib { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: none; color: var(--cz-ink2); cursor: pointer; }
29
- .hi-ib:hover { background: var(--cz-well2); }
30
- .hi-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
31
- .hi-ib.sm { width: 28px; height: 28px; }
32
20
 
33
21
  /* ── the list column groups (InTasks, InDocs) ── */
34
- .hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--cz-ink3); }
22
+ .hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size: var(--fs-2); color: var(--cz-ink3); }
35
23
  .hm-r.hi-r { min-height: 48px; margin-bottom: 2px; }
36
24
  .hm-r.hi-r .hm-rm { min-height: 48px; padding: 7px 10px; }
37
25
  .hm-r.hi-r .hm-rt b { font-weight: 600; }
@@ -48,82 +36,41 @@
48
36
  .hi-chk.off { cursor: default; border-style: dashed; }
49
37
  .hi-chk.off.on { border-style: solid; opacity: .6; }
50
38
 
51
- /* ── the popovers: Move anyway, Back, the menus ── */
52
- .hi-pop { position: fixed; z-index: 90; left: var(--hi-x, 24px); top: var(--hi-y, 24px); width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--cz-sans); font-size: 14px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); }
53
- .hi-pop.menu { width: 290px; padding: 8px; gap: 2px; }
54
- .hi-pop.sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; border-radius: 28px 28px 0 0; padding: 10px 16px 28px; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); }
55
- .hi-pop.sheet .hi-btn { height: 48px; justify-content: center; }
56
- .hi-pop.sheet .hi-acts { flex-direction: column; align-items: stretch; }
57
- .hi-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-c-d9dce1); align-self: center; margin-bottom: 4px; }
58
- .hi-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(42,46,53,.18); }
59
- .hi-pop p { margin: 0; }
60
- .hi-h3 { font-size: 15px; font-weight: 800; }
61
- .hi-lbl { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
62
- .hi-small { margin: 0; font-size: 12.5px; color: var(--cz-ink3); }
63
- .hi-warn { background: var(--cz-riskbg); color: var(--cz-risk); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; }
64
- .hi-field { display: flex; flex-direction: column; gap: 6px; }
65
- .hi-field > span { font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); }
66
- .hi-field em { font-style: normal; font-weight: 600; color: var(--cz-ink3); }
67
- .hi-field input, .hi-field textarea { box-sizing: border-box; width: 100%; border: 0; border-radius: 14px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: 14px; padding: 10px 14px; outline: 0; }
68
- .hi-field input { height: 42px; }
69
- .hi-field textarea { min-height: 56px; resize: vertical; }
70
- .hi-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
71
- .hi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
72
- .hi-chips .cz-chip[aria-pressed="true"] { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
73
- .hi-cks { display: flex; flex-direction: column; gap: 4px; }
74
- .hi-pop:not(.sheet) .hi-cks { display: none; } /* the card shows the items; the phone's sheet repeats them (InPhone) */
75
- .hi-ck { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cz-ink2); padding: 2px 0; }
76
- .hi-ck i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--cz-c-c5c9d0); box-sizing: border-box; display: inline-grid; place-items: center; flex: none; color: var(--cz-card); }
77
- .hi-ck.on i { background: var(--cz-ink); border-color: var(--cz-ink); }
78
- .hi-mlbl { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); padding: 8px 12px 4px; }
79
- .hi-hr { height: 1px; background: var(--cz-hair); margin: 4px 0; }
80
- .hi-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--cz-ink); width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
81
- .hi-mi:hover, .hi-mi.on { background: var(--cz-well); }
82
- .hi-mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
83
- .hi-mi em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
84
- .hi-mi:disabled { opacity: .45; cursor: default; }
85
- .hi-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
86
-
87
- /* the toast with Undo: info, so it does not move */
88
- .hi-toast { position: fixed; z-index: 95; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); font-family: var(--cz-sans); font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
89
- .hi-toast[hidden] { display: none; }
90
- .hi-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
91
- .hi-toast button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: inherit; font: inherit; font-weight: 700; cursor: pointer; flex: none; }
92
39
 
93
40
  /* ── the Viewer: Tasks, Documents, Stage (InTasks, InDocs) ── */
94
- .hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size: 14px; color: var(--cz-ink); }
41
+ .hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size: var(--fs-3); color: var(--cz-ink); }
95
42
  .hi-seg { align-self: flex-start; }
96
43
  .hi-vh2 { display: flex; align-items: center; gap: 8px; }
97
- .hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; }
98
- .cz-pick.hi-pick { height: 30px; font-size: 13px; font-weight: 700; color: var(--cz-ink2); }
44
+ .hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-5); font-weight: 800; }
45
+ .cz-pick.hi-pick { height: 30px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
99
46
  .cz-pick.hi-pick svg { fill: none; stroke: currentColor; }
100
- .hi-empty { margin: 0; font-size: 13px; color: var(--cz-ink3); }
47
+ .hi-empty { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
101
48
  .hi-tg { display: flex; flex-direction: column; border-radius: 12px; }
102
49
  .hi-tg.over { background: var(--cz-bluebg); }
103
50
  .hi-gh { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
104
51
  .hi-ghb { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0; border: 0; background: none; color: var(--cz-ink); font: inherit; cursor: pointer; text-align: left; }
105
52
  .hi-ghb svg { color: var(--cz-ink3); }
106
- .hi-ghb b { font-size: 13.5px; }
107
- .hi-ghb span { font-size: 12.5px; color: var(--cz-ink3); }
108
- .hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size: 13.5px; min-height: 26px; }
53
+ .hi-ghb b { font-size: var(--fs-3); }
54
+ .hi-ghb span { font-size: var(--fs-2); color: var(--cz-ink3); }
55
+ .hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-3); min-height: 26px; }
109
56
  .hi-trow:last-child { border-bottom: 0; }
110
57
  .hi-trow[draggable="true"] { cursor: grab; }
111
58
  .hi-trow.drag { opacity: .5; }
112
59
  .hi-tt { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
113
- .hi-tt em { font-style: normal; color: var(--cz-ink3); font-size: 12px; }
60
+ .hi-tt em { font-style: normal; color: var(--cz-ink3); font-size: var(--fs-2); }
114
61
  .hi-trow.done .hi-tt { text-decoration: line-through; color: var(--cz-ink3); }
115
- .hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size: 11.5px; font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; border: 0; flex: none; }
62
+ .hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size: var(--fs-1); font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; border: 0; flex: none; }
116
63
  button.hi-pill { cursor: pointer; }
117
64
  .hi-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
118
65
  .hi-pill.w { background: var(--cz-riskbg); color: var(--cz-risk); }
119
66
  .hi-pill.dash { background: transparent; box-shadow: inset 0 0 0 1px var(--cz-c-c5c9d0); color: var(--cz-ink3); }
120
- .hi-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size: 9.5px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
121
- .hi-due { font-size: 12.5px; color: var(--cz-ink3); min-width: 38px; text-align: right; flex: none; }
67
+ .hi-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-grid; place-items: center; flex: none; }
68
+ .hi-due { font-size: var(--fs-2); color: var(--cz-ink3); min-width: 38px; text-align: right; flex: none; }
122
69
  .hi-due.late { color: var(--cz-late); font-weight: 700; }
123
70
  .hi-trow .hi-ib { opacity: .35; }
124
71
  .hi-trow:hover .hi-ib, .hi-trow .hi-ib:focus-visible, .hi-trow .hi-ib[aria-expanded="true"] { opacity: 1; }
125
72
  .hi-add { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 14px; background: var(--cz-well); padding: 0 6px 0 12px; }
126
- .hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: 13.5px; color: var(--cz-ink); }
73
+ .hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); }
127
74
  .hi-foot { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--cz-hair); padding-top: 8px; }
128
75
  .hi-drow { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 12px; }
129
76
  .hi-drow.look { background: var(--cz-bluebg); }
@@ -133,11 +80,11 @@ button.hi-pill { cursor: pointer; }
133
80
  .hi-dic.dash { background: none; box-shadow: inset 0 0 0 1.5px var(--cz-c-d9dce1); color: var(--cz-ink3); }
134
81
  .hi-dtx { min-width: 0; display: block; }
135
82
  .hi-dtx b { font-weight: 800; }
136
- .hi-dtx .hi-k { font-size: 12.5px; color: var(--cz-ink3); }
137
- .hi-dtx em { display: block; font-style: normal; font-size: 12.5px; color: var(--cz-ink3); }
138
- .hi-dtx small { display: block; font-size: 11.5px; color: var(--cz-ink3); overflow-wrap: anywhere; }
83
+ .hi-dtx .hi-k { font-size: var(--fs-2); color: var(--cz-ink3); }
84
+ .hi-dtx em { display: block; font-style: normal; font-size: var(--fs-2); color: var(--cz-ink3); }
85
+ .hi-dtx small { display: block; font-size: var(--fs-1); color: var(--cz-ink3); overflow-wrap: anywhere; }
139
86
  .hi-drow.later { align-items: center; color: var(--cz-ink3); }
140
- .hi-dt { flex: 1; font-size: 13.5px; }
87
+ .hi-dt { flex: 1; font-size: var(--fs-3); }
141
88
  .hi-drow > .hi-pill, .hi-drow > .hi-btn { margin-top: 4px; }
142
89
  .hi-sec { display: flex; flex-direction: column; gap: 8px; }
143
90
  .hi-stages { display: flex; flex-wrap: wrap; gap: 6px; }
@@ -148,6 +95,12 @@ button.hi-pill { cursor: pointer; }
148
95
  @media (max-width: 760px) {
149
96
  /* every target in the Viewer is at least 44 px (the phone floor); a check box keeps its 18 px look inside a 44 px press */
150
97
  .hi-v button, .hi-v input, .hi-pop button, .hi-pop input { min-height: 44px; }
98
+ /* a task row's check box and its dates keep their size inside the 44 px floor (batch 14 item 6: the box stretched tall and the dates fell a line) */
99
+ .hi-v .iv-cb { min-height: 0; position: relative; }
100
+ .hi-v .iv-car, .hi-v .iv-tr .iv-tt { min-height: 0; }
101
+ .hi-v .iv-cb::after { content: ""; position: absolute; inset: -13px; }
102
+ .hi-v .iv-dc { min-height: 22px; position: relative; }
103
+ .hi-v .iv-dc::after { content: ""; position: absolute; left: 0; right: 0; top: -11px; bottom: -11px; }
151
104
  .hi-v .cz-seg button { height: 44px; }
152
105
  .hi-v .hi-ib, .hi-pop .hi-ib { width: 44px; height: 44px; }
153
106
  .hi-trow { min-height: 52px; padding: 0 2px; gap: 6px; }
@@ -175,13 +128,13 @@ button.hi-pill { cursor: pointer; }
175
128
  .hi-page .hm-pcard { margin: 0; }
176
129
  .hi-pg { display: flex; flex-direction: column; gap: 2px; }
177
130
  .hi-pgh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; }
178
- .hi-pgh b { font-size: 14px; font-weight: 800; color: var(--cz-ink); }
179
- .hi-pgh .hi-n { font-size: 12px; font-weight: 700; color: var(--cz-ink3); }
131
+ .hi-pgh b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
132
+ .hi-pgh .hi-n { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
180
133
  .hi-pgh .hm-gadd { margin-left: auto; }
181
- .hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
134
+ .hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
182
135
  .hi-pge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 6px; }
183
- .hi-pge p { margin: 0; font-size: 13px; color: var(--cz-ink3); }
184
- .hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size: 14px; text-align: left; padding: 0 16px; cursor: pointer; }
136
+ .hi-pge p { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
137
+ .hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size: var(--fs-3); text-align: left; padding: 0 16px; cursor: pointer; }
185
138
  @media (hover: hover) { .hi-pgm:hover { background: var(--cz-well2); } }
186
139
 
187
140
  /* ── D99: the initiative's own workflow (WfTriage, WfAChange, WfAWontDo) ── */
@@ -190,50 +143,27 @@ button.hi-pill { cursor: pointer; }
190
143
  .hm-br .hm-wf { margin-left: auto; display: inline-flex; align-items: center; padding: 3px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: inherit; }
191
144
  .hm-br .hm-wf:hover, .hm-br .hm-wf[aria-expanded="true"] { background: var(--cz-well); }
192
145
  .hm-br .hm-wf + .st { margin-left: 0; }
193
- .hi-pop.wide:not(.sheet) { width: 560px; }
194
- .hi-pop.menu .hi-mi .wfi { margin-left: -2px; }
195
- .hi-wfpad { padding: 4px 12px 6px; }
196
- .hi-wfchain { line-height: 1.5; }
197
- .hi-mut { color: var(--cz-ink3); }
198
- .hi-wfh { display: flex; align-items: center; gap: 8px; }
199
- .hi-wfh .hi-h3 { flex: 1; min-width: 0; }
200
- .hi-wfrows { display: flex; flex-direction: column; }
201
- .hi-wfrow { display: grid; grid-template-columns: minmax(0, 130px) 14px minmax(0, 130px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--cz-hair); font-size: 13.5px; }
202
- .hi-wfrow:first-child { border-top: 0; }
203
- .hi-wfrow span { min-width: 0; }
204
- .hi-wfrow em { display: block; font-style: normal; font-size: 12px; color: var(--cz-ink3); }
205
- .hi-wfland { display: flex; align-items: center; gap: 8px; }
206
- .hi-wfland span { flex: 1; }
207
- .hi-wfland select { font: inherit; font-size: 13px; font-weight: 700; color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius: 10px; padding: 6px 10px; max-width: 60%; }
208
- .hi-end { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cz-well); font-size: 13px; }
209
- .hi-end p { margin: 0; flex: 1; min-width: 0; color: var(--cz-ink2); }
210
- .hi-endi { display: inline-flex; color: var(--cz-ink3); }
211
- @media (max-width: 760px) {
212
- .hi-wfrow { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); }
213
- .hi-wfrow > .hi-small { grid-column: 1 / -1; }
214
- .hi-end { flex-wrap: wrap; }
215
- }
216
146
 
217
147
  /* ── stage card D: the stage as a live step list (canvas XscD, XscDDesk); the list itself is cozy-steps.css ── */
218
148
  .hm-card.hm-sc { padding: 0; background: transparent; box-shadow: none; }
219
149
  .hm-box.hm-scb { background: var(--cz-card); border-radius: 18px; padding: 12px; gap: 0; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-blue) 45%, transparent); }
220
150
  .hm-sch { display: flex; align-items: center; gap: 8px; min-height: 28px; }
221
- .hm-sch > b { font-size: 15px; font-weight: 800; color: var(--cz-ink); }
222
- .hm-sch .of { font-size: 12.5px; color: var(--cz-ink3); font-weight: 600; }
151
+ .hm-sch > b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
152
+ .hm-sch .of { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
223
153
  .hm-sch .hm-wf { display: inline-flex; align-items: center; justify-content: center; padding: 3px; margin-left: 2px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: inherit; }
224
154
  .hm-sch .hm-wf:hover, .hm-sch .hm-wf[aria-expanded="true"] { background: var(--cz-well); }
225
- .hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
155
+ .hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
226
156
  .hm-sct.over { color: var(--cz-risk); }
227
157
  .hm-bars.hm-scbars { margin: 10px 0 8px; }
228
158
  .hm-bars.hm-scbars i { position: relative; } .hm-bars.hm-scbars i::after { content: ""; position: absolute; inset: -6px 0; } /* a taller hover target for the stage name */
229
159
  .hm-bars.hm-scbars i.skip { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cz-ink3) 40%, transparent) 0 4px, transparent 4px 7px); }
230
160
  .hm-scl { border-top: 1px solid var(--cz-hair); padding-top: 8px; margin-top: 2px; }
231
- .hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size: 12.5px; color: var(--cz-ink3); }
232
- .hm-scb > .hm-none { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink3); }
161
+ .hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size: var(--fs-2); color: var(--cz-ink3); }
162
+ .hm-scb > .hm-none { margin: 4px 0 0; font-size: var(--fs-2); color: var(--cz-ink3); }
233
163
  /* the move sheet: Move now and Back as two quiet buttons, side by side on a desktop, stacked on the phone */
234
164
  .hi-nxa { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--cz-hair); }
235
165
  .hi-nxa .hi-btn { flex: 1; justify-content: center; height: 40px; border-radius: 12px; }
236
- .hi-pop .hi-swl { font-size: 14px; font-weight: 700; color: var(--cz-ink); min-height: 44px; }
166
+ .hi-pop .hi-swl { font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); min-height: 44px; }
237
167
  .hi-pop .hi-swl > span { flex: 1; }
238
168
  .hi-pop .hi-sw { width: 44px; height: 28px; }
239
169
  .hi-pop .hi-sw::after { top: 4px; left: 4px; width: 20px; height: 20px; }
@@ -246,6 +176,6 @@ button.hi-pill { cursor: pointer; }
246
176
  .hi-pop .hi-sw[aria-checked="true"]::before, .hi-v .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-pop .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-v .hi-sw[aria-checked="true"]::before { background: var(--cz-blue); }
247
177
  .hi-pop .hi-sw::after, .hi-v .hi-sw::after { top: 12px; z-index: 1; background: var(--cz-onsolid); }
248
178
  .hi-pop.sheet .hi-nxa { flex-direction: column; border-top: 0; padding-top: 0; }
249
- .hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size: 14.5px; font-weight: 800; }
250
- .hi-pop.sheet .hi-h3 { font-size: 17px; }
179
+ .hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size: var(--fs-3); font-weight: 800; }
180
+ .hi-pop.sheet .hi-h3 { font-size: var(--fs-4); }
251
181
  }