create-pmos 0.611.0 → 0.612.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 (97) hide show
  1. package/package.json +86 -14
  2. package/payload/KIT-VERSION +2 -2
  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/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-board-test.js +1 -1
  8. package/workspace/briefing-premium-calendar-2-test.js +3 -2
  9. package/workspace/briefing-premium-calendar-3-test.js +1 -1
  10. package/workspace/briefing-premium-calendar-test.js +1 -1
  11. package/workspace/briefing-premium-insights-test.js +1 -1
  12. package/workspace/briefing-premium-test.js +1 -1
  13. package/workspace/changelog.json +85 -0
  14. package/workspace/guide/layout.md +52 -18
  15. package/workspace/guide/programs.md +3 -3
  16. package/workspace/guide/routine.md +28 -13
  17. package/workspace/guide/settings-and-switches.md +1 -1
  18. package/workspace/lib/board-premium.js +12 -4
  19. package/workspace/lib/cos-chat.js +1 -0
  20. package/workspace/lib/doc-library.js +43 -12
  21. package/workspace/lib/doc-path.js +30 -0
  22. package/workspace/lib/engine/boards.js +4 -2
  23. package/workspace/lib/events-place.js +190 -38
  24. package/workspace/lib/events-stated.js +129 -0
  25. package/workspace/lib/initiative-chat.js +1 -0
  26. package/workspace/lib/insights-premium.js +13 -1
  27. package/workspace/lib/library-find.js +162 -0
  28. package/workspace/lib/library-items.js +196 -24
  29. package/workspace/lib/notes.js +3 -0
  30. package/workspace/lib/plan-items.js +17 -3
  31. package/workspace/lib/routes-artefacts.js +5 -2
  32. package/workspace/lib/routes-boards.js +6 -2
  33. package/workspace/lib/routes-doc-sheet.js +1 -0
  34. package/workspace/lib/routes-events-place.js +47 -10
  35. package/workspace/lib/routes-library.js +74 -8
  36. package/workspace/lib/routes-report-setups.js +13 -2
  37. package/workspace/lib/routine-reports.js +36 -4
  38. package/workspace/lib/status-when.js +36 -0
  39. package/workspace/lib/task-items.js +5 -3
  40. package/workspace/package-lock.json +2 -2
  41. package/workspace/package.json +1 -1
  42. package/workspace/premium-vw-meet-test.js +2 -1
  43. package/workspace/premium-vw-notes-test.js +3 -2
  44. package/workspace/public/pm/artefact-kind.js +87 -0
  45. package/workspace/public/pm/bd-ini-panel.js +6 -6
  46. package/workspace/public/pm/bd-span.js +5 -0
  47. package/workspace/public/pm/bd-work.css +62 -0
  48. package/workspace/public/pm/bd-work.js +195 -68
  49. package/workspace/public/pm/cozy-bar.css +11 -0
  50. package/workspace/public/pm/cozy-bar.js +99 -0
  51. package/workspace/public/pm/cozy-day-pick.css +27 -0
  52. package/workspace/public/pm/cozy-day-pick.js +97 -0
  53. package/workspace/public/pm/cozy-ev.css +0 -4
  54. package/workspace/public/pm/cozy-events-view.js +165 -33
  55. package/workspace/public/pm/cozy-events.css +75 -3
  56. package/workspace/public/pm/cozy-events.js +86 -18
  57. package/workspace/public/pm/cozy-goals.css +172 -0
  58. package/workspace/public/pm/cozy-library.css +106 -17
  59. package/workspace/public/pm/cozy-nav.js +2 -3
  60. package/workspace/public/pm/cozy-pick.css +3 -0
  61. package/workspace/public/pm/cozy-pop-work.css +83 -24
  62. package/workspace/public/pm/cozy-pop-work.js +313 -72
  63. package/workspace/public/pm/cozy-popup.css +11 -2
  64. package/workspace/public/pm/cozy-popup.js +67 -9
  65. package/workspace/public/pm/cozy-routine-job.js +203 -0
  66. package/workspace/public/pm/cozy-routine-model.js +139 -31
  67. package/workspace/public/pm/cozy-routine-pop.js +164 -42
  68. package/workspace/public/pm/cozy-routine.css +61 -8
  69. package/workspace/public/pm/cozy-routine.js +207 -28
  70. package/workspace/public/pm/cozy-settings.js +1 -5
  71. package/workspace/public/pm/cozy-status-when.js +48 -0
  72. package/workspace/public/pm/cozy-viewer.js +19 -8
  73. package/workspace/public/pm/cozy-vw-mtg.css +39 -0
  74. package/workspace/public/pm/goals-model.js +205 -0
  75. package/workspace/public/pm/goals-open.js +124 -0
  76. package/workspace/public/pm/home-chat.js +4 -2
  77. package/workspace/public/pm/home-ini.js +8 -6
  78. package/workspace/public/pm/ini-edit.js +3 -1
  79. package/workspace/public/pm/ini-view-model.js +1 -1
  80. package/workspace/public/pm/library-model.js +170 -42
  81. package/workspace/public/pm/library-open.js +8 -5
  82. package/workspace/public/pm/page-chat.js +12 -2
  83. package/workspace/public/pm/pop-work-model.js +199 -41
  84. package/workspace/public/pm/premium-board.js +108 -43
  85. package/workspace/public/pm/premium-goals.js +213 -0
  86. package/workspace/public/pm/premium-library.js +376 -62
  87. package/workspace/public/pm/premium-shell.js +1 -1
  88. package/workspace/public/pm/premium-vw-mtg.js +79 -1
  89. package/workspace/public/pm/scope-chip.js +204 -0
  90. package/workspace/public/premium-events.html +3 -1
  91. package/workspace/public/premium-goals.html +37 -0
  92. package/workspace/public/premium-library.html +15 -7
  93. package/workspace/public/premium-routine.html +2 -0
  94. package/workspace/server.js +2 -1
  95. package/workspace/test-lists/doc-path.json +9 -0
  96. package/workspace/test-lists/goals-place.json +9 -0
  97. package/workspace/test-lists/status-when.json +9 -0
@@ -4,32 +4,51 @@
4
4
  * One page with no views. Left: the dates grouped by what you do about them. Late: what PMOS suggests for each (✓ ✕), and Yes to all. Today: one
5
5
  * press to the act itself. Coming up: a suggestion only where a date is at risk. The later delivery milestones are one quiet line. Right, in
6
6
  * one grey box: a small month (press a day to see only that day; press it again for every day), then Show: the four kinds as the filter, which
7
- * is the key to the marks too. PMOS remembers Show (localStorage 'pmos.events.show'). The + adds your own date (a PM item with a due day).
7
+ * is the key to the marks too. PMOS remembers the types you turned off (localStorage 'pmos.events.hide.v2'; every type is on until pressed).
8
+ * Round 2: the chip beside the title filters by product (the saved product pick), program and project (pm/scope-chip.js); when a filter
9
+ * hides dates one line says so, with Show all. The + adds your own date (a PM item with a due day).
8
10
  *
9
11
  * Reads GET /api/events-place (lib/routes-events-place.js); 202 means a Board is still being read, and the page asks again. Writes only on a
10
12
  * press, through the routes that exist: ✓ on a suggestion is POST /api/boards/tasks/state (Done, Won't do) or /api/boards/tasks/edit (a new
11
13
  * due day) for a PMOS task, and /api/pm-items/* for your own item; each has Undo for a moment. ✕ and Fixed are POST /api/events-place/mark.
12
- * Pressing a row opens its work in the one popup (pm/cozy-popup.js) with Ask PMOS beside it. The markup is pm/cozy-events-view.js (pure). */
14
+ * A date PMOS cannot write (a Jira date, a plan end): ✓ on "Mark it done" or "Drop this date" is a mark too (Events stops listing it), and ✓ on
15
+ * "Ask the owner …" adds that ask as your own item, due today. Late shows its newest five, then one line that opens the rest; the far delivery
16
+ * milestones are one line that opens them. Pressing the month name opens the full calendar in the left column (Month | Week; the back arrow
17
+ * returns to the list; a day shows that day's rows). Pressing a row opens its work in the one popup (pm/cozy-popup.js) with Ask PMOS beside
18
+ * it. The markup is pm/cozy-events-view.js (pure). */
13
19
  import { mountNav } from './cozy-nav.js';
14
20
  import * as POP from './cozy-popup.js';
15
21
  import { pmGet, pmPost } from './http.js';
16
- import { KINDS, listHtml, monthHtml, showHtml, shiftMonth, esc } from './cozy-events-view.js';
22
+ import { TYPES, listHtml, calHtml, monthHtml, showHtml, hiddenHtml, countsOf, shiftMonth, esc } from './cozy-events-view.js';
23
+ import { readPick } from './cozy-pick.js';
24
+ import { scopeChipHtml, openScope, matches, narrowed, scopeWords, whenNames } from './scope-chip.js';
17
25
 
18
- const SHOW_KEY = 'pmos.events.show';
26
+ // round 2: PMOS keeps the types you turned OFF, so every type (and a new one) is on until you press it. The old key kept the kinds that
27
+ // were on, and one stale value hid meetings, tasks and reports for good with nothing on the page to say so: it is dropped.
28
+ const HIDE_KEY = 'pmos.events.hide.v2';
29
+ const SCOPE_KEY = 'pmos.events.scope.v1';
19
30
  const UNDO_MS = 6000;
20
31
  const store = {
21
32
  get(k) { try { return localStorage.getItem(k); } catch { return null; } },
22
33
  set(k, v) { try { if (v == null) localStorage.removeItem(k); else localStorage.setItem(k, v); } catch { /* a private window */ } },
23
34
  };
24
35
  const $ = (s) => document.querySelector(s);
25
- const S = { model: null, show: readShow(), day: null, ym: null, busy: new Set(), tries: 0, timer: 0, toastT: 0 };
36
+ store.set('pmos.events.show', null);
37
+ const S = { model: null, show: readShow(), P: null, sel: readSel(), day: null, ym: null, busy: new Set(), open: new Set(), cal: null, wk: null, tries: 0, timer: 0, toastT: 0 };
26
38
 
27
39
  function readShow() {
28
- const v = store.get(SHOW_KEY);
29
- if (!v) return [...KINDS];
30
- const on = v.split(',').filter((k) => KINDS.includes(k));
31
- return on.length ? on : [...KINDS];
40
+ const off = new Set(String(store.get(HIDE_KEY) || '').split(',').filter(Boolean));
41
+ return TYPES.filter((k) => !off.has(k));
32
42
  }
43
+ function readSel() {
44
+ try { const v = JSON.parse(store.get(SCOPE_KEY) || '{}'); return { programs: Array.isArray(v.programs) ? v.programs : [], projects: Array.isArray(v.projects) ? v.projects : [] }; } catch { return { programs: [], projects: [] }; }
45
+ }
46
+ /** The chip's test for one item, or null when nothing is narrowed. */
47
+ const scopeOk = () => (narrowed(S.P, S.sel) ? (x) => matches(x.scope, S.P, S.sel) : null);
48
+ const filt = () => ({ show: S.show, scopeOk: scopeOk() || undefined });
49
+ async function loadPick() { S.P = await readPick(); draw(); }
50
+ whenNames().then(() => draw()); // the chip's products by their display names
51
+ addEventListener('pp:changed', (e) => { S.P = e.detail && e.detail.products ? e.detail : S.P; draw(); });
33
52
 
34
53
  mountNav('events', document);
35
54
 
@@ -56,14 +75,23 @@ async function load() {
56
75
  /* ── drawing ── */
57
76
  function draw() {
58
77
  const M = S.model; if (!M) return;
59
- $('#evpList').innerHTML = listHtml(M, { show: S.show, day: S.day, busy: S.busy });
60
- $('#evpMonth').innerHTML = monthHtml(S.ym, M.items, { today: M.today, day: S.day, show: S.show });
61
- $('#evpShow').innerHTML = showHtml(S.show);
78
+ const F = filt();
79
+ const groups = { programs: (M.filters && M.filters.programs) || [], projects: (M.filters && M.filters.projects) || [] };
80
+ // the chip names only what the model can still offer: a program or project with no date left is not kept as a hidden pick
81
+ const known = new Set([...groups.programs, ...groups.projects].map((f) => f.id));
82
+ S.sel = { programs: S.sel.programs.filter((t) => known.has(t)), projects: S.sel.projects.filter((t) => known.has(t)) };
83
+ $('#evpScope').innerHTML = scopeChipHtml(S.P, S.sel, { id: 'evpScopeChip', groups });
84
+ $('#evpHid').innerHTML = S.cal ? '' : hiddenHtml(M.items, { ...F, scopeWords: F.scopeOk ? scopeWords(S.P, S.sel, groups) : '' });
85
+ $('#evpList').innerHTML = S.cal ? calHtml(M, { view: S.cal, ym: S.ym, day: S.wk, ...F }) : listHtml(M, { ...F, day: S.day, busy: S.busy, open: S.open });
86
+ $('#evpList').classList.toggle('evp-cal', !!S.cal);
87
+ $('#evpMonth').innerHTML = monthHtml(S.ym, M.items, { today: M.today, day: S.day, ...F });
88
+ $('#evpShow').innerHTML = showHtml(S.show, { counts: countsOf(M.items, { scopeOk: F.scopeOk }), unread: M.unread || {} });
62
89
  const miss = (M.missing || []).length ? 'Not read: ' + M.missing.join(', ') + '.' : '';
63
90
  const note = $('#evpNote'); note.textContent = miss; note.hidden = !miss;
64
91
  const day = $('#evpDay');
65
92
  if (S.day) { day.hidden = false; day.querySelector('b').textContent = new Date(S.day + 'T00:00:00').toLocaleDateString(undefined, { weekday: 'short', day: 'numeric', month: 'short' }); } else day.hidden = true;
66
93
  }
94
+ const addDays = (d, n) => new Date(Date.parse(d + 'T00:00:00Z') + n * 86400000).toISOString().slice(0, 10);
67
95
  const itemOf = (el) => { const r = el && el.closest('[data-key]'); return r && S.model ? S.model.items.find((x) => x.key === r.dataset.key) : null; };
68
96
 
69
97
  /* ── the toast with Undo ── */
@@ -95,6 +123,17 @@ async function apply(x, s) {
95
123
  if (x.own) { const r = await pmPost('/api/pm-items/remove', { id: x.own }); return { ok: r && r.ok !== false, error: r && r.error, undo: () => pmPost('/api/pm-items/undo', { id: x.own }) }; }
96
124
  const r = await setState(x, "Won't do"); return { ok: r && r.ok !== false, error: r && r.error, undo: () => setState(x, was) };
97
125
  }
126
+ if (s.op === 'met' || s.op === 'gone') {
127
+ const r = await pmPost('/api/events-place/mark', { key: x.key, gone: s.op === 'met' ? 'met' : 'dropped' });
128
+ return { ok: r && r.ok !== false, error: r && r.error, undo: () => pmPost('/api/events-place/mark', { key: x.key, gone: false }) };
129
+ }
130
+ if (s.op === 'ask' && s.ask) {
131
+ const r = await pmPost('/api/pm-items/add', { line: s.ask });
132
+ const id = r && r.item && r.item.id;
133
+ if (!id) return { ok: false, error: (r && r.error) || 'The ask could not be added.' };
134
+ await pmPost('/api/pm-items/edit', { id, fields: { due: S.model.today } });
135
+ return { ok: true, undo: () => pmPost('/api/pm-items/remove', { id }) };
136
+ }
98
137
  if (s.op === 'move' && s.to) {
99
138
  const r = await setDue(x, s.to); return { ok: r && r.ok !== false, error: r && r.error, undo: () => setDue(x, x.date) };
100
139
  }
@@ -110,7 +149,8 @@ async function yes(x) {
110
149
  load();
111
150
  }
112
151
  async function yesAll() {
113
- const list = S.model.items.filter((x) => x.group === 'late' && x.suggest && S.show.includes(x.kind) && (!S.day || x.date === S.day));
152
+ const ok = scopeOk();
153
+ const list = S.model.items.filter((x) => x.group === 'late' && x.suggest && S.show.includes(x.type || x.kind) && (!ok || ok(x)) && (!S.day || x.date === S.day));
114
154
  if (!list.length) return;
115
155
  list.forEach((x) => S.busy.add(x.key)); draw();
116
156
  const undos = [];
@@ -150,7 +190,7 @@ function open(x) {
150
190
  if (!x) return;
151
191
  if (x.own && !x.work) return;
152
192
  const w = x.work;
153
- if (!w) return;
193
+ if (!w) { if (x.link) window.open(x.link, '_blank', 'noopener'); return; }
154
194
  const about = { id: w.id, kind: 'initiative', title: w.title || undefined, ws: w.ws || undefined };
155
195
  POP.openWork({ about, open: () => import('./premium-vw-item.js').then((M) => (x.task && x.kind === 'task'
156
196
  ? M.openWorkItem({ kind: 'task', ini: w.id, key: 'task:' + x.task.uid, ws: w.ws, board: w.board })
@@ -181,30 +221,58 @@ async function addSave(e) {
181
221
  document.addEventListener('click', (e) => {
182
222
  const t = e.target;
183
223
  if (!t || !t.closest) return;
184
- const b = t.closest('[data-evp-yes],[data-evp-no],[data-evp-all],[data-evp-fix],[data-evp-done],[data-evp-open],[data-evp-day],[data-evp-month],[data-evp-show],[data-evp-add],[data-evp-clear],.evp-dt');
224
+ const b = t.closest('[data-evp-yes],[data-evp-no],[data-evp-all],[data-evp-fix],[data-evp-done],[data-evp-open],[data-evp-src],[data-evp-day],[data-evp-month],[data-evp-week],[data-evp-show],[data-evp-showall],[data-evp-connect],[data-evp-add],[data-evp-clear],[data-evp-fold],[data-evp-full],[data-evp-view],[data-evp-list],#evpScopeChip,.evp-dt');
185
225
  if (!b) return;
186
226
  const x = itemOf(b);
227
+ if (b.id === 'evpScopeChip') {
228
+ const M = S.model || {}, groups = { programs: (M.filters && M.filters.programs) || [], projects: (M.filters && M.filters.projects) || [] };
229
+ openScope(b, { P: S.P, groups, sel: S.sel, onApply: (next) => {
230
+ S.sel = { programs: next.programs, projects: next.projects };
231
+ store.set(SCOPE_KEY, S.sel.programs.length || S.sel.projects.length ? JSON.stringify(S.sel) : null);
232
+ if (S.P && S.P.products) S.P = { ...S.P, products: S.P.products.map((p) => ({ ...p, on: next.products.includes(p.ws) })) };
233
+ draw();
234
+ } });
235
+ return;
236
+ }
237
+ if (b.matches('[data-evp-src]')) { const k = 'src:' + (x && x.key); if (S.open.has(k)) S.open.delete(k); else S.open.add(k); draw(); return; }
238
+ if (b.matches('[data-evp-connect]')) { import('./cozy-settings.js').then((M) => M.openSettings('connectors')); return; }
239
+ if (b.matches('[data-evp-showall]')) {
240
+ // Show all: every type on, no program or project, and every product in the saved pick
241
+ S.show = [...TYPES]; store.set(HIDE_KEY, null);
242
+ S.sel = { programs: [], projects: [] }; store.set(SCOPE_KEY, null);
243
+ if (S.P && S.P.products && S.P.products.some((p) => !p.on)) import('./cozy-pick.js').then((M) => M.savePick(S.P.products.map((p) => p.ws)));
244
+ draw();
245
+ return;
246
+ }
187
247
  if (b.matches('[data-evp-yes]')) yes(x);
188
248
  else if (b.matches('[data-evp-no]')) no(x);
189
249
  else if (b.matches('[data-evp-all]')) yesAll();
190
250
  else if (b.matches('[data-evp-fix]')) fix(x);
191
251
  else if (b.matches('[data-evp-done]')) done(x);
192
252
  else if (b.matches('[data-evp-open]')) open(x);
193
- else if (b.matches('[data-evp-day]')) { S.day = S.day === b.dataset.evpDay ? null : b.dataset.evpDay; draw(); }
253
+ else if (b.matches('[data-evp-day]')) { const d = b.dataset.evpDay; S.day = S.cal ? d : S.day === d ? null : d; S.cal = null; draw(); }
254
+ else if (b.matches('[data-evp-fold]')) { const k = b.dataset.evpFold; if (S.open.has(k)) S.open.delete(k); else S.open.add(k); draw(); }
255
+ else if (b.matches('[data-evp-full]')) { S.cal = S.cal || 'month'; draw(); const h = $('#evpList h2'); if (h) { h.tabIndex = -1; h.focus(); } }
256
+ else if (b.matches('[data-evp-view]')) { S.cal = b.dataset.evpView === 'week' ? 'week' : 'month'; draw(); }
257
+ else if (b.matches('[data-evp-list]')) { S.cal = null; draw(); }
258
+ else if (b.matches('[data-evp-week]')) { S.wk = addDays(S.wk || S.day || S.model.today, 7 * Number(b.dataset.evpWeek)); draw(); }
194
259
  else if (b.matches('[data-evp-month]')) { S.ym = shiftMonth(S.ym, Number(b.dataset.evpMonth)); draw(); }
195
260
  else if (b.matches('[data-evp-clear]')) { S.day = null; draw(); }
196
261
  else if (b.matches('[data-evp-add]')) addOpen();
197
262
  else if (b.matches('[data-evp-show]')) {
198
263
  const k = b.dataset.evpShow, on = new Set(S.show);
199
264
  if (on.has(k)) on.delete(k); else on.add(k);
200
- S.show = KINDS.filter((x) => on.has(x));
201
- store.set(SHOW_KEY, S.show.length === KINDS.length ? null : S.show.join(',') || 'none');
265
+ S.show = TYPES.filter((x) => on.has(x));
266
+ const off = TYPES.filter((x) => !on.has(x));
267
+ store.set(HIDE_KEY, off.length ? off.join(',') : null);
202
268
  draw();
203
269
  } else if (b.matches('.evp-dt')) { const i = b.querySelector('input'); if (i && typeof i.showPicker === 'function') { e.preventDefault(); try { i.showPicker(); } catch { i.focus(); } } }
204
270
  });
205
271
  document.addEventListener('change', (e) => { const i = e.target; if (i && i.matches && i.matches('[data-evp-date]')) redate(itemOf(i), i.value); });
206
272
  $('#evpAdd').addEventListener('submit', addSave);
207
273
  $('#evpAdd').addEventListener('keydown', (e) => { if (e.key === 'Escape') { e.currentTarget.reset(); e.currentTarget.hidden = true; } });
274
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && S.cal && !e.defaultPrevented && !document.querySelector('.cz-pop:not([hidden])')) { S.cal = null; draw(); } });
208
275
  document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'visible' && S.model) load(); });
209
276
 
210
277
  load();
278
+ loadPick();
@@ -0,0 +1,172 @@
1
+ /* cozy-goals.css — Goals (initiative goals-place, slice 9 of the six-place navigation; boards 8, 13, 31, 32, 33). One container: the white panel;
2
+ * the North Star card and the table sit straight on it, the table is one card with a thin border. Colours are the cozy tokens (light and dark).
3
+ * The popup pages (pm/goals-open.js) use the popup's .pw classes (cozy-pop-work.css); their few extra rules are at the end. */
4
+ .gl-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
5
+ .gl { display: flex; flex-direction: column; gap: 12px; color: var(--cz-ink); }
6
+ .gl-bar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
7
+ .gl-ttl { font-size: var(--fs-panel); font-weight: var(--fw-strong); margin-right: 4px; }
8
+ .gl-sp { flex: 1; }
9
+ .gl-per { height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); color: var(--cz-ink2); white-space: nowrap; }
10
+ .gl-per[hidden] { display: none; }
11
+ .gl-per b { color: var(--cz-ink); font-weight: var(--fw-strong); }
12
+ .gl-per svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
13
+ .gl-mw { position: relative; display: inline-flex; }
14
+ .gl-fdot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 99px; background: var(--cz-blue); }
15
+ .gl-menu { position: absolute; top: 100%; right: 0; z-index: 30; margin-top: 6px; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair), 0 12px 32px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
16
+ .gl-menu[hidden] { display: none; }
17
+ .gl-menu button { all: unset; box-sizing: border-box; padding: 8px 12px; border-radius: 9px; font-size: var(--fs-body); color: var(--cz-ink); cursor: pointer; }
18
+ .gl-menu button:hover, .gl-menu button:focus-visible { background: var(--cz-well); }
19
+ .gl-menu button[aria-checked="true"] { font-weight: var(--fw-strong); }
20
+ .gl-menu button[aria-checked="true"]::after { content: " ✓"; color: var(--cz-blue); }
21
+ .gl-p { display: flex; flex-direction: column; gap: 10px; }
22
+ .gl-p + .gl-p { margin-top: 14px; }
23
+ .gl-ph2 { margin: 0 2px; font-size: var(--fs-section); font-weight: var(--fw-strong); }
24
+
25
+ /* the North Star: dashed while it is a draft or not set, a thin line once it is set */
26
+ .gl-ns { display: flex; align-items: center; gap: 16px; border: 1.5px dashed var(--cz-ink3); border-radius: 20px; padding: 10px 20px; background: var(--cz-card); }
27
+ .gl-ns.set { border: 1px solid var(--cz-hair); }
28
+ .gl-ns .t { flex: 1; min-width: 0; }
29
+ .gl-ns .k { font-size: var(--fs-meta); color: var(--cz-ink3); }
30
+ .gl-ns b { display: block; font-size: var(--fs-panel); line-height: 26px; font-weight: var(--fw-strong); letter-spacing: -.01em; }
31
+ .gl-ns p { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
32
+ .gl-mark { width: 26px; height: 26px; border-radius: 9px; background: var(--cz-bluebg); color: var(--cz-blueink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
33
+ .gl-mark svg, .gl-go svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
34
+ .gl-go { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-blueink); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; cursor: pointer; }
35
+ .gl-go:hover { background: var(--cz-well); }
36
+ .gl-go:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
37
+
38
+ /* the table: Objective › Key result (Actual / target, Left) › Levers › Initiative */
39
+ .gl-card { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 20px; overflow: hidden; }
40
+ .gl-hd, .gl-ob { display: grid; grid-template-columns: 104px minmax(0, 3.3fr) minmax(0, .62fr) minmax(0, 1.1fr); }
41
+ .gl-hd { background: var(--cz-well); font-size: var(--fs-meta); color: var(--cz-ink3); }
42
+ .gl-hd > span { padding: 7px 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
43
+ .gl-hd > span:nth-child(n+3)::before { content: "›"; color: var(--cz-ink3); font-size: var(--fs-section); margin-left: -4px; }
44
+ .gl-hd > span.gl-kh { display: grid; grid-template-columns: minmax(0, 1fr) 112px 78px; gap: 8px; }
45
+ .gl-ob { border-top: 1px solid var(--cz-hair); grid-auto-rows: minmax(42px, auto); }
46
+ /* where a cell sits in its objective: gl-rN starts at key result N, gl-sN spans N of them (no inline style, the conformance gate R28-1) */
47
+ .gl-ob > .gl-r1 { grid-row-start: 1; }
48
+ .gl-ob > .gl-r2 { grid-row-start: 2; }
49
+ .gl-ob > .gl-r3 { grid-row-start: 3; }
50
+ .gl-ob > .gl-r4 { grid-row-start: 4; }
51
+ .gl-ob > .gl-r5 { grid-row-start: 5; }
52
+ .gl-ob > .gl-r6 { grid-row-start: 6; }
53
+ .gl-ob > .gl-r7 { grid-row-start: 7; }
54
+ .gl-ob > .gl-r8 { grid-row-start: 8; }
55
+ .gl-ob > .gl-r9 { grid-row-start: 9; }
56
+ .gl-ob > .gl-r10 { grid-row-start: 10; }
57
+ .gl-ob > .gl-r11 { grid-row-start: 11; }
58
+ .gl-ob > .gl-r12 { grid-row-start: 12; }
59
+ .gl-ob > .gl-r13 { grid-row-start: 13; }
60
+ .gl-ob > .gl-r14 { grid-row-start: 14; }
61
+ .gl-ob > .gl-r15 { grid-row-start: 15; }
62
+ .gl-ob > .gl-r16 { grid-row-start: 16; }
63
+ .gl-ob > .gl-r17 { grid-row-start: 17; }
64
+ .gl-ob > .gl-r18 { grid-row-start: 18; }
65
+ .gl-ob > .gl-r19 { grid-row-start: 19; }
66
+ .gl-ob > .gl-r20 { grid-row-start: 20; }
67
+ .gl-ob > .gl-s1 { grid-row-end: span 1; }
68
+ .gl-ob > .gl-s2 { grid-row-end: span 2; }
69
+ .gl-ob > .gl-s3 { grid-row-end: span 3; }
70
+ .gl-ob > .gl-s4 { grid-row-end: span 4; }
71
+ .gl-ob > .gl-s5 { grid-row-end: span 5; }
72
+ .gl-ob > .gl-s6 { grid-row-end: span 6; }
73
+ .gl-ob > .gl-s7 { grid-row-end: span 7; }
74
+ .gl-ob > .gl-s8 { grid-row-end: span 8; }
75
+ .gl-ob > .gl-s9 { grid-row-end: span 9; }
76
+ .gl-ob > .gl-s10 { grid-row-end: span 10; }
77
+ .gl-ob > .gl-s11 { grid-row-end: span 11; }
78
+ .gl-ob > .gl-s12 { grid-row-end: span 12; }
79
+ .gl-ob > .gl-s13 { grid-row-end: span 13; }
80
+ .gl-ob > .gl-s14 { grid-row-end: span 14; }
81
+ .gl-ob > .gl-s15 { grid-row-end: span 15; }
82
+ .gl-ob > .gl-s16 { grid-row-end: span 16; }
83
+ .gl-ob > .gl-s17 { grid-row-end: span 17; }
84
+ .gl-ob > .gl-s18 { grid-row-end: span 18; }
85
+ .gl-ob > .gl-s19 { grid-row-end: span 19; }
86
+ .gl-ob > .gl-s20 { grid-row-end: span 20; }
87
+ .gl-ob > div { padding: 4px 12px; min-width: 0; font-size: var(--fs-row); line-height: var(--lh-row); }
88
+ .gl-ob > .gl-o { grid-column: 1; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
89
+ .gl-ob > .gl-kc { grid-column: 2; padding: 0 12px; display: flex; align-items: stretch; border-left: 1px solid var(--cz-hair); }
90
+ .gl-ob > .gl-lv { grid-column: 3; border-left: 1px solid var(--cz-hair); }
91
+ .gl-ob > .gl-in { grid-column: 4; border-left: 1px solid var(--cz-hair); }
92
+ .gl-ob.gl-row1 > .gl-wide { grid-column: 2 / span 2; border-left: 1px solid var(--cz-hair); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-top: 10px; padding-bottom: 10px; }
93
+ .gl-wide b { font-weight: var(--fw-row); }
94
+ .gl-wide span { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
95
+ .gl-o b { font-weight: var(--fw-strong); }
96
+ .gl-o span { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
97
+ .gl-o span.rk { color: var(--cz-risk); }
98
+ .gl-o span.late { color: var(--cz-late); }
99
+ .gl-kr { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 112px 78px; align-items: center; gap: 8px; border-top: 1px solid var(--cz-hair); padding: 1px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; }
100
+ .gl-kr.f { border-top-color: transparent; }
101
+ .gl-kr:hover { background: var(--cz-well); }
102
+ .gl-kr:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
103
+ .gl-kr .n { min-width: 0; font-size: var(--fs-row); display: flex; align-items: center; gap: 10px; }
104
+ .gl-kr .n > span { min-width: 0; display: block; }
105
+ .gl-kr .n i { font-style: normal; color: var(--cz-ink3); margin-right: 6px; font-size: var(--fs-meta); }
106
+ .gl-kr .n small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
107
+ .gl-kr .a { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
108
+ .gl-kr .a b { font-weight: var(--fw-row); color: var(--cz-ink); font-size: var(--fs-row); }
109
+ .gl-kr .a.risk b { color: var(--cz-risk); }
110
+ .gl-kr .a.late b { color: var(--cz-late); }
111
+ .gl-kr .l { font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; }
112
+ .gl-ph { color: var(--cz-ink3); opacity: .5; }
113
+ .gl-d { width: 10px; height: 10px; border-radius: 99px; background: var(--cz-dot-q); display: block; flex: none; }
114
+ .gl-d.ok { background: var(--cz-dot-ok); }
115
+ .gl-d.rk { background: var(--cz-dot-risk); }
116
+ .gl-d.rd { background: var(--cz-dot-red); }
117
+ .gl-lv { font-size: var(--fs-meta); color: var(--cz-ink3); display: flex; flex-direction: column; gap: 6px; justify-content: center; }
118
+ .gl-lv b { font-weight: var(--fw-row); color: var(--cz-ink); font-size: var(--fs-row); display: block; }
119
+ .gl-lv span.risk { color: var(--cz-risk); }
120
+ .gl-lv span.late { color: var(--cz-late); }
121
+ .gl-in { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
122
+ .gl-ini { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; }
123
+ .gl-ini:hover { background: var(--cz-well); }
124
+ .gl-ini:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
125
+ .gl-ini b { font-weight: var(--fw-row); }
126
+ .gl-ini span { font-size: var(--fs-meta); color: var(--cz-ink3); display: flex; align-items: center; gap: 6px; line-height: var(--lh-meta); }
127
+ .gl-ini span.late { color: var(--cz-late); }
128
+ .gl-dm { width: 9px; height: 9px; transform: rotate(45deg); border: 1.8px solid var(--cz-ink3); border-radius: 2px; display: inline-block; flex: none; }
129
+ .gl-dm.rd { border-color: var(--cz-dot-red); }
130
+ .gl-n { margin: 4px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
131
+ .gl-n[hidden] { display: none; }
132
+ .gl-n a { color: inherit; }
133
+ .gl-none { padding: 22px 18px; color: var(--cz-ink3); font-size: var(--fs-body); margin: 0; }
134
+ .gl-sk { display: flex; flex-direction: column; gap: 10px; }
135
+ .gl-sk i { display: block; height: 42px; border-radius: 14px; background: var(--cz-well); }
136
+ .gl-sk i:first-child { height: 74px; }
137
+
138
+ /* the popup pages (boards 31, 32, 33) */
139
+ .gl-pg .gl-top p { margin: 4px 0 0; color: var(--cz-ink2); }
140
+ .gl-pg .gl-top.gl-set { border-color: var(--cz-hair); }
141
+ .gl-fs { display: flex; flex-direction: column; }
142
+ .gl-f { border-top: 1px solid var(--cz-hair); padding: 10px 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-row); }
143
+ .gl-f:first-child { border-top: 0; }
144
+ .gl-f small, .gl-f span { font-size: var(--fs-meta); color: var(--cz-ink3); }
145
+ .gl-f b { font-weight: var(--fw-strong); }
146
+ .gl-src .gl-srcv { display: inline-flex; align-items: center; gap: 12px; flex: none; margin-left: 12px; }
147
+ .gl-src small { font-size: var(--fs-meta); }
148
+ .gl-src small.grey { color: var(--cz-ink3); }
149
+ .gl-src small.warn { color: var(--cz-late); }
150
+ .gl-src svg { color: var(--cz-ink3); }
151
+ .gl-sg { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--cz-hair); padding-top: 12px; }
152
+ .gl-sg > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
153
+ .gl-sg b { font-weight: var(--fw-strong); }
154
+ .gl-sg span { font-size: var(--fs-meta); color: var(--cz-ink3); }
155
+
156
+ @media (max-width: 900px) {
157
+ .gl-hd, .gl-ob { grid-template-columns: 88px minmax(0, 1fr) minmax(0, .9fr); }
158
+ .gl-hd > span:nth-child(3), .gl-ob > .gl-lv { display: none; }
159
+ .gl-ob > .gl-in { grid-column: 3; }
160
+ .gl-hd > span.gl-kh, .gl-kr { grid-template-columns: minmax(0, 1fr) 84px; }
161
+ .gl-hd > span.gl-kh > span:nth-child(3), .gl-kr .l { display: none; }
162
+ }
163
+ @media (max-width: 760px) {
164
+ .gl-bar { flex-wrap: wrap; }
165
+ .gl-ttl { display: none; }
166
+ .gl-per span { display: none; }
167
+ .gl-hd { display: none; }
168
+ .gl-ob, .gl-ob.gl-row1 { display: flex; flex-direction: column; }
169
+ .gl-ob > div, .gl-ob > .gl-kc, .gl-ob > .gl-in, .gl-ob.gl-row1 > .gl-wide { border-left: 0; padding: 4px 14px; }
170
+ .gl-kr { grid-template-columns: minmax(0, 1fr) auto; }
171
+ .gl-ns { padding: 10px 14px; }
172
+ }
@@ -1,36 +1,125 @@
1
- /* cozy-library.css — Library (initiative library-place, slice 7 of the six-place navigation; board StLibrary). One container: the white panel;
2
- * the table is one card with a thin border; the title row's controls sit straight on the panel. Colours are the cozy tokens (light and dark). */
1
+ /* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2; board StLibrary). One container:
2
+ * the white panel; the catalogue is one card with a thin border and set column widths (Name up to 560 px), so a wide screen does not stretch
3
+ * the Name; at 1600 px and wider the record preview stands at its right. The filter chips are the product chip's shape (cozy-pick.css).
4
+ * Colours are the cozy tokens (light and dark). */
3
5
  .lb-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
4
6
  .lb-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
5
- .lb-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 300px; max-width: 46vw; padding: 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); box-sizing: border-box; flex: none; }
7
+ .lb-fl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
8
+ .lb-chip.on, .lb-fl .scp-chip:not([aria-label$=": all"]) { background: var(--cz-bluebg); color: var(--cz-blueink); }
9
+ .lb-chip .ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
10
+ .lb-chip svg, .lb-ib svg, .lb-sg svg, .lb-s svg, .lb-fx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
11
+ .lb-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 380px; max-width: 46vw; padding: 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); box-sizing: border-box; flex: none; }
6
12
  .lb-find svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
7
13
  .lb-find input { all: unset; flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); color: var(--cz-ink); }
14
+ .lb-find input:focus, .lb-find input:focus-visible { outline: none; box-shadow: none; }
8
15
  .lb-find input::placeholder { color: var(--cz-ink3); }
9
16
  .lb-find input::-webkit-search-cancel-button { cursor: pointer; }
10
17
  .lb-find:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
11
- .lb-t { border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
12
- .lb-r { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 210px) minmax(120px, 230px) 110px; align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); }
18
+ .lb-tune svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
19
+ .lb-hid { margin: 8px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
20
+ .lb-hid:empty { display: none; }
21
+ .lb-hid button { all: unset; cursor: pointer; color: var(--cz-blueink); font-weight: var(--fw-strong); }
22
+ .lb-hid button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
23
+
24
+ /* the catalogue: set column widths */
25
+ .lb-wrap { display: flex; align-items: flex-start; gap: 20px; margin-top: 12px; }
26
+ .lb-main { flex: 0 1 auto; min-width: 0; max-width: 100%; }
27
+ .lb-t { width: fit-content; max-width: 100%; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
28
+ .lb-r { --lb-cols: 28px minmax(220px, 560px) 140px 130px minmax(120px, 230px) 110px 96px 76px;
29
+ display: grid; grid-template-columns: var(--lb-cols); align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); box-sizing: border-box; }
13
30
  .lb-r:last-child { box-shadow: none; }
14
- button.lb-r { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 210px) minmax(120px, 230px) 110px; align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; width: 100%; cursor: pointer; box-shadow: inset 0 -1px 0 var(--cz-hair); }
15
- button.lb-r:hover { background: var(--cz-well); }
16
- button.lb-r:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
31
+ .lb-i { cursor: pointer; }
32
+ .lb-i:hover { background: var(--cz-well); }
33
+ .lb-i.on { background: var(--cz-bluebg); }
34
+ .lb-i.sub .n { padding-left: 18px; }
35
+ .lb-i.sub .n .lb-nb { font-weight: var(--fw-regular); }
17
36
  .lb-h { min-height: 38px; background: var(--cz-well2, var(--cz-well)); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); }
18
37
  .lb-g { min-height: 34px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); background: var(--cz-well); }
19
- .lb-g > div { grid-column: 1 / -1; }
38
+ .lb-g > * { grid-column: 1 / -1; }
39
+ .lb-g em, .lb-s em { font-style: normal; font-weight: var(--fw-regular); margin-left: 6px; }
40
+ .lb-s { background: var(--cz-card); }
41
+ .lb-s button { all: unset; grid-column: 1 / -1; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--cz-ink2); font-size: var(--fs-body); }
42
+ .lb-s button b { font-weight: var(--fw-strong); color: var(--cz-ink); }
43
+ .lb-s button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 6px; }
20
44
  .lb-r .ic { color: var(--cz-ink3); display: grid; place-items: center; }
21
- .lb-r .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
22
- .lb-r .n { font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
45
+ .lb-r .ic svg, .lb-mr .ic svg, .lb-pvh .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
46
+ .lb-r .n { display: flex; align-items: center; gap: 6px; min-width: 0; }
47
+ .lb-nb { all: unset; cursor: pointer; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
48
+ .lb-nb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
49
+ .lb-old { all: unset; cursor: pointer; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
50
+ .lb-old[aria-expanded="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
51
+ .lb-ib { all: unset; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--cz-ink3); }
52
+ .lb-ib:hover { background: var(--cz-well); color: var(--cz-ink); }
53
+ .lb-ib:focus-visible, .lb-old:focus-visible, .lb-sg:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
54
+ .lb-sp { color: var(--cz-blueink); width: 22px; height: 22px; }
55
+ .lb-nm input { all: unset; flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--cz-well); box-shadow: inset 0 0 0 1px var(--cz-hair); font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--cz-ink); }
56
+ .lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--cz-blueink); }
57
+ .lb-sg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
23
58
  .lb-r .c { color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
24
59
  .lb-r .c.q { color: var(--cz-ink3); }
25
- .lb-n { margin: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink3); }
60
+ .lb-n { margin: 8px 6px 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
26
61
  .lb-sk .lb-r i { display: block; height: 10px; border-radius: 6px; background: var(--cz-well); width: 70%; }
27
62
  .lb-none { padding: 28px 18px; color: var(--cz-ink3); font-size: var(--fs-body); }
63
+
64
+ /* search by meaning: under the title matches */
65
+ .lb-mh { margin: 22px 4px 4px; font-size: var(--fs-section); font-weight: var(--fw-strong); color: var(--cz-ink); line-height: var(--lh-section); }
66
+ .lb-mh em { font-style: normal; color: var(--cz-ink3); font-weight: var(--fw-regular); margin-left: 4px; }
67
+ .lb-mq { margin: 6px 4px; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
68
+ .lb-m { width: min(100%, 980px); }
69
+ .lb-mr { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 12px 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); cursor: pointer; }
70
+ .lb-mr:last-child { box-shadow: none; }
71
+ .lb-mr:hover { background: var(--cz-well); }
72
+ .lb-mr .ic { color: var(--cz-ink3); padding-top: 2px; }
73
+ .lb-mr small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
74
+ .lb-mr p { margin: 4px 0 0; color: var(--cz-ink2); line-height: var(--lh-body); }
75
+ .lb-mr p b { color: var(--cz-ink); font-weight: var(--fw-strong); }
76
+
77
+ /* the menus: Kind (families open to their kinds), State, Group by */
78
+ .lb-cw { position: relative; display: inline-flex; flex: none; }
79
+ .lb-menu { position: absolute; left: 0; top: calc(100% + 8px); }
80
+ .lb-cwr .lb-menu { left: auto; right: 0; }
81
+ .lb-menu .ppk-mi { min-height: 44px; }
82
+ .lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap: 8px; }
83
+ .lb-menu .ppk-nm em { font-weight: var(--fw-regular); }
84
+ .lb-fam { display: flex; align-items: center; }
85
+ .lb-fam .ppk-mi { flex: 1; }
86
+ .lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--cz-ink3); }
87
+ .lb-fx:hover, .lb-fx:focus-visible { background: var(--cz-well); }
88
+ .lb-kmi { padding-left: 26px; }
89
+ .lb-pl { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
90
+ .lb-pl button { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--cz-ink2); background: var(--cz-well); }
91
+ .lb-pl button.on { background: var(--cz-ink); color: var(--cz-card); font-weight: var(--fw-strong); }
92
+ .lb-pl button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
93
+ .lb-gm { width: 300px; }
94
+
95
+ /* the record preview: 1600 px and wider */
96
+ .lb-pv { flex: 0 0 360px; position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink); font-size: var(--fs-body); }
97
+ .lb-pv[hidden] { display: none; }
98
+ .lb-pvh { display: flex; align-items: flex-start; gap: 8px; }
99
+ .lb-pvh .ic { color: var(--cz-ink3); padding-top: 3px; }
100
+ .lb-pvh h2 { flex: 1; margin: 0; font-size: var(--fs-panel); font-weight: var(--fw-strong); line-height: var(--lh-panel); }
101
+ .lb-pv dl { margin: 12px 0 0; display: grid; gap: 6px; }
102
+ .lb-pv dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
103
+ .lb-pv dt { color: var(--cz-ink3); font-size: var(--fs-meta); line-height: var(--lh-body); }
104
+ .lb-pv dd { margin: 0; color: var(--cz-ink); overflow-wrap: anywhere; }
105
+ .lb-pv h3 { margin: 16px 0 6px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); }
106
+ .lb-pvl p { margin: 0 0 6px; color: var(--cz-ink2); line-height: var(--lh-body); }
107
+ .lb-pv ul { margin: 0; padding-left: 18px; color: var(--cz-ink2); }
108
+ .lb-pv li { margin: 0 0 4px; }
109
+ .lb-pv li .lb-nb { font-weight: var(--fw-regular); white-space: normal; }
110
+ .lb-pv small { color: var(--cz-ink3); font-size: var(--fs-meta); }
111
+ @media (max-width: 1599px) { .lb-pv { display: none; } }
112
+
113
+ @media (max-width: 1180px) {
114
+ .lb-r { --lb-cols: 28px minmax(180px, 1fr) 120px 110px minmax(100px, 170px) 76px; }
115
+ .lb-r > :nth-child(6), .lb-r > :nth-child(7) { display: none; }
116
+ }
28
117
  @media (max-width: 760px) {
29
118
  .lb-bar { flex-wrap: wrap; }
30
- .lb-bar .cz-seg { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
31
- .lb-bar .cz-seg button { flex: none; white-space: nowrap; }
119
+ .lb-fl { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
32
120
  .lb-find { order: 3; width: 100%; max-width: none; margin-left: 0; }
33
- .lb-r, button.lb-r { grid-template-columns: 24px minmax(0, 1fr) 72px; }
34
- .lb-r > :nth-child(3), .lb-r > :nth-child(4) { display: none; }
35
- .lb-g { grid-template-columns: 1fr; }
121
+ .lb-t { width: 100%; }
122
+ .lb-r { --lb-cols: 24px minmax(0, 1fr) 72px; }
123
+ .lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: 28px 28px 0 0; padding: 18px 12px 28px; }
124
+ .lb-r > :nth-child(n+3):not(:last-child) { display: none; }
36
125
  }
@@ -37,7 +37,7 @@ import { mountToastFaces, loadPrefs } from './cozy-adler.js';
37
37
  import { pmPost } from './http.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
38
38
 
39
39
  /* The six places (slice 1). A place shows once it has an href: Events, Library and Routine get theirs when their slice ships. Until then
40
- * Today is today.html (slice 5; Home before it), Work is the Board and Goals is Intelligence; the keys stay the pages' own (home, board, insights). */
40
+ * Today is today.html (slice 5; Home before it), Work is the Board and Goals is premium-goals.html (slice 9; Intelligence before it); the keys stay the pages' own (home, board, insights). */
41
41
  const RAIL_ICON = {
42
42
  today: 'M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4',
43
43
  work: 'M5.5 5h13a1.5 1.5 0 0 1 0 3h-13a1.5 1.5 0 0 1 0-3zM5.5 11h8a1.5 1.5 0 0 1 0 3h-8a1.5 1.5 0 0 1 0-3zM5.5 17h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3z',
@@ -49,7 +49,7 @@ const RAIL_ICON = {
49
49
  const ALL_PLACES = [
50
50
  { key: 'home', label: 'Today', href: '/today.html', d: RAIL_ICON.today }, // slice 5: Today is its own page (Home with data-today)
51
51
  { key: 'board', label: 'Work', href: '/premium-board.html', d: RAIL_ICON.work },
52
- { key: 'insights', label: 'Goals', href: '/premium-intelligence.html', d: RAIL_ICON.goals },
52
+ { key: 'insights', label: 'Goals', href: '/premium-goals.html', d: RAIL_ICON.goals }, // slice 9 (goals-place): Goals is its own page; Intelligence stays for charts
53
53
  { key: 'events', label: 'Events', href: '/premium-events.html', d: RAIL_ICON.events },
54
54
  { key: 'library', label: 'Library', href: '/premium-library.html', d: RAIL_ICON.library }, // slice 7 (library-place)
55
55
  { key: 'routine', label: 'Routine', href: '/premium-routine.html', d: RAIL_ICON.routine }, // slice 8 shipped: Routine is a place
@@ -138,7 +138,6 @@ export function mountNav(here, doc = document, opts = {}) {
138
138
  addCss(doc);
139
139
  { const u = new URLSearchParams(location.search).get('theme'); setTheme(u || themePick(), doc, { keep: false }); } // ?theme= shows that theme and is not kept
140
140
  if (typeof matchMedia === 'function') { const mq = matchMedia('(prefers-color-scheme: dark)'); const f = () => { if (themePick() === 'auto') setTheme('auto', doc); }; if (mq.addEventListener) mq.addEventListener('change', f); }
141
- try { if (localStorage.getItem('pmos.cz.viewer') === 'popup') doc.body.classList.add('ev-vw-popup'); } catch { /* no storage */ }
142
141
  const w = doc.createElement('div'); w.className = 'cz-fabw'; w.id = 'czNav';
143
142
  w.innerHTML = '<div class="ev-scrim" id="czScrim" hidden></div>'
144
143
  + `<nav class="cz-fabm ev-menu" id="czMenu" aria-label="Menu" hidden></nav>`
@@ -42,3 +42,6 @@
42
42
  /* the chip with names (Work and Goals, slice 1): the full product name, then "+2" in grey */
43
43
  .ppk-nmc { padding: 0 2px 0 9px; color: var(--cz-ink); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
44
44
  .ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
45
+ /* pm/scope-chip.js: the menu's three parts (Products, Programs, Projects) */
46
+ .scp-h { margin: 8px 10px 4px; font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
47
+ .scp-menu:not(.sheet) { left: var(--fr-menu-x, 12px); top: var(--fr-menu-y, 64px); }