create-pmos 0.398.0 → 0.399.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 (126) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +18 -14
  7. package/workspace/briefing-premium-board-test.js +80 -48
  8. package/workspace/briefing-premium-calendar-2-test.js +36 -36
  9. package/workspace/briefing-premium-calendar-3-test.js +39 -39
  10. package/workspace/briefing-premium-calendar-test.js +23 -24
  11. package/workspace/briefing-premium-doc-edit-test.js +6 -2
  12. package/workspace/briefing-premium-initiative-test.js +38 -16
  13. package/workspace/briefing-premium-insights-test.js +114 -37
  14. package/workspace/briefing-premium-metrics-test.js +6 -4
  15. package/workspace/briefing-premium-products-test.js +10 -7
  16. package/workspace/briefing-premium-sources-test.js +25 -22
  17. package/workspace/briefing-premium-test.js +46 -42
  18. package/workspace/briefing-premium-work-test.js +9 -9
  19. package/workspace/changelog.json +12 -0
  20. package/workspace/ev-everywhere-test.js +210 -0
  21. package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
  22. package/workspace/guide/home.md +39 -18
  23. package/workspace/guide/index.md +1 -1
  24. package/workspace/lib/board-grill.js +63 -0
  25. package/workspace/lib/board-premium.js +36 -5
  26. package/workspace/lib/initiative-layout.js +77 -0
  27. package/workspace/lib/insights-premium.js +3 -2
  28. package/workspace/lib/insights-records.js +21 -7
  29. package/workspace/lib/meeting-points.js +52 -0
  30. package/workspace/lib/news-for-you.js +88 -0
  31. package/workspace/lib/notes-series.js +29 -6
  32. package/workspace/lib/report-confirm.js +48 -0
  33. package/workspace/lib/route-modules.js +8 -0
  34. package/workspace/lib/routes-board-docs.js +46 -0
  35. package/workspace/lib/routes-board-grill.js +90 -0
  36. package/workspace/lib/routes-home-review.js +108 -0
  37. package/workspace/lib/routes-initiative-layout.js +57 -0
  38. package/workspace/lib/routes-insights-premium.js +4 -1
  39. package/workspace/lib/routes-insights-records.js +8 -4
  40. package/workspace/lib/routes-meeting-points.js +37 -0
  41. package/workspace/lib/routes-news.js +57 -0
  42. package/workspace/lib/routes-notes.js +2 -1
  43. package/workspace/lib/routes-report-confirm.js +31 -0
  44. package/workspace/lib/routes-search.js +38 -0
  45. package/workspace/lib/search-index.js +176 -0
  46. package/workspace/package-lock.json +2 -2
  47. package/workspace/package.json +1 -1
  48. package/workspace/premium-board-actions-test.js +86 -50
  49. package/workspace/premium-briefing-depth-test.js +55 -54
  50. package/workspace/premium-chat-chart-tab-test.js +4 -2
  51. package/workspace/premium-chat-report-tab-test.js +16 -2
  52. package/workspace/premium-core-doc-issue-test.js +15 -13
  53. package/workspace/premium-phone-card-test.js +5 -3
  54. package/workspace/premium-report-read-test.js +55 -18
  55. package/workspace/premium-vw-backlog-test.js +2 -2
  56. package/workspace/premium-vw-cal-test.js +50 -35
  57. package/workspace/premium-vw-doc-test.js +9 -3
  58. package/workspace/premium-vw-item-test.js +1 -1
  59. package/workspace/premium-vw-jira-test.js +2 -2
  60. package/workspace/premium-vw-meet-test.js +37 -40
  61. package/workspace/premium-vw-notes-test.js +21 -19
  62. package/workspace/premium-vw-rec-test.js +11 -12
  63. package/workspace/premium-welcome-test.js +3 -3
  64. package/workspace/premium-work-depth-test.js +3 -3
  65. package/workspace/public/pm/bd-acts.js +303 -225
  66. package/workspace/public/pm/bd-asks.js +261 -0
  67. package/workspace/public/pm/bd-pop.js +59 -0
  68. package/workspace/public/pm/bd-span.js +49 -13
  69. package/workspace/public/pm/bd-views.js +169 -0
  70. package/workspace/public/pm/cozy-board.css +301 -0
  71. package/workspace/public/pm/cozy-ev.css +228 -0
  72. package/workspace/public/pm/cozy-evmodel.js +106 -0
  73. package/workspace/public/pm/cozy-evui.js +47 -0
  74. package/workspace/public/pm/cozy-insights.css +148 -10
  75. package/workspace/public/pm/cozy-nav.js +103 -39
  76. package/workspace/public/pm/cozy-news.js +140 -0
  77. package/workspace/public/pm/cozy-search.js +203 -0
  78. package/workspace/public/pm/cozy-settings.js +198 -0
  79. package/workspace/public/pm/cozy-sources.js +89 -0
  80. package/workspace/public/pm/cozy-today.css +217 -0
  81. package/workspace/public/pm/cozy-viewer.js +1 -0
  82. package/workspace/public/pm/cozy-vw-mtg.css +350 -0
  83. package/workspace/public/pm/cozy-vw-rp.css +152 -0
  84. package/workspace/public/pm/home-adddoc.js +5 -5
  85. package/workspace/public/pm/home-app.js +329 -55
  86. package/workspace/public/pm/home-around.js +24 -126
  87. package/workspace/public/pm/home-chat.js +67 -14
  88. package/workspace/public/pm/home-data.js +6 -6
  89. package/workspace/public/pm/home-dictate.js +54 -0
  90. package/workspace/public/pm/home-draft.js +6 -6
  91. package/workspace/public/pm/home-ini-model.js +190 -0
  92. package/workspace/public/pm/home-ini.css +171 -0
  93. package/workspace/public/pm/home-ini.js +456 -0
  94. package/workspace/public/pm/home-list.js +276 -0
  95. package/workspace/public/pm/home-more.js +17 -134
  96. package/workspace/public/pm/home-phone-card.js +4 -4
  97. package/workspace/public/pm/home-review.js +104 -0
  98. package/workspace/public/pm/home-task.js +67 -0
  99. package/workspace/public/pm/home-today.js +144 -0
  100. package/workspace/public/pm/home-work.js +54 -26
  101. package/workspace/public/pm/premium-board.js +163 -39
  102. package/workspace/public/pm/premium-chart-tab.js +4 -5
  103. package/workspace/public/pm/premium-first.js +5 -7
  104. package/workspace/public/pm/premium-insights.js +499 -202
  105. package/workspace/public/pm/premium-mtg-present.js +138 -0
  106. package/workspace/public/pm/premium-mtg-replay.js +142 -0
  107. package/workspace/public/pm/premium-report-read.js +216 -52
  108. package/workspace/public/pm/premium-report-tab.js +44 -19
  109. package/workspace/public/pm/premium-shell.js +7 -7
  110. package/workspace/public/pm/premium-vw-cal.js +150 -60
  111. package/workspace/public/pm/premium-vw-mtg.js +488 -261
  112. package/workspace/public/pm/premium-vw-notes.js +61 -0
  113. package/workspace/public/pm/rp-parts.js +269 -0
  114. package/workspace/public/premium-board.html +4 -3
  115. package/workspace/public/premium-insights.html +10 -10
  116. package/workspace/public/premium.html +3 -1
  117. package/workspace/r/m1.png +0 -0
  118. package/workspace/r/m2.png +0 -0
  119. package/workspace/r/m3.png +0 -0
  120. package/workspace/r/nl.png +0 -0
  121. package/workspace/test-lists/initiative-layout.json +9 -0
  122. package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
  123. package/workspace/test-lists/premium-uncovered-reports.json +9 -0
  124. package/workspace/test-lists/uf-everywhere.json +15 -0
  125. package/workspace/test-lists/uf-home.json +9 -0
  126. package/workspace/test-lists/uncovered-board.json +9 -0
@@ -0,0 +1,169 @@
1
+ /* pm/bd-views.js — the Board's List and By stage views, the phone list and the Documents tab (initiative premium-uncovered-features, Board:
2
+ * BdList, BdByStage, BdPhone, BdDocs). Markup from the page's model; the presses go back to the page (premium-board.js) through data- attributes.
3
+ * · List (BdList): one table, sorted by need (your turn, blocked, late, at risk, then by stage); a column title sorts by that column.
4
+ * Monitor and Evaluate sit folded at the foot until "Show them". Each row has ⋯ for its actions (BdActions).
5
+ * · By stage (BdByStage): one column per stage, a card per initiative; Monitor and Evaluate fold into strips when nothing in them needs
6
+ * you, and a strip opens its column. A card is dragged to another column to move its stage (POST /api/boards/move, with Undo).
7
+ * · the phone list (BdPhone): Your turn, At risk or late, On track.
8
+ * · Documents (BdDocs): the board's core documents and the documents its initiatives link (PRD, rubric, evaluation, release notes), with
9
+ * kind chips, health, when it changed and who changed it (GET /api/board-docs), and a row opens the document's panel.
10
+ * Nothing here invents a value: what no record holds is shown as "—" or not drawn. */
11
+ import { esc } from './premium-shell.js';
12
+
13
+ let A = null; // the page: { M(), statusOf(r), usual(t), trail(r), docMeta(path), sel() }
14
+ export function init(api) { A = api; }
15
+ const M = () => A.M();
16
+ const SV = (d) => `<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
17
+ const MORE = 'M5 12h.01M12 12h.01M19 12h.01';
18
+ const cap = (s) => (s ? s.charAt(0).toUpperCase() + s.slice(1) : '');
19
+ const plural = (n, a, b) => (n === 1 ? a : b);
20
+ /** Two letters for an avatar: "Mei" stays "Mei", "Rizky" becomes "Ri", "you" becomes "W"-style initials of the name. */
21
+ export const initials = (name) => { const s = String(name || '').trim(); if (!s) return ''; const p = s.split(/\s+/); return p.length > 1 ? (p[0][0] + p[1][0]).toUpperCase() : s.length <= 3 ? s : s.slice(0, 2); };
22
+ export const avatar = (name, cls = '') => (name ? `<span class="bd-av${cls ? ' ' + cls : ''}" title="${esc(name)}" aria-label="${esc(name)}">${esc(initials(name))}</span>` : '<span class="bd-amut">—</span>');
23
+
24
+ /* ── the step a row is in, and what a row needs ─────────────────────────────────────────────────────────────── */
25
+ const kOf = (r) => (r.track && r.track.k >= 0 ? r.track.k : 99);
26
+ const isME = (r) => r.track && r.track.k >= 6;
27
+ /** The order of need: your turn, blocked, late, at risk, idle, then the rest. */
28
+ export const needOf = (r) => { const t = r.track || {}; return t.you ? 0 : t.blocked ? 1 : r.late ? 2 : r.status === 'at risk' ? 3 : t.idle != null ? 4 : 5; };
29
+ /** The status line of a row in the list, the cards and the phone: the page's status, with "N blocked in Jira" where a ticket is blocked. */
30
+ export function statusLine(r) {
31
+ const s = A.statusOf(r), t = r.track || {};
32
+ if (t.blocked && !t.you && !(r.acts && r.acts.life === 'hold')) return { tone: 'red', mo: 'm-crit', text: t.blocked + ' blocked in Jira' };
33
+ return s;
34
+ }
35
+ /** The output toward the step as a fraction: points or tickets for Build and Deliver, the parts for the others, the record's percent. */
36
+ export function outOf(r) {
37
+ const t = r.track || {};
38
+ if (t.prog && t.prog.unit !== '%' && t.prog.total) return { pct: Math.round((t.prog.done / t.prog.total) * 100), count: t.prog.unit === 'tickets', label: t.count };
39
+ if (t.pct != null) return { pct: t.pct, count: false, label: t.pct + '%' };
40
+ const segs = t.segs || [], n = segs.filter((s) => !s.tk).length;
41
+ if (n && segs.some((s) => s.cls === 'dn')) return { pct: Math.round((segs.filter((s) => s.cls === 'dn').length / n) * 100), count: true, label: t.count };
42
+ return null;
43
+ }
44
+ /** A progress bar; a count (tickets, parts) is striped so it never reads as points (BdPanel). */
45
+ export const barHtml = (o, cls = '') => (o ? `<span class="bd-bar${cls ? ' ' + cls : ''}" role="img" aria-label="${esc(o.label || o.pct + '%')}${o.count ? ' (by count)' : ''}"><i class="${o.count ? 'cnt' : ''}" style="width:${Math.max(0, Math.min(100, o.pct))}%"></i></span>` : '<span class="bd-bar" aria-hidden="true"><i style="width:0"></i></span>');
46
+ const stepText = (r, days) => { const t = r.track || {}; return (t.label || r.stage || 'No stage') + (days && t.days != null ? ' · ' + t.days + 'd' : ''); };
47
+ /** What the row waits on next: the trail's next part, else the first line under its Output bar. */
48
+ const nextOf = (r) => { const t = r.track || {}; if (typeof t.next === 'string' && t.next) return t.next; if (t.next && t.next.text) return t.next.text; const l = (t.line || [])[0]; return l ? l.text : ''; };
49
+
50
+ /* ── List (BdList) ───────────────────────────────────────────────────────────────────────────────────────────── */
51
+ let sortBy = 'need', meOpen = false;
52
+ const COLS = [['title', 'Initiative'], ['kind', 'Kind'], ['stage', 'Stage'], ['need', 'Status'], ['owner', 'Owner'], ['', 'Next'], ['finish', 'Finish'], ['', 'Output'], ['', '']];
53
+ const SORTS = {
54
+ need: (a, b) => needOf(a) - needOf(b) || kOf(a) - kOf(b),
55
+ title: (a, b) => String(a.title).localeCompare(String(b.title)),
56
+ kind: (a, b) => String(a.lane || '').localeCompare(String(b.lane || '')) || needOf(a) - needOf(b),
57
+ stage: (a, b) => kOf(a) - kOf(b) || needOf(a) - needOf(b),
58
+ owner: (a, b) => String(a.owner || '~').localeCompare(String(b.owner || '~')),
59
+ finish: (a, b) => String(a.end || '9999').localeCompare(String(b.end || '9999')),
60
+ };
61
+ export function setSort(k) { if (SORTS[k]) sortBy = k; }
62
+ export function toggleME() { meOpen = !meOpen; }
63
+ function listRow(r) {
64
+ const s = statusLine(r), sel = A.sel && A.sel() === r.key, finish = r.end ? r.finish : '—';
65
+ return `<div class="bd-lt${sel ? ' sel' : ''}${r.acts && r.acts.life === 'hold' ? ' held' : ''}" role="row" data-row="${esc(r.key)}">`
66
+ + `<button type="button" class="bd-ltn ini2" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${esc(r.title)}</b></button>`
67
+ + `<span role="cell" class="bd-amut">${esc(cap(r.lane) || '—')}</span><span role="cell">${(r.track || {}).ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(stepText(r, true))}</span>`
68
+ + `<span role="cell" class="cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span>`
69
+ + `<span role="cell">${avatar(r.owner)}</span><span role="cell" class="bd-amut bd-ell">${esc(nextOf(r) || '—')}</span>`
70
+ + `<span role="cell"${r.over ? ' class="bd-late"' : ''}>${esc(finish)}</span><span role="cell">${barHtml(outOf(r))}</span>`
71
+ + `<button type="button" class="bd-ib sm" data-rowmenu="${esc(r.key)}" aria-haspopup="menu" aria-expanded="false" aria-label="More for ${esc(r.title)}" title="Actions">${SV(MORE)}</button></div>`;
72
+ }
73
+ export function listHtml(L, filtered) {
74
+ const S = M().steps || [];
75
+ const all = L.slice().sort(SORTS[sortBy] || SORTS.need);
76
+ const top = all.filter((r) => !isME(r)), me = all.filter(isME);
77
+ const meTotal = Math.max(me.length, (S[6] ? S[6].count : 0) + (S[7] ? S[7].count : 0));
78
+ const head = `<div class="bd-lt h" role="row">${COLS.map(([k, n], i) => (k ? `<button type="button" role="columnheader" class="bd-lth${sortBy === k ? ' on' : ''}" data-sort="${k}" aria-sort="${sortBy === k ? 'ascending' : 'none'}">${i === 0 ? esc(n) + (sortBy === 'need' ? ' · sorted by need' : '') : esc(n)}</button>` : `<span role="columnheader">${esc(n)}</span>`)).join('')}</div>`;
79
+ if (!L.length) return `<div class="bd-ltw" role="table" aria-label="Initiatives">${head}<p class="bt-empty">${filtered ? 'No initiative matches the chips or the filter. <button type="button" class="dlink" id="fClear">Clear them</button>' : 'No initiatives are on this board\'s now view.'}</p></div>`;
80
+ const fold = meTotal ? (meOpen
81
+ ? me.map(listRow).join('') + `<div class="bd-lt foot" role="row"><span class="bd-amut">Monitor and Evaluate · ${meTotal}${meTotal > me.length ? ' · ' + (meTotal - me.length) + ' more are not loaded' : ''}</span><button type="button" class="bd-btn sm" data-me aria-expanded="true">Fold them</button></div>`
82
+ : `<div class="bd-lt foot" role="row"><span class="bd-amut">${meTotal} more in Monitor and Evaluate · sorted below</span><button type="button" class="bd-btn sm" data-me aria-expanded="false">Show them</button></div>`) : '';
83
+ return `<div class="bd-ltw" role="table" aria-label="Initiatives">${head}${top.map(listRow).join('')}${fold}</div><p class="bd-foot">Press a column title to sort. Press a row to open its panel, the same panel as the stage track.</p>`;
84
+ }
85
+
86
+ /* ── By stage (BdByStage) ─────────────────────────────────────────────────────────────────────────────────────── */
87
+ const opened = new Set(); // the Monitor and Evaluate strips the PM opened
88
+ export function toggleStrip(k) { if (opened.has(k)) opened.delete(k); else opened.add(k); }
89
+ const EMPTY = ['Nothing in Triage.', 'Nothing in Discover.', 'Nothing in Plan.', 'Nothing waits to be ranked.', 'Nothing in Build.', 'Nothing waits to ship.', 'Nothing in Monitor.', 'Nothing waits for a verdict.'];
90
+ function card(r, drag) {
91
+ const t = r.track || {}, s = statusLine(r), u = A.usual(t);
92
+ const left = r.owner ? avatar(r.owner) : `<span>${esc(t.count && t.count !== 'Not counted yet' ? (t.output || '').split(/[ ,+]/)[0] + ' ' + t.count : '')}</span>`;
93
+ const right = t.key === 'deliver' && r.release ? r.release.name + ' · ' + r.release.at : (t.key === 'build' || t.key === 'deliver') && t.prog && t.prog.unit !== '%' ? t.count : t.days != null ? t.days + 'd' + (u ? ' · usually ' + u.days : '') : '';
94
+ return `<button type="button" class="bd-bc ini2${t.ms ? ' ms' : ''}${t.you ? ' you' : ''}${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}"${drag ? ' draggable="true"' : ''} aria-haspopup="dialog"><b class="t">${esc(r.title)}</b><span class="s cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span><span class="f">${left}<span>${esc(right)}</span></span></button>`;
95
+ }
96
+ export function stagesHtml(L, o = {}) {
97
+ const S = M().steps || [], drag = !M().board.self && !o.phone;
98
+ const cols = S.map((s, j) => {
99
+ const rs = L.filter((r) => r.track && r.track.k === j).sort((a, b) => needOf(a) - needOf(b));
100
+ const fold = j >= 6 && !o.phone && !opened.has(s.key) && !rs.some((r) => r.track.you);
101
+ if (fold) return `<button type="button" class="bd-strip" data-strip="${s.key}" aria-label="Show ${esc(s.label)}, ${s.count} ${plural(s.count, 'initiative', 'initiatives')}"><span>${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)} · ${s.count}</span></button>`;
102
+ const shut = j >= 6 && !o.phone && opened.has(s.key) ? `<button type="button" class="bd-ib sm" data-strip="${s.key}" aria-label="Fold ${esc(s.label)}" title="Fold">${SV('M7 14l5-5 5 5')}</button>` : '';
103
+ return `<section class="bd-scol" aria-label="${esc(s.label)}" data-step="${j}"><h3>${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}<span>${s.count}</span>${shut}</h3>${rs.map((r) => card(r, drag)).join('') || `<p class="bd-amut bd-cempty">${esc(EMPTY[j] || 'Nothing here.')}</p>`}</section>`;
104
+ }).join('');
105
+ const foot = o.phone ? '' : `<div class="bd-foot bd-sfoot"><span>Monitor and Evaluate fold when nothing in them needs you. Press a strip to open it.</span>${drag ? '<span>Drag a card to move its stage</span>' : ''}</div>`;
106
+ return `<div class="bd-scols${o.phone ? ' ph' : ''}">${cols}</div>${foot}`;
107
+ }
108
+
109
+ /* ── the phone list (BdPhone) ─────────────────────────────────────────────────────────────────────────────────── */
110
+ export function phoneListHtml(L) {
111
+ const you = L.filter((r) => r.track && r.track.you), bad = L.filter((r) => !you.includes(r) && needOf(r) <= 3), rest = L.filter((r) => !you.includes(r) && !bad.includes(r));
112
+ const row = (r) => {
113
+ const s = statusLine(r), t = r.track || {};
114
+ const sub = [t.label || r.stage, t.you ? t.you.replace(/^Your /, 'your ') : s.tone !== 'ok' && s.tone !== 'q' ? s.text.toLowerCase() : '', r.owner].filter(Boolean).join(' · ');
115
+ return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${esc(r.title)}</span><span class="s${t.you ? '' : ' q'}">${esc(sub)}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}</button>`;
116
+ };
117
+ const grp = (name, rs) => (rs.length ? `<div class="bd-ghd">${esc(name)}<span class="n">${rs.length}</span></div>${rs.map(row).join('')}` : '');
118
+ if (!L.length) return '<p class="bt-empty">No initiative matches the chips or the filter.</p>';
119
+ return `<div class="bd-plist">${grp('Your turn', you)}${grp('At risk or late', bad)}${grp('On track', rest)}</div>`;
120
+ }
121
+
122
+ /* ── Documents (BdDocs) ───────────────────────────────────────────────────────────────────────────────────────── */
123
+ let docKind = 'all';
124
+ export function setDocKind(k) { docKind = k || 'all'; }
125
+ const DOC_IC = { PRD: 'M7 3h7l5 5v13H7zM14 3v5h5', BRD: 'M7 3h7l5 5v13H7zM14 3v5h5', Rubric: 'M5 12l5 5 9-10', Evaluation: 'M5 20V11M12 20V5M19 20v-6', 'Release notes': 'M4 5h16v14H4zM8 9h8M8 13h5', Board: 'M4 4h16v16H4zM4 9h16M9 9v11' };
126
+ const ST_TONE = { ok: 'ok', draft: 'y', stale: 'w', due: 'w', missing: '', linked: '' };
127
+ /** Every document the tab lists: the initiatives' own (from the trail's links) and the board's core documents. */
128
+ export function docRows() {
129
+ const out = [], seen = new Set(), m = M();
130
+ for (const r of m.initiatives.list.rows) {
131
+ const T = A.trail(r), L = (T && T.links) || {};
132
+ const add = (kind, label, path, extra = {}) => { if (!path || seen.has(path)) return; seen.add(path); out.push({ src: 'ini', kind, title: label, path, ini: r, ...extra }); };
133
+ const drift = (T && T.drift) || [];
134
+ const parts = r.track && r.track.key === 'discover' && T && Array.isArray(T.parts) ? T.parts : null;
135
+ add('PRD', L.prdVersion ? 'PRD v' + String(L.prdVersion).replace(/^v/i, '') : 'PRD', L.prd, { drift, parts });
136
+ add('Rubric', 'Rubric', L.rubric); add('Evaluation', 'Evaluation', L.evaluation); add('Release notes', 'Release notes' + (r.release ? ' ' + r.release.name : ''), L.notes, { you: !!(r.track && r.track.you && r.track.key === 'deliver') });
137
+ }
138
+ for (const d of (m.docs && m.docs.rows) || []) out.push({ src: 'core', kind: 'Board', title: d.title, path: d.path || null, d });
139
+ return out;
140
+ }
141
+ /** A row's id: a core document by its key (its path appears only once drafted), an initiative's by its path. */
142
+ export const docId = (x) => (x.src === 'core' ? 'core:' + x.d.key : x.path);
143
+ export function healthOf(x) {
144
+ if (x.src === 'core') return { tone: ST_TONE[x.d.st] || '', text: x.d.state || '—' };
145
+ if (x.drift && x.drift.length) return { tone: 'w', text: 'Changed after the push' };
146
+ if (x.parts) { const d = x.parts.filter((p) => p.done).length; return { tone: d === x.parts.length ? 'ok' : '', text: d === x.parts.length ? 'Complete' : d + ' of ' + x.parts.length + ' parts' }; }
147
+ if (x.you) return { tone: 'y', text: 'Waits on your sign-off' };
148
+ return { tone: '', text: 'Linked' };
149
+ }
150
+ export function docsHtml() {
151
+ const m = M(), D = m.docs || { rows: [] }, rows = docRows();
152
+ const kinds = [...new Set(rows.map((x) => x.kind))];
153
+ if (docKind !== 'all' && !kinds.includes(docKind)) docKind = 'all';
154
+ const chips = `<div class="bd-dchips" role="group" aria-label="Kind">${[['all', 'All', rows.length]].concat(kinds.map((k) => [k, k, rows.filter((x) => x.kind === k).length])).map(([k, n, c]) => `<button type="button" class="bd-chip${docKind === k ? ' on' : ''}" data-dkind="${esc(k)}" aria-pressed="${docKind === k}">${esc(n)} ${c}</button>`).join('')}<span class="bd-sp"></span>${D.scope ? '<button type="button" class="bd-btn" id="addDoc" data-act="adddoc">Add a document</button>' : ''}</div>`;
155
+ const shown = rows.filter((x) => docKind === 'all' || x.kind === docKind);
156
+ if (!rows.length) return chips + `<p class="bd-amut">${D.missing ? 'The core documents could not be read, so none is shown.' : 'No document is on this board yet.'}</p>`;
157
+ const sel = A.docSel ? A.docSel() : null;
158
+ const row = (x) => {
159
+ const h = healthOf(x), meta = x.path ? A.docMeta(x.path) : null, d = x.d || {};
160
+ const changed = x.src === 'core' ? d.when || d.added || '—' : meta && meta.changed ? meta.changed + (x.drift && x.drift.length ? ' · after the push' : '') : '—';
161
+ const by = x.src === 'core' ? `<span class="bd-amut">${esc(d.by || '—')}</span>` : meta && meta.by ? avatar(meta.by, 'b') : '<span class="bd-amut">—</span>';
162
+ const act = x.src === 'core' && d.act && d.act.kind === 'draft' ? `<button type="button" class="bd-btn sm" data-act="draft" data-key="${esc(d.key)}"${d.running ? ' disabled' : ''}>${d.running ? 'Drafting' : esc(d.act.label || 'Draft it')}</button>` : '';
163
+ const id = docId(x);
164
+ return `<div class="bd-dt${sel === id ? ' sel' : ''}" role="row" data-docrow="${esc(id)}"><span class="bd-dic" aria-hidden="true">${SV(DOC_IC[x.kind] || DOC_IC.PRD)}</span>`
165
+ + `<button type="button" class="bd-dlink" role="rowheader" data-opendoc="${esc(id)}">${esc(x.title)}</button><span role="cell">${esc(x.src === 'core' ? m.board.name || 'Board' : x.ini.title)}</span>`
166
+ + `<span role="cell"><span class="bd-pill${h.tone ? ' ' + h.tone : ''}">${esc(h.text)}</span></span><span role="cell" class="bd-amut">${esc(changed)}</span><span role="cell" class="bd-dby">${by}${act}</span></div>`;
167
+ };
168
+ return chips + `<div class="bd-dtw" role="table" aria-label="Documents"><div class="bd-dt h" role="row"><span></span><span role="columnheader">Document</span><span role="columnheader">Initiative</span><span role="columnheader">Health</span><span role="columnheader">Changed</span><span role="columnheader">By</span></div>${shown.map(row).join('')}</div>`;
169
+ }
@@ -638,3 +638,304 @@ button.bd-lr:hover { background: var(--bd-row); }
638
638
  .bd-chiprow { margin: -9px -16px -8px; } /* AgBoardPhone: the chips 45 px under the top bar, the first card 29 px under the chips */ /* AgBoardPhone: the chips sit 45 px under the top bar */
639
639
  .bd-hd .bd-ib:not(.solid):hover, .bd-hd .bd-ib:not(.solid):active { background: none; } /* the phone's view button stays plain */
640
640
  }
641
+
642
+ /* ── the uncovered features (initiative premium-uncovered-features, Board: BdList, BdByStage, BdDocs, BdSpans, BdAsks, BdNew, BdGrill, BdActions,
643
+ * BdFilter, BdSprint, BdPanel, BdPhone, BdHead). The canvas's cozy parts (.pop .mi .mlbl .pill .box .need .warn .field .inp .bar .av .kbd) as bd-* ── */
644
+ /* popovers (pm/bd-pop.js) */
645
+ .bd-pp { position: fixed; z-index: 50; background: var(--cz-card); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 24px); overflow: auto; font-family: var(--cz-sans); color: var(--cz-ink); width: 320px; }
646
+ .bd-pp[hidden], .bd-scrim[hidden] { display: none; }
647
+ .bd-scrim { position: fixed; inset: 0; z-index: 49; background: rgba(42,46,53,.32); }
648
+ .bd-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--cz-hair); margin: 2px auto 8px; flex: none; }
649
+ .bd-mi { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: 600 14px var(--cz-sans); color: var(--cz-ink); width: 100%; cursor: pointer; }
650
+ .bd-mi:hover, .bd-mi.hl { background: var(--cz-well); }
651
+ .bd-mi:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
652
+ .bd-mi svg { width: 16px; height: 16px; color: var(--cz-ink2); flex: none; }
653
+ .bd-mi .k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
654
+ .bd-mi .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; padding: 6px 0; }
655
+ .bd-mi .tx > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
656
+ .bd-mi mark { background: var(--cz-bluebg); color: var(--cz-blueink); border-radius: 3px; }
657
+ .bd-mlbl { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); padding: 8px 12px 4px; }
658
+ .bd-mnote { padding: 4px 12px 8px; }
659
+ .bd-hr { height: 1px; background: var(--cz-hair); margin: 4px 6px; flex: none; }
660
+ .bd-ppb { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 10px; }
661
+ .bd-pp .sm, .bd-peek .sm { font-size: 12.5px; }
662
+ .bd-pp b.sm { font-weight: 800; }
663
+ /* the canvas's small parts */
664
+ .bd-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 11.5px var(--cz-sans); background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; flex: none; }
665
+ .bd-pill.y { background: var(--cz-bluebg); color: var(--cz-blueink); }
666
+ .bd-pill.w { background: var(--cz-riskbg); color: var(--cz-risk); }
667
+ .bd-pill.l { background: var(--cz-latebg); color: var(--cz-late); }
668
+ .bd-pill.r { background: var(--cz-redbg); color: var(--cz-red); }
669
+ .bd-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
670
+ .bd-pills, .bd-chips, .bd-mchips, .bd-fg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
671
+ .bd-fg { padding: 0 12px 6px; }
672
+ .bd-box { background: var(--cz-well); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
673
+ .bd-box.sm { padding: 10px 12px; font-size: 12.5px; }
674
+ .bd-box b { font-weight: 800; }
675
+ .bd-boxh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
676
+ .bd-need { background: var(--cz-bluebg); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
677
+ .bd-need svg { width: 16px; height: 16px; color: var(--cz-blueink); flex: none; }
678
+ .bd-need.sm { padding: 10px 12px; font-size: 12.5px; }
679
+ .bd-warn { background: var(--cz-riskbg); border-radius: 14px; padding: 12px 14px; color: var(--cz-risk); display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin: 0; }
680
+ .bd-warn.sm { padding: 8px 12px; font-size: 12.5px; }
681
+ .bd-warn span { color: var(--cz-ink2); }
682
+ .bd-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); }
683
+ .bd-flbl { font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); }
684
+ .bd-form .bd-field { font-size: 12.5px; color: var(--cz-ink2); gap: 6px; }
685
+ .bd-inp, .bd-form .bd-inp { height: 42px; border-radius: 14px; background: var(--cz-well); border: 1px solid transparent; padding: 0 14px; font: 500 14px var(--cz-sans); color: var(--cz-ink); width: 100%; box-sizing: border-box; }
686
+ .bd-inp.sm { height: 34px; font-size: 13px; border-radius: 12px; }
687
+ .bd-inp.ta, .bd-form textarea.bd-inp { height: auto; min-height: 72px; padding: 10px 14px; resize: vertical; }
688
+ .bd-inp.ro { display: flex; align-items: center; color: var(--cz-ink2); font-weight: 600; }
689
+ .bd-inp:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
690
+ .bd-av { width: 26px; height: 26px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font: 800 10.5px var(--cz-sans); display: inline-flex; align-items: center; justify-content: center; flex: none; }
691
+ .bd-av.sm { width: 22px; height: 22px; font-size: 9.5px; }
692
+ .bd-av.xs { width: 18px; height: 18px; font-size: 8.5px; margin-left: -4px; }
693
+ .bd-av.b { background: var(--cz-bluebg); color: var(--cz-blueink); }
694
+ .bd-kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--cz-well); font: 700 11.5px var(--cz-sans); color: var(--cz-ink3); flex: none; }
695
+ .bd-bar { display: block; height: 6px; border-radius: 3px; background: var(--bd-rail); overflow: hidden; min-width: 60px; }
696
+ .bd-bar i { display: block; height: 100%; border-radius: 3px; background: var(--bd-done); }
697
+ .bd-bar i.cnt { background: repeating-linear-gradient(45deg, var(--cz-c-8c929b) 0 4px, var(--cz-c-b9bdc4) 4px 8px); }
698
+ .bd-bar.y i { background: var(--cz-blue); }
699
+ .bd-bar.y i.cnt { background: repeating-linear-gradient(45deg, var(--cz-blue) 0 4px, var(--cz-bluebg) 4px 8px); }
700
+ .bd-ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
701
+ .bd-push { margin-left: auto; } .bd-push0 { flex: 1; min-width: 0; }
702
+ .bd-lbl { margin: 4px 0 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
703
+ .bd-h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--cz-ink); }
704
+ .bd-late { color: var(--cz-late); font-weight: 700; }
705
+ .bd-x0 { all: unset; cursor: pointer; display: inline-flex; margin-right: -4px; color: var(--cz-ink3); }
706
+ .bd-x0 svg { width: 12px; height: 12px; }
707
+ .bd-chip.sm { height: 26px; padding: 0 9px; font-size: 12px; }
708
+ .bd-btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
709
+ .bd-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
710
+ .bd-btn.ghost:hover { background: var(--cz-well); }
711
+ .bd-btn.wide { width: 100%; height: 44px; }
712
+ .bd-btn svg { width: 14px; height: 14px; }
713
+ .bd-btn.on { background: var(--cz-bluebg); color: var(--cz-blueink); border-color: transparent; }
714
+ a.bd-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
715
+ .bd-seg > button:not(.bd-ib) { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 999px; font: 700 13px var(--cz-sans); color: var(--cz-ink3); display: inline-flex; align-items: center; }
716
+ .bd-seg > button[aria-pressed="true"]:not(.bd-ib) { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
717
+ .bd-pfoot { margin-top: auto; padding-top: 6px; }
718
+ /* the "Showing" bar (BdFilter) */
719
+ #bdShowing[hidden] { display: none; }
720
+ .bd-showing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
721
+ .bd-showing .bd-mlbl { padding: 0 4px 0 0; }
722
+ .bd-showing .bd-chip svg { width: 12px; height: 12px; }
723
+ .bd-showing .dlink { font: 700 12.5px var(--cz-sans); color: var(--cz-blueink); background: none; border: 0; cursor: pointer; padding: 0 4px; }
724
+ /* Find, Filter */
725
+ .bd-finp { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 12px; border-radius: 14px; background: var(--cz-well); margin: 2px 2px 6px; }
726
+ .bd-finp svg { width: 16px; height: 16px; color: var(--cz-ink3); flex: none; }
727
+ .bd-finp input { flex: 1; min-width: 0; border: 0; background: none; font: 600 14px var(--cz-sans); color: var(--cz-ink); outline: none; }
728
+ .bd-finp input::-webkit-search-cancel-button { display: none; }
729
+ .bd-fres { display: flex; flex-direction: column; gap: 2px; }
730
+ .bd-ffoot { padding: 8px 6px 2px; border-top: 1px solid var(--cz-hair); margin-top: 4px; }
731
+ /* the row menu, the asks, the trend */
732
+ .bd-menu .bd-mlbl:first-child { color: var(--cz-ink); font-size: 13px; }
733
+ .bd-phead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; flex-wrap: wrap; }
734
+ .bd-acards { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 4px; }
735
+ .bd-acard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cz-hair); background: var(--cz-card); font-size: 13px; }
736
+ .bd-acard.row { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; padding: 10px 12px; }
737
+ .bd-acard.row .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
738
+ .bd-acard.row svg { width: 14px; height: 14px; color: var(--cz-ink3); }
739
+ .bd-awho { display: flex; align-items: center; gap: 8px; }
740
+ .bd-awho b { font-weight: 800; }
741
+ .bd-aq { margin: 0; font-size: 13.5px; color: var(--cz-ink); line-height: 1.4; }
742
+ .bd-aprod { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
743
+ .bd-unsure { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; margin: 4px; border-radius: 16px; background: var(--cz-well); }
744
+ .bd-un1 { display: flex; flex-direction: column; gap: 6px; }
745
+ .bd-un1 p { margin: 0; }
746
+ .bd-unsure .bd-hr { height: auto; background: none; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--cz-hair); }
747
+ .bd-trh { display: flex; align-items: center; gap: 8px; padding: 6px 6px 0; }
748
+ .bd-trh b { flex: 1; }
749
+ .bd-trend { padding: 14px; gap: 10px; }
750
+ .bd-trend .sm { margin: 0; }
751
+ .bd-spark { width: 100%; height: 70px; stroke-width: 2; fill: none; }
752
+ .bd-spark .ax { stroke: var(--cz-hair); stroke-width: 1; }
753
+ .bd-spark .ln { stroke: var(--cz-late); }
754
+ .bd-spark circle { fill: var(--cz-late); stroke: none; }
755
+ /* sprints and releases */
756
+ .bd-sp1 { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: 600 14px var(--cz-sans); color: var(--cz-ink); cursor: pointer; width: 100%; }
757
+ .bd-sp1:hover, .bd-sp1[aria-pressed="true"] { background: var(--cz-well); }
758
+ .bd-sp1.now, .bd-sp1.next { background: var(--cz-bluebg); }
759
+ .bd-sp1 b { font-weight: 800; }
760
+ .bd-sp1 .k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
761
+ .bd-sp1:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
762
+ .bd-dia { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; border: 2px solid var(--cz-ink3); flex: none; box-sizing: border-box; }
763
+ .bd-dia.on { background: var(--cz-ink); border-color: var(--cz-ink); }
764
+ .bd-ptabs { margin: 0 0 4px; }
765
+ .bd-bkw { display: flex; flex-direction: column; }
766
+ .bd-bk { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 130px) 34px auto; gap: 0 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--cz-hair); font-size: 12.5px; }
767
+ .bd-bk.h { border-top: 0; min-height: 28px; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); }
768
+ .bd-th { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); margin-top: 4px; }
769
+ .bd-trow { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid var(--cz-hair); font-size: 12.5px; }
770
+ .bd-trow .bd-dlink { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
771
+ .bd-trow small { font-weight: 600; }
772
+ .bd-trow.sm { min-height: 34px; }
773
+ /* Cancelled and archived */
774
+ .bd-gseg { align-self: flex-start; flex-wrap: wrap; }
775
+ .bd-grs { display: flex; flex-direction: column; }
776
+ .bd-gr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cz-hair); }
777
+ .bd-gr .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
778
+ .bd-gr small { font-size: 12px; color: var(--cz-ink3); }
779
+ /* the side panel's widths and its new parts */
780
+ .bd-peek.pk-new, .bd-peek.pk-doc { width: 520px; }
781
+ .bd-peek.pk-wide { width: 560px; }
782
+ .pk-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink3); }
783
+ .pk-dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
784
+ .pk-dg .bd-box { padding: 10px 12px; gap: 2px; }
785
+ .pk-dg .bd-box b { font-size: 14px; }
786
+ .pk-dg .bd-box.late { background: var(--cz-latebg); }
787
+ .pk-jtw { display: flex; flex-direction: column; }
788
+ .pk-jt { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px 30px; gap: 0 10px; align-items: center; min-height: 38px; border-top: 1px solid var(--cz-hair); font-size: 12.5px; cursor: pointer; }
789
+ button.pk-jt:hover { background: var(--bd-row); }
790
+ button.pk-jt:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
791
+ .pk-jt.h { border-top: 0; min-height: 30px; font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); cursor: default; }
792
+ .pk-jt .s-red { color: var(--cz-red); font-weight: 700; }
793
+ /* New initiative and the first questions (BdNew, BdGrill) */
794
+ .bd-new { gap: 14px; }
795
+ .bd-drop { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 6px 6px 10px; border-radius: 14px; border: 1px dashed var(--cz-hair); background: var(--cz-card); flex-wrap: wrap; }
796
+ .bd-drop.on { border-color: var(--cz-blue); background: var(--cz-bluebg); }
797
+ .bd-mchips:empty::before { content: "No material yet"; font: 600 12.5px var(--cz-sans); color: var(--cz-ink3); }
798
+ .bd-linkin { display: flex; gap: 6px; }
799
+ .bd-linkin[hidden] { display: none; }
800
+ #nwKind span { font-weight: 500; color: var(--cz-ink2); }
801
+ #nwKind .bd-amut { color: var(--cz-ink3); }
802
+ .bd-qhd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
803
+ .bd-qc { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cz-hair); font-size: 13px; }
804
+ .bd-qc.on { border-color: var(--cz-blue); box-shadow: 0 0 0 3px var(--cz-bluebg); }
805
+ .bd-qc.off { cursor: pointer; color: var(--cz-ink2); }
806
+ .bd-qc.off:hover { background: var(--cz-well); }
807
+ .bd-qc.off:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
808
+ .bd-qc .src { font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); }
809
+ .bd-qc b { font-size: 14px; font-weight: 800; }
810
+ /* List (BdList) */
811
+ .bd-ltw { border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; background: var(--cz-card); }
812
+ .bd-lt { display: grid; grid-template-columns: minmax(180px, 1.6fr) 90px minmax(110px, .9fr) minmax(130px, 1fr) 54px minmax(120px, 1.2fr) 70px 90px 36px; gap: 0 12px; align-items: center; min-height: 52px; padding: 0 10px 0 16px; border-top: 1px solid var(--cz-hair); font-size: 13px; }
813
+ .bd-lt.h { border-top: 0; min-height: 40px; background: var(--cz-well); font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
814
+ .bd-lt:hover:not(.h):not(.foot) { background: var(--bd-row); }
815
+ .bd-lt.sel { background: var(--cz-bluebg); }
816
+ .bd-lt.held { opacity: .7; }
817
+ .bd-lt.foot { grid-template-columns: 1fr auto; min-height: 44px; background: var(--bd-row); }
818
+ .bd-lth { all: unset; cursor: pointer; white-space: nowrap; }
819
+ .bd-lth.on, .bd-lth:hover { color: var(--cz-ink); }
820
+ .bd-lth:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
821
+ .bd-ltn { all: unset; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
822
+ .bd-ltn b { font-weight: 800; }
823
+ .bd-ltn:hover b { color: var(--cz-blueink); }
824
+ .bd-ltn:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
825
+ .bd-lt > span { min-width: 0; }
826
+ .bd-lt .cs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
827
+ .bd-foot { margin: 10px 2px 0; font-size: 12px; color: var(--cz-ink3); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
828
+ /* By stage (BdByStage) */
829
+ .bd-scols { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding-bottom: 4px; }
830
+ .bd-scol { flex: 1 1 0; min-width: 168px; background: var(--cz-well); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
831
+ .bd-scol.drop { box-shadow: inset 0 0 0 2px var(--cz-blue); }
832
+ .bd-scol h3 { margin: 0; padding: 2px 4px 2px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--cz-ink2); }
833
+ .bd-scol h3 span { font-weight: 700; color: var(--cz-ink3); font-size: 12px; }
834
+ .bd-scol h3 .bd-ib { margin-left: auto; }
835
+ .bd-cempty { padding: 6px 4px; }
836
+ .bd-bc { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 1px 2px rgba(42,46,53,.06); cursor: pointer; font-size: 12.5px; }
837
+ .bd-bc[draggable="true"] { cursor: grab; }
838
+ .bd-bc.drag { opacity: .5; }
839
+ .bd-bc:hover { box-shadow: 0 6px 18px -10px rgba(42,46,53,.3); }
840
+ .bd-bc.sel, .bd-bc.you { box-shadow: 0 0 0 2px var(--cz-bluebg); }
841
+ .bd-bc:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
842
+ .bd-bc .t { font-size: 13.5px; font-weight: 800; color: var(--cz-ink); }
843
+ .bd-bc .s { font-size: 12px; }
844
+ .bd-bc .f { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--cz-ink3); font-size: 11.5px; font-weight: 700; margin-top: 2px; min-height: 22px; }
845
+ .bd-strip { all: unset; box-sizing: border-box; flex: none; width: 44px; min-height: 220px; border-radius: 18px; background: var(--cz-well); cursor: pointer; display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; }
846
+ .bd-strip span { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); white-space: nowrap; }
847
+ .bd-strip:hover { background: var(--cz-well2); }
848
+ .bd-strip:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
849
+ /* Documents (BdDocs) */
850
+ .bd-dchips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
851
+ .bd-dtw { border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; background: var(--cz-card); }
852
+ .bd-dt { display: grid; grid-template-columns: 30px minmax(0, 1.5fr) minmax(0, 1.2fr) 170px 120px minmax(0, 160px); gap: 0 12px; align-items: center; min-height: 52px; padding: 0 14px; border-top: 1px solid var(--cz-hair); font-size: 13px; }
853
+ .bd-dt.h { border-top: 0; min-height: 40px; background: var(--cz-well); font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
854
+ .bd-dt.sel { background: var(--cz-bluebg); }
855
+ .bd-dt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
856
+ .bd-dic { width: 30px; height: 30px; border-radius: 10px; background: var(--cz-well); display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); }
857
+ .bd-dic svg { width: 15px; height: 15px; }
858
+ .bd-dby { display: flex; align-items: center; gap: 8px; }
859
+ .bd-read summary { cursor: pointer; font: 800 12.5px var(--cz-sans); color: var(--cz-ink2); padding: 4px 0; }
860
+ /* the Sprint span (BdSpans) */
861
+ .sp-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; color: var(--cz-ink3); }
862
+ .sp { border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; background: var(--cz-card); }
863
+ .sp-r { display: flex; min-height: 44px; border-top: 1px solid var(--cz-hair); }
864
+ .sp-h { min-height: 40px; border-top: 0; background: var(--cz-well); font-size: 12px; font-weight: 800; color: var(--cz-ink2); }
865
+ .sp-n { all: unset; box-sizing: border-box; width: 260px; flex: none; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
866
+ button.sp-n { cursor: pointer; }
867
+ button.sp-n:hover { color: var(--cz-blueink); }
868
+ button.sp-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
869
+ .sp-n b { font-size: 13px; font-weight: 800; }
870
+ .sp-k { display: block; line-height: 28px; }
871
+ .sp-g { flex: 1; position: relative; min-width: 0; }
872
+ .sp-h .sp-g { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
873
+ .sp-h .sp-g span { padding: 12px 8px 0; white-space: nowrap; overflow: hidden; }
874
+ .sp-h .sp-g span.td { color: var(--cz-blueink); }
875
+ .sp-t { background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--n) - 1px), var(--cz-hair) calc(100% / var(--n) - 1px), var(--cz-hair) calc(100% / var(--n))); }
876
+ .sp-i { min-height: 36px; background: var(--bd-row); }
877
+ .sp-i.sel { background: var(--cz-bluebg); }
878
+ .sp-b { position: absolute; top: 9px; height: 26px; border-radius: 9px; background: var(--bd-plan); color: var(--cz-ink); display: flex; align-items: center; gap: 6px; padding: 0 4px 0 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
879
+ .sp-b > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
880
+ .sp-b.y { background: var(--cz-bluebg); color: var(--cz-blueink); }
881
+ .sp-b.r { background: var(--cz-redbg); color: var(--cz-red); }
882
+ .sp-b.k { background: var(--bd-rail); color: var(--cz-ink2); }
883
+ .sp-b.d { background: transparent; border: 1px dashed var(--cz-blue); color: var(--cz-blueink); }
884
+ .sp-b .bd-av { margin-left: auto; width: 18px; height: 18px; font-size: 8.5px; }
885
+ .sp-dia { position: absolute; top: 12px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-ink); }
886
+ .sp-dia.bl { background: var(--cz-blue); }
887
+ .sp-dl { position: absolute; top: 9px; font-size: 12px; color: var(--cz-ink3); white-space: nowrap; }
888
+ .sp-dl.bl { color: var(--cz-blueink); font-weight: 700; }
889
+ .sp-bk { min-height: 40px; background: var(--cz-well); }
890
+ .sp-bk .sp-n { color: var(--cz-ink3); }
891
+ .sp-bkg { display: flex; align-items: center; padding: 0 10px; }
892
+ .sp-body .tg-empty { padding: 16px 14px; margin: 0; color: var(--cz-ink3); font-size: 13px; }
893
+ /* the phone (BdPhone) */
894
+ .bd-phseg { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
895
+ .bd-plist { display: flex; flex-direction: column; gap: 2px; }
896
+ .bd-ghd { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px 8px; font-size: 13px; font-weight: 800; color: var(--cz-ink2); }
897
+ .bd-ghd .n { margin-left: auto; font-weight: 700; color: var(--cz-ink3); font-size: 12px; }
898
+ .bd-lrow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; width: 100%; min-height: 52px; cursor: pointer; }
899
+ .bd-lrow:hover { background: var(--cz-well); }
900
+ .bd-lrow.sel { background: var(--cz-card); box-shadow: 0 6px 18px -10px rgba(42,46,53,.25); }
901
+ .bd-lrow:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
902
+ .bd-lrow .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
903
+ .bd-lrow .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
904
+ .bd-lrow .s { font-size: 12.5px; color: var(--cz-blueink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
905
+ .bd-lrow .s.q { color: var(--cz-ink3); }
906
+ .bd-lrow .r { font-size: 12px; font-weight: 700; color: var(--cz-blueink); white-space: nowrap; }
907
+ @media (max-width: 1200px) and (min-width: 721px) {
908
+ .bd-lt { grid-template-columns: minmax(160px, 1.6fr) minmax(100px, .9fr) minmax(120px, 1fr) 44px 70px 80px 36px; }
909
+ .bd-lt > :nth-child(2), .bd-lt > :nth-child(6) { display: none; }
910
+ .bd-dt { grid-template-columns: 30px minmax(0, 1.5fr) minmax(0, 1fr) 150px 90px; }
911
+ .bd-dt > :nth-child(6) { display: none; }
912
+ }
913
+ @media (max-width: 720px) {
914
+ .bd-pp.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-height: 82vh; border-radius: 28px 28px 0 0; padding: 10px 12px 24px; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); }
915
+ .bd-mi, .bd-sp1 { min-height: 44px; }
916
+ .bd-peek.pk-new, .bd-peek.pk-doc, .bd-peek.pk-wide { width: auto; }
917
+ .bd-ptabs { display: flex !important; }
918
+ .bd-scols.ph { flex-direction: column; overflow: visible; }
919
+ .bd-scols.ph .bd-scol { min-height: 0; min-width: 0; }
920
+ .bd-bc { min-height: 44px; }
921
+ .bd-dt { grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 56px; }
922
+ .bd-dt > :nth-child(3), .bd-dt > :nth-child(5), .bd-dt > :nth-child(6) { display: none; }
923
+ .bd-dt.h { display: none; }
924
+ .bd-dchips { flex-wrap: nowrap; overflow-x: auto; }
925
+ .bd-bk { grid-template-columns: 70px minmax(0, 1fr) auto; }
926
+ .bd-bk > :nth-child(3), .bd-bk > :nth-child(4) { display: none; }
927
+ .pk-dg { grid-template-columns: 1fr 1fr; }
928
+ .bd-phseg .bd-seg > button { height: 44px; }
929
+ .bd-showing { flex-wrap: nowrap; overflow-x: auto; }
930
+ }
931
+ .bd-form input.bd-inp, .bd-form textarea.bd-inp, .bd-form select.bd-inp { background: var(--cz-well); border-color: transparent; border-radius: 14px; min-height: 42px; padding: 0 14px; font-size: 14px; }
932
+ .bd-form textarea.bd-inp { padding: 10px 14px; }
933
+ .bd-form input.bd-inp.sm { min-height: 34px; font-size: 13px; }
934
+ .bd-field .bd-amut, .bd-form label .bd-amut { font-weight: 500; }
935
+ .bd-scols.ph .bd-scol { flex: none; }
936
+ .bd-mi .bd-pill { gap: 0; }
937
+ .bd-mi .bd-pill mark { border-radius: 0; }
938
+ .bd-finp input:focus-visible { outline: none; }
939
+ .bd-finp:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
940
+ .bd-scols.ph { align-items: stretch; }
941
+ body:has(#bdPop.sheet:not([hidden])) .cz-fabw { display: none; }