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
@@ -20,15 +20,15 @@ body.po-dragging, body.po-dragging * { cursor: grabbing !important; user-select:
20
20
  @keyframes po-info { 0% { transform: scale(1); opacity: .25; } 35%, 100% { transform: scale(1.9); opacity: 0; } }
21
21
  /* the suggestion */
22
22
  .po-pop { position: fixed; z-index: 80; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(42,46,53,.38), 0 0 0 1px var(--cz-hair); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; font-family: var(--cz-sans, inherit); max-height: calc(100vh - 24px); overflow: auto; }
23
- .po-pop h4 { margin: 0; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
23
+ .po-pop h4 { margin: 0; font-size: var(--fs-3); font-weight: 800; display: flex; align-items: center; gap: 8px; }
24
24
  .po-sp { color: var(--po-prog); display: inline-flex; }
25
25
  .po-sp svg { width: 17px; height: 17px; }
26
- .po-why { font-size: 12.5px; color: var(--cz-ink2); line-height: 1.45; margin: 0; }
26
+ .po-why { font-size: var(--fs-2); color: var(--cz-ink2); line-height: 1.45; margin: 0; }
27
27
  .po-so { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--cz-well); }
28
- .po-so .n { font-size: 12px; font-weight: 800; color: var(--cz-ink3); text-align: center; }
29
- .po-so b { font-size: 13px; font-weight: 800; min-width: 0; }
30
- .po-so .dt { font-size: 12px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
31
- .po-so .r { grid-column: 2 / -1; font-size: 11.5px; color: var(--cz-ink3); line-height: 1.35; }
28
+ .po-so .n { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); text-align: center; }
29
+ .po-so b { font-size: var(--fs-3); font-weight: 800; min-width: 0; }
30
+ .po-so .dt { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
31
+ .po-so .r { grid-column: 2 / -1; font-size: var(--fs-1); color: var(--cz-ink3); line-height: 1.35; }
32
32
  .po-so.mv .n { color: var(--cz-blueink); }
33
33
  .po-so.mv b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cz-blue); margin-left: 6px; vertical-align: 2px; }
34
34
  .po-so.nod { background: transparent; border: 1.5px dashed var(--cz-hair); }
@@ -11,10 +11,13 @@
11
11
  * THE PAGE'S MARKUP: a container [data-po-list="<program id>"] holds the rows [data-po-id="<initiative id>"] of that program shown here (a product
12
12
  * sub-list on a multi-product Board is its own container). The ✦ button is [data-po-sug="<program id>"].
13
13
  * Desktop: drag by the grip. Phone: hold the row, then drag. Keyboard: Alt + ↑ or ↓ moves the focused row. Escape puts a lifted row back.
14
+ * A list [data-po-list="@…"] is one of Home's and the Board's own lists (the programs and products, or a product's initiatives): a move there
15
+ * goes to sort-order.js moveIn, with the same grip, hold and keys.
14
16
  * Only the PM changes the order: every write is a page press. Claude suggests; ✓ applies it, Undo is in the toast, ✕ is "not now" until a
15
17
  * date changes (remembered in this browser, pmos.order.notnow). */
16
18
  import { pmPost } from './http.js';
17
19
  import { fullOrder, moveTo, suggestOrder } from './program-model.js';
20
+ import { moveIn } from './sort-order.js'; // a list whose key starts with '@' is Home's and the Board's own order (batch 14 item 8), not a program's
18
21
 
19
22
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
20
23
  const SV = (d, w = 2) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
@@ -39,6 +42,9 @@ export function sugHtml(p, st) {
39
42
 
40
43
  let O = null;
41
44
  const progOf = (id) => ((O && O.programs()) || []).find((p) => p && p.id === id) || null;
45
+ const own = (list) => String(list.dataset.poList || '').startsWith('@');
46
+ /** The program a list orders, or { own: true } for one of Home's and the Board's own lists. */
47
+ const ownerOf = (list) => (list ? (own(list) ? { own: true } : progOf(list.dataset.poList)) : null);
42
48
  const idsIn = (list) => [...list.querySelectorAll('[data-po-id]')].filter((r) => r.closest('[data-po-list]') === list).map((r) => r.dataset.poId);
43
49
 
44
50
  /** Saves the order; o.saved draws it. Returns the answer ({ ok, was, program } or { ok: false, error }). */
@@ -73,7 +79,7 @@ function mark(y) {
73
79
  D.row.style.transform = `translateY(${Math.round(y - D.y0) - 6}px)`;
74
80
  }
75
81
  function start(row, y) {
76
- const list = row.closest('[data-po-list]'), p = list && progOf(list.dataset.poList);
82
+ const list = row.closest('[data-po-list]'), p = ownerOf(list);
77
83
  if (!p) return false;
78
84
  D = { row, list, p, id: row.dataset.poId, y0: y, before: undefined, slot: null };
79
85
  row.classList.add('po-lift'); list.classList.add('po-on'); document.body.classList.add('po-dragging');
@@ -86,6 +92,7 @@ async function finish(cancel) {
86
92
  d.row.classList.remove('po-lift'); d.row.style.transform = ''; d.list.classList.remove('po-on'); document.body.classList.remove('po-dragging');
87
93
  if (d.slot) d.slot.remove();
88
94
  if (cancel || d.before === undefined) return;
95
+ if (d.p.own) { const shown = idsIn(d.list), next = moveTo(shown, d.id, d.before === d.id ? null : d.before); if (!same(shown, next)) await moveIn(d.list, next); return; }
89
96
  const { all, next } = moved(d.p, d.list, d.id, d.before);
90
97
  if (same(all, next)) return;
91
98
  await save(d.p, next);
@@ -167,11 +174,17 @@ export function mount(o) {
167
174
  document.addEventListener('keydown', async (e) => {
168
175
  if (e.key === 'Escape') { if (D) { e.stopPropagation(); finish(true); return; } if (POP) { e.stopPropagation(); closePop(true); return; } }
169
176
  if (!e.altKey || (e.key !== 'ArrowUp' && e.key !== 'ArrowDown')) return;
170
- const row = e.target.closest && e.target.closest('[data-po-id]'), list = row && row.closest('[data-po-list]'), p = list && progOf(list.dataset.poList);
177
+ const row = e.target.closest && e.target.closest('[data-po-id]'), list = row && row.closest('[data-po-list]'), p = ownerOf(list);
171
178
  if (!p) return;
172
179
  e.preventDefault();
173
180
  const shown = idsIn(list), k = shown.indexOf(row.dataset.poId), to = e.key === 'ArrowUp' ? k - 1 : k + 1;
174
181
  if (k < 0 || to < 0 || to >= shown.length) return;
182
+ if (p.own) {
183
+ const id = row.dataset.poId, grip = !!e.target.closest('[data-po-grip]'), lk = list.dataset.poList;
184
+ const ok = await moveIn(list, moveTo(shown, id, e.key === 'ArrowUp' ? shown[to] : shown[to + 1] ?? null));
185
+ if (ok) { const n = document.querySelector(`[data-po-list="${CSS_ESC(lk)}"] [data-po-id="${CSS_ESC(id)}"]`); const f = n && (grip ? n.querySelector('[data-po-grip]') : n.querySelector('button:not([data-po-grip])')); if (f) f.focus(); }
186
+ return;
187
+ }
175
188
  const { all, next } = moved(p, list, row.dataset.poId, e.key === 'ArrowUp' ? shown[to] : shown[to + 1] ?? null);
176
189
  if (same(all, next)) return;
177
190
  const id = row.dataset.poId, grip = !!e.target.closest('[data-po-grip]');
@@ -7,16 +7,16 @@
7
7
 
8
8
  /* the fields: two columns on a desk, one on a phone */
9
9
  .pc-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
10
- .pc-fx label, .pc-lab { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); min-width: 0; }
10
+ .pc-fx label, .pc-lab { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); min-width: 0; }
11
11
  .pc-fx .w2 { grid-column: 1 / 3; }
12
- .pc-fi { box-sizing: border-box; height: 40px; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--cz-ink); min-width: 0; width: 100%; outline: 0; }
12
+ .pc-fi { box-sizing: border-box; height: 40px; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 12px; font: inherit; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); min-width: 0; width: 100%; outline: 0; }
13
13
  .pc-fi::placeholder, .pc-ta::placeholder { color: var(--cz-ink3); font-weight: 600; }
14
14
  .pc-fi:focus, .pc-ta:focus { border-color: var(--cz-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cz-blue) 14%, transparent); }
15
- .pc-ta { box-sizing: border-box; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--cz-ink); border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 10px 12px; height: 66px; resize: none; outline: 0; width: 100%; }
15
+ .pc-ta { box-sizing: border-box; font: inherit; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 10px 12px; height: 66px; resize: none; outline: 0; width: 100%; }
16
16
  .pc-sp { display: flex; align-items: center; gap: 8px; }
17
17
  .pc-sp .pc-fd { width: 150px; }
18
- .pc-sp .or { font-size: 12px; color: var(--cz-ink3); font-weight: 700; }
19
- .pc-fd { box-sizing: border-box; height: 40px; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 10px 0 12px; font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; min-width: 0; }
18
+ .pc-sp .or { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 700; }
19
+ .pc-fd { box-sizing: border-box; height: 40px; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 10px 0 12px; font: inherit; font-size: var(--fs-2); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; min-width: 0; }
20
20
  .pc-fd.q { color: var(--cz-ink3); font-weight: 600; }
21
21
  .pc-fd svg, .pc-wch svg, .pc-mini svg, button.pc-ln svg { flex: none; }
22
22
  .pc-fd span { overflow: hidden; text-overflow: ellipsis; }
@@ -26,7 +26,7 @@
26
26
  .pc .bad { box-shadow: 0 0 0 1.5px var(--pc-amberdot) !important; border-color: transparent !important; }
27
27
 
28
28
  /* what needs a look, said in place: amber, with the warning ripple */
29
- .pc-warn { margin: 0; font-size: 12px; font-weight: 700; color: var(--pc-amber); display: flex; align-items: center; gap: 6px; padding: 0 10px 8px 34px; }
29
+ .pc-warn { margin: 0; font-size: var(--fs-2); font-weight: 700; color: var(--pc-amber); display: flex; align-items: center; gap: 6px; padding: 0 10px 8px 34px; }
30
30
  .pc-lab .pc-warn { padding: 2px 0 0; }
31
31
  .pc-warn i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc-amberdot); flex: none; position: relative; }
32
32
  @media (prefers-reduced-motion: no-preference) {
@@ -35,7 +35,7 @@
35
35
  @keyframes pcwarn { 0% { transform: scale(1); opacity: .35; } 50% { transform: scale(2); opacity: 0; } 100% { transform: scale(2); opacity: 0; } }
36
36
 
37
37
  /* the milestones: one grid per row, so every row lines up */
38
- .pc-lbl { display: flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--cz-ink3); margin: 0 0 6px; }
38
+ .pc-lbl { display: flex; align-items: center; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); margin: 0 0 6px; }
39
39
  .pc-lim { margin-left: auto; font-weight: 600; }
40
40
  .pc-lim.full { color: var(--pc-amber); font-weight: 700; }
41
41
  .pc-ml { border: 1px solid var(--cz-hair); border-radius: 16px; display: flex; flex-direction: column; }
@@ -43,12 +43,12 @@
43
43
  .pc-ml > :last-child { border-radius: 0 0 16px 16px; }
44
44
  .pc-lnw { position: relative; border-top: 1px solid var(--cz-hair); }
45
45
  .pc-ln { display: grid; grid-template-columns: 18px minmax(0, 1fr) 132px 250px 72px; align-items: center; gap: 8px; padding: 8px 10px; }
46
- .pc-ln .pc-fi { height: 36px; font-size: 13px; }
47
- .pc-ln .pc-fd { height: 36px; font-size: 12.5px; width: 100%; }
46
+ .pc-ln .pc-fi { height: 36px; font-size: var(--fs-3); }
47
+ .pc-ln .pc-fd { height: 36px; font-size: var(--fs-2); width: 100%; }
48
48
  .pc-ln.sug { background: color-mix(in srgb, var(--pc-progbg) 40%, var(--cz-card)); grid-template-columns: 18px minmax(0, 1fr) 132px 250px 72px; }
49
49
  .pc-ln.sug .pc-fi { border-style: dashed; border-color: color-mix(in srgb, var(--pc-prog) 40%, transparent); }
50
50
  .pc-ln.dn2 .pc-fi { color: var(--cz-ink3); }
51
- button.pc-ln { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 44px; border-top: 1px solid var(--cz-hair); font-size: 13px; }
51
+ button.pc-ln { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 44px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-3); }
52
52
  button.pc-ln.dn { background: var(--bd-row, var(--cz-well)); color: var(--cz-ink3); }
53
53
  button.pc-ln.dn b { flex: 1; font-weight: 700; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
54
54
  button.pc-ln.addl { color: var(--pc-prog); font-weight: 700; width: 100%; }
@@ -56,46 +56,46 @@ button.pc-ln.addl { color: var(--pc-prog); font-weight: 700; width: 100%; }
56
56
  .pc-dm.d { background: var(--pc-prog); border-color: var(--pc-prog); }
57
57
  .pc-dm.n { border-color: var(--pc-prog); box-shadow: 0 0 0 4px var(--pc-progbg); }
58
58
  .pc-spark { color: var(--pc-prog); display: inline-flex; justify-content: center; }
59
- .pc-wch { box-sizing: border-box; height: 36px; width: 100%; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 8px 0 10px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; min-width: 0; }
59
+ .pc-wch { box-sizing: border-box; height: 36px; width: 100%; border-radius: 12px; background: var(--cz-card); border: 1px solid var(--pc-field); padding: 0 8px 0 10px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; min-width: 0; }
60
60
  .pc-wch span:not(.sq):not(.bx) { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
61
61
  .pc-wch.ck { color: var(--cz-ink3); }
62
62
  .pc-wch.gone { color: var(--pc-amber); border-color: color-mix(in srgb, var(--pc-amberdot) 50%, transparent); }
63
63
  .pc .sq { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--pc-prog); flex: none; margin: 0 2px; }
64
64
  .pc .bx { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--cz-ink3); flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
65
65
  .pc .bx.on { background: var(--pc-prog); border-color: var(--pc-prog); color: var(--cz-card); }
66
- .pc-via { font-size: 12px; font-weight: 600; color: var(--cz-ink3); white-space: nowrap; }
66
+ .pc-via { font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); white-space: nowrap; }
67
67
  .pc-ends { display: inline-flex; justify-content: flex-end; gap: 0; }
68
68
  .pc-ib { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
69
69
  .pc-ib.del { color: var(--cz-red); }
70
70
  @media (hover: hover) { .pc-ib:hover { background: var(--cz-well); } }
71
- .pc-mini { height: 30px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; color: var(--cz-ink2); border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; justify-self: start; }
72
- .pc-sugh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--cz-ink2); background: var(--pc-progbg); }
71
+ .pc-mini { height: 30px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; justify-self: start; }
72
+ .pc-sugh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: var(--fs-2); color: var(--cz-ink2); background: var(--pc-progbg); }
73
73
  .pc-sugh > svg { color: var(--pc-prog); flex: none; }
74
74
  .pc-sugh span { flex: 1; }
75
75
  .pc-sugh b { color: var(--pc-prog); }
76
76
 
77
77
  /* the picker (MsB3Pick): a menu under the row's "done when" press */
78
78
  .pc-menu { position: absolute; z-index: 6; right: 52px; top: 44px; width: 330px; background: var(--cz-card); border-radius: 18px; box-shadow: var(--cz-sheet), 0 0 0 1px var(--cz-hair); padding: 6px; display: flex; flex-direction: column; }
79
- .pc-mhd { margin: 0; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); padding: 8px 10px 4px; }
79
+ .pc-mhd { margin: 0; font-size: var(--fs-1); font-weight: 800; color: var(--cz-ink3); padding: 8px 10px 4px; }
80
80
  .pc-mhd.pr { padding-top: 6px; }
81
- .pc-mi { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--cz-ink); width: 100%; }
81
+ .pc-mi { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); width: 100%; }
82
82
  @media (hover: hover) { .pc-mi:hover { background: var(--cz-well); } }
83
83
  .pc-mi .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
84
84
  .pc-mi .bx { width: 16px; height: 16px; border-radius: 5px; }
85
85
  /* which ◆ stage counts for an initiative whose own workflow has two or more (D99): a quiet press under its row, a press moves to the next */
86
86
  .pc-mi.pc-mst { min-height: 32px; padding-left: 36px; font-weight: 600; color: var(--cz-ink3); }
87
87
  .pc-ch.pc-mst { font-weight: 600; color: var(--cz-ink3); }
88
- .pc-mi .r { font-size: 12px; font-weight: 600; color: var(--cz-ink3); }
88
+ .pc-mi .r { font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); }
89
89
  .pc-mi .r.lt { color: var(--pc-amber); font-weight: 700; }
90
90
  .pc-msep { display: block; height: 1px; background: var(--cz-hair); margin: 4px 6px; }
91
91
 
92
92
  /* leaving with changes (MsB5Leave): one question under ← */
93
93
  .pc-ask { position: absolute; z-index: 7; left: 0; top: -4px; width: 280px; background: var(--cz-card); border-radius: 18px; box-shadow: var(--cz-sheet), 0 0 0 1px var(--cz-hair); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
94
- .pc-ask p { margin: 0; font-size: 13.5px; font-weight: 800; }
95
- .pc-ask .t { font-size: 12px; color: var(--cz-ink2); }
94
+ .pc-ask p { margin: 0; font-size: var(--fs-3); font-weight: 800; }
95
+ .pc-ask .t { font-size: var(--fs-2); color: var(--cz-ink2); }
96
96
  .pc-ask .t.bad { color: var(--pc-amber); font-weight: 700; box-shadow: none !important; }
97
97
  .pc-ask .row { display: flex; gap: 8px; margin-top: 4px; }
98
- .pc-sv { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--cz-ink); color: var(--cz-card); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
98
+ .pc-sv { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--cz-ink); color: var(--cz-card); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
99
99
  .pc-sv:disabled { opacity: .45; cursor: default; }
100
100
 
101
101
  /* the Viewer at its side width (560 px on the Board): a milestone takes two lines, the name over its date and what it waits on */
@@ -125,9 +125,9 @@ button.pc-ln.addl { color: var(--pc-prog); font-weight: 700; width: 100%; }
125
125
  .pc-ln .pc-ends { flex: 1 1 100%; }
126
126
  .pc-warn { padding: 0 10px 8px 10px; }
127
127
  .pc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 10px 12px; }
128
- .pc-chips .dw { flex-basis: 100%; margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
129
- .pc-chips .or { font-size: 12px; color: var(--cz-ink3); font-weight: 700; }
130
- .pc-ch { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cz-ink) 14%, transparent); background: var(--cz-card); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; max-width: 100%; }
128
+ .pc-chips .dw { flex-basis: 100%; margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
129
+ .pc-chips .or { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 700; }
130
+ .pc-ch { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cz-ink) 14%, transparent); background: var(--cz-card); font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; max-width: 100%; }
131
131
  .pc-ch .sq { background: transparent; border: 1.5px solid currentColor; }
132
132
  .pc-ch[aria-pressed="true"] { background: var(--pc-progbg); border-color: color-mix(in srgb, var(--pc-prog) 35%, transparent); color: var(--pc-prog); }
133
133
  .pc-ch[aria-pressed="true"] .sq { background: var(--pc-prog); }
@@ -285,7 +285,7 @@ export function liveModel(m, o = {}) {
285
285
  return { ...g, s };
286
286
  });
287
287
  const withData = goals.filter((g) => g.s.length);
288
- if (!goals.length) return { none: 'No goal is recorded for this product yet, so the live page has no numbers. Add a goal in Insights.' };
288
+ if (!goals.length) return { none: 'No goal is recorded for this product yet, so the live page has no numbers. Add a goal in Intelligence.' };
289
289
  const pick = withData.find((g) => g.id === o.pick) || withData[0] || goals[0];
290
290
  const delta = (g) => {
291
291
  if (g.s.length < 2) return { txt: g.s.length ? 'one reading so far' : 'no reading yet', tone: '' };
@@ -322,7 +322,7 @@ function chartSvg(c, hover) {
322
322
  const line = c.pts.map((p, i) => (i ? 'L' : 'M') + x(i) + ' ' + y(p.v)).join('');
323
323
  const tgt = c.target != null ? `<path d="M0 ${y(c.target)}H760" class="rp-tgt"/>` : '';
324
324
  const h = hover != null && c.pts[hover] ? hover : null;
325
- const pop = h != null ? `<div class="rp-pop" style="left:min(${((x(h) / 760) * 100 + 1.5).toFixed(1)}%, calc(100% - 214px))"><b>${esc(dayMon(c.pts[h].at))} · ${esc(c.pts[h].txt)}</b><a class="rp-linkbtn" href="/premium-insights.html" data-r="ins">Open in Insights</a></div>` : '';
325
+ const pop = h != null ? `<div class="rp-pop" style="left:min(${((x(h) / 760) * 100 + 1.5).toFixed(1)}%, calc(100% - 214px))"><b>${esc(dayMon(c.pts[h].at))} · ${esc(c.pts[h].txt)}</b><a class="rp-linkbtn" href="/premium-intelligence.html" data-r="ins">Open in Intelligence</a></div>` : '';
326
326
  return `<div class="rp-chart"><svg viewBox="0 0 760 170" preserveAspectRatio="none" role="img" aria-label="${esc(c.title)}: ${esc(c.pts[0].txt)} to ${esc(c.pts[n - 1].txt)}"><path d="M0 150H760" class="rp-axis"/>${tgt}<path d="${line}" class="rp-line"/>`
327
327
  + (h != null ? `<path d="M${x(h)} 20V150" class="rp-axis"/>` : '') + '</svg>'
328
328
  + c.pts.map((p, i) => `<button type="button" class="rp-pt${i === h ? ' on' : ''}" style="left:${(x(i) / 760) * 100}%;top:${(y(p.v) / 170) * 100}%" data-r="lv|pt|${i}" aria-label="${esc(dayMon(p.at))}: ${esc(p.txt)}"></button>`).join('') + pop + '</div>';
@@ -0,0 +1,17 @@
1
+ /* pm/sort-order.css — the sort menu and the header grips of Home and the Board (pm/sort-order.js; canvas SoAHomePhone, SoADesk). Loaded once
2
+ * by sort-order.js mount. Token variables only (cozy.css). The grip itself and the lifted row are prog-order.css. */
3
+ .so-menu { position: fixed; z-index: 80; background: var(--cz-card); color: var(--cz-ink); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; font-family: var(--cz-font, inherit); }
4
+ .so-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: none; font: inherit; font-size: var(--fs-3); font-weight: 600; color: var(--cz-ink); text-align: left; cursor: pointer; }
5
+ .so-mi span { flex: 1; }
6
+ .so-mi svg { width: 16px; height: 16px; color: var(--cz-blueink); }
7
+ .so-mi:hover, .so-mi.on { background: var(--cz-well); }
8
+ .so-mi:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
9
+ .so-hr { height: 1px; background: var(--cz-hair); margin: 4px 6px; }
10
+ /* a program's or product's header carries the grip in its left gutter (hover on a desktop; a phone holds the header, then drags) */
11
+ [data-po-list="@top"] > [data-po-id] { position: relative; }
12
+ .so-grip { left: 2px; top: 12px; margin-top: 0; }
13
+ .so-g { display: flex; flex-direction: column; position: relative; }
14
+ .so-g > .so-grip { left: 8px; top: 11px; }
15
+ [data-po-list="@top"] > [data-po-id]:hover > * > .so-grip, [data-po-list="@top"] > [data-po-id]:focus-within > * > .so-grip { opacity: 1; }
16
+ [data-po-list="@top"] > [data-po-id] .po-grip:not(.so-grip) { opacity: 0; }
17
+ [data-po-list="@top"] [data-po-id] [data-po-id]:hover .po-grip, [data-po-list="@top"] [data-po-id] [data-po-id]:focus-within .po-grip { opacity: 1; }
@@ -0,0 +1,108 @@
1
+ /* pm/sort-order.js — the sort button, its menu and the hand-arranged order of Home and the Board (batch 14 item 8, option A; canvas
2
+ * SoAHomePhone, SoABoardPhone, SoADesk). ONE layout for both pages and the Timeline: the setting look.order (POST /api/settings), sorted by
3
+ * pm/order-model.js. The drag itself is pm/prog-order.js: a list whose key starts with '@' is one of these lists, not a program's.
4
+ *
5
+ * btnHtml(cls) the icon-only sort button [data-so-btn]; its name says the sort now
6
+ * gripHtml(name) the drag grip of a program's or a product's header (the same grip as a row's)
7
+ * layout() the layout now ({ sort, top, inis }); DEFAULT until load() answers
8
+ * load() reads the saved layout (GET /api/settings)
9
+ * mount(o) once per page. o: { redraw() draws the page again, say(msg, undo) the page's toast }
10
+ * moveIn(list, ids) prog-order.js calls it when a row of an '@' list moved: saves the new order, switches to My order, toast with Undo
11
+ *
12
+ * THE PAGE'S MARKUP: the programs and products sit in [data-po-list="@top"], each [data-po-id="<key>"] (order-model.js keys); the
13
+ * initiatives of a product sit in [data-po-list="@<product key>"], each [data-po-id="<initiative id>"]. Only the PM changes the order. */
14
+ import { pmGet, pmPost } from './http.js';
15
+ import { MODES, DEFAULT, labelOf, arranged } from './order-model.js';
16
+
17
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
18
+ const SV = (d, w = 1.8) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
19
+ const SORT = 'M7 4v16M4 17l3 3 3-3M13 6h8M13 12h6M13 18h4', OK = 'M5 12l5 5 9-10', GRIP = 'M9 6h.01M9 12h.01M9 18h.01M15 6h.01M15 12h.01M15 18h.01';
20
+ const CSS = new URL('./sort-order.css', import.meta.url).href;
21
+
22
+ let L = { ...DEFAULT }, O = null;
23
+ export const layout = () => L;
24
+
25
+ /** The button's name and tooltip now, for a page that draws the button in its HTML (the Board). */
26
+ export const labels = () => ({ aria: 'Sort. Now: ' + labelOf(L.sort), title: 'Sort · ' + labelOf(L.sort), on: L.sort !== 'mine' });
27
+ export const btnHtml = (cls = '') => `<button type="button" class="${esc(cls)}" data-so-btn aria-haspopup="menu" aria-label="Sort. Now: ${esc(labelOf(L.sort))}" title="Sort · ${esc(labelOf(L.sort))}">${SV(SORT)}</button>`;
28
+ export const gripHtml = (name) => `<button type="button" class="po-grip so-grip" data-po-grip aria-label="Move ${esc(name)}. Drag, or press Alt and an arrow key" title="Drag to move">${SV(GRIP, 2.6)}</button>`;
29
+
30
+ export async function load() {
31
+ const r = await pmGet('/api/settings').catch(() => null);
32
+ const s = r && r.ok && Array.isArray(r.settings) ? r.settings.find((x) => x.key === 'look.order') : null;
33
+ if (s && s.value) L = s.value;
34
+ return L;
35
+ }
36
+
37
+ /** Saves the layout; the page draws it. Returns true when it was saved. */
38
+ async function save(next) {
39
+ const r = await pmPost('/api/settings', { key: 'look.order', value: next }).catch(() => null);
40
+ if (!r || !r.ok) { if (O) O.say((r && r.error) || 'The order was not saved.'); return false; }
41
+ L = r.value || next;
42
+ if (O) O.redraw();
43
+ return true;
44
+ }
45
+
46
+ /** What every '@' list on screen shows now, so a drag out of another sort keeps what the PM sees (order-model.js arranged). */
47
+ function seen() {
48
+ const out = { top: [], inis: {} };
49
+ for (const list of document.querySelectorAll('[data-po-list^="@"]')) {
50
+ const k = list.dataset.poList.slice(1), ids = [...list.querySelectorAll('[data-po-id]')].filter((r) => r.closest('[data-po-list]') === list).map((r) => r.dataset.poId);
51
+ if (k === 'top') out.top = ids; else out.inis[k] = ids;
52
+ }
53
+ return out;
54
+ }
55
+
56
+ export async function moveIn(list, ids) {
57
+ const was = L, k = list.dataset.poList.slice(1);
58
+ const ok = await save(arranged(L, k, ids, seen()));
59
+ if (ok && O) O.say(was.sort === 'mine' ? 'Moved · Home and the Board use this order' : 'Moved · now My order on Home and the Board', () => save(was));
60
+ return ok;
61
+ }
62
+
63
+ /* ── the menu ── */
64
+ let MENU = null;
65
+ function closeMenu(focus) {
66
+ if (!MENU) return;
67
+ const b = MENU.btn; MENU.el.remove(); MENU = null;
68
+ b.setAttribute('aria-expanded', 'false');
69
+ if (focus && b.isConnected) b.focus();
70
+ }
71
+ function openMenu(btn) {
72
+ closeMenu();
73
+ const el = document.createElement('div');
74
+ el.className = 'so-menu'; el.setAttribute('role', 'menu'); el.setAttribute('aria-label', 'Sort');
75
+ el.innerHTML = MODES.map(([k, label], i) => `${i === 1 ? '<div class="so-hr" role="separator"></div>' : ''}<button type="button" role="menuitemradio" aria-checked="${L.sort === k}" class="so-mi${L.sort === k ? ' on' : ''}" data-so-mode="${k}"><span>${esc(label)}</span>${L.sort === k ? SV(OK, 2.2) : ''}</button>`).join('');
76
+ document.body.appendChild(el);
77
+ const b = btn.getBoundingClientRect(), w = Math.min(260, window.innerWidth - 24);
78
+ el.style.width = w + 'px';
79
+ el.style.left = Math.max(12, Math.min(window.innerWidth - w - 12, b.right - w)) + 'px';
80
+ el.style.top = Math.min(b.bottom + 6, Math.max(12, window.innerHeight - el.offsetHeight - 12)) + 'px';
81
+ btn.setAttribute('aria-expanded', 'true');
82
+ MENU = { el, btn };
83
+ (el.querySelector('.so-mi.on') || el.querySelector('.so-mi')).focus();
84
+ el.addEventListener('click', async (e) => {
85
+ const m = e.target.closest('[data-so-mode]'); if (!m) return;
86
+ const k = m.dataset.soMode; closeMenu(true);
87
+ if (k !== L.sort) await save({ ...L, sort: k });
88
+ });
89
+ el.addEventListener('keydown', (e) => {
90
+ if (e.key !== 'ArrowDown' && e.key !== 'ArrowUp') return;
91
+ e.preventDefault();
92
+ const items = [...el.querySelectorAll('.so-mi')], i = items.indexOf(document.activeElement);
93
+ items[(i + (e.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length].focus();
94
+ });
95
+ }
96
+
97
+ export function mount(o) {
98
+ O = o;
99
+ if (!document.querySelector(`link[href="${CSS}"]`)) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; document.head.appendChild(l); }
100
+ if (mount.on) return;
101
+ mount.on = true;
102
+ document.addEventListener('click', (e) => {
103
+ const b = e.target.closest('[data-so-btn]');
104
+ if (b) { e.preventDefault(); e.stopPropagation(); if (MENU && MENU.btn === b) closeMenu(); else openMenu(b); return; }
105
+ if (MENU && !e.target.closest('.so-menu')) closeMenu();
106
+ });
107
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && MENU) { e.stopPropagation(); closeMenu(true); } }, true);
108
+ }
@@ -8,11 +8,11 @@ b:has(> .sm-nm), span:has(> .sm-nm) { display: flex; align-items: center; min-wi
8
8
 
9
9
  /* the card under the summary (XsmA1Suggest) */
10
10
  .sm-card { background: var(--sm-progbg); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
11
- .sm-h { display: flex; align-items: center; gap: 8px; color: var(--sm-prog); font-size: 13.5px; }
11
+ .sm-h { display: flex; align-items: center; gap: 8px; color: var(--sm-prog); font-size: var(--fs-3); }
12
12
  .sm-h b { font-weight: 800; }
13
13
  .sm-h.q { color: var(--cz-ink3); }
14
- .sm-why { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cz-ink2); }
15
- .sm-pl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--cz-card); font-size: 13px; color: var(--cz-ink3); font-weight: 600; }
14
+ .sm-why { margin: 0; font-size: var(--fs-2); line-height: 1.5; color: var(--cz-ink2); }
15
+ .sm-pl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--cz-card); font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
16
16
  .sm-pl svg { color: var(--sm-prog); flex: none; }
17
17
  .sm-pl b { color: var(--cz-ink); font-weight: 800; }
18
18
  .sm-acts { display: flex; justify-content: flex-end; gap: 6px; }
@@ -24,34 +24,34 @@ b:has(> .sm-nm), span:has(> .sm-nm) { display: flex; align-items: center; min-wi
24
24
 
25
25
  /* the merged summary (XsmA7Closed) */
26
26
  .sm-gone { background: var(--cz-well); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
27
- .sm-gone p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cz-ink2); }
27
+ .sm-gone p { margin: 0; font-size: var(--fs-2); line-height: 1.5; color: var(--cz-ink2); }
28
28
  .sm-gone .sm-lk { all: unset; cursor: pointer; color: var(--cz-blueink); font-weight: 700; }
29
29
 
30
30
  /* the split editor and the merge check (XsmA2Split, XsmA5MergeCheck) */
31
31
  .sm-v { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; min-height: 100%; box-sizing: border-box; }
32
32
  .sm-nf { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 14px; border-radius: 16px; background: var(--cz-well); color: var(--cz-ink2); }
33
- .sm-nf input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 800; color: var(--cz-ink); outline: none; }
33
+ .sm-nf input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--fs-4); font-weight: 800; color: var(--cz-ink); outline: none; }
34
34
  .sm-sg, .sm-sg2 { display: inline-flex; color: var(--sm-prog); }
35
35
  .sm-sg2 { margin-left: 6px; vertical-align: -1px; }
36
- .sm-keep { margin: 0 4px; font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); line-height: 1.6; }
36
+ .sm-keep { margin: 0 4px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); line-height: 1.6; }
37
37
  .sm-st { display: inline-flex; align-items: center; gap: 2px; position: relative; }
38
38
  .sm-st select { all: unset; cursor: pointer; font: inherit; color: var(--cz-ink2); padding-right: 2px; }
39
39
  .sm-list { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--cz-hair); border-radius: 18px; padding: 6px; }
40
- .sm-gh { display: flex; align-items: center; gap: 10px; padding: 8px 8px 4px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
40
+ .sm-gh { display: flex; align-items: center; gap: 10px; padding: 8px 8px 4px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
41
41
  .sm-gh .n { margin-left: auto; color: var(--cz-blueink); }
42
42
  .sm-pk { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 12px; cursor: pointer; }
43
43
  .sm-pk.on { background: var(--cz-bluebg); }
44
44
  .sm-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
45
- .sm-t b { font-size: 13.5px; font-weight: 700; color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
46
- .sm-t span { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
45
+ .sm-t b { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
46
+ .sm-t span { margin-left: auto; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
47
47
  .sm-cb { all: unset; box-sizing: border-box; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cz-ink3); background: var(--cz-card); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--cz-onsolid); cursor: pointer; }
48
48
  .sm-cb.on { background: var(--cz-blueink); border-color: var(--cz-blueink); }
49
49
  .sm-cb.some { border-color: var(--cz-blueink); }
50
50
  .sm-cb.some i { width: 9px; height: 2px; border-radius: 1px; background: var(--cz-blueink); }
51
51
  .sm-ki { display: inline-flex; color: var(--cz-ink3); }
52
- .sm-q { margin: 8px; font-size: 12.5px; color: var(--cz-ink3); }
52
+ .sm-q { margin: 8px; font-size: var(--fs-2); color: var(--cz-ink3); }
53
53
  .sm-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 2px; }
54
- .sm-cnt { flex: 1; font-size: 13px; font-weight: 700; color: var(--cz-ink2); }
54
+ .sm-cnt { flex: 1; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
55
55
  .sm-foot .sm-ib { width: 44px; height: 44px; box-shadow: 0 0 0 1px var(--cz-hair); }
56
56
  .sm-foot .sm-ib.ok { box-shadow: none; }
57
57
  .sm-mc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cz-hair); }
@@ -64,14 +64,14 @@ b:has(> .sm-nm), span:has(> .sm-nm) { display: flex; align-items: center; min-wi
64
64
  .sm-mc.gone .sm-vi { background: var(--cz-card); color: var(--cz-ink3); }
65
65
  .sm-mid { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -4px 0; color: var(--cz-ink3); }
66
66
  .sm-mid .sm-ib { box-shadow: 0 0 0 1px var(--cz-hair); }
67
- .sm-r { margin: -2px 0 0 4px; font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
67
+ .sm-r { margin: -2px 0 0 4px; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
68
68
  .sm-dfs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
69
69
  .sm-df { display: flex; align-items: center; gap: 10px; }
70
- .sm-dl { width: 90px; font-size: 12.5px; font-weight: 800; color: var(--cz-ink3); }
70
+ .sm-dl { width: 90px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
71
71
  .sm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cz-well); gap: 2px; }
72
- .sm-seg button { all: unset; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--cz-ink3); display: inline-flex; align-items: center; }
72
+ .sm-seg button { all: unset; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); display: inline-flex; align-items: center; }
73
73
  .sm-seg button[aria-checked="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
74
- .sm-dn { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--cz-ink2); line-height: 1.45; }
74
+ .sm-dn { margin: 0; display: flex; gap: 8px; align-items: center; font-size: var(--fs-2); color: var(--cz-ink2); line-height: 1.45; }
75
75
  .sm-dn svg { color: var(--cz-ink3); flex: none; }
76
76
  /* a phone: the Viewer is the full-screen sheet; the touch targets grow to 44 px */
77
77
  @media (max-width: 760px) { .sm-ib { width: 44px; height: 44px; } .sm-pk { min-height: 48px; } .sm-card { border-radius: 18px; } }
@@ -1,6 +1,6 @@
1
1
  /* pm/task-card.css — one task, edited where it opens (task-card.js; canvas OvViewers "Task", over ov-view.css's facts card and where row).
2
2
  * Over cozy.css's tokens, so the dark theme follows. Popovers open right under the control that opened them. */
3
- .tkc { display: flex; flex-direction: column; gap: 16px; padding: 6px 2px 18px; font-size: 14px; color: var(--cz-ink); }
3
+ .tkc { display: flex; flex-direction: column; gap: 16px; padding: 6px 2px 18px; font-size: var(--fs-3); color: var(--cz-ink); }
4
4
  .tkc button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
5
5
  .tkc button:disabled { cursor: default; }
6
6
  .tkc svg { flex: none; }
@@ -10,26 +10,26 @@
10
10
  .tkc .seg { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
11
11
  .tkc .seg button { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--cz-ink3); }
12
12
  .tkc .seg button:hover { color: var(--cz-ink); background: var(--cz-well); }
13
- .tkc .seg button.on { width: auto; padding: 0 12px 0 9px; background: var(--cz-bluebg); color: var(--cz-blueink); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
13
+ .tkc .seg button.on { width: auto; padding: 0 12px 0 9px; background: var(--cz-bluebg); color: var(--cz-blueink); font-weight: 800; font-size: var(--fs-3); box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
14
14
  .tkc .seg button.on.i-done { background: var(--cz-okbg); color: var(--cz-ok); box-shadow: inset 0 0 0 1.5px var(--cz-ok); }
15
15
  .tkc .seg button.on.i-wont, .tkc .seg button.on.i-arch { background: var(--cz-well2); color: var(--cz-ink2); box-shadow: inset 0 0 0 1.5px var(--cz-hair); }
16
16
  .tkc .ovf .anc { margin-left: -8px; }
17
- .tkc .due-b, .tkc .own-b { min-height: 30px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--cz-ink); }
17
+ .tkc .due-b, .tkc .own-b { min-height: 30px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); }
18
18
  .tkc .due-b:hover, .tkc .due-b.open, .tkc .own-b:hover, .tkc .own-b.open { background: var(--cz-well); }
19
19
  .tkc .due-b.open, .tkc .own-b.open { box-shadow: 0 0 0 1.5px var(--cz-blue); }
20
20
  .tkc .due-b.none, .tkc .own-b.ghost { width: 30px; padding: 0; justify-content: center; color: var(--cz-ink3); }
21
- .tkc .ovf .r { font-size: 14px; font-weight: 700; color: var(--cz-ink3); }
21
+ .tkc .ovf .r { font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink3); }
22
22
  .tkc .ovf .r.late { color: var(--cz-risk); }
23
- .tkc .tkc-pop .av, .tkc .own-b .av { width: 22px; height: 22px; border-radius: 7px; background: var(--cz-well); color: var(--cz-ink2); font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
23
+ .tkc .tkc-pop .av, .tkc .own-b .av { width: 22px; height: 22px; border-radius: 7px; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
24
24
  .tkc .own-b:hover .av, .tkc .own-b.open .av { background: var(--cz-card); }
25
25
  .tkc .own-b .av.no { background: transparent; border: 1.5px dashed var(--cz-ink3); box-sizing: border-box; }
26
26
 
27
27
  /* notes, edited in place */
28
- .tkc .nt { border: 0; outline: 0; resize: none; field-sizing: content; min-height: 48px; border-radius: 12px; padding: 6px 8px; margin: 0 -8px; font: inherit; font-size: 14px; line-height: 1.55; color: var(--cz-ink); background: transparent; }
28
+ .tkc .nt { border: 0; outline: 0; resize: none; field-sizing: content; min-height: 48px; border-radius: 12px; padding: 6px 8px; margin: 0 -8px; font: inherit; font-size: var(--fs-3); line-height: 1.55; color: var(--cz-ink); background: transparent; }
29
29
  .tkc .nt::placeholder { color: var(--cz-ink3); }
30
30
  .tkc .nt:hover { background: var(--cz-well); }
31
31
  .tkc .nt:focus { background: var(--cz-card); box-shadow: 0 0 0 1.5px var(--cz-blue), 0 0 0 5px var(--cz-bluebg); }
32
- .tkc .tkc-msg { margin: 0; font-size: 13px; color: var(--cz-red); }
32
+ .tkc .tkc-msg { margin: 0; font-size: var(--fs-3); color: var(--cz-red); }
33
33
  .tkc .tkc-msg:empty { display: none; }
34
34
  .tkc .tkc-ib { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); }
35
35
  .tkc .tkc-ib:hover, .tkc .tkc-ib.open { background: var(--cz-well); }
@@ -38,24 +38,24 @@
38
38
  /* popovers: right under the control */
39
39
  .tkc .tkc-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 8; background: var(--cz-card); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(42,46,53,.4), 0 0 0 1px var(--cz-hair); padding: 6px; display: flex; flex-direction: column; min-width: 220px; max-height: 320px; overflow: auto; }
40
40
  .tkc .tkc-pop.r { left: auto; right: 0; }
41
- .tkc .tkc-pop .o { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; width: 100%; }
41
+ .tkc .tkc-pop .o { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: var(--fs-3); font-weight: 600; width: 100%; }
42
42
  .tkc .tkc-pop .o:hover, .tkc .tkc-pop .o.hl { background: var(--cz-well); }
43
43
  .tkc .tkc-pop .o .k { margin-left: auto; color: var(--cz-blueink); }
44
- .tkc .tkc-pop .h { margin: 6px 10px 2px; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); text-transform: uppercase; letter-spacing: .04em; }
44
+ .tkc .tkc-pop .h { margin: 6px 10px 2px; font-size: var(--fs-1); font-weight: 800; color: var(--cz-ink3); text-transform: uppercase; letter-spacing: .04em; }
45
45
  .tkc .tkc-pop hr { border: 0; border-top: 1px solid var(--cz-hair); margin: 4px 6px; }
46
- .tkc .tkc-new input { width: 100%; box-sizing: border-box; height: 38px; border: 0; border-radius: 10px; padding: 0 10px; margin-bottom: 4px; font: inherit; font-size: 13.5px; background: var(--cz-well); color: var(--cz-ink); outline: 0; }
46
+ .tkc .tkc-new input { width: 100%; box-sizing: border-box; height: 38px; border: 0; border-radius: 10px; padding: 0 10px; margin-bottom: 4px; font: inherit; font-size: var(--fs-3); background: var(--cz-well); color: var(--cz-ink); outline: 0; }
47
47
  .tkc .tkc-new input:focus { box-shadow: 0 0 0 1.5px var(--cz-blue); }
48
48
  .tkc .tkc-dp { width: 300px; padding: 12px; }
49
49
  .tkc .tkc-dp .two { display: flex; gap: 6px; margin-bottom: 10px; }
50
50
  .tkc .tkc-dp .two button { flex: 1; height: 52px; border-radius: 12px; background: var(--cz-well); padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
51
51
  .tkc .tkc-dp .two button.on { background: var(--cz-bluebg); box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
52
- .tkc .tkc-dp .two small { font-size: 11.5px; color: var(--cz-ink3); font-weight: 700; }
53
- .tkc .tkc-dp .two b { font-size: 14px; }
52
+ .tkc .tkc-dp .two small { font-size: var(--fs-1); color: var(--cz-ink3); font-weight: 700; }
53
+ .tkc .tkc-dp .two b { font-size: var(--fs-3); }
54
54
  .tkc .tkc-dp .qk { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
55
- .tkc .tkc-dp .qk button { height: 30px; padding: 0 10px; border-radius: 999px; background: var(--cz-well); font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; }
56
- .tkc .tkc-dp .mh { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; padding: 0 4px 6px; }
57
- .tkc .tkc-dp .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12.5px; }
58
- .tkc .tkc-dp .g .h { color: var(--cz-ink3); font-size: 11px; font-weight: 700; height: 22px; display: flex; align-items: center; justify-content: center; }
55
+ .tkc .tkc-dp .qk button { height: 30px; padding: 0 10px; border-radius: 999px; background: var(--cz-well); font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); display: inline-flex; align-items: center; }
56
+ .tkc .tkc-dp .mh { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-3); font-weight: 800; padding: 0 4px 6px; }
57
+ .tkc .tkc-dp .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: var(--fs-2); }
58
+ .tkc .tkc-dp .g .h { color: var(--cz-ink3); font-size: var(--fs-1); font-weight: 700; height: 22px; display: flex; align-items: center; justify-content: center; }
59
59
  .tkc .tkc-dp .g button { height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; text-align: center; }
60
60
  .tkc .tkc-dp .g button:hover { background: var(--cz-well); }
61
61
  .tkc .tkc-dp .g .m { color: var(--cz-ink3); opacity: .6; }
@@ -83,17 +83,17 @@
83
83
  }
84
84
  /* the ◇ milestone toggle after a divider (feedback batch 11 item 3, canvas XmlA2Flag) */
85
85
  .tkc .seg .vr { width: 1px; height: 20px; background: var(--cz-hair); margin: 0 3px; align-self: center; }
86
- .tkc .seg .ivq-ms.on { width: auto; padding: 0 12px 0 9px; gap: 6px; background: var(--cz-bluebg); color: var(--cz-blueink); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
86
+ .tkc .seg .ivq-ms.on { width: auto; padding: 0 12px 0 9px; gap: 6px; background: var(--cz-bluebg); color: var(--cz-blueink); font-weight: 800; font-size: var(--fs-3); box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
87
87
  /* History (batch 12 items 2 and 3, canvas TpA6): what Claude changed with the PM's ✓; folded, hidden at zero */
88
88
  .tkc .tkc-h { padding-top: 4px; }
89
89
  .tkc .tkc-hh { display: flex; align-items: center; gap: 6px; width: 100%; font: inherit; background: none; border: 0; padding: 6px 0; color: var(--cz-ink); cursor: pointer; text-align: left; }
90
- .tkc .tkc-hh b { font-size: 13px; font-weight: 800; }
91
- .tkc .tkc-hh .n { font-size: 12px; font-weight: 700; color: var(--cz-ink3); }
90
+ .tkc .tkc-hh b { font-size: var(--fs-3); font-weight: 800; }
91
+ .tkc .tkc-hh .n { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
92
92
  .tkc .tkc-hh svg { margin-left: auto; color: var(--cz-ink3); }
93
93
  .tkc .tkc-h ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
94
94
  .tkc .tkc-h li { display: flex; align-items: flex-start; gap: 8px; }
95
95
  .tkc .tkc-h li .w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
96
- .tkc .tkc-h li b { font-size: 13px; font-weight: 700; }
97
- .tkc .tkc-h li small { font-size: 12px; color: var(--cz-ink3); line-height: 1.4; }
96
+ .tkc .tkc-h li b { font-size: var(--fs-3); font-weight: 700; }
97
+ .tkc .tkc-h li small { font-size: var(--fs-2); color: var(--cz-ink3); line-height: 1.4; }
98
98
  .tkc .tkc-hu { width: 30px; height: 30px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
99
99
  .tkc .tkc-hu:hover { background: var(--cz-well); color: var(--cz-ink); }