create-pmos 0.638.0 → 0.640.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 (36) hide show
  1. package/package.json +15 -3
  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-insights-test.js +5 -5
  7. package/workspace/changelog.json +14 -2
  8. package/workspace/guide/intelligence-okr-goals.md +5 -1
  9. package/workspace/guide/layout.md +3 -1
  10. package/workspace/intel-report-ui-test.js +1 -1
  11. package/workspace/intelligence-gaps-ui-test.js +3 -3
  12. package/workspace/package-lock.json +2 -2
  13. package/workspace/package.json +1 -1
  14. package/workspace/public/capture.html +8 -9
  15. package/workspace/public/pm/buddy-core.js +3 -3
  16. package/workspace/public/pm/c3-capture.css +21 -23
  17. package/workspace/public/pm/c3-capture.js +35 -24
  18. package/workspace/public/pm/cozy-aud.css +10 -6
  19. package/workspace/public/pm/cozy-buddy.css +33 -34
  20. package/workspace/public/pm/cozy-buddy.js +1 -1
  21. package/workspace/public/pm/cozy-goals.css +79 -148
  22. package/workspace/public/pm/cozy-insights.css +412 -408
  23. package/workspace/public/pm/cozy-rec-tab.css +43 -41
  24. package/workspace/public/pm/cozy-rec-tab.js +1 -0
  25. package/workspace/public/pm/cozy-welcome.css +145 -0
  26. package/workspace/public/pm/ds-bridge.css +19 -0
  27. package/workspace/public/pm/premium-goals.js +48 -34
  28. package/workspace/public/pm/premium-insights.js +50 -50
  29. package/workspace/public/pm/premium-report-intel.css +30 -30
  30. package/workspace/public/pm/premium-welcome.js +6 -1
  31. package/workspace/public/premium-aud.html +9 -4
  32. package/workspace/public/premium-buddy.html +10 -5
  33. package/workspace/public/premium-goals.html +15 -10
  34. package/workspace/public/premium-intelligence.html +17 -11
  35. package/workspace/public/premium-rec.html +8 -3
  36. package/workspace/public/premium-welcome.html +14 -8
@@ -366,7 +366,7 @@ $('#moreB').addEventListener('click', () => {
366
366
  if (!M) return;
367
367
  const R = M.reports || {}, nr = reportGroups().length, nd = savedDash().length, nf = (R.found || []).length + (R.asks || []).filter((a) => a.state === 'ready').length;
368
368
  $('#libSub').textContent = [nr ? nr + (nr === 1 ? ' report' : ' reports') : '', nd ? nd + (nd === 1 ? ' dashboard' : ' dashboards') : '', (R.found || []).length ? (R.found || []).length + ' found' : ''].filter(Boolean).join(' · ');
369
- $('#libNew').innerHTML = nf ? `<span class="cz-pill you">${nf} new</span>` : ''; // zero is silence
369
+ $('#libNew').innerHTML = nf ? `<span class="pm-badge you">${nf} new</span>` : ''; // zero is silence
370
370
  });
371
371
  $('#moreMenu').addEventListener('click', (e) => {
372
372
  const b = e.target.closest('[data-more]'); if (!b || b.disabled) return; closeMenus();
@@ -464,18 +464,18 @@ function drawStrip() {
464
464
  const mv = !f.report && f.move ? f.move : null;
465
465
  $('#insHero').classList.toggle('mv', !!mv);
466
466
  if (mv) { $('#insMv').innerHTML = `${SV(I.spark)}<span>${esc(mv.text)}</span>`; $('#insMv').hidden = false; $('#insMv').classList.toggle('dn', !!mv.done); }
467
- const mvAct = !mv ? '' : mv.done ? `<span class="cz-pill ok">Done</span><button type="button" class="cz-ib sm" data-mv="undo" aria-label="Undo: ${esc(mv.label)}" title="Undo">${SV(I.undo)}</button>`
468
- : `<button type="button" class="cz-ib sm solid" data-mv="apply" aria-label="${esc(mv.label)}" title="${esc(mv.label)}">${SV(I.chk)}</button>`;
467
+ const mvAct = !mv ? '' : mv.done ? `<span class="pm-badge ok">Done</span><button type="button" class="pm-btn" data-mv="undo" aria-label="Undo: ${esc(mv.label)}" title="Undo">${SV(I.undo)}</button>`
468
+ : `<button type="button" class="pm-btn primary" data-mv="apply" aria-label="${esc(mv.label)}" title="${esc(mv.label)}">${SV(I.chk)}</button>`;
469
469
  // the ✦ line's own press: ✓✓ keeps every draft (GsM1, GsM5); with nothing to read, ✦ asks Claude to draft the goals
470
- const okAct = !f.okr ? '' : f.keepAll ? `<button type="button" class="cz-ib sm solid" data-okl="keep-all" aria-label="Keep all ${f.keepAll}" title="Keep all ${f.keepAll}">${OK.SV(OK.P.checks)}</button>`
471
- : f.start && M.board.ws ? `<button type="button" class="cz-ib sm solid" data-okl="start" aria-label="${f.retry ? 'Try drafting again' : 'Draft them'}" title="${f.retry ? 'Try again' : 'Draft them'}">${SV(I.spark)}</button>` : '';
472
- const fcAct = f.fcGrill ? `<button type="button" class="cz-ib sm solid" data-fcg aria-label="${esc('Open the ' + f.fcGrill.n + (f.fcGrill.n === 1 ? ' finding' : ' findings') + ' on ' + f.fcGrill.title)}" title="Open the findings">${SV(I.spark)}</button>` : '';
470
+ const okAct = !f.okr ? '' : f.keepAll ? `<button type="button" class="pm-btn primary" data-okl="keep-all" aria-label="Keep all ${f.keepAll}" title="Keep all ${f.keepAll}">${OK.SV(OK.P.checks)}</button>`
471
+ : f.start && M.board.ws ? `<button type="button" class="pm-btn primary" data-okl="start" aria-label="${f.retry ? 'Try drafting again' : 'Draft them'}" title="${f.retry ? 'Try again' : 'Draft them'}">${SV(I.spark)}</button>` : '';
472
+ const fcAct = f.fcGrill ? `<button type="button" class="pm-btn primary" data-fcg aria-label="${esc('Open the ' + f.fcGrill.n + (f.fcGrill.n === 1 ? ' finding' : ' findings') + ' on ' + f.fcGrill.title)}" title="Open the findings">${SV(I.spark)}</button>` : '';
473
473
  if (!f.report) $('#insAct').innerHTML = mvAct + okAct + fcAct;
474
474
  if (open.length > 1) {
475
- if (!f.report) $('#insAct').innerHTML = `<button type="button" class="cz-ib sm" id="insNo" aria-label="Not now" title="Not now">${SV(I.x)}</button>` + mvAct + okAct + fcAct;
475
+ if (!f.report) $('#insAct').innerHTML = `<button type="button" class="pm-btn" id="insNo" aria-label="Not now" title="Not now">${SV(I.x)}</button>` + mvAct + okAct + fcAct;
476
476
  $('#insPg').innerHTML = L.map((x, i) => `<button type="button" class="${i === insIdx ? 'on' : ''}" data-ins="${i}" aria-label="Finding ${i + 1} of ${L.length}" aria-pressed="${i === insIdx}"${insSkip.has(i) ? ' hidden' : ''}></button>`).join('');
477
477
  }
478
- if (f.impact && f.impact.url) $('#insAct').insertAdjacentHTML('beforeend', `<a class="cz-ib sm" href="${esc(f.impact.url)}"${/^https:/i.test(f.impact.url) ? ' target="_blank" rel="noopener noreferrer"' : ''} aria-label="Open the source: ${esc(f.impact.label)}" title="Open the source">${SV(I.open || 'M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5')}</a>`);
478
+ if (f.impact && f.impact.url) $('#insAct').insertAdjacentHTML('beforeend', `<a class="pm-btn" href="${esc(f.impact.url)}"${/^https:/i.test(f.impact.url) ? ' target="_blank" rel="noopener noreferrer"' : ''} aria-label="Open the source: ${esc(f.impact.label)}" title="Open the source">${SV(I.open || 'M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5')}</a>`);
479
479
  }
480
480
  $('#insHero').addEventListener('click', async (e) => {
481
481
  if (e.target.closest('[data-rp]')) { await RI.stripPress(e); return; }
@@ -559,7 +559,7 @@ function drawNs() {
559
559
  const g = nsGoal();
560
560
  if (!g) { box.hidden = true; box.innerHTML = ''; return; }
561
561
  const F = GC.firstOf(g), line = !F || F.n >= 2, ch = line ? spanChange(g) : null, I0 = inputGoals(), bad = !!(g.failed || (g.held || []).length);
562
- const pill = ch && ch.pct !== null && !bad ? `<span class="cz-pill ${ch.better === null ? 'q' : ch.better ? 'ok' : 'late'}">${esc(pctSay(ch.pct))}</span><span class="note">vs ${esc(unitV(g, ch.prev.v))} ${nsSpan === 'q' ? 'last quarter, same day' : 'the previous ' + (SPANS.find((x) => x[0] === nsSpan) || SPANS[0])[1]}</span>` : '';
562
+ const pill = ch && ch.pct !== null && !bad ? `<span class="pm-badge ${ch.better === null ? 'q' : ch.better ? 'ok' : 'late'}">${esc(pctSay(ch.pct))}</span><span class="note">vs ${esc(unitV(g, ch.prev.v))} ${nsSpan === 'q' ? 'last quarter, same day' : 'the previous ' + (SPANS.find((x) => x[0] === nsSpan) || SPANS[0])[1]}</span>` : '';
563
563
  const seg = line && (g.series || []).length > 1 ? `<div class="cz-seg ins-seg" role="group" aria-label="Compare">${SPANS.map(([k, l]) => `<button type="button" aria-pressed="${nsSpan === k}" data-span="${k}">${esc(l)}</button>`).join('')}</div>` : '';
564
564
  const chart = !line ? GC.firstChart(g) : (g.series || []).length ? nsSvg(g, ch) : `<p class="note">${esc(nextReading(g))}</p>`;
565
565
  const drafts = draftsFor(g.id).map(drHtml).join('');
@@ -610,8 +610,8 @@ function drEditHtml(r) {
610
610
  + (r.kind === 'chase' ? `<textarea class="ins-dri" data-drf="body" rows="3" maxlength="2000" aria-label="The message">${esc(raw.body || '')}</textarea>` : '')
611
611
  + (metric && raw.type !== 'Done or not' ? `<input class="ins-dri" data-drf="target" inputmode="decimal" value="${esc(raw.target == null ? '' : String(raw.target))}" aria-label="Target" placeholder="Target">` : '')
612
612
  + (metric ? `<input class="ins-dri" data-drf="source" value="${esc(r.source || '')}" maxlength="40" aria-label="Measured by" placeholder="Measured by">` : '') + '</div>'
613
- + `<div class="acts"><a class="cz-ib sm" href="${esc(homeAsk('insights', 'Change the draft ' + r.name + ': '))}" aria-label="Ask PMOS in Home to change something else" title="Ask PMOS in Home">${SV('M4 5h16v11H9l-5 4z')}</a>`
614
- + `<button type="button" class="cz-ib sm" data-okd="cancel" data-row="${esc(r.id)}" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="button" class="cz-ib sm solid" data-okd="save" data-row="${esc(r.id)}" aria-label="Save ${esc(r.name)}" title="Save">${SV(I.chk)}</button></div></div>`;
613
+ + `<div class="acts"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change the draft ' + r.name + ': '))}" aria-label="Ask PMOS in Home to change something else" title="Ask PMOS in Home">${SV('M4 5h16v11H9l-5 4z')}</a>`
614
+ + `<button type="button" class="pm-btn" data-okd="cancel" data-row="${esc(r.id)}" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="button" class="pm-btn primary" data-okd="save" data-row="${esc(r.id)}" aria-label="Save ${esc(r.name)}" title="Save">${SV(I.chk)}</button></div></div>`;
615
615
  }
616
616
  const drHtml = (r) => (drEdit === r.id && r.state === 'open' ? drEditHtml(r) : OK.draftHtml(r));
617
617
  /** The loose box: drafts that belong to no row on the list. Zero is silence. */
@@ -720,8 +720,8 @@ function openCheck(id) {
720
720
  let el = null;
721
721
  const editHtml = (r) => `<form class="gc-ed" data-gc-ed><label class="ins-fl">Name<input class="ins-inp" name="name" maxlength="120" value="${esc(r.name)}"></label>`
722
722
  + (r.raw && r.raw.type !== 'Done or not' ? `<label class="ins-fl">Target<input class="ins-inp" name="target" inputmode="decimal" maxlength="20" value="${esc(r.raw && r.raw.target != null ? String(r.raw.target) : '')}"></label>` : '')
723
- + `<label class="ins-fl">Measured by<input class="ins-inp" name="source" maxlength="40" value="${esc(r.source || '')}"></label><div class="gc-foot"><a class="cz-ib sm" href="${esc(homeAsk('insights', 'Change how ' + r.name + ' is counted: '))}" aria-label="Ask PMOS in Home to change how it is counted" title="Ask in Home">${SV('M4 5h16v11H9l-5 4z')}</a><span class="gc-sp"></span>`
724
- + `<button type="button" class="cz-ib sm" data-gc="edit-x" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="submit" class="cz-ib sm solid" aria-label="Save" title="Save">${SV(I.chk)}</button></div></form>`;
723
+ + `<label class="ins-fl">Measured by<input class="ins-inp" name="source" maxlength="40" value="${esc(r.source || '')}"></label><div class="gc-foot"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change how ' + r.name + ' is counted: '))}" aria-label="Ask PMOS in Home to change how it is counted" title="Ask in Home">${SV('M4 5h16v11H9l-5 4z')}</a><span class="gc-sp"></span>`
724
+ + `<button type="button" class="pm-btn" data-gc="edit-x" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="submit" class="pm-btn primary" aria-label="Save" title="Save">${SV(I.chk)}</button></div></form>`;
725
725
  const draw = () => { if (!el || !document.contains(el)) return; const r = rowOf(), top = el.scrollTop; el.innerHTML = st.edit ? editHtml(r) : GC.checkHtml(r, st); el.scrollTop = top; };
726
726
  CHK = { id, st, draw };
727
727
  const post = (path, body) => pmPost(path, Object.assign({ ws: M.board.ws }, body)).catch(() => null);
@@ -837,7 +837,7 @@ function movePill(r) {
837
837
  if (d !== null && d >= 0 && d <= 14) return ['q', 'Ships in ' + d + ' days'];
838
838
  return { late: ['late', 'Late'], 'at risk': ['risk', 'At risk'], 'on hold': ['q', 'On hold'], 'on track': ['q', 'On track'] }[ps] || null;
839
839
  }
840
- const initRow = (r, pill = true) => { const p = pill ? movePill(r) : null; return `<a class="ins-ini" href="${iniHref(r.id)}">${trackHtml(r)}<span class="n">${esc(r.title)}</span>${p ? `<span class="cz-pill ${p[0]}">${esc(p[1])}</span>` : ''}</a>`; };
840
+ const initRow = (r, pill = true) => { const p = pill ? movePill(r) : null; return `<a class="ins-ini" href="${iniHref(r.id)}">${trackHtml(r)}<span class="n">${esc(r.title)}</span>${p ? `<span class="pm-badge ${p[0]}">${esc(p[1])}</span>` : ''}</a>`; };
841
841
  const TONE_BAR = { ok: 'var(--cz-dot-ok)', late: 'var(--cz-dot-late)', red: 'var(--cz-dot-red)', q: 'var(--cz-dot-q)', risk: 'var(--cz-dot-risk)' };
842
842
  /** Done or not: its steps as a checklist; Stay within: the readings over a green band that marks the budget, with no forecast. */
843
843
  const stepsHtml = (g) => `<div class="ins-steps">${(g.steps || []).map((s) => `<span class="${s.done ? 'on' : ''}"><i class="ins-cb${s.done ? ' on' : ''}">${s.done ? SV(I.chk, 3) : ''}</i>${esc(s.text)}</span>`).join('')}</div>`;
@@ -862,7 +862,7 @@ function barHtml(g, cls = '') {
862
862
  /** The so-far sparkline: the readings at their dates across the goal's span, the target dashed, and the pace carried to the date, dashed. */
863
863
  function sparkHtml(g, w = 210, h = 40) {
864
864
  const c = g.key ? byKey(g.key) : null;
865
- if (!c) return g.readings ? `<span class="ins-one"><span class="note">${g.readings === 1 ? '1 reading' : g.readings + ' readings'}</span><span class="cz-pill ins-dash">No trend yet</span></span>` : '<span class="note">No reading yet</span>'; // IsMenus: the one value, never a flat line
865
+ if (!c) return g.readings ? `<span class="ins-one"><span class="note">${g.readings === 1 ? '1 reading' : g.readings + ' readings'}</span><span class="pm-badge ins-dash">No trend yet</span></span>` : '<span class="note">No reading yet</span>'; // IsMenus: the one value, never a flat line
866
866
  const t0 = day(c.pts[0].at), tl = day(c.pts[c.pts.length - 1].at), t1 = Math.max(tl, day(g.byAt) || tl);
867
867
  const ys = c.pts.map((p) => p.v).concat(g.target !== null ? [g.target] : [], g.proj ? [g.proj.atDue] : []), lo = Math.min(...ys), hi = Math.max(...ys), rg = hi - lo || 1;
868
868
  const x = (t) => 5 + (t1 > t0 ? (t - t0) / (t1 - t0) : 1) * (w - 10), y = (v) => 4 + (1 - (v - lo) / rg) * (h - 8);
@@ -944,7 +944,7 @@ const nowOf = (g) => ((g.failed || (g.held || []).length) && g.lastRead && g.las
944
944
  function goalRow(g) {
945
945
  const sel = selecting && picked.includes(g.id), warn = gcSay(g), crit = OK.dotOf(g) === 'broken';
946
946
  return `<div class="ins-tr ins-row ${COLS}${sel ? ' sel' : ''}${crit ? ' crit' : ''}" role="row" data-goal="${esc(g.id)}" tabindex="0" aria-label="${esc(g.title)}"${selecting ? ` aria-selected="${sel}"` : ''}>`
947
- + `<div class="nm" role="cell">${crit ? OK.dotHtml('broken') : ''}<span><b>${g.krTok ? `<span class="ins-krt">${esc(g.krTok)}</span>` : ''}${markHtml(g.title)}</b><small><span class="cz-pill q ins-type">${esc(g.type)}</span><span class="ins-sub" title="${esc(goalSub(g))}">${esc(PF && g.prod ? [g.prod, goalSub(g)].filter(Boolean).join(' · ') : goalSub(g))}</span></small></span></div>`
947
+ + `<div class="nm" role="cell">${crit ? OK.dotHtml('broken') : ''}<span><b>${g.krTok ? `<span class="ins-krt">${esc(g.krTok)}</span>` : ''}${markHtml(g.title)}</b><small><span class="pm-badge q ins-type">${esc(g.type)}</span><span class="ins-sub" title="${esc(goalSub(g))}">${esc(PF && g.prod ? [g.prod, goalSub(g)].filter(Boolean).join(' · ') : goalSub(g))}</span></small></span></div>`
948
948
  + `<div class="val" role="cell"><b>${esc(nowOf(g))}</b> <span class="note">${esc(g.targetTxt ? 'of ' + g.targetTxt : 'no target')}</span>${warn ? `<div class="note ins-warn">${esc(warn)}</div>` : GC.firstOf(g) ? '' : barHtml(g)}</div>`
949
949
  + `<div class="sofar" role="cell">${soFarHtml(g)}</div>`
950
950
  + forecastHtml(g)
@@ -961,16 +961,16 @@ function budgetRow(b) {
961
961
  const pace = !R || R.share === null ? ['var(--cz-ink3)', '—', b.declared ? 'no open initiative to share' : 'add it to health-budgets.md to give it a cap']
962
962
  : R.over ? ['var(--cz-late)', 'Over its ' + pct(cap) + ' cap', pct(R.share) + ' of open initiatives'] : ['var(--cz-ok)', 'Within its ' + pct(cap) + ' cap', pct(R.share) + ' of open initiatives'];
963
963
  return `<div class="ins-tr ins-row ${COLS} ins-budget${R && R.over ? ' crit' : ''}" role="row" data-budget="${esc(b.id)}" tabindex="0" aria-label="${esc(b.title)}">`
964
- + `<div class="nm" role="cell">${R && R.over ? OK.dotHtml('broken') : ''}<span><b>${markHtml(b.title)}</b><small><span class="cz-pill q ins-type">Stay within</span><span class="ins-sub">always on${cap !== null ? ' · cap ' + pct(cap) + ' of a quarter' : ''}</span></small></span></div>`
964
+ + `<div class="nm" role="cell">${R && R.over ? OK.dotHtml('broken') : ''}<span><b>${markHtml(b.title)}</b><small><span class="pm-badge q ins-type">Stay within</span><span class="ins-sub">always on${cap !== null ? ' · cap ' + pct(cap) + ' of a quarter' : ''}</span></small></span></div>`
965
965
  + `<div class="val" role="cell">${val}${bar}</div>`
966
966
  + `<div class="sofar" role="cell">${R && R.share !== null && cap !== null ? bandSvg([{ at: M.today || iso(today()), v: R.share * 100 }], cap * 100, true, R.over ? 'late' : 'ok', b.title + ': ' + pct(R.share) + ' of open initiatives, the green band is inside its ' + pct(cap) + ' cap') : ''}<span class="note">${esc(b.covers ? 'Covers ' + b.covers : 'What it covers is not declared')}</span></div>`
967
967
  // its burn (lib/forecast.js budgetBurn, canvas FcIntel): the weeks left at this pace of spend, only under 8 (zero is silence)
968
- + `<div class="pace" role="cell"><b style="color:${pace[0]}">${esc(pace[1])}</b><div class="note">${esc(pace[2])}</div>${b.burn && Number.isFinite(b.burn.weeksLeft) ? `<div class="note ins-burn"><span class="cz-pill risk">${b.burn.weeksLeft === 1 ? '1 week' : b.burn.weeksLeft + ' weeks'} left</span> at this pace of spend</div>` : ''}</div>`
968
+ + `<div class="pace" role="cell"><b style="color:${pace[0]}">${esc(pace[1])}</b><div class="note">${esc(pace[2])}</div>${b.burn && Number.isFinite(b.burn.weeksLeft) ? `<div class="note ins-burn"><span class="pm-badge risk">${b.burn.weeksLeft === 1 ? '1 week' : b.burn.weeksLeft + ' weeks'} left</span> at this pace of spend</div>` : ''}</div>`
969
969
  + `<div class="mv" role="cell">${b.moves.length ? b.moves.slice(0, 3).map((r) => initRow(r)).join('') : '<span class="note">No initiative anchors to it</span>'}</div></div>` + draftsRow(b.id);
970
970
  }
971
971
  const GRP_PILL = (L) => {
972
972
  const scored = L.filter((g) => g.tone !== 'q'), bad = scored.filter((g) => g.tone === 'late' || g.tone === 'red').length;
973
- return !scored.length ? '' : bad ? `<span class="cz-pill late">${bad} of ${L.length} behind</span>` : '<span class="cz-pill ok">on track</span>';
973
+ return !scored.length ? '' : bad ? `<span class="pm-badge late">${bad} of ${L.length} behind</span>` : '<span class="pm-badge ok">on track</span>';
974
974
  };
975
975
  /* ── the OKR file as the goal list (Intelligence redesign A, IgA1Open): the file's key results by objective. A key result with a reader (a KR
976
976
  * metric record attached by its kr field or its id) is that goal's row; one without says what it needs, never a number. A record that reads no
@@ -1013,7 +1013,7 @@ function openKr(key) {
1013
1013
  el.innerHTML = `<div class="ins-gd"><div class="ins-sayc"><p class="ins-sayv">${esc(k.line || k.title)}</p>`
1014
1014
  + `<p class="note">${esc(k.decision && !k.need ? 'A decision: it is done when it is decided' + (k.due ? ', due ' + md(day(k.due)) : '') + '.' : k.need ? 'Nothing reads it yet: it needs ' + k.need + '. I will not guess a number.' : 'The OKR file names no source for it.')}</p></div>`
1015
1015
  + (k.source ? `<h3 class="ins-h3">How I would read it</h3><p class="note">${esc('The OKR file says: ' + k.source + '.')}</p>` : '')
1016
- + (k.need && !k.decision ? `<div class="ins-krcon"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><span>${esc('Connect ' + k.need + ' and I test a read before I keep it.')}</span><button type="button" class="cz-ib sm solid" data-krcon aria-label="Open Settings, Connectors" title="Open Connectors">${SV(I.chk)}</button></div>` : '')
1016
+ + (k.need && !k.decision ? `<div class="ins-krcon"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><span>${esc('Connect ' + k.need + ' and I test a read before I keep it.')}</span><button type="button" class="pm-btn primary" data-krcon aria-label="Open Settings, Connectors" title="Open Connectors">${SV(I.chk)}</button></div>` : '')
1017
1017
  + `<h3 class="ins-h3">Moved by</h3>${k.moves.length ? `<div class="ins-mvl">${k.moves.map((r) => initRow(r)).join('')}</div>` : '<p class="note">No initiative is anchored to it yet.</p>'}</div>`;
1018
1018
  el.addEventListener('click', (e) => { if (e.target.closest('[data-krcon]')) import('./cozy-settings.js').then((S) => S.openSettings('connectors')).catch(() => toast('Open Settings › Connectors.')); });
1019
1019
  } });
@@ -1053,7 +1053,7 @@ function drawWait() {
1053
1053
  const itemHtml = (it) => `<button type="button" class="ins-wkr" ${it.kr ? `data-kr="${esc(it.kr)}"` : `data-goal="${esc(it.goal)}"`}>${it.tok ? `<span class="ins-krt">${esc(it.tok)}</span>` : ''}${esc(it.title)}${it.due ? ` <span class="note">due ${esc(md(day(it.due)))}</span>` : ''}</button>`;
1054
1054
  el.innerHTML = `<div class="ins-wh"><h2 id="hWait">Waiting on a source</h2> <span class="q">${n === 1 ? '1 key result' : n + ' key results'}</span></div><div class="ins-wl" role="list">`
1055
1055
  + W.map((x) => `<div class="ins-wrow" role="listitem"><div class="ins-wsrc"><b>${esc(x.label)}</b><small>${esc(x.sub)}</small></div><div class="ins-wkrs">${x.items.map(itemHtml).join('')}</div>`
1056
- + (x.connect ? `<button type="button" class="cz-ib sm solid" data-krcon aria-label="${esc('Connect ' + x.label + ' in Settings, Connectors')}" title="${esc('Connect ' + x.label)}">${SV(I.chk)}</button>` : '<span></span>') + '</div>').join('') + '</div>';
1056
+ + (x.connect ? `<button type="button" class="pm-btn primary" data-krcon aria-label="${esc('Connect ' + x.label + ' in Settings, Connectors')}" title="${esc('Connect ' + x.label)}">${SV(I.chk)}</button>` : '<span></span>') + '</div>').join('') + '</div>';
1057
1057
  }
1058
1058
  function drawGoals() {
1059
1059
  const G = goalsShown(), T = $('#goalTbl');
@@ -1114,8 +1114,8 @@ function drawCards(G, okr = false) {
1114
1114
  function cardOf(g) {
1115
1115
  const p = cardPill(g), tg = g.targetTxt ? (g.type === 'Count' ? 'of ' : 'target ') + g.targetTxt + (g.byAt ? ' by ' + md(day(g.byAt)) : '') : 'no target', first = GC.firstOf(g);
1116
1116
  const gr = first ? `<span class="note">${esc(GC.firstMeta(g).split(' · ').slice(1).join(' · '))}</span>` : isBlocks(g) ? blocksHtml(g, 190, false) : g.type === 'Stay within' && g.series.length && g.target !== null ? bandSvg(g.series, g.target, g.limit !== 'floor', g.tone, g.title, 190, 30) : g.key ? sparkHtml(g, 190, 30) : '';
1117
- return `<div class="ins-card" role="listitem" data-goal="${esc(g.id)}" tabindex="0" aria-label="${esc(g.title)}"><div class="ins-ch"><b>${g.krTok ? `<span class="ins-krt">${esc(g.krTok)}</span>` : ''}${esc(g.title)}</b>${p ? `<span class="cz-pill ${p[0]}">${p[1]}</span>` : ''}</div>`
1118
- + `<div class="ins-cs"><span class="cz-pill q ins-type">${esc(g.type)}</span><span class="note">${esc(tg)}</span></div>`
1117
+ return `<div class="ins-card" role="listitem" data-goal="${esc(g.id)}" tabindex="0" aria-label="${esc(g.title)}"><div class="ins-ch"><b>${g.krTok ? `<span class="ins-krt">${esc(g.krTok)}</span>` : ''}${esc(g.title)}</b>${p ? `<span class="pm-badge ${p[0]}">${p[1]}</span>` : ''}</div>`
1118
+ + `<div class="ins-cs"><span class="pm-badge q ins-type">${esc(g.type)}</span><span class="note">${esc(tg)}</span></div>`
1119
1119
  + `<div class="ins-cv"><b>${esc(nowOf(g))}</b><span class="ins-cg">${gr}</span></div>${first || gcSay(g) ? '' : barHtml(g, ' ins-wide')}`
1120
1120
  + (g.moves[0] ? `<div class="ins-c1">${initRow(g.moves[0], false)}</div>` : '') + '</div>' + (PF ? '' : draftsFor(g.id).map(drHtml).join(''));
1121
1121
  }
@@ -1216,7 +1216,7 @@ function readingsHtml(g, o) {
1216
1216
  const steps = g.type === 'Done or not' && g.steps && g.steps.length, R = g.series.slice().reverse(), shown = o.more ? R : R.slice(0, 3);
1217
1217
  return (R.length ? `<div class="ins-th2"><span>Reading</span><span>Value</span><span>Source</span></div>` + shown.map((r) => `<div class="ins-trow ins-rd3"><span>${esc(md(day(r.at)) + ' ' + r.at.slice(0, 4))}</span><b>${esc(unitV(g, r.v))}</b><span class="note">${esc(srcOf(g))}</span></div>`).join('')
1218
1218
  + (R.length > shown.length ? `<div><button type="button" class="ins-btn sm ghost" data-gx="all">All ${R.length} readings</button></div>` : '') : `<p class="note">${esc(nextReading(g))}</p>`)
1219
- + (o.own && !steps && !o.adding ? `<div class="ins-trow"><span>Add a reading by hand</span><button type="button" class="cz-ib sm" data-gx="add" aria-label="Add a reading" title="Add a reading">${SV(I.plus)}</button></div>` : '')
1219
+ + (o.own && !steps && !o.adding ? `<div class="ins-trow"><span>Add a reading by hand</span><button type="button" class="pm-btn" data-gx="add" aria-label="Add a reading" title="Add a reading">${SV(I.plus)}</button></div>` : '')
1220
1220
  + (steps ? `<form class="ins-mf" data-stf><p class="ins-lbl">Steps</p>${g.steps.map((x, i) => `<label class="ins-ck2"><input type="checkbox" name="s${i}"${x.done ? ' checked' : ''}> ${esc(x.text)}</label>`).join('')}<div class="ins-mact"><button type="submit" class="ins-btn sm dark">Save steps</button><span class="note" data-msg role="status"></span></div></form>` : '');
1221
1221
  }
1222
1222
  const FLAG = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 21V4M6 4h11l-2 4 2 4H6"/></svg>';
@@ -1271,7 +1271,7 @@ function goalBodyHtml(g, o) {
1271
1271
  { id: 'hist', title: 'History', count: (g.history || []).length || '', render: () => historyHtml(g) },
1272
1272
  o.own && savedDash().length ? { id: 'dash', title: 'On dashboards', count: onDash, render: () => dashSwitches(g) } : null,
1273
1273
  ];
1274
- const ask = `<form class="ins-askf" data-askf><input name="q" maxlength="300" autocomplete="off" placeholder="Ask about this goal" aria-label="Ask about this goal"><button type="submit" class="cz-ib sm solid" aria-label="Ask in Home" title="Ask in Home">${SV(I.up)}</button></form>`;
1274
+ const ask = `<form class="ins-askf" data-askf><input name="q" maxlength="300" autocomplete="off" placeholder="Ask about this goal" aria-label="Ask about this goal"><button type="submit" class="pm-btn primary" aria-label="Ask in Home" title="Ask in Home">${SV(I.up)}</button></form>`;
1275
1275
  // GcR3Goal: the panel leads with the number and how it is counted, never with its chart; the chart follows the words
1276
1276
  const fo = fcOpts(g), fcLine = FCV.stateHtml(g, fo), fcBase = FCV.baselineHtml(g, fo), legend = c && !steps ? FCV.legendHtml(g) : '';
1277
1277
  return head + form + kr + fcLine + `<div class="ins-gbig">${chart}${legend}</div>` + fcBase + whyCard + window.czViewer.czSections(rows.filter(Boolean), { key: 'goal' }) + '<p class="note ins-gmsg" data-gmsg role="status"></p>' + ask;
@@ -1496,7 +1496,7 @@ function monthStrip() {
1496
1496
  const d = new Date((M.today || iso(today())) + 'T00:00:00Z'), open = BM && BM.counted ? BM.counted.open : 0;
1497
1497
  const line = TRV.monthLine({ month: MONTH[d.getUTCMonth()], tiles: trendTiles(), open });
1498
1498
  if (!line) return '';
1499
- return `<div class="ins-strip ins-trstrip"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><p class="t" id="trLine">${esc(line)}</p><a class="cz-ib sm" href="${esc(homeAsk('insights', 'Why? ' + line))}" aria-label="Discuss with Strategist" title="Discuss with Strategist">${SV(CHAT)}</a></div>`;
1499
+ return `<div class="ins-strip ins-trstrip"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><p class="t" id="trLine">${esc(line)}</p><a class="pm-btn" href="${esc(homeAsk('insights', 'Why? ' + line))}" aria-label="Discuss with Strategist" title="Discuss with Strategist">${SV(CHAT)}</a></div>`;
1500
1500
  }
1501
1501
  /** What moved it (MxA): only the tiles that moved since last week. Zero is silence. */
1502
1502
  function movedCard() {
@@ -1513,7 +1513,7 @@ function movedGoals() {
1513
1513
  const G = listGoals().filter((g) => g.readings && riskTone(g)), B = (M.budgets || []).filter((b) => (b.reading && b.reading.over) || (b.burn && Number.isFinite(b.burn.weeksLeft) && b.burn.weeksLeft < 8));
1514
1514
  if (!G.length && !B.length) return ''; // zero is silence
1515
1515
  // wide: the goal rows themselves. Narrow (the phone, or the page beside the Viewer): one line each, its title and At risk (MxC)
1516
- const cmp = G.map((g) => `<button type="button" class="ins-mrow" data-goal="${esc(g.id)}"><span>${esc(g.title)}</span><span class="cz-pill risk">At risk</span></button>`).concat(B.map((b) => `<button type="button" class="ins-mrow" data-budget="${esc(b.id)}"><span>${esc(b.title)}</span><span class="cz-pill risk">At risk</span></button>`)).join('');
1516
+ const cmp = G.map((g) => `<button type="button" class="ins-mrow" data-goal="${esc(g.id)}"><span>${esc(g.title)}</span><span class="pm-badge risk">At risk</span></button>`).concat(B.map((b) => `<button type="button" class="ins-mrow" data-budget="${esc(b.id)}"><span>${esc(b.title)}</span><span class="pm-badge risk">At risk</span></button>`)).join('');
1517
1517
  return `<section class="ins-mvd" aria-labelledby="hMvg"><h3 class="ins-h3" id="hMvg">Goals that moved</h3><div class="ins-tbl ins-mg-full" role="table" aria-label="Goals that moved">${goalHead()}${G.map(goalRow).join('')}${B.map(budgetRow).join('')}</div><div class="ins-mcard ins-mg-cmp">${cmp}</div></section>`;
1518
1518
  }
1519
1519
  function bmHtml(big) {
@@ -1538,8 +1538,8 @@ function openTile(key) {
1538
1538
  el.innerHTML = `<div class="ins-gd"><div class="ins-sayc"><p class="ins-sayv">${esc(say)}</p></div>`
1539
1539
  + (bars ? `<h3 class="ins-h3">By week${lowB ? ', lower is better' : ', higher is better'}</h3>${bars}<p class="note">${key === 'corrections' ? 'A week with fewer than 10 runs stays blank. ' : ''}The bars fill in as weeks qualify; this week is blue.</p>` : '')
1540
1540
  + (t.def ? `<p class="note">${esc(t.def)}</p>` : '') + (BM && BM.note ? `<p class="note ins-from">${esc(BM.note)}</p>` : '')
1541
- + `<div class="ins-acts"><button type="button" class="cz-ib sm" data-tgset aria-label="Set a target" title="Set a target">${SV('M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0-18 0M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0-8 0')}</button>`
1542
- + `<a class="cz-ib sm" href="${esc(homeAsk('insights', 'About ' + L + ': ' + say))}" aria-label="Discuss with Strategist" title="Discuss with Strategist">${SV(CHAT)}</a></div></div>`;
1541
+ + `<div class="ins-acts"><button type="button" class="pm-btn" data-tgset aria-label="Set a target" title="Set a target">${SV('M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0-18 0M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0-8 0')}</button>`
1542
+ + `<a class="pm-btn" href="${esc(homeAsk('insights', 'About ' + L + ': ' + say))}" aria-label="Discuss with Strategist" title="Discuss with Strategist">${SV(CHAT)}</a></div></div>`;
1543
1543
  el.addEventListener('click', (e) => { if (e.target.closest('[data-tgset]')) { e.stopPropagation(); closeViewer(); setTimeout(() => openTarget(key), 0); } }); // not in this press: the page's outside-press closes a popover opened by it
1544
1544
  } });
1545
1545
  }
@@ -1654,21 +1654,21 @@ function outRow(r) {
1654
1654
  const pr = r.promise || null;
1655
1655
  const promised0 = P ? `<b>${esc(P.g.title + (P.promised !== null ? ' ' + sgn(P.promised, P.g.unit) : ''))}</b><div class="note">${esc(P.g.byAt ? 'by ' + md(day(P.g.byAt)) : 'no date')}</div>` : `<span class="note">${r.anchor ? 'Anchored to ' + esc(r.anchor) + ', which is not a goal with readings.' : 'No goal is anchored, so nothing was promised to measure.'}</span>`;
1656
1656
  // the D57 promise (outcome_metric) is what the row promised; the anchor goal's numbers stay under it when there is one
1657
- const promised = pr && pr.metric ? `<b>${esc(pr.metric)}</b>${P ? `<div class="note">${esc(P.g.title + (P.promised !== null ? ' ' + sgn(P.promised, P.g.unit) : ''))}</div>` : ''}` : P ? promised0 : '<span class="cz-pill q">No outcome promised</span>';
1657
+ const promised = pr && pr.metric ? `<b>${esc(pr.metric)}</b>${P ? `<div class="note">${esc(P.g.title + (P.promised !== null ? ' ' + sgn(P.promised, P.g.unit) : ''))}</div>` : ''}` : P ? promised0 : '<span class="pm-badge q">No outcome promised</span>';
1658
1658
  const check = pr && pr.horizon ? `<span class="ins-chk">${OK.dotHtml(pr.overdue ? 'behind' : 'q')}<b>${esc(md(day(pr.horizon)))}</b></span>${pr.overdue ? '<div class="note">overdue</div>' : ''}` : '<span class="note">No check date</span>';
1659
1659
  const got = P ? `<span class="ins-gotw">${bulletHtml(P)}<b>${esc(P.moved === null ? 'no reading yet' : sgn(P.moved, P.g.unit))}</b></span>${guardOf(r) ? `<div class="note">${esc(guardOf(r).name + ': ' + guardOf(r).text)}</div>` : ''}` : '';
1660
1660
  let verdict, act = '';
1661
1661
  if (r.group === 'verdict') {
1662
1662
  const dd = pr && pr.horizon ? day(pr.horizon) : due;
1663
- verdict = dr ? `<span class="ins-dv"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><span><b>${esc(dr.verdict)}.</b> ${esc(dr.text)}</span></span>` : `<span class="cz-pill you">To judge${dd !== null ? (pr && pr.overdue ? ' · was due ' : ' · due ') + esc(md(dd)) : ''}</span>`;
1664
- act = `<button type="button" class="cz-ib sm" data-verdict="${esc(r.id)}" aria-haspopup="dialog" aria-label="Decide: Keep, Iterate or Stop" title="Decide">${SV(I.pen)}</button>`
1665
- + (dr ? `<button type="button" class="cz-ib sm solid" data-keep="${esc(r.id)}" aria-label="Record the verdict: Keep" title="Record the verdict: Keep">${SV(I.chk)}</button>` : '');
1663
+ verdict = dr ? `<span class="ins-dv"><span class="sp" aria-hidden="true">${SV(I.spark)}</span><span><b>${esc(dr.verdict)}.</b> ${esc(dr.text)}</span></span>` : `<span class="pm-badge you">To judge${dd !== null ? (pr && pr.overdue ? ' · was due ' : ' · due ') + esc(md(dd)) : ''}</span>`;
1664
+ act = `<button type="button" class="pm-btn" data-verdict="${esc(r.id)}" aria-haspopup="dialog" aria-label="Decide: Keep, Iterate or Stop" title="Decide">${SV(I.pen)}</button>`
1665
+ + (dr ? `<button type="button" class="pm-btn primary" data-keep="${esc(r.id)}" aria-label="Record the verdict: Keep" title="Record the verdict: Keep">${SV(I.chk)}</button>` : '');
1666
1666
  } else if (r.group === 'decided') {
1667
1667
  const v = r.verdict;
1668
- verdict = v ? `<span class="cz-pill ${v.verdict === 'Stop' ? 'q' : 'ok'}">${v.verdict === 'Keep' ? SV(I.chk) + 'Kept' : v.verdict === 'Iterate' ? 'Changed' : 'Stopped'}${v.at ? ' · ' + esc(md(day(v.at))) : ''}</span><div class="note">${esc(v.learned)}</div>`
1669
- : '<span class="cz-pill q">Stopped</span><div class="note">No learning recorded.</div>'; // only a stopped initiative is decided without a verdict
1670
- if (v && v.at === M.today) act = `<button type="button" class="cz-ib sm" data-vundo="${esc(r.id)}" aria-label="Undo the verdict" title="Undo">${SV(I.undo)}</button>`;
1671
- } else verdict = `<span class="cz-pill q">${esc(due !== null ? 'Judged ' + md(due) : r.idx === 6 ? 'Being monitored' : 'Too early')}</span>`;
1668
+ verdict = v ? `<span class="pm-badge ${v.verdict === 'Stop' ? 'q' : 'ok'}">${v.verdict === 'Keep' ? SV(I.chk) + 'Kept' : v.verdict === 'Iterate' ? 'Changed' : 'Stopped'}${v.at ? ' · ' + esc(md(day(v.at))) : ''}</span><div class="note">${esc(v.learned)}</div>`
1669
+ : '<span class="pm-badge q">Stopped</span><div class="note">No learning recorded.</div>'; // only a stopped initiative is decided without a verdict
1670
+ if (v && v.at === M.today) act = `<button type="button" class="pm-btn" data-vundo="${esc(r.id)}" aria-label="Undo the verdict" title="Undo">${SV(I.undo)}</button>`;
1671
+ } else verdict = `<span class="pm-badge q">${esc(due !== null ? 'Judged ' + md(due) : r.idx === 6 ? 'Being monitored' : 'Too early')}</span>`;
1672
1672
  return `<div class="ins-tr ins-row ins-ocols" role="row" data-ini="${esc(r.id)}"><div class="nm" role="cell"><a href="${iniHref(r.id)}"><b>${esc(r.title)}</b></a><small>${esc(ship !== null ? 'shipped ' + md(ship) : 'no ship date recorded')}</small></div>`
1673
1673
  + `<div role="cell" class="pace">${promised}</div><div role="cell" class="pace">${check}</div><div role="cell" class="pace">${got}</div><div role="cell" class="pace">${verdict}</div><div role="cell" class="ins-act">${act}</div></div>`;
1674
1674
  }
@@ -1846,7 +1846,7 @@ function drawDashSide() {
1846
1846
  const keep = { n: ($('#ndName') || {}).value || '', q: ($('#ndQ') || {}).value || '', pin: $('#ndPin') ? $('#ndPin').getAttribute('aria-checked') === 'true' : false, r: segVal('Range') || 'Quarter', msg: ($('#ndMsg') || {}).textContent || '' };
1847
1847
  const L = picked.map((id) => M.goals.find((g) => g.id === id)).filter(Boolean), rest = M.goals.filter((g) => !picked.includes(g.id));
1848
1848
  $('#sideTitle').textContent = keep.n || 'New dashboard';
1849
- $('#sideBody').innerHTML = `<form class="ins-desc" id="ndAsk"><span class="sp">${SV(I.spark)}</span><input id="ndAskIn" maxlength="300" placeholder="Or describe it, and PMOS fills this in" aria-label="Describe the dashboard"><button type="submit" class="cz-ib solid sm" aria-label="Fill it in from the description" title="Fill it in">${SV(I.up)}</button></form>`
1849
+ $('#sideBody').innerHTML = `<form class="ins-desc" id="ndAsk"><span class="sp">${SV(I.spark)}</span><input id="ndAskIn" maxlength="300" placeholder="Or describe it, and PMOS fills this in" aria-label="Describe the dashboard"><button type="submit" class="pm-btn primary" aria-label="Fill it in from the description" title="Fill it in">${SV(I.up)}</button></form>`
1850
1850
  + `<p class="note ins-dmsg" id="ndMsg" role="status"${keep.msg ? '' : ' hidden'}>${esc(keep.msg)}</p>`
1851
1851
  + `<label class="ins-fl">Name<input class="ins-inp" id="ndName" maxlength="60" value="${esc(keep.n)}" placeholder="For example: Partner first week"></label>`
1852
1852
  + `<label class="ins-fl">The question it answers<input class="ins-inp" id="ndQ" maxlength="200" value="${esc(keep.q)}" placeholder="Are new partners getting value in their first week?"></label>`
@@ -1921,7 +1921,7 @@ function openChartEdit(goalId, D0) {
1921
1921
  openSide({ kind: 'chart', eye: D ? 'Chart on ' + D.name : 'Chart · no dashboard yet', title: g.title, go: 'Save chart', onGo: saveChart,
1922
1922
  goOff: !D ? 'Make a dashboard first, with New dashboard' : '',
1923
1923
  note: D ? 'Changes this dashboard only. The goal and its readings are not changed.' : 'A chart lives on a dashboard. Make one first with New dashboard.',
1924
- tools: `<span class="ins-mw"><button type="button" class="cz-ib" id="chMore" aria-haspopup="menu" aria-expanded="false" aria-controls="chMenu" aria-label="More: duplicate, remove from dashboard" title="More: duplicate, remove from dashboard">${SV(I.more, 3)}</button><div class="ins-menu ins-right" id="chMenu" role="menu" hidden><button type="button" role="menuitem" disabled aria-disabled="true">Duplicate<small>A dashboard holds one chart for each goal</small></button><button type="button" role="menuitem" id="chRemove"${on ? '' : ' disabled aria-disabled="true"'}>Remove from dashboard<small>${on ? 'Takes this goal off ' + esc(D.name) : 'It is not on this dashboard'}</small></button></div></span>`,
1924
+ tools: `<span class="ins-mw"><button type="button" class="pm-btn" id="chMore" aria-haspopup="menu" aria-expanded="false" aria-controls="chMenu" aria-label="More: duplicate, remove from dashboard" title="More: duplicate, remove from dashboard">${SV(I.more, 3)}</button><div class="ins-menu ins-right" id="chMenu" role="menu" hidden><button type="button" role="menuitem" disabled aria-disabled="true">Duplicate<small>A dashboard holds one chart for each goal</small></button><button type="button" role="menuitem" id="chRemove"${on ? '' : ' disabled aria-disabled="true"'}>Remove from dashboard<small>${on ? 'Takes this goal off ' + esc(D.name) : 'It is not on this dashboard'}</small></button></div></span>`,
1925
1925
  body: '<div class="ins-prev" id="chPrev"></div>'
1926
1926
  + `<label class="ins-fl">Goal${csel(`<select class="ins-inp" id="chGoal">${M.goals.map((x) => `<option value="${esc(x.id)}"${x.id === g.id ? ' selected' : ''}>${esc(x.title + (krId(x) ? ' · ' + krId(x) : ''))}</option>`).join('')}</select>`)}</label>`
1927
1927
  + `<div><p class="ins-fl">Form</p>${seg('Form', FORMS, cs.form || formOf[g.id] || 'Line')}<div class="note ins-fn">Bars and a meter start at zero. A goal that goes below zero is drawn as a line.</div></div>`
@@ -1999,8 +1999,8 @@ function openVerdict(r) {
1999
1999
  const due = dueOf(r);
2000
2000
  openSide({ kind: 'verdict', eye: 'Evaluate · your verdict' + (due !== null ? ', due ' + md(due) : ''), title: r.title, go: 'Record verdict', onGo: () => saveVerdict(r),
2001
2001
  note: 'Records the evaluation. Nothing is sent.',
2002
- pre: `<a class="cz-ib sm" href="${esc(homeAsk('verdict', 'Help me judge ' + r.title + ' (' + r.id + ').'))}" aria-label="Ask about this verdict in Home" title="Ask about this verdict in Home">${SV(I.home)}</a>`,
2003
- tools: `<a class="cz-ib" href="${iniHref(r.id)}" aria-label="Open the PRD" title="Open the PRD">${SV(I.doc)}</a><a class="cz-ib" href="/premium-board.html?${wsQ()}focus=${encodeURIComponent(r.id)}" aria-label="Open on the Board" title="Open on the Board">${SV(I.next)}</a>`,
2002
+ pre: `<a class="pm-btn" href="${esc(homeAsk('verdict', 'Help me judge ' + r.title + ' (' + r.id + ').'))}" aria-label="Ask about this verdict in Home" title="Ask about this verdict in Home">${SV(I.home)}</a>`,
2003
+ tools: `<a class="pm-btn" href="${iniHref(r.id)}" aria-label="Open the PRD" title="Open the PRD">${SV(I.doc)}</a><a class="pm-btn" href="/premium-board.html?${wsQ()}focus=${encodeURIComponent(r.id)}" aria-label="Open on the Board" title="Open on the Board">${SV(I.next)}</a>`,
2004
2004
  body: chart
2005
2005
  + `<div><p class="ins-fl">Evidence <span class="q">${(r.evidence || []).length}</span></p>${(r.evidence || []).length ? `<ul class="ins-ev">${r.evidence.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` : `<p class="note">${g ? 'No reading of ' + esc(g.title) + ' is recorded.' : 'No goal with readings is anchored to it.'}</p>`}</div>`
2006
2006
  + '<div><p class="ins-fl">Your verdict</p><div class="ins-opts" role="radiogroup" aria-label="Your verdict">'
@@ -2047,7 +2047,7 @@ function repState(G) {
2047
2047
  }
2048
2048
  const ASKST = { running: ['Working on a proposal', 'q', 'Working'], ready: ['Proposal ready, not set up', 'you', 'Proposal'], failed: ['The run failed', 'red', 'Failed'] };
2049
2049
  let selRow = null; // the Library row whose setup or request is open in the Viewer
2050
- const rlRow = (attr, key, name, sub, next, pill) => `<div role="listitem"><button type="button" class="ins-rl${selRow === key ? ' sel' : ''}" ${attr}><span class="nm"><b>${esc(name)}</b><small>${esc(sub)}</small></span><span class="nx${next === '—' ? ' q' : ''}">${esc(next)}</span><span class="st"><span class="cz-pill ${pill[0]}">${esc(pill[1])}</span></span></button></div>`;
2050
+ const rlRow = (attr, key, name, sub, next, pill) => `<div role="listitem"><button type="button" class="ins-rl${selRow === key ? ' sel' : ''}" ${attr}><span class="nm"><b>${esc(name)}</b><small>${esc(sub)}</small></span><span class="nx${next === '—' ? ' q' : ''}">${esc(next)}</span><span class="st"><span class="pm-badge ${pill[0]}">${esc(pill[1])}</span></span></button></div>`;
2051
2051
  function repRowHtml(G) {
2052
2052
  const st = repState(G), key = G.kind + ':' + G.x.id;
2053
2053
  return rlRow(G.kind === 'setup' ? `data-setup="${esc(G.x.id)}"` : `data-rpt="${esc(G.x.id)}"`, key, G.x.name, st.sub || ' ', st.next, st.pill);
@@ -2059,7 +2059,7 @@ function miniHtml(c) {
2059
2059
  }
2060
2060
  function dashCard(D) {
2061
2061
  const L = D.keys.map(byKey).filter(Boolean), on = M.pinned === D.id;
2062
- const pill = !L.length ? '<span class="cz-pill q">No chart</span>' : D.off ? `<span class="cz-pill late">${D.off} behind</span>` : '<span class="cz-pill ok">On course</span>';
2062
+ const pill = !L.length ? '<span class="pm-badge q">No chart</span>' : D.off ? `<span class="pm-badge late">${D.off} behind</span>` : '<span class="pm-badge ok">On course</span>';
2063
2063
  const sub = D.id === 'all' ? 'Every goal and budget · PMOS keeps it' : D.saved ? (D.purpose || D.charts.length + ' goals') + (D.at ? ' · saved ' + md(day(D.at)) : '') : 'The goals of one objective';
2064
2064
  return `<button type="button" class="ins-dcard" role="listitem" data-d="${esc(D.id)}" aria-label="Open ${esc(dashName(D))} on Goals${on ? ', pinned' : ''}"><span class="ins-dh"><b>${esc(dashName(D))}</b>${on ? `<span class="ins-pinned" title="Pinned: opens first on Goals">${SV(I.pin)}</span>` : ''}${pill}</span><span class="ins-minis">${L.slice(0, 2).map(miniHtml).join('') || '<span class="note">No goal on it has a series yet.</span>'}</span><small class="note">${esc(sub)}</small></button>`;
2065
2065
  }
@@ -2117,11 +2117,11 @@ function needRowHtml(G) {
2117
2117
  const lead = d && d.lead ? d.lead : s && s.latest && s.latest.lead ? s.latest.lead : '';
2118
2118
  const key = G.kind + ':' + G.x.id;
2119
2119
  return `<div class="ins-nrow${selRow === key ? ' sel' : ''}" role="listitem"><button type="button" class="nm" ${G.kind === 'setup' ? `data-setup="${esc(G.x.id)}"` : `data-rpt="${esc(G.x.id)}"`}><b>${esc(G.x.name)}</b><small>${esc(sub)}</small>${lead ? `<span class="hl">${esc(lead)}</span>` : ''}</button>`
2120
- + `<span class="ac"><span class="note">${esc(a.label.charAt(0).toLowerCase() + a.label.slice(1))}</span><button type="button" class="cz-ib sm solid" data-nact="${esc(G.x.id)}" aria-label="${esc(a.label + ': ' + G.x.name)}" title="${esc(a.label)}">${SV(I.chk, 2.4)}</button></span></div>`;
2120
+ + `<span class="ac"><span class="note">${esc(a.label.charAt(0).toLowerCase() + a.label.slice(1))}</span><button type="button" class="pm-btn primary" data-nact="${esc(G.x.id)}" aria-label="${esc(a.label + ': ' + G.x.name)}" title="${esc(a.label)}">${SV(I.chk, 2.4)}</button></span></div>`;
2121
2121
  }
2122
2122
  /** A proposal from Home that is ready: what was asked, and its ✓, which opens the proposal (Set it up is one press there). */
2123
2123
  const askNeedHtml = (a) => `<div class="ins-nrow" role="listitem"><button type="button" class="nm" data-ask="${esc(a.id)}"><b>${esc(a.proposal && a.proposal.name ? a.proposal.name : a.text)}</b><small>${esc('You asked in Home: ' + a.text)}</small></button>`
2124
- + `<span class="ac"><span class="note">set it up</span><button type="button" class="cz-ib sm solid" data-ask="${esc(a.id)}" aria-label="${esc('Open the proposal: ' + a.text)}" title="Open the proposal">${SV(I.chk, 2.4)}</button></span></div>`;
2124
+ + `<span class="ac"><span class="note">set it up</span><button type="button" class="pm-btn primary" data-ask="${esc(a.id)}" aria-label="${esc('Open the proposal: ' + a.text)}" title="Open the proposal">${SV(I.chk, 2.4)}</button></span></div>`;
2125
2125
  /** The one ✓ of a waiting report: Issue, Confirm the definition, Move to <product> or Resume. One press, then the panel reads again. */
2126
2126
  async function needPress(b) {
2127
2127
  const id = b.dataset.nact, a = (M.reports.acts || {})[id]; if (!a) return;
@@ -2152,12 +2152,12 @@ function draftedDash() {
2152
2152
  return { name: (F.period ? F.period.label + ' ' : '') + 'key results', tiles, charts: tiles.filter((t) => t.read).map((t) => t.k.goal), nRead: tiles.filter((t) => t.read).length };
2153
2153
  }
2154
2154
  const okrTileHtml = (t) => `<div class="ins-dtile${t.read ? '' : ' w'}" role="listitem"><span class="lb"><span class="kr">${esc(t.k.token)}</span>${esc(t.k.title)}</span><b class="big">${esc(t.big)}</b>`
2155
- + `<span class="ft"><span class="note"><span class="ins-tdot ${t.dot}" aria-hidden="true"></span>${esc(t.meta)}</span>${t.need ? `<button type="button" class="cz-ib sm" data-ddash="con" aria-label="${esc('Connect ' + t.need)}" title="${esc('Connect ' + t.need)}">${SV(I.chk, 2.4)}</button>` : ''}</span></div>`;
2155
+ + `<span class="ft"><span class="note"><span class="ins-tdot ${t.dot}" aria-hidden="true"></span>${esc(t.meta)}</span>${t.need ? `<button type="button" class="pm-btn" data-ddash="con" aria-label="${esc('Connect ' + t.need)}" title="${esc('Connect ' + t.need)}">${SV(I.chk, 2.4)}</button>` : ''}</span></div>`;
2156
2156
  function draftedCard(D) {
2157
- return `<div class="ins-dcard ins-ddraft" role="listitem"><span class="ins-dh"><b>${esc(D.name)}</b><span class="cz-pill q">Drafted</span></span>`
2157
+ return `<div class="ins-dcard ins-ddraft" role="listitem"><span class="ins-dh"><b>${esc(D.name)}</b><span class="pm-badge q">Drafted</span></span>`
2158
2158
  + `<p class="note">${esc('I drafted it from your OKR file: one tile per key result. ' + (D.nRead ? D.nRead + ' read' + (D.tiles.length - D.nRead ? ', ' + (D.tiles.length - D.nRead) + ' wait on a source, and each tile says which.' : '.') : 'None has a reading yet, and each tile says what it needs.'))}</p>`
2159
2159
  + `<div class="ins-dtiles" role="list">${D.tiles.slice(0, 8).map(okrTileHtml).join('')}</div>`
2160
- + `<span class="ins-dact">${D.nRead ? `<span class="note">keep it, and it opens first</span><button type="button" class="cz-ib sm solid" data-ddash="keep" aria-label="Keep this dashboard" title="Keep this dashboard">${SV(I.chk, 2.4)}</button>` : '<span class="note">kept once one key result has a reading</span>'}</span></div>`;
2160
+ + `<span class="ins-dact">${D.nRead ? `<span class="note">keep it, and it opens first</span><button type="button" class="pm-btn primary" data-ddash="keep" aria-label="Keep this dashboard" title="Keep this dashboard">${SV(I.chk, 2.4)}</button>` : '<span class="note">kept once one key result has a reading</span>'}</span></div>`;
2161
2161
  }
2162
2162
  async function draftedPress(b) {
2163
2163
  if (b.dataset.ddash === 'con') { import('./cozy-settings.js').then((S) => S.openSettings('connectors')).catch(() => toast('Open Settings › Connectors.')); return; }
@@ -2225,11 +2225,11 @@ function openSetup(G, tab0) {
2225
2225
  const bar = `<div class="ins-vbar" role="tablist" aria-label="${esc(s.name)}">${[['setup', 'Setup'], ['issues', 'Issues'], ['brief', 'Brief']].map(([k, l]) => `<button type="button" role="tab" class="ins-vtab${tab === k ? ' on' : ''}" aria-selected="${tab === k}" data-st="${k}">${l}</button>`).join('')}</div>`;
2226
2226
  const sub = [s.audience ? 'For ' + s.audience : '', s.label].filter(Boolean).join(' · ');
2227
2227
  let body;
2228
- if (tab === 'issues') body = st.live.length ? st.live.map((f, i) => `<button type="button" class="ins-trow ins-iss" data-file="${i}"><span>${esc(md(day(f.slot)) + ' ' + String(f.slot).slice(0, 4))}</span><span class="cz-pill ${f.state === 'issued' ? 'ok' : 'you'}">${f.state === 'issued' ? 'Issued' : 'Draft'}</span><span class="note">${esc(f.lead ? '“' + f.lead + '”' : '')}</span></button>`).join('') : '<p class="note">No report is written yet. Draft it now writes the first one.</p>';
2228
+ if (tab === 'issues') body = st.live.length ? st.live.map((f, i) => `<button type="button" class="ins-trow ins-iss" data-file="${i}"><span>${esc(md(day(f.slot)) + ' ' + String(f.slot).slice(0, 4))}</span><span class="pm-badge ${f.state === 'issued' ? 'ok' : 'you'}">${f.state === 'issued' ? 'Issued' : 'Draft'}</span><span class="note">${esc(f.lead ? '“' + f.lead + '”' : '')}</span></button>`).join('') : '<p class="note">No report is written yet. Draft it now writes the first one.</p>';
2229
2229
  else if (tab === 'brief') body = kvHtml([['What it is for', s.purpose || '—'], s.audience ? ['For', s.audience] : null, s.output ? ['Made as', s.output] : null, ['Schedule', s.label || 'No schedule'], s.lastIssued ? ['Last issued', s.lastIssued] : null, ['Cycles', String(s.cycles || 0)]]) + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the brief in Home</a>`;
2230
2230
  else {
2231
2231
  const F = fromList(s);
2232
- body = `<div class="ins-box ins-nb"><span class="small"><b>${esc(nextSay(s))}</b><br><span class="note">PMOS drafts it, you issue it</span></span>${st.draft ? '<button type="button" class="ins-btn sm dark" data-sx="open">Open the draft</button>' : ''}<button type="button" class="ins-btn sm" data-sx="draft">Draft it now</button><button type="button" class="cz-ib sm" data-sx="${s.paused ? 'resume' : 'pause'}" aria-label="${s.paused ? 'Resume' : 'Pause'}" title="${s.paused ? 'Resume' : 'Pause'}">${SV(s.paused ? I.play : I.pause)}</button></div>`
2232
+ body = `<div class="ins-box ins-nb"><span class="small"><b>${esc(nextSay(s))}</b><br><span class="note">PMOS drafts it, you issue it</span></span>${st.draft ? '<button type="button" class="ins-btn sm dark" data-sx="open">Open the draft</button>' : ''}<button type="button" class="ins-btn sm" data-sx="draft">Draft it now</button><button type="button" class="pm-btn" data-sx="${s.paused ? 'resume' : 'pause'}" aria-label="${s.paused ? 'Resume' : 'Pause'}" title="${s.paused ? 'Resume' : 'Pause'}">${SV(s.paused ? I.play : I.pause)}</button></div>`
2233
2233
  + `<p class="ins-lbl">Built from</p><div class="ins-chips2">${F.length ? F.map((x) => `<span class="cz-chip">${esc(x)}</span>`).join('') : '<span class="note">Not recorded</span>'}</div>`
2234
2234
  + (s.sections && s.sections.length ? '<p class="ins-lbl">Sections</p>' + s.sections.map((x, i) => `<div class="ins-trow"><span>${i + 1} · ${esc(x)}</span></div>`).join('') : '')
2235
2235
  + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the setup in Home</a>`;
@@ -3,52 +3,52 @@
3
3
  .ins-menu.ins-rpmenu { min-width: 280px; }
4
4
  .ins-menu#repMenu [role="menuitem"] { flex-direction: row; align-items: center; gap: 10px; }
5
5
  .ins-menu#repMenu [role="menuitem"] > span { flex: 1; min-width: 0; }
6
- .ins-menu#repMenu [role="menuitem"] small { display: block; font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-ink3); line-height: var(--lh-badge); }
7
- .ins-menu#repMenu .ins-rpback { color: var(--cz-ink2); }
6
+ .ins-menu#repMenu [role="menuitem"] small { display: block; font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-badge); }
7
+ .ins-menu#repMenu .ins-rpback { color: var(--muted); }
8
8
 
9
9
  .ins-rpd { display: flex; flex-direction: column; gap: 14px; }
10
- .ins-rps { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cz-bluebg); }
11
- .ins-rps.ok { background: var(--cz-okbg); }
12
- .ins-rps .sp { display: inline-flex; color: var(--cz-blueink); }
13
- .ins-rps.ok .sp { color: var(--cz-ok); }
14
- .ins-rps .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-meta); color: var(--cz-ink2); line-height: var(--lh-meta); }
15
- .ins-rps .t b { font-size: var(--fs-body); color: var(--cz-ink); line-height: var(--lh-body); }
10
+ .ins-rps { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-card); background: var(--blue-tint); }
11
+ .ins-rps.ok { background: var(--leaf-tint); }
12
+ .ins-rps .sp { display: inline-flex; color: var(--blue); }
13
+ .ins-rps.ok .sp { color: var(--chart-done); }
14
+ .ins-rps .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-meta); color: var(--muted); line-height: var(--lh-meta); }
15
+ .ins-rps .t b { font-size: var(--fs-body); color: var(--ink); line-height: var(--lh-body); }
16
16
 
17
17
  .ins-rpc { display: flex; flex-wrap: wrap; gap: 6px; }
18
- .ins-rpchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--cz-well); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); line-height: var(--lh-label); }
18
+ .ins-rpchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--well); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--ink); line-height: var(--lh-label); }
19
19
  .ins-rpchip svg[aria-hidden="true"] { width: 14px; height: 14px; }
20
- .ins-rpchip select, .ins-rpchip input { border: 0; background: none; font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); outline: 0; padding: 0; min-width: 0; line-height: var(--lh-label); }
21
- .ins-rpchip input::placeholder { color: var(--cz-ink3); font-weight: var(--fw-strong); }
22
- .ins-rpchip:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
23
- .ins-rpchip.gh { background: none; color: var(--cz-ink3); font-weight: var(--fw-strong); }
20
+ .ins-rpchip select, .ins-rpchip input { border: 0; background: none; font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--ink); outline: 0; padding: 0; min-width: 0; line-height: var(--lh-label); }
21
+ .ins-rpchip input::placeholder { color: var(--muted); font-weight: var(--fw-strong); }
22
+ .ins-rpchip:focus-within { box-shadow: 0 0 0 2px var(--blue); }
23
+ .ins-rpchip.gh { background: none; color: var(--muted); font-weight: var(--fw-strong); }
24
24
 
25
25
  .ins-rpb { display: flex; flex-direction: column; gap: 6px; }
26
- .ins-rpl { font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-ink3); line-height: var(--lh-badge); }
26
+ .ins-rpl { font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-badge); }
27
27
  .ins-rpl span { font-weight: var(--fw-strong); margin-left: 6px; }
28
- .ins-rpa { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 10px 12px; background: var(--cz-card); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: 1.35; color: var(--cz-ink); }
29
- .ins-rpa:focus { outline: 0; box-shadow: 0 0 0 2px var(--cz-blue); }
30
- .ins-rpbox { border: 1px solid var(--cz-hair); border-radius: 14px; padding: 2px 14px; background: var(--cz-card); }
31
- .ins-rpst { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-body); line-height: var(--lh-body); }
28
+ .ins-rpa { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; background: var(--card); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: 1.35; color: var(--ink); }
29
+ .ins-rpa:focus { outline: 0; box-shadow: 0 0 0 2px var(--blue); }
30
+ .ins-rpbox { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 2px 14px; background: var(--card); }
31
+ .ins-rpst { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); line-height: var(--lh-body); }
32
32
  .ins-rpst:last-child { border-bottom: 0; }
33
- .ins-rpst .n { font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-ink3); line-height: var(--lh-badge); }
33
+ .ins-rpst .n { font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-badge); }
34
34
  .ins-rpst b { display: block; font-weight: var(--fw-strong); line-height: 1.3; }
35
- .ins-rpst small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); margin-top: 1px; line-height: var(--lh-meta); }
35
+ .ins-rpst small { display: block; font-size: var(--fs-meta); color: var(--muted); margin-top: 1px; line-height: var(--lh-meta); }
36
36
  .ins-rpst.off .w { opacity: .55; }
37
- .ins-rplive { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-ok); line-height: var(--lh-badge); }
38
- .ins-rplive i { width: 6px; height: 6px; border-radius: 50%; background: var(--cz-dot-ok); }
39
- .ins-rptog { position: relative; width: 34px; height: 20px; border-radius: 999px; border: 0; background: var(--cz-well2); cursor: pointer; padding: 0; flex: none; }
40
- .ins-rptog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); transition: transform .15s ease; }
41
- .ins-rptog.on { background: var(--cz-blueink); }
37
+ .ins-rplive { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--chart-done); line-height: var(--lh-badge); }
38
+ .ins-rplive i { width: 6px; height: 6px; border-radius: 50%; background: var(--chart-done); }
39
+ .ins-rptog { position: relative; width: 34px; height: 20px; border-radius: var(--radius-pill); border: 0; background: var(--well); cursor: pointer; padding: 0; flex: none; }
40
+ .ins-rptog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); transition: transform .15s ease; }
41
+ .ins-rptog.on { background: var(--blue); }
42
42
  .ins-rptog.on::after { transform: translateX(14px); }
43
43
  .ins-rptog:disabled { opacity: .5; cursor: default; }
44
- .ins-rptog:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
44
+ .ins-rptog:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
45
45
  .ins-rpask { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; gap: 6px; }
46
- .ins-rpask input { min-width: 0; height: 32px; border: 1px solid var(--cz-hair); border-radius: 8px; padding: 0 8px; background: var(--cz-card); font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); line-height: var(--lh-meta); }
46
+ .ins-rpask input { min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 8px; background: var(--card); font: inherit; font-size: var(--fs-meta); color: var(--ink); line-height: var(--lh-meta); }
47
47
  .ins-rpck { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
48
- .ins-rpck .ck { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-meta); color: var(--cz-ink2); padding: 4px 0; line-height: 1.35; }
49
- .ins-rpck .m { width: 18px; height: 18px; border-radius: 50%; background: var(--cz-okbg); color: var(--cz-ok); display: inline-flex; align-items: center; justify-content: center; flex: none; }
48
+ .ins-rpck .ck { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-meta); color: var(--muted); padding: 4px 0; line-height: 1.35; }
49
+ .ins-rpck .m { width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-tint); color: var(--chart-done); display: inline-flex; align-items: center; justify-content: center; flex: none; }
50
50
  .ins-rpck .m svg[aria-hidden="true"] { width: 12px; height: 12px; }
51
- .ins-rpck .ck.w .m { background: var(--cz-latebg); color: var(--cz-late); }
51
+ .ins-rpck .ck.w .m { background: var(--alert-tint); color: var(--alert); }
52
52
  @media (prefers-reduced-motion: reduce) { .ins-rptog::after { transition: none; } }
53
53
  @media (max-width: 720px) {
54
54
  .ins-rpck { grid-template-columns: minmax(0, 1fr); }
@@ -103,7 +103,12 @@ const notNow = () => run('dismiss', async () => {
103
103
  });
104
104
 
105
105
  /* ── views ─────────────────────────────────────────────────────────────────────────────────────── */
106
- const btn = (act, label, o = {}) => `<button class="wl-btn${o.alt ? ' alt' : ''}${o.quiet ? ' quiet' : ''}" type="button" data-w="${act}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}${S.busy === o.busy ? ' aria-busy="true"' : ''}>${S.busy === o.busy && o.busyText ? spin(o.busyText) : (o.lead || '') + label}</button>`;
106
+ /* Icon-only for a step that can be taken back (Komorebi Button v7): Open Home and Back show an icon, the label is the tooltip and
107
+ * aria-label. The answers to a step that cannot be undone (Import 12 initiatives) keep their words. */
108
+ const ICON_ONLY = { finish: '<svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-7 9 7"/><path d="M5 10v10h14V10"/></svg>', back: '<svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg>' };
109
+ const btn = (act, label, o = {}) => ICON_ONLY[act] && !(S.busy === o.busy && o.busyText)
110
+ ? `<button class="pm-btn ${act === 'finish' ? 'primary' : 'outline'}" type="button" data-w="${act}" aria-label="${esc(label)}" title="${esc(label)}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}>${ICON_ONLY[act]}</button>`
111
+ : `<button class="wl-btn${o.alt ? ' alt' : ''}${o.quiet ? ' quiet' : ''}" type="button" data-w="${act}"${o.attrs || ''}${dis(o.off || (S.busy && !o.free))}${S.busy === o.busy ? ' aria-busy="true"' : ''}>${S.busy === o.busy && o.busyText ? spin(o.busyText) : (o.lead || '') + label}</button>`;
107
112
  const foot = (left, right) => `<div class="wl-foot"><div>${left}</div><div class="r">${right}</div></div>`;
108
113
  const err = () => (S.error ? `<p class="wl-err" role="alert">${esc(S.error)}</p>` : '');
109
114
 
@@ -7,16 +7,21 @@
7
7
  <title>Audience · PMOS</title>
8
8
  <!-- The audience tab (batch 12 item 1, S3; canvas XrtA9Present): what the call sees while the PM presents from the recording tab. It shows
9
9
  the stage only. The recording tab's presenter (pm/cozy-rec-present.js) says what to show over BroadcastChannel('pmos-present');
10
- this page reads the material itself and draws it (pm/cozy-aud.js). It has no controls and writes nothing. -->
10
+ this page reads the material itself and draws it (pm/cozy-aud.js). It has no controls and writes nothing.
11
+ It is on the PMOS design system (design-system-meeting-pages): pm-ds, always in the dark theme, a single-column Stage. -->
11
12
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
12
13
  <link rel="stylesheet" href="/pm/cozy.css" />
14
+ <link rel="stylesheet" href="/pm/brand.css" />
15
+ <link rel="stylesheet" href="/pm/charts.css" />
16
+ <link rel="stylesheet" href="/pm/komorebi.css" />
17
+ <link rel="stylesheet" href="/pm/ds-bridge.css" />
13
18
  <link rel="stylesheet" href="/pm/premium-vw-slides.css" />
14
19
  <link rel="stylesheet" href="/pm/cozy-mtg-present.css" />
15
20
  <link rel="stylesheet" href="/pm/cozy-aud.css" />
16
21
  </head>
17
- <body class="cz vzx-audw">
18
- <main class="vzx-aud" id="aud" data-kind="" aria-live="polite"></main>
19
- <div class="vzx-ft" id="audFt"><span></span><span></span></div>
22
+ <body class="cz pm-ds dark vzx-audw">
23
+ <main class="vzx-aud pm-stage" id="aud" data-kind="" aria-live="polite"></main>
24
+ <div class="vzx-ft pm-meta" id="audFt"><span></span><span></span></div>
20
25
  <script type="module" src="/pm/cozy-aud.js"></script>
21
26
  </body>
22
27
  </html>
@@ -7,20 +7,25 @@
7
7
  <title>PMOS · Meeting buddy</title>
8
8
  <!-- The meeting buddy (initiative meeting-buddy; Exploring 2, "Meeting buddy and one-press start", boards 1, 2 and 4). The PMOS extension frames
9
9
  it over a Google Meet call: /premium-buddy.html?meet=<abc-defg-hij>&mtitle=<tab title>. It can also name its meeting: ?event=<id>&date=YYYY-MM-DD.
10
- Only the PM sees it. Its links open in a new tab, so the call never navigates away. pm/cozy-buddy.js draws it. -->
10
+ Only the PM sees it. Its links open in a new tab, so the call never navigates away. pm/cozy-buddy.js draws it. It is on the PMOS design system (design-system-meeting-pages): pm-ds, the Summary block
11
+ in a single column, pm-btn buttons and a pm-input ask line. -->
11
12
  <base target="_blank" />
12
13
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
13
14
  <link rel="stylesheet" href="/pm/cozy.css" />
15
+ <link rel="stylesheet" href="/pm/brand.css" />
16
+ <link rel="stylesheet" href="/pm/charts.css" />
17
+ <link rel="stylesheet" href="/pm/komorebi.css" />
18
+ <link rel="stylesheet" href="/pm/ds-bridge.css" />
14
19
  <link rel="stylesheet" href="/pm/cozy-buddy.css" />
15
20
  </head>
16
- <body class="cz mb-page">
21
+ <body class="cz pm-ds mb-page">
17
22
  <main class="mb" id="mb">
18
23
  <header class="mb-h"><i class="mb-dot" id="mbDot" aria-hidden="true"></i><b>PMOS</b><span class="mb-sm" id="mbHead">Looking for the meeting</span>
19
- <button type="button" class="mb-ib" id="mbFold" aria-expanded="true" aria-label="Fold PMOS" title="Fold PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></button></header>
24
+ <button type="button" class="mb-ib pm-btn" id="mbFold" aria-expanded="true" aria-label="Fold PMOS" title="Fold PMOS"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></button></header>
20
25
  <section class="mb-b" id="mbBody" aria-live="polite"></section>
21
26
  <p class="mb-msg" id="mbMsg" role="status" hidden></p>
22
- <form class="mb-ask" id="mbAsk" hidden><input type="text" id="mbQ" autocomplete="off" aria-label="Ask PMOS. Only you see this." placeholder="Ask PMOS. Only you see this." maxlength="1000" />
23
- <button type="submit" class="mb-ib go" aria-label="Ask PMOS" title="Ask PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l16-8-6 16-3-7z"/></svg></button></form>
27
+ <form class="mb-ask" id="mbAsk" hidden><input type="text" class="pm-input" id="mbQ" autocomplete="off" aria-label="Ask PMOS. Only you see this." placeholder="Ask PMOS. Only you see this." maxlength="1000" />
28
+ <button type="submit" class="mb-ib pm-btn go primary" aria-label="Ask PMOS" title="Ask PMOS"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l16-8-6 16-3-7z"/></svg></button></form>
24
29
  </main>
25
30
  <script type="module" src="/pm/cozy-buddy.js"></script>
26
31
  </body>