create-pmos 0.395.0 → 0.397.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 (100) hide show
  1. package/package.json +25 -30
  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/scripts/nine-stages.js +49 -20
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/briefing-premium-adddoc-test.js +20 -40
  8. package/workspace/briefing-premium-board-test.js +145 -107
  9. package/workspace/briefing-premium-calendar-2-test.js +5 -2
  10. package/workspace/briefing-premium-calendar-3-test.js +13 -8
  11. package/workspace/briefing-premium-calendar-test.js +16 -5
  12. package/workspace/briefing-premium-initiative-test.js +50 -41
  13. package/workspace/briefing-premium-insights-test.js +104 -85
  14. package/workspace/briefing-premium-metrics-test.js +11 -32
  15. package/workspace/briefing-premium-sources-test.js +42 -21
  16. package/workspace/briefing-premium-test.js +112 -98
  17. package/workspace/briefing-premium-work-test.js +78 -64
  18. package/workspace/changelog.json +24 -0
  19. package/workspace/fixtures/board-premium-facts.js +2 -1
  20. package/workspace/fixtures/board-premium-jira.js +28 -0
  21. package/workspace/fixtures/initiative-premium-facts.js +2 -1
  22. package/workspace/fixtures/initiatives-api/list.json +30 -42
  23. package/workspace/fixtures/initiatives-api/roadmap.json +40 -56
  24. package/workspace/fixtures/initiatives-api/sheet.json +10 -14
  25. package/workspace/fixtures/insights-premium-facts.js +11 -2
  26. package/workspace/guide/briefing-premium.md +3 -1
  27. package/workspace/guide/index.md +1 -0
  28. package/workspace/guide/lifecycle.md +51 -0
  29. package/workspace/home-shot.js +38 -0
  30. package/workspace/lib/board-premium.js +92 -1
  31. package/workspace/lib/engine/boards.js +15 -14
  32. package/workspace/lib/engine/nine-stages.js +49 -20
  33. package/workspace/lib/engine/signals/detectors.js +13 -11
  34. package/workspace/lib/insights-premium.js +78 -1
  35. package/workspace/lib/routes-board-premium.js +3 -2
  36. package/workspace/lib/routes-initiatives.js +1 -1
  37. package/workspace/lib/routes-insights-premium.js +8 -1
  38. package/workspace/lib/vendor/scripts/nine-stages.js +49 -20
  39. package/workspace/package-lock.json +2 -2
  40. package/workspace/package.json +1 -1
  41. package/workspace/premium-agreed-viewer-shots.js +76 -0
  42. package/workspace/premium-board-actions-test.js +2 -0
  43. package/workspace/premium-chat-chart-tab-test.js +6 -5
  44. package/workspace/premium-chat-context-test.js +8 -6
  45. package/workspace/premium-chat-goal-view-test.js +9 -7
  46. package/workspace/premium-chat-notes-test.js +3 -2
  47. package/workspace/premium-chat-report-tab-test.js +8 -2
  48. package/workspace/premium-chat-term-test.js +3 -1
  49. package/workspace/premium-chat-viewer-test.js +23 -17
  50. package/workspace/premium-core-doc-issue-test.js +2 -0
  51. package/workspace/premium-html-viewer-test.js +4 -2
  52. package/workspace/premium-phone-card-test.js +1 -0
  53. package/workspace/premium-phone-room-test.js +16 -11
  54. package/workspace/premium-report-read-test.js +1 -1
  55. package/workspace/premium-vw-backlog-test.js +2 -0
  56. package/workspace/premium-vw-cal-test.js +9 -4
  57. package/workspace/premium-vw-doc-test.js +1 -1
  58. package/workspace/premium-vw-item-test.js +1 -0
  59. package/workspace/premium-vw-jira-test.js +4 -1
  60. package/workspace/premium-vw-notes-test.js +2 -1
  61. package/workspace/premium-vw-rec-test.js +3 -2
  62. package/workspace/premium-vw-slides-test.js +2 -2
  63. package/workspace/premium-work-depth-test.js +7 -3
  64. package/workspace/public/pm/bd-span.js +120 -0
  65. package/workspace/public/pm/bd-stages.js +33 -0
  66. package/workspace/public/pm/cozy-board.css +373 -0
  67. package/workspace/public/pm/cozy-home.css +152 -0
  68. package/workspace/public/pm/cozy-home.js +170 -0
  69. package/workspace/public/pm/cozy-initiative.css +138 -0
  70. package/workspace/public/pm/cozy-insights.css +292 -0
  71. package/workspace/public/pm/cozy-nav.js +54 -0
  72. package/workspace/public/pm/cozy-viewer.css +143 -0
  73. package/workspace/public/pm/cozy.css +172 -0
  74. package/workspace/public/pm/lifecycle-lens-model.js +45 -27
  75. package/workspace/public/pm/lifecycle-lens.js +22 -11
  76. package/workspace/public/pm/premium-board.js +329 -67
  77. package/workspace/public/pm/premium-brief.js +1 -1
  78. package/workspace/public/pm/premium-chat.js +17 -10
  79. package/workspace/public/pm/premium-initiative-head.js +138 -0
  80. package/workspace/public/pm/premium-initiative.js +28 -4
  81. package/workspace/public/pm/premium-insights.js +530 -244
  82. package/workspace/public/pm/premium-shell.js +40 -10
  83. package/workspace/public/pm/premium-viewer.js +5 -0
  84. package/workspace/public/pm/premium-vw-jira-model.js +22 -5
  85. package/workspace/public/pm/premium-vw-jira.css +11 -0
  86. package/workspace/public/pm/premium-vw-jira.js +11 -4
  87. package/workspace/public/pm/premium-vw-rec.js +5 -2
  88. package/workspace/public/pm/premium-wide.css +30 -0
  89. package/workspace/public/pm/premium-work.js +18 -8
  90. package/workspace/public/pm/premium.js +19 -6
  91. package/workspace/public/premium-board.html +83 -47
  92. package/workspace/public/premium-chat.html +7 -32
  93. package/workspace/public/premium-initiative.html +16 -8
  94. package/workspace/public/premium-insights.html +83 -43
  95. package/workspace/public/premium-work.html +6 -71
  96. package/workspace/public/premium.html +62 -15
  97. package/workspace/public/vendor/nunito-var.woff2 +0 -0
  98. package/workspace/server.js +7 -0
  99. package/workspace/test-lists/premium-agreed-viewer.json +9 -0
  100. package/workspace/third-party/README.md +1 -0
@@ -0,0 +1,170 @@
1
+ /**
2
+ * cozy-home.js — Home's own parts (initiative premium-agreed-design, H1 and H2; planning/prd/premium-agreed-design-prd.md).
3
+ *
4
+ * Home is the desk: one list on the left in groups, the chat in the middle and the Viewer on the right (a popup on a phone). The groups reuse the
5
+ * cards the Briefing and My work drew (premium.js, premium-work.js); this file adds what is new on Home:
6
+ * - the summary line ("Good afternoon. 3 things need you."), drawn from the Needs you count premium.js reads
7
+ * - the meeting line: only the current or next meeting, with +N for the rest of the day, which opens the calendar in the Viewer
8
+ * - the Initiatives group: each open initiative with its step on the lifecycle and what finishes it, read from GET /api/board-premium
9
+ * - the Sessions group's count line, and on a phone the button that opens the session list
10
+ * - a fold on each group, remembered on this device
11
+ * It writes nothing. A press opens a conversation or a page; every write stays a press in the dialog it opens.
12
+ */
13
+ import { mountNav } from './cozy-nav.js';
14
+ import { $, $$, esc, store, openDlg, loadThread, openChatPage, openSessions, openSessionRow, homeDock, turnA, ptx, kv } from './premium-shell.js';
15
+
16
+ mountNav('home');
17
+
18
+ /* ── the lifecycle: six stages and two milestones (◆). Ideate counts for Discover, Strategize for Prioritize (PRD L1). ── */
19
+ export const STEPS = [
20
+ { key: 'triage', label: 'Triage', next: 'the BRD' },
21
+ { key: 'discover', label: 'Discover', next: 'the PRD' },
22
+ { key: 'plan', label: 'Plan', next: 'scope, timeline and work breakdown; your Commit pushes the tickets to Jira' },
23
+ { key: 'prioritize', label: 'Prioritize', next: 'ranked on the roadmap' },
24
+ { key: 'build', label: 'Build', next: 'the features delivered, tracked in Jira' },
25
+ { key: 'deliver', label: 'Deliver', ms: true, next: 'the release shipped, with your sign-off' },
26
+ { key: 'monitor', label: 'Monitor', next: 'the outcome report' },
27
+ { key: 'evaluate', label: 'Evaluate', ms: true, next: 'your call: keep, iterate or stop' },
28
+ ];
29
+ const OLD = { ideate: 'discover', strategize: 'prioritize', strategise: 'prioritize' };
30
+ /** The step a stage name stands for, or null when the name is not one of the eight (the raw name is then shown as it is). */
31
+ export function stepOf(stage) {
32
+ const k = String(stage || '').trim().toLowerCase().replace(/^◆\s*/, '');
33
+ const key = OLD[k] || k;
34
+ const i = STEPS.findIndex((s) => s.key === key);
35
+ return i < 0 ? null : { ...STEPS[i], i };
36
+ }
37
+ /** The eight-step ladder as cz-ladder marks: done, now, and the milestones as diamonds. */
38
+ export function ladderHtml(i) {
39
+ return `<span class="cz-ladder" aria-hidden="true">${STEPS.map((s, j) => `<i class="${[s.ms ? 'ms' : '', j < i ? 'done' : j === i ? 'now' : ''].filter(Boolean).join(' ')}"></i>`).join('')}</span>`;
40
+ }
41
+
42
+ /* ── the summary line ── */
43
+ export function greeting(d = new Date()) { const h = d.getHours(); return h < 5 ? 'Good evening' : h < 12 ? 'Good morning' : h < 18 ? 'Good afternoon' : 'Good evening'; }
44
+ export function summaryText(n, d = new Date()) {
45
+ if (n == null) return 'Reading what needs you.';
46
+ return greeting(d) + '. ' + (n === 0 ? 'Nothing needs you.' : n + (n === 1 ? ' thing needs you.' : ' things need you.'));
47
+ }
48
+ export function drawSummary(n) { const el = $('#hSum'); if (el) el.textContent = summaryText(n); }
49
+
50
+ /* ── the meeting line: the current or next meeting only; +N opens the calendar in the Viewer ── */
51
+ const hm = (iso) => { const d = new Date(iso); return Number.isNaN(d.getTime()) ? '' : String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0'); };
52
+ const CLOCK = '<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>';
53
+ const NOTES = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 13h7M9 17h5"/></svg>';
54
+ /** The line's words from the brief-page day: { meeting, more, text, aria } or null when no meeting is left today. */
55
+ export function meetLineOf(P) {
56
+ const t = P && P.ok && Array.isArray(P.today) ? P.today : [];
57
+ const left = t.filter((m) => m && m.state !== 'past');
58
+ const m = left.find((x) => x.state === 'now') || left.find((x) => x.state === 'next') || left[0];
59
+ if (!m) return null;
60
+ const todo = (m.before || []).filter((x) => x && !x.done).length;
61
+ const note = m.state === 'now' ? 'on now' : todo ? todo + ' to do before' : (m.prepared || []).length ? 'prep ready' : '';
62
+ const more = left.length - 1;
63
+ return { meeting: m, more, note, text: (m.state === 'now' ? 'Now' : hm(m.start)) + ' ' + m.title,
64
+ aria: (m.state === 'now' ? 'Meeting on now: ' : 'Next meeting: ' + hm(m.start) + ' ') + m.title + (note ? ', ' + note : '') };
65
+ }
66
+ export function drawMeetLine(P, { open } = {}) {
67
+ const box = $('#hMeet'); if (!box) return;
68
+ if (!P || !P.ok) { box.hidden = true; return; }
69
+ const L = meetLineOf(P);
70
+ const calBtn = `<button type="button" class="cz-mcal" id="hMeetCal" aria-label="${L && L.more ? 'All meetings and notes: ' + L.more + ' more today' : 'The calendar and notes'}" title="Calendar and notes, in the Viewer">${L && L.more ? '+' + L.more : CLOCK}</button>`;
71
+ const notesBtn = `<button type="button" class="cz-mcal" id="hMeetNotes" aria-label="Meeting notes" title="Every meeting note, in the Viewer">${NOTES}</button>`;
72
+ box.innerHTML = (L
73
+ ? `<button type="button" class="cz-mgo" id="hMeetGo" aria-label="${esc(L.aria)}">${CLOCK}<span><b>${esc(L.meeting.state === 'now' ? 'Now' : hm(L.meeting.start))}</b> ${esc(L.meeting.title)}${L.note ? ` · <em>${esc(L.note)}</em>` : ''}</span></button>`
74
+ : '<span class="cz-mgo cz-mnone">No more meetings today</span>') + calBtn + notesBtn;
75
+ box.hidden = false;
76
+ const go = $('#hMeetGo');
77
+ if (go && L) go.onclick = async () => { if (!(open && await open(L.meeting))) location.assign('/premium.html?meeting=' + encodeURIComponent(L.meeting.id || '')); };
78
+ $('#hMeetCal').onclick = () => { const b = $('#todayCard .vc-open'); if (b) b.click(); };
79
+ $('#hMeetNotes').onclick = () => { const b = $('#vnOpen'); if (b) b.click(); };
80
+ }
81
+
82
+ /* ── the Initiatives group (GET /api/board-premium: the open initiatives the Board lists, late and at-risk first) ── */
83
+ const I = { rows: null, err: '', ws: '', board: '', open: new Set(), ses: [] };
84
+ const wsQ = () => new URLSearchParams(location.search).get('ws') || '';
85
+ const iniHref = (r) => '/premium-initiative.html?' + ['id=' + encodeURIComponent(r.id), I.ws ? 'ws=' + encodeURIComponent(I.ws) : '', I.board ? 'board=' + encodeURIComponent(I.board) : ''].filter(Boolean).join('&');
86
+ const dotOf = (r) => (r.late ? 'late m-warn' : r.status === 'at risk' ? 'risk m-info' : r.status === 'blocked' ? 'red m-crit' : r.status === 'done' ? 'ok' : 'q');
87
+ /** An initiative's own sessions: a chat whose conversation is about it (init:<id> or board:<id>). */
88
+ const sesOf = (id) => I.ses.filter((s) => s.key && (s.key === 'init:' + id || s.key === 'board:' + id || s.key.startsWith('init:' + id + ':')));
89
+ function initRowHtml(r) {
90
+ const st = stepOf(r.stage), kids = sesOf(r.id), open = I.open.has(r.id);
91
+ const where = st ? st.label + (st.ms ? ' · milestone' : '') : r.stage || 'No stage';
92
+ const sub = [where, st ? 'Next: ' + st.next : '', r.statusLabel].filter(Boolean).join(' · ');
93
+ const kidsLine = kids.length ? kids.length + (kids.length === 1 ? ' session' : ' sessions') : 'More';
94
+ return `<li class="cz-row" data-ini="${esc(r.id)}"><button type="button" class="cz-rb" data-iopen="${esc(r.id)}" aria-label="${esc(r.title + ', ' + sub)}"><i class="cz-dot ${dotOf(r)}" aria-hidden="true"></i><span class="cz-rt"><b>${esc(r.title)}</b><small>${esc(sub)}</small>${st ? ladderHtml(st.i) : ''}</span></button>`
95
+ + `<button type="button" class="cz-kids" data-ikids="${esc(r.id)}" aria-expanded="${open}" aria-label="${esc((open ? 'Hide' : 'Show') + ' what is inside ' + r.title)}">${esc(kidsLine)}<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></button>`
96
+ + (open ? `<ul class="cz-sub">${kids.map((k) => `<li><button type="button" class="cz-rb sm" data-isid="${esc(k.id)}"><i class="cz-dot ${k.state === 'needs' ? 'you m-info' : k.state === 'blocked' ? 'late m-warn' : k.state === 'working' ? 'ok' : 'q'}" aria-hidden="true"></i><span class="cz-rt"><b>${esc(k.name)}</b><small>${esc(k.hint || '')}</small></span></button></li>`).join('')}`
97
+ + `<li><button type="button" class="cz-rb sm" data-iask="${esc(r.id)}"><span class="cz-rt"><b>Quick ask</b><small>A new question about ${esc(r.title)}</small></span></button></li>`
98
+ + `<li><a class="cz-rb sm" href="${esc(iniHref(r))}"><span class="cz-rt"><b>Open the initiative</b><small>Its page: the ladder, its records and its work</small></span></a></li></ul>` : '')
99
+ + '</li>';
100
+ }
101
+ function drawInit() {
102
+ const b = $('#initBody'), cap = $('#initCap'); if (!b) return;
103
+ if (I.rows == null) { b.innerHTML = I.err ? `<p class="note" role="status">The initiatives could not be read: ${esc(I.err)}</p>` : ''; cap.textContent = I.err ? 'Not read' : 'Reading'; return; }
104
+ cap.textContent = String(I.rows.length);
105
+ b.innerHTML = I.rows.length ? `<ul class="cz-list">${I.rows.map(initRowHtml).join('')}</ul>` : '<p class="note">No initiative is open on this board.</p>';
106
+ }
107
+ async function readInit() {
108
+ let r = null;
109
+ try { const res = await fetch('/api/board-premium' + (wsQ() ? '?ws=' + encodeURIComponent(wsQ()) : ''), { credentials: 'same-origin' }); r = await res.json(); } catch { r = null; }
110
+ if (r && r.state === 'reading') { setTimeout(readInit, 3000); return; } // the board's first read is still running
111
+ const m = r && r.ok && r.model;
112
+ if (!m || !m.initiatives) { I.rows = null; I.err = (r && r.error) || 'the server did not answer'; drawInit(); return; }
113
+ I.ws = m.ws || (m.board && m.board.ws) || wsQ(); I.board = (m.board && (m.board.id || '')) || '';
114
+ I.rows = (m.initiatives.list && m.initiatives.list.rows) || []; I.err = '';
115
+ drawInit();
116
+ }
117
+ /** An initiative row opens its conversation in the middle and where it stands in the Viewer (H2). */
118
+ function openIni(r) {
119
+ const st = stepOf(r.stage), key = 'init:' + r.id;
120
+ const pane = `<article class="paper doc cz-ini"><p class="label">Where it stands</p><h3 class="d2">${esc(r.title)}</h3>${st ? ladderHtml(st.i) + `<p><b>${esc(st.label)}${st.ms ? ' <i class="cz-ms" aria-hidden="true"></i>' : ''}</b>. What finishes it: ${esc(st.next)}.</p>` : `<p>Stage: ${esc(r.stage || 'none on record')}.</p>`}`
121
+ + kv([['Owner and lane', r.sub], ['Status', r.statusLabel || (r.status ? r.status : '')], ['Finish', r.finish], ['Progress', r.progress != null ? r.progress + '%' : '']])
122
+ + `<p><a href="${esc(iniHref(r))}">Open the initiative page</a></p></article>`;
123
+ const say = 'Ask about ' + r.title + '. Claude reads its records; it works in a real Claude Code session.';
124
+ openDlg({ eye: 'Initiative' + (st ? ' · ' + st.label : ''), title: r.title, sub: r.sub, say, stream: turnA(ptx(say)), noteKey: key, pane, label: 'Status' });
125
+ loadThread(key);
126
+ }
127
+ document.addEventListener('click', (e) => {
128
+ const o = e.target.closest('[data-iopen]'), k = e.target.closest('[data-ikids]'), s = e.target.closest('[data-isid]'), a = e.target.closest('[data-iask]');
129
+ const row = (id) => (I.rows || []).find((x) => x.id === id);
130
+ if (o) { const r = row(o.dataset.iopen); if (r) openIni(r); return; }
131
+ if (k) { const id = k.dataset.ikids; I.open.has(id) ? I.open.delete(id) : I.open.add(id); drawInit(); const again = $(`[data-ikids="${CSS.escape(id)}"]`); if (again) again.focus(); return; }
132
+ if (s) { openSessionRow(s.dataset.isid); return; }
133
+ if (a) { const r = row(a.dataset.iask); if (r) openChatPage('init:' + r.id, r.title); }
134
+ });
135
+
136
+ /* ── the Sessions group: its count line; on a phone, where the list is not docked, a button opens it ── */
137
+ document.addEventListener('pmos:sessions', (e) => {
138
+ const m = e.detail; I.ses = (m && m.rows) || [];
139
+ const cap = $('#sessCap'); if (cap) cap.textContent = !m || !m.live ? 'None running' : [m.ready ? m.ready + ' ready' : '', m.blocked ? m.blocked + ' may be stuck' : '', m.working ? m.working + ' running' : ''].filter(Boolean).join(' · ') || String(m.live);
140
+ if (I.rows && I.open.size) drawInit();
141
+ });
142
+ if (!homeDock()) {
143
+ const h = $('#hSessions');
144
+ if (h) { h.innerHTML = '<button type="button" class="cz-chip" id="hSesOpen">Open the session list</button>'; $('#hSesOpen').onclick = () => openSessions(); }
145
+ }
146
+ { const c = $('#hChat'); if (c) c.onclick = () => openChatPage('chat:main', ''); }
147
+
148
+ /* ── a fold on each group, remembered on this device. Every group starts open. ── */
149
+ const FOLD_KEY = 'pmos.home.shut';
150
+ const GROUPS = ['movesCard', 'aroundCard', 'initGrp', 'sessGrp', 'queue', 'waitCard', 'frCard', 'revCard', 'todayCard'];
151
+ let shut;
152
+ try { shut = JSON.parse(store.get(FOLD_KEY) || 'null'); } catch { shut = null; }
153
+ if (!Array.isArray(shut)) shut = [];
154
+ function foldMount(id) {
155
+ const c = document.getElementById(id), h = c && c.querySelector(':scope > .ch');
156
+ if (!h || h.querySelector('.cz-fold')) return;
157
+ const t = h.querySelector('h2'), b = document.createElement('button');
158
+ b.type = 'button'; b.className = 'cz-fold'; b.setAttribute('aria-controls', id);
159
+ b.innerHTML = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg>';
160
+ const set = (s) => { c.classList.toggle('cz-shut', s); b.setAttribute('aria-expanded', String(!s)); b.setAttribute('aria-label', (s ? 'Show ' : 'Fold ') + (t ? t.textContent : 'this group')); };
161
+ set(shut.includes(id));
162
+ b.onclick = () => { const s = !c.classList.contains('cz-shut'); shut = s ? [...new Set([...shut, id])] : shut.filter((x) => x !== id); try { store.set(FOLD_KEY, JSON.stringify(shut)); } catch { /* no storage */ } set(s); };
163
+ h.prepend(b);
164
+ }
165
+ const foldAll = () => GROUPS.forEach(foldMount);
166
+ foldAll(); setTimeout(foldAll, 0); setTimeout(foldAll, 1500); // the Product group (Around you) is added by premium.js after this file runs
167
+
168
+ readInit();
169
+ setInterval(() => { if (!document.hidden) readInit(); }, 300000);
170
+ if (typeof window !== 'undefined') window.__cozyHome = { stepOf, summaryText, meetLineOf };
@@ -0,0 +1,138 @@
1
+ /* pm/cozy-initiative.css — the premium initiative page in the Agreed design (initiative premium-agreed-design, I1).
2
+ * Builds on pm/cozy.css (tokens, the floating menu) and pm/cozy-viewer.css (the premium tokens re-pointed to the cozy palette on .czi-tok).
3
+ * No page header: the header card starts at the top of the panel. Motion: only the cz-dot levels move. */
4
+
5
+ /* cozy.css's own dark tokens key on html.dark; the premium pages set data-theme, so this page repeats them for data-theme and the system setting */
6
+ :root[data-theme="dark"] body.cz {
7
+ --cz-ink: var(--cz-c-eceef1); --cz-ink2: var(--cz-c-c5c9d0); --cz-ink3: var(--cz-c-9ea4ad); --cz-card: var(--cz-c-24262b); --cz-well: var(--cz-c-1b1d21); --cz-well2: var(--cz-c-2a2d33); --cz-hair: rgba(236,238,241,.08);
8
+ --cz-blue: var(--cz-c-6aaaf0); --cz-blueink: var(--cz-c-9bc7f4); --cz-bluebg: rgba(106,170,240,.14); --cz-ground: linear-gradient(170deg, var(--cz-c-17191c) 0%, var(--cz-c-1b1d21) 60%, var(--cz-c-1c2430) 100%);
9
+ }
10
+ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.cz {
11
+ --cz-ink: var(--cz-c-eceef1); --cz-ink2: var(--cz-c-c5c9d0); --cz-ink3: var(--cz-c-9ea4ad); --cz-card: var(--cz-c-24262b); --cz-well: var(--cz-c-1b1d21); --cz-well2: var(--cz-c-2a2d33); --cz-hair: rgba(236,238,241,.08);
12
+ --cz-blue: var(--cz-c-6aaaf0); --cz-blueink: var(--cz-c-9bc7f4); --cz-bluebg: rgba(106,170,240,.14); --cz-ground: linear-gradient(170deg, var(--cz-c-17191c) 0%, var(--cz-c-1b1d21) 60%, var(--cz-c-1c2430) 100%);
13
+ } }
14
+
15
+ .cz #dock { display: none !important; }
16
+ .cz .rise { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
17
+ .cz .card::before { display: none; }
18
+
19
+ /* the panel: one soft white panel with a 16px margin, as the Agreed frames */
20
+ .cz main.stage.czi { box-sizing: border-box; max-width: none; margin: 16px; min-height: calc(100vh - 32px); padding: 16px 24px 120px; background: var(--cz-card);
21
+ border-radius: 28px; box-shadow: var(--cz-lift); font-family: var(--cz-sans); color: var(--cz-ink); display: flex; flex-direction: column; gap: 14px; }
22
+ .cz main.stage.czi > * { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
23
+ .cz .czi .hero-slim:has(#brief:empty) { display: none; }
24
+
25
+ /* ── the header card ── */
26
+ .czi-card { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 20px; background: var(--cz-card); border: 1px solid var(--cz-hair); }
27
+ .czi .czi-top { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 6px 4px 8px; flex-wrap: nowrap; margin: 0; }
28
+ .czi-flag { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--cz-bluebg); color: var(--cz-blueink); }
29
+ .czi-flag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
30
+ .czi-where { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
31
+ .czi-kind { font-size: 11.5px; color: var(--cz-ink3); min-width: 0; }
32
+ .czi-kind .ihead { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
33
+ .czi-kind .ihm { font-size: 11.5px; color: var(--cz-ink3); }
34
+ .czi-kind .chp { height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
35
+ .czi .czi-where .where { display: flex; align-items: center; gap: 4px; min-width: 0; }
36
+ .czi .czi-where .crumb { display: flex; align-items: center; gap: 2px; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0; height: auto; }
37
+ .czi .czi-where #crIni { max-width: none; min-width: 0; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cz-ink); }
38
+ .czi .czi-where .crback { order: 3; width: 34px; height: 34px; min-width: 34px; min-height: 34px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--cz-ink3); border-radius: 999px; }
39
+ .czi .czi-where .cri { width: 34px; height: 34px; min-width: 34px; border-radius: 999px; color: var(--cz-ink3); }
40
+ .czi .czi-where .crback:hover, .czi .czi-where .cri:hover { background: var(--cz-well); }
41
+ .czi .czi-top .tools { flex: none; gap: 4px; flex-wrap: nowrap; }
42
+ .czi .czi-top .schip { height: 34px; border-radius: 999px; background: var(--cz-well); border: 0; font: 700 12.5px var(--cz-sans); color: var(--cz-ink2); }
43
+ .czi .czi-top #moreBtn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--cz-ink2); }
44
+ .czi .czi-top #moreBtn:hover { background: var(--cz-well); }
45
+
46
+ .czi-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--cz-well); }
47
+ .czi-box.you { box-shadow: inset 0 0 0 1.5px var(--cz-blue); }
48
+ .czi-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
49
+ .czi-sp { flex: 1; }
50
+ .czi-stage { color: var(--cz-ink3); white-space: nowrap; }
51
+ .czi-turn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-weight: 800; background: var(--cz-card); color: var(--cz-ink2); }
52
+ .czi-turn.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
53
+ .czi-turn.stalled { background: transparent; box-shadow: inset 0 0 0 1px var(--cz-dot-late); color: var(--cz-late); }
54
+ .czi-lad { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
55
+ .czi-lad svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--cz-ink3); stroke-width: 2.4; }
56
+ .czi-lad b { font-size: 14px; font-weight: 800; white-space: nowrap; }
57
+ .czi-prev { color: var(--cz-ok); white-space: nowrap; }
58
+ .czi-next { color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
59
+ .czi-bars { width: 100%; }
60
+ .czi-bars i.done { background: var(--cz-dot-ok); }
61
+ .czi-bars i.now { background: var(--cz-blue); }
62
+ :root[data-theme="dark"] .czi-bars i:not(.done):not(.now) { background: var(--cz-c-33363c); }
63
+
64
+ .czi-items { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
65
+ .czi-ckh { display: flex; align-items: center; gap: 6px; font-size: 12px; }
66
+ .czi-ckh > span { margin-left: auto; color: var(--cz-ink3); white-space: nowrap; }
67
+ .czi-ckt, .czi-fold { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 6px; border-radius: 8px; font: inherit; font-size: 12px; color: var(--cz-ink); background: none; border: 0; cursor: pointer; text-align: left; }
68
+ .czi-ckt b, .czi-fold b { font-weight: 800; }
69
+ .czi-ckt:hover, .czi-fold:hover, .czi-donerow:hover { background: var(--cz-well2); }
70
+ .czi-ckt svg, .czi-fold svg, .czi-donerow svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--cz-ink3); stroke-width: 2.2; }
71
+ .czi-ckt[aria-expanded="true"] svg, .czi-donerow[aria-expanded="true"] svg { transform: rotate(180deg); }
72
+ .czi-fold span { flex: 1; min-width: 0; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
73
+ .czi-it { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 6px; border-radius: 8px; font-size: 13px; }
74
+ button.czi-it { font: inherit; font-size: 13px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--cz-ink3); width: 100%; }
75
+ .czi-it.done { color: var(--cz-ink3); }
76
+ .czi-it.you { font-weight: 700; }
77
+ .czi-it.risk { font-weight: 700; }
78
+ .czi-itl { flex: 1; min-width: 0; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
79
+ .czi-donerow .czi-itl { white-space: nowrap; }
80
+ .czi-mk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--cz-hair); }
81
+ .czi-mk.done { background: var(--cz-dot-ok); color: var(--cz-c-ffffff); box-shadow: none; }
82
+ .czi-mk.you { box-shadow: inset 0 0 0 2px var(--cz-blue); background: var(--cz-bluebg); }
83
+ .czi-mk.agent { box-shadow: inset 0 0 0 2px var(--cz-dot-ok); }
84
+ .czi-mk.jira { background: var(--cz-blueink); color: var(--cz-c-ffffff); box-shadow: none; border-radius: 6px; font-size: 10px; }
85
+ .czi-mk.risk { box-shadow: inset 0 0 0 2px var(--cz-dot-late); color: var(--cz-late); }
86
+ .czi-tag { flex: none; font-size: 11px; color: var(--cz-ink3); }
87
+ .czi-tag.you { padding: 1px 8px; border-radius: 999px; background: var(--cz-blue); color: var(--cz-c-ffffff); font-weight: 800; }
88
+ .czi-tag.risk { padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--cz-dot-late); color: var(--cz-late); font-weight: 800; }
89
+ .czi-tag.jira { padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink2); font-weight: 800; }
90
+ .czi-none { margin: 0; padding: 4px 6px; font-size: 13px; color: var(--cz-ink3); }
91
+ .czi-pay { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--cz-card); font-size: 12px; line-height: 1.4; color: var(--cz-ink2); }
92
+ .czi-pay b { color: var(--cz-ink); font-weight: 800; }
93
+ .czi-time { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cz-ink3); }
94
+ .czi-time.over { color: var(--cz-late); font-weight: 700; }
95
+ .czi-time svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
96
+ .czi-acts { display: flex; gap: 6px; }
97
+ .czi-cta { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 12px; font: 800 14px var(--cz-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; cursor: pointer;
98
+ background: var(--cz-blueink); color: var(--cz-c-ffffff); }
99
+ .czi-cta.alt { background: var(--cz-card); color: var(--cz-ink); box-shadow: inset 0 0 0 1px var(--cz-hair); }
100
+ .czi-ov { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--cz-card); border: 0; box-shadow: inset 0 0 0 1px var(--cz-hair); cursor: pointer; }
101
+ .czi-ov span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cz-c-d97757); color: var(--cz-c-ffffff); font-size: 12px; font-weight: 800; }
102
+
103
+ /* ── the cards below: the premium cards in cozy dress ── */
104
+ .czi .card { border-radius: 22px; box-shadow: none; border: 1px solid var(--cz-hair); background: var(--cz-card); padding: 20px 22px; }
105
+ .czi .ch { position: static; margin: -20px -22px 0; padding: 18px 22px 10px; background: transparent; box-shadow: none; }
106
+ .czi .ch .ic { width: 34px; height: 34px; border-radius: 12px; background: var(--cz-bluebg); color: var(--cz-blueink); }
107
+ .czi .ch h2 { font-size: 16px; font-weight: 800; }
108
+ .czi .label { font: 800 12px var(--cz-sans); letter-spacing: 0; text-transform: none; color: var(--cz-ink3); }
109
+ .czi .seg { background: var(--cz-well); }
110
+ .czi .seg .pill { background: var(--cz-card); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
111
+ .czi .seg button { font-weight: 700; color: var(--cz-ink3); }
112
+ .czi .seg button[aria-pressed="true"] { color: var(--cz-ink); }
113
+ .czi .todo { border-radius: 16px; background: var(--cz-well); }
114
+ .czi .cta, .czi .fold, .czi .dmcta { border-radius: 999px; font-weight: 800; }
115
+ .czi .cta:hover, .czi .round:hover { transform: none; }
116
+ .czi .dmr, .czi .tkq, .czi .icd { border-radius: 14px; }
117
+ .czi .chp { font-family: var(--cz-sans); }
118
+ .czi .empty3, .czi .note { color: var(--cz-ink3); }
119
+ .czi .footi { display: flex; justify-content: flex-start; }
120
+
121
+ /* the top row's round presses (back, bell, more) are quiet icon buttons, not glass */
122
+ .czi .czi-top .round, .czi .czi-top .glass { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--cz-ink2); }
123
+ .czi .czi-top .round:hover { background: var(--cz-well); transform: none; }
124
+ .czi .czi-where #crBoard.crback { width: 34px; height: 34px; min-width: 34px; min-height: 34px; background: none; border: 0; color: var(--cz-ink3); }
125
+ .czi .czi-where #crBoard.crback:hover { background: var(--cz-well); }
126
+ .czi .czi-where #crBoard.crback svg { width: 16px; height: 16px; }
127
+ .czi .tdw, .czi .todo .tdw { font: 800 12px var(--cz-sans); letter-spacing: 0; text-transform: none; }
128
+ .czi-bars i { background: var(--cz-c-dedbd5); }
129
+
130
+ /* phone: the panel fills the screen, the card's top row is the one-line bar, the floating menu sits bottom right */
131
+ @media (max-width: 720px) {
132
+ .cz main.stage.czi { margin: 0; border-radius: 0; min-height: 100vh; padding: 8px 12px 96px; box-shadow: none; }
133
+ .czi-card { border: 0; padding: 0; }
134
+ .czi .czi-top { min-height: 48px; padding: 0 0 0 2px; }
135
+ .czi-kind { display: none; }
136
+ .czi .card { padding: 16px 14px; border-radius: 18px; }
137
+ .czi .ch { margin: -16px -14px 0; padding: 14px 14px 8px; }
138
+ }
@@ -0,0 +1,292 @@
1
+ /* cozy-insights.css — the Insights page in the Agreed design (initiative premium-agreed-design, G1 and G2). Ported from the agreed frames AgInsGoals,
2
+ * AgInsPeriod, AgInsNewGoal, AgInsNewDash, AgInsOutcomes, AgInsVerdict, AgInsLibrary and AgInsPhone. It builds on the tokens of cozy.css only; every class
3
+ * starts with ins-, so nothing here reaches another page. premium.css and premium-insights.css still style the dialog, the chart tiles and the measure tiles. */
4
+
5
+ body.cz { padding: 0; }
6
+ /* main keeps the class stage, which the shell makes inert behind a dialog; the panel's own box wins over premium.css */
7
+ .cz main.ins.stage { max-width: none; margin: 16px; padding: 16px 24px 18px; }
8
+ .cz .dock, .cz .ins-ghost, .cz .sky { display: none !important; }
9
+ .cz .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
10
+ .cz .note { font-size: 11.5px; color: var(--cz-ink3); }
11
+ .cz .q { color: var(--cz-ink3); font-weight: 600; }
12
+ .ins { font-family: var(--cz-sans); color: var(--cz-ink); position: relative; z-index: 1; }
13
+ .ins button, .ins-side button, .ins-help button { font-family: inherit; }
14
+ .ins svg[aria-hidden="true"], .ins-side svg[aria-hidden="true"] { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
15
+ .ins .cz-chip svg, .ins .cz-pick svg { width: 14px; height: 14px; }
16
+
17
+ /* ── the bar ── */
18
+ .ins-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
19
+ .ins-bar [hidden] { display: none !important; }
20
+ .ins-ttl { display: none; }
21
+ .ins-tabs { margin-left: 6px; }
22
+ .ins-mw { position: relative; display: inline-flex; }
23
+ .ins-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
24
+ .ins-tools #perChip { height: 36px; }
25
+ .ins-perd { font-weight: 600; color: var(--cz-ink3); font-size: 11.5px; }
26
+ .ins-fdot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--cz-blue); }
27
+ .ins-shell { display: inline-flex; align-items: center; gap: 4px; }
28
+ .ins-shell #srcChip { display: none; }
29
+ .ins-shell #moreBtn { width: 38px; height: 38px; border-radius: 999px; background: none; border: 0; box-shadow: none; color: var(--cz-ink2); backdrop-filter: none; -webkit-backdrop-filter: none; }
30
+ .ins-shell #moreBtn:hover { background: var(--cz-well); }
31
+ .ins-shell .crmenu { right: 0; left: auto; }
32
+ .ins-shell .round, .ins-shell .glass.round { width: 38px; height: 38px; min-width: 0; border-radius: 999px; background: none; border: 0; box-shadow: none; color: var(--cz-ink2); backdrop-filter: none; -webkit-backdrop-filter: none; }
33
+ .ins-shell .round:hover { background: var(--cz-well); }
34
+ .ins-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; background: var(--cz-card); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
35
+ .ins-menu[hidden] { display: none; }
36
+ .ins-menu.ins-right, .ins-permenu { left: auto; right: 0; }
37
+ .ins-menu.ins-up { top: auto; bottom: calc(100% + 6px); }
38
+ .ins-permenu { width: 330px; }
39
+ .ins-menu button { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--cz-ink); background: none; border: 0; cursor: pointer; text-align: left; }
40
+ .ins-menu button > span { display: block; }
41
+ .ins-menu button:hover, .ins-menu [aria-checked="true"] { background: var(--cz-well); }
42
+ .ins-permenu [aria-checked="true"] { background: var(--cz-bluebg); }
43
+ .ins-menu small { display: block; font-weight: 600; color: var(--cz-ink3); font-size: 12px; }
44
+ .ins-menu [role="menuitem"], .ins-menu [data-view] { flex-direction: column; gap: 0; }
45
+ .ins-menu .ins-ck { width: 18px; flex: none; }
46
+ .ins-mh { margin: 6px 12px 2px; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); }
47
+ .ins-mnote { margin: 6px 12px 4px; line-height: 1.45; }
48
+ .ins-cust { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 4px 12px 6px; }
49
+ .ins-cust[hidden] { display: none; }
50
+ .ins-cust label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--cz-ink2); gap: 3px; }
51
+ .ins-cust input { height: 32px; border: 1px solid var(--cz-hair); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--cz-card); color: var(--cz-ink); }
52
+ .ins-find { display: flex; align-items: center; gap: 8px; background: var(--cz-well); border-radius: 16px; padding: 4px 6px 4px 14px; }
53
+ .ins-find[hidden] { display: none; }
54
+ .ins-find input { flex: 1; height: 34px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cz-ink); outline: 0; }
55
+
56
+ /* ── the strip ── */
57
+ .ins-strip { display: flex; align-items: center; gap: 10px; background: var(--cz-well); border-radius: 16px; padding: 8px 8px 8px 14px; font-size: 13.5px; }
58
+ .ins-strip .sp { color: var(--cz-blueink); display: inline-flex; }
59
+ .ins-strip .sp svg { width: 16px; height: 16px; }
60
+ .ins-strip .t { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cz-ink2); }
61
+ .ins-strip .t b { font-weight: 800; color: var(--cz-ink); }
62
+ .ins-strip #insWhy { color: var(--cz-ink3); }
63
+ .ins-more { display: none; }
64
+ .ins-strip .cz-chip { text-decoration: none; flex: none; }
65
+ .ins-pane { display: flex; flex-direction: column; gap: 12px; }
66
+ .ins-pane[hidden] { display: none; }
67
+
68
+ /* ── the tables ── */
69
+ .ins-tbl { display: flex; flex-direction: column; border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; background: var(--cz-card); }
70
+ .ins-tr { display: grid; align-items: center; column-gap: 16px; padding: 0 16px; }
71
+ .ins-cols { grid-template-columns: minmax(200px, 270px) 190px 230px 170px minmax(0, 1fr); }
72
+ .ins-ocols { grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) 160px 120px 160px; }
73
+ .ins-lcols { grid-template-columns: 40px minmax(0, 1fr) 160px 200px 180px 120px; }
74
+ .ins-th { background: var(--cz-well); font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); min-height: 36px; }
75
+ .ins-th span { color: var(--cz-ink3); font-weight: 600; }
76
+ .ins-mvh { display: flex; justify-content: space-between; align-items: center; }
77
+ .ins-lg { display: inline-flex; gap: 10px; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--cz-ink3); margin-left: 6px; }
78
+ .ins-lg span { display: inline-flex; align-items: center; gap: 5px; }
79
+ .ins-tdk { width: 2px; height: 10px; background: var(--cz-ink); display: inline-block; margin-right: 4px; vertical-align: -1px; }
80
+ .ins-grp { background: rgba(244, 243, 240, .45); border-top: 1px solid var(--cz-hair); min-height: 34px; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); display: flex; align-items: center; gap: 8px; padding: 0 16px; flex-wrap: wrap; }
81
+ .cz.dark .ins-grp, html.dark .cz .ins-grp { background: var(--cz-well2); }
82
+ .ins-grp h2 { font-size: 12.5px; font-weight: 800; margin: 0; }
83
+ .ins-row { border-top: 1px solid var(--cz-hair); min-height: 70px; padding-top: 7px; padding-bottom: 7px; cursor: pointer; }
84
+ .ins-row:hover { background: rgba(244, 243, 240, .35); }
85
+ .cz.dark .ins-row:hover, html.dark .cz .ins-row:hover { background: var(--cz-well); }
86
+ .ins-row.sel { background: var(--cz-bluebg); }
87
+ .ins-row .nm { display: flex; gap: 10px; align-items: center; min-width: 0; }
88
+ .ins-row .nm b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
89
+ .ins-row .nm small { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--cz-ink3); flex-wrap: wrap; }
90
+ .ins-row .nm a { color: inherit; text-decoration: none; }
91
+ .ins-type { font-weight: 700 !important; font-size: 11px !important; padding: 1px 7px !important; }
92
+ .ins-row .val b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
93
+ .ins-bar1 { position: relative; height: 6px; border-radius: 3px; background: var(--cz-well2); margin-top: 6px; width: 130px; }
94
+ .ins-bar1 i { display: block; height: 100%; border-radius: 3px; }
95
+ .ins-bar1 .today { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--cz-ink); }
96
+ .ins-spark { display: block; overflow: visible; width: 210px; height: 40px; }
97
+ .ins-spark .ar { fill: rgba(42,46,53,.05); }
98
+ .ins-spark .tg { stroke: var(--cz-dot-q); stroke-dasharray: 3 3; stroke-width: 1; }
99
+ .ins-spark .pj { fill: none; stroke: var(--cz-dot-q); stroke-width: 1.6; stroke-dasharray: 4 3; }
100
+ .ins-spark .ln { fill: none; stroke: var(--cz-ink2); stroke-width: 1.8; stroke-linejoin: round; }
101
+ .ins-spark .dt { stroke: var(--cz-card); stroke-width: 1.5; }
102
+ .ins-row .pace { font-size: 13px; line-height: 1.35; }
103
+ .ins-row .pace b { font-weight: 800; }
104
+ .ins-row .pace .note { font-size: 12px; }
105
+ .ins-row .mv { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
106
+ .ins-ini { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); min-width: 0; text-decoration: none; border-radius: 8px; }
107
+ .ins-ini:hover .n { text-decoration: underline; }
108
+ .ins-ini .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
109
+ .ins-ini .cz-pill { margin-left: auto; }
110
+ .ins-trk { display: inline-flex; align-items: center; gap: 3px; flex: none; }
111
+ .ins-trk i { width: 6px; height: 6px; border-radius: 50%; background: var(--cz-well2); display: block; }
112
+ .ins-trk i.p { background: var(--cz-dot-q); }
113
+ .ins-trk i.c { width: 10px; height: 10px; border: 2px solid var(--cz-card); box-shadow: 0 0 0 1px rgba(42,46,53,.25); }
114
+ .ins-trk i.m { border-radius: 1.5px; transform: rotate(45deg); }
115
+ .ins-trk i.c.m { border-radius: 2px; }
116
+ .ins-trk i.c.ok { background: var(--cz-dot-ok); } .ins-trk i.c.late { background: var(--cz-dot-late); } .ins-trk i.c.risk { background: var(--cz-dot-risk); } .ins-trk i.c.q { background: var(--cz-dot-q); }
117
+ .ins-cb { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--cz-dot-q); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--cz-card); }
118
+ .ins-cb.on { background: var(--cz-blue); border-color: var(--cz-blue); color: var(--cz-card); }
119
+ .ins-cb svg { width: 12px; height: 12px; }
120
+ .ins-empty { padding: 16px; border-top: 1px solid var(--cz-hair); font-size: 13.5px; color: var(--cz-ink2); }
121
+ .ins-sel { display: flex; align-items: center; gap: 10px; background: var(--cz-bluebg); color: var(--cz-blueink); border-radius: 14px; padding: 8px 8px 8px 14px; font-size: 13px; }
122
+ .ins-sel[hidden] { display: none; }
123
+ .ins-sel .note { flex: 1; }
124
+
125
+ /* ── Delivery trends (the Board's measures) ── */
126
+ .ins-trends { border-top: 1px solid var(--cz-hair); }
127
+ .ins-trends[hidden] { display: none; }
128
+ .ins-trends .ins-grp { border-top: 0; }
129
+ .ins-trends #bmRange { margin-left: auto; }
130
+ .ins-trends #bmRange button { height: 26px; min-width: 30px; padding: 0 9px; font-size: 12px; }
131
+ .ins-bmlead { font-weight: 700; color: var(--cz-late); }
132
+ .ins-tiles { display: grid; gap: 8px; padding: 8px 16px 12px; }
133
+ .ins-tiles .mt1 { background: var(--cz-well); border-radius: 14px; border: 0; box-shadow: none; padding: 8px 11px 6px; font-family: var(--cz-sans); min-height: 0; }
134
+ .ins-tiles .mt1 svg { max-height: 30px; }
135
+ .ins-tiles .mt1 .mfoot { display: none; }
136
+ .ins-tiles .mt1.off, .ins-tiles .mt1.warn, .ins-tiles .mt1.bad { background: var(--cz-latebg); outline: 0; }
137
+
138
+ /* ── the view's charts ── */
139
+ .ins-dash { display: flex; flex-direction: column; gap: 8px; }
140
+ .ins-dash[hidden] { display: none; }
141
+ .ins-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--cz-ink2); padding: 2px 4px; }
142
+ .ins-sec h2, .ins-sec h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--cz-ink2); }
143
+ .ins-sec small { color: var(--cz-ink3); font-weight: 600; font-size: 12px; }
144
+ .ins-sec .ins-r { margin-left: auto; }
145
+ .ins-dash .pdbar { padding: 6px; }
146
+ .ins-dash .pdbar .pdst { margin: 4px 12px; }
147
+ .ins-dash .ngrid { margin-top: 4px; }
148
+ .ins-dash .mt1 { font-family: var(--cz-sans); }
149
+
150
+ /* ── Library ── */
151
+ .ins-lbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
152
+ .ins-lbar #listF { display: none; }
153
+ .ins-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
154
+ .ins-lnote { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
155
+ .ins-lhead { min-height: 36px; }
156
+ .ins-lrow { display: contents; font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
157
+ .ins-lcols.ins-row { min-height: 60px; }
158
+ .ins-lrow .nm { display: block; min-width: 0; }
159
+ .ins-lrow .nm b { display: block; font-size: 14px; font-weight: 800; }
160
+ .ins-lrow .nm small { display: block; font-size: 12px; color: var(--cz-ink3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
161
+ .lic { width: 40px; height: 40px; border-radius: 12px; background: var(--cz-bluebg); color: var(--cz-blueink); display: flex; align-items: center; justify-content: center; }
162
+ .ins-dots { display: flex; gap: 3px; margin-bottom: 4px; }
163
+ .ins-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--cz-ink3); display: block; }
164
+ .ins-dots i.dr { background: var(--cz-blue); }
165
+ .ins-from { display: flex; flex-wrap: wrap; gap: 4px; }
166
+ .ins-act { text-align: right; }
167
+ .ins-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
168
+ .ins-dcard { position: relative; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 18px; }
169
+ .ins-dcard:hover { box-shadow: 0 6px 18px -8px rgba(42,46,53,.2); }
170
+ .ins-dopen { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 18px; }
171
+ .ins-dh { display: flex; align-items: center; gap: 8px; padding-right: 40px; }
172
+ .ins-dh b { font-size: 15px; font-weight: 800; margin-right: auto; }
173
+ .ins-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
174
+ .ins-mini { background: var(--cz-well); border-radius: 12px; padding: 6px 8px 2px; display: flex; flex-direction: column; min-width: 0; }
175
+ .ins-mini small { font-size: 12px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
176
+ .ins-mini b { font-size: 14px; font-weight: 800; }
177
+ .ins .ins-mini svg { width: 100%; height: 26px; }
178
+ .ins-mini .ar { fill: rgba(42,46,53,.05); stroke: none; }
179
+ .ins-mini .ln { fill: none; stroke: var(--cz-ink2); stroke-width: 1.6; }
180
+ .ins-pin { position: absolute; top: 8px; right: 8px; }
181
+ .ins-pin.on { color: var(--cz-blueink); background: var(--cz-bluebg); }
182
+ .ins-ask { display: flex; align-items: center; gap: 6px; border-radius: 18px; background: var(--cz-well); padding: 6px 6px 6px 8px; }
183
+ .ins-ask input { flex: 1; height: 36px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cz-ink); outline: 0; }
184
+ .ins-ask .newm { position: relative; display: inline-flex; }
185
+ .ins-asknote { margin: -6px 4px 0; }
186
+
187
+ /* ── Outcomes ── */
188
+ .ins-prom { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px auto; align-items: center; gap: 10px; font-size: 13px; }
189
+ .ins-prom .pt { font-weight: 700; color: var(--cz-ink); }
190
+ .ins-prom .ins-bar1 { width: 80px; margin: 0; }
191
+ .ins-prom b { font-size: 12.5px; font-weight: 800; }
192
+ .ins-row.ins-ocols .nm { flex-direction: column; align-items: flex-start; gap: 6px; }
193
+ .ins-dec { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); border: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
194
+ .ins-dec svg { width: 14px; height: 14px; }
195
+
196
+ /* ── the side panel ── */
197
+ .ins-side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(520px, 100%); background: var(--cz-card); border-left: 1px solid var(--cz-hair); box-shadow: -24px 0 48px -30px rgba(42,46,53,.35); display: flex; flex-direction: column; font-family: var(--cz-sans); color: var(--cz-ink); }
198
+ .ins-side[hidden] { display: none; }
199
+ .ins-sh { padding: 18px 18px 10px; display: flex; align-items: flex-start; gap: 8px; }
200
+ .ins-sh > div { flex: 1; min-width: 0; }
201
+ .ins-eye { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--cz-ink2); }
202
+ .ins-sh h2 { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
203
+ .ins-st { display: inline-flex; gap: 4px; }
204
+ .ins-sb { flex: 1; overflow: auto; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
205
+ .ins-sf { border-top: 1px solid var(--cz-hair); padding: 12px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
206
+ .ins-sf > .note { flex: 1; margin: 0; min-width: 160px; }
207
+ .ins-sm:empty { display: none; }
208
+ .ins-sm { color: var(--cz-late); flex-basis: 100%; order: -1; }
209
+ .ins-primary { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); border: 0; font-size: 13.5px; font-weight: 800; cursor: pointer; }
210
+ .ins-primary svg { width: 15px; height: 15px; }
211
+ .ins-primary:disabled { opacity: .5; }
212
+ .ins-fl { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); margin: 0; }
213
+ p.ins-fl { flex-direction: row; align-items: center; }
214
+ .ins-inp, .ins-ta { width: 100%; box-sizing: border-box; height: 38px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 0 12px; background: var(--cz-card); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cz-ink); }
215
+ .ins-ta { min-height: 72px; padding: 8px 10px; resize: vertical; }
216
+ .ins-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
217
+ .ins-box { background: var(--cz-well); border-radius: 14px; padding: 10px 12px; margin: 0; line-height: 1.5; }
218
+ .ins-desc { display: flex; align-items: center; gap: 8px; background: var(--cz-well); border-radius: 18px; padding: 6px 6px 6px 14px; color: var(--cz-blueink); }
219
+ .ins-desc input { flex: 1; height: 36px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cz-ink); outline: 0; }
220
+ .ins-picked { display: flex; flex-direction: column; }
221
+ .ins-pk { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--cz-hair); font-size: 13.5px; }
222
+ .ins-pk b { flex: 1; }
223
+ .ins-pinrow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
224
+ .ins-tog { width: 34px; height: 20px; border-radius: 999px; background: var(--cz-well2); position: relative; flex: none; border: 0; cursor: pointer; padding: 0; }
225
+ .ins-tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); }
226
+ .ins-tog.on { background: var(--cz-blue); }
227
+ .ins-tog.on::after { left: 16px; }
228
+ .ins-opts { display: flex; flex-direction: column; gap: 8px; }
229
+ .ins-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--cz-hair); width: 100%; background: var(--cz-card); text-align: left; cursor: pointer; color: inherit; font: inherit; }
230
+ .ins-opt.on { border-color: rgba(72,148,234,.6); box-shadow: 0 0 0 3px rgba(72,148,234,.12); background: var(--cz-bluebg); }
231
+ .ins-opt .rd { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cz-dot-q); flex: none; margin-top: 2px; box-sizing: border-box; }
232
+ .ins-opt.on .rd { border: 5px solid var(--cz-blue); }
233
+ .ins-opt b { display: block; font-size: 14px; font-weight: 800; }
234
+ .ins-opt small { display: block; font-size: 12px; color: var(--cz-ink3); }
235
+ .ins-kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--cz-well); border-radius: 14px; padding: 10px 12px; }
236
+ .ins-kv3 small { display: block; font-size: 12px; color: var(--cz-ink3); }
237
+ .ins-kv3 b { font-size: 15px; font-weight: 800; }
238
+ .ins-side .ntw .mt1 { font-family: var(--cz-sans); }
239
+
240
+ /* ── the help popover ── */
241
+ .ins-help { position: fixed; z-index: 45; top: 74px; right: 32px; width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 110px); overflow: auto; background: var(--cz-card); border-radius: 22px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 18px 20px; font-family: var(--cz-sans); color: var(--cz-ink); }
242
+ .ins-help[hidden] { display: none; }
243
+ .ins-help h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
244
+ .ins-help h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 800; }
245
+ .ins-hc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
246
+ .ins-hc div { background: var(--cz-well); border-radius: 14px; padding: 10px 12px; }
247
+ .ins-hc b { font-size: 14px; font-weight: 800; }
248
+ .ins-hc p { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink2); line-height: 1.45; }
249
+ .ins-ht div { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--cz-hair); font-size: 12.5px; color: var(--cz-ink2); }
250
+ .ins-ht b { color: var(--cz-ink); font-weight: 800; }
251
+ .ins-foot { display: flex; padding: 4px 4px 0; }
252
+ .ins + .ifold, .ins .ifold { font-size: 12.5px; }
253
+
254
+ /* ── a side panel beside the table on a wide screen ── */
255
+ /* the side panel lies over the page, as in the agreed frames */
256
+
257
+ /* ── phone (<= 720px): one top bar line, then the tabs, then the period; goals as cards ── */
258
+ @media (max-width: 720px) {
259
+ .cz main.ins.stage { margin: 0; padding: 12px 12px 96px; }
260
+ .ins .cz-ib { width: 44px; height: 44px; }
261
+ .ins .cz-tab, .ins .cz-chip, .ins .cz-pick, .ins .cz-seg button, .ins .lk, .ins .nfr, .ins-dopen, .ins .infob, .ins-ini { min-height: 44px; }
262
+ .ins-bar { gap: 6px; }
263
+ .ins-ttl { display: block; font-weight: 800; font-size: 16px; margin-right: auto; order: 1; }
264
+ .ins-pkw { order: 0; }
265
+ .ins-tools { order: 2; margin-left: 0; display: contents; }
266
+ .ins-tools > * { order: 2; }
267
+ .ins-dk, .ins-vw, .ins-shell #srcChip { display: none !important; }
268
+ .ins-tabs { order: 3; flex-basis: 100%; margin-left: 0; }
269
+ .ins-perw { order: 4; flex-basis: 100%; }
270
+ .ins-perd { display: none; }
271
+ .ins-strip { align-items: flex-start; }
272
+ .ins-strip .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
273
+ .ins-row .spk { overflow: hidden; }
274
+ .ins-th, .ins-grp .q { display: none; }
275
+ .ins-tbl { border: 0; border-radius: 0; background: transparent; gap: 10px; overflow: visible; }
276
+ .ins-grp { background: transparent; border: 0; padding: 0 4px; min-height: 0; }
277
+ .ins-row.ins-cols { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'nm nm' 'val spk' 'pace pace' 'mv mv'; row-gap: 6px; border: 1px solid var(--cz-hair); border-radius: 18px; background: var(--cz-card); padding: 12px 14px; }
278
+ .ins-row .nm { grid-area: nm; } .ins-row .val { grid-area: val; } .ins-row .spk { grid-area: spk; align-self: end; } .ins-row .pace { grid-area: pace; } .ins-row .mv { grid-area: mv; }
279
+ .ins-row .val b { font-size: 24px; }
280
+ .ins-row .spk svg { width: 150px; height: 32px; }
281
+ .ins-row.ins-ocols, .ins-row.ins-lcols { grid-template-columns: minmax(0, 1fr); row-gap: 6px; border: 1px solid var(--cz-hair); border-radius: 18px; background: var(--cz-card); padding: 12px 14px; }
282
+ .ins-lrow { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 10px; }
283
+ .ins-lrow > :nth-child(n+3) { grid-column: 2; }
284
+ .ins-act { text-align: left; }
285
+ .ins-prom { grid-template-columns: auto minmax(0, 1fr); }
286
+ .ins-trends .ins-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 8px 0; }
287
+ .ins-trends { border: 0; }
288
+ .ins-hc { grid-template-columns: 1fr 1fr; }
289
+ .ins-lnote { margin-left: 0; }
290
+ .ins-help { top: 60px; right: 16px; }
291
+ }
292
+ @media (pointer: coarse) { .ins .cz-ib { min-width: 44px; min-height: 44px; } .ins .cz-tab, .ins .cz-chip { min-height: 44px; } }