@skillre/dsh-plugin-work-dashboard 0.10.1 → 0.11.1

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.
package/lib/client.js CHANGED
@@ -99,7 +99,10 @@ window.__ModuleLoader__.load({
99
99
  detail: (pocId, signal) => call({ action: "detail", pocId }, signal),
100
100
  risks: (signal) => call({ action: "risks" }, signal),
101
101
  timeline: (signal) => call({ action: "timeline" }, signal),
102
- exportForm: (mode, pocIds, signal) => call({ action: "export-form", mode, pocIds: [...pocIds] }, signal)
102
+ exportForm: (mode, pocIds, intent, signal) => call(
103
+ intent === void 0 ? { action: "export-form", mode, pocIds: [...pocIds] } : { action: "export-form", mode, pocIds: [...pocIds], intent },
104
+ signal
105
+ )
103
106
  };
104
107
  }
105
108
 
@@ -252,12 +255,25 @@ window.__ModuleLoader__.load({
252
255
  exportSelectNone: "\u6E05\u7A7A",
253
256
  exportSelected: "\u5DF2\u9009 {count} \u4E2A\u9879\u76EE",
254
257
  exportBlank: "\u53EA\u5BFC\u51FA\u7A7A\u767D\u8868\u5355\uFF08\u65B0\u5EFA\u9879\u76EE\u7528\uFF09",
255
- exportBlankHint: "\u4E0D\u52FE\u9009\u4EFB\u4F55\u9879\u76EE\u65F6\uFF0C\u4F1A\u751F\u6210\u4E00\u4E2A\u7A7A\u767D\u7684\u300C\u65B0\u5EFA\u9879\u76EE\u300D\u8868\u5355\u3002",
258
+ exportBlankHint: "\u8FD8\u6CA1\u52FE\u9009\u9879\u76EE\u3002\u81F3\u5C11\u9009\u4E00\u4E2A\uFF0C\u5426\u5219\u8868\u5355\u91CC\u6CA1\u6709\u53EF\u8865\u5145\u7684\u5BF9\u8C61\u3002",
259
+ // The three intents. They differ in WHAT the form asks, not just how much it
260
+ // shows, so each carries a one-line explanation rather than a bare label.
261
+ exportIntentLabel: "\u8FD9\u6B21\u8981\u505A\u4EC0\u4E48",
262
+ exportIntentNew: "\u65B0\u5EFA\u9879\u76EE",
263
+ exportIntentNewHint: "\u7ACB\u9879\u767B\u8BB0\uFF1A\u8EAB\u4EFD + G0 \u4E94\u5FC5\u586B",
264
+ exportIntentSupplement: "\u8865\u5145\u4FE1\u606F",
265
+ exportIntentSupplementHint: "\u53EA\u586B\u5F53\u524D\u9636\u6BB5\u8BE5\u586B\u7684\uFF0C\u5176\u4F59\u53EA\u8BFB",
266
+ exportIntentProgress: "\u8BB0\u5F55\u8FDB\u5C55",
267
+ exportIntentProgressHint: "\u53EA\u586B\u8FD9\u4E00\u8F6E\uFF0C\u4E00\u5C4F\u5B8C\u6210",
268
+ exportNewHint: "\u65B0\u5EFA\u9879\u76EE\u8868\u5355\u53EA\u95EE\u4E24\u4EF6\u4E8B\uFF1A\u9879\u76EE\u8EAB\u4EFD\uFF0C\u548C G0 \u7684\u4E94\u4E2A\u5FC5\u586B\u9879\u3002\u8BA1\u5212\uFF08\u6307\u6807\u3001\u573A\u666F\uFF09\u7559\u5230 G1 \u518D\u586B\u2014\u2014\u53F0\u8D26\u4E5F\u662F G0 \u901A\u8FC7\u4E4B\u540E\u624D\u8981\u6C42\u8BA1\u5212\u3002",
269
+ exportStageFilterLabel: "\u6309\u9636\u6BB5\u7B5B\u9009",
270
+ exportStageAll: "\u5168\u90E8\u9636\u6BB5",
271
+ exportStageEmpty: "\u8FD9\u4E2A\u9636\u6BB5\u4E0B\u6CA1\u6709\u9879\u76EE\u3002",
272
+ exportHint: "\u8868\u5355\u5B8C\u5168\u79BB\u7EBF\u53EF\u7528\uFF1A\u6CA1\u6709 CDN\u3001\u6CA1\u6709\u5916\u90E8\u5B57\u4F53\u3001\u6CA1\u6709\u670D\u52A1\u5668\u3002\u586B\u5B8C\u4E0B\u8F7D\u7684\u53D8\u66F4\u96C6\uFF08.json\uFF09\u53D1\u7ED9\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF0C\u7531\u4ED6\u5408\u5E76\u8FDB\u53F0\u8D26\u3002",
256
273
  exportGenerate: "\u751F\u6210\u5E76\u4E0B\u8F7D",
257
274
  exportGenerating: "\u6B63\u5728\u751F\u6210\u2026",
258
275
  exportDone: "\u5DF2\u4E0B\u8F7D {name}",
259
276
  exportSize: "{kb} KB",
260
- exportHint: "\u8868\u5355\u5B8C\u5168\u79BB\u7EBF\u53EF\u7528\uFF1A\u6CA1\u6709 CDN\u3001\u6CA1\u6709\u5916\u90E8\u5B57\u4F53\u3001\u6CA1\u6709\u670D\u52A1\u5668\u3002\u586B\u5B8C\u5BFC\u51FA\u7684 .yaml \u53EF\u4EE5\u76F4\u63A5\u62D6\u8FDB\u672C\u63D2\u4EF6\u7684\u5BFC\u5165\u9875\u3002",
261
277
  exportNoProjects: "\u5148\u70B9\u3010\u5237\u65B0\u3011\u62C9\u5230\u6570\u636E\uFF0C\u624D\u80FD\u5BFC\u51FA\u5DF2\u6709\u9879\u76EE\u7684\u8868\u5355\u3002",
262
278
  exportFailed: "\u751F\u6210\u8868\u5355\u5931\u8D25",
263
279
  // Milestone 3: risk board
@@ -826,12 +842,23 @@ window.__ModuleLoader__.load({
826
842
  exportSelectNone: "Clear",
827
843
  exportSelected: "{count} project(s) selected",
828
844
  exportBlank: "Export a blank form only (for a new project)",
829
- exportBlankHint: 'With nothing selected, a blank "new project" form is generated.',
845
+ exportBlankHint: "Nothing selected yet. Pick at least one project, or there is nothing to fill in.",
846
+ exportIntentLabel: "What is this for",
847
+ exportIntentNew: "New project",
848
+ exportIntentNewHint: "Registration: identity + the five G0 requirements",
849
+ exportIntentSupplement: "Fill in a stage",
850
+ exportIntentSupplementHint: "Only the current stage is editable",
851
+ exportIntentProgress: "Record progress",
852
+ exportIntentProgressHint: "One round, one screen",
853
+ exportNewHint: "A new-project form asks only two things: the project identity, and the five Gate 0 requirements. The plan (criteria, scenarios) waits for G1 \u2014 the ledger only demands a plan after G0 passes.",
854
+ exportStageFilterLabel: "Filter by stage",
855
+ exportStageAll: "All stages",
856
+ exportStageEmpty: "No projects at this stage.",
857
+ exportHint: "The form works fully offline: no CDN, no external fonts, no server. The change set (.json) it produces goes to the project owner, who merges it into the ledger.",
830
858
  exportGenerate: "Generate and download",
831
859
  exportGenerating: "Generating\u2026",
832
860
  exportDone: "Downloaded {name}",
833
861
  exportSize: "{kb} KB",
834
- exportHint: "The form works fully offline: no CDN, no external fonts, no server. The .yaml it produces can be dropped straight into this plugin's import page.",
835
862
  exportNoProjects: "Refresh first to pull the ledger before exporting an existing project.",
836
863
  exportFailed: "Could not generate the form",
837
864
  // Milestone 3: risk board
@@ -4579,11 +4606,31 @@ window.__ModuleLoader__.load({
4579
4606
  // src/client/export-form.tsx
4580
4607
  var import_react3 = require("react");
4581
4608
  var import_jsx_runtime4 = require("react/jsx-runtime");
4609
+ var STAGE_FILTERS = [
4610
+ { key: "G0", label: "G0" },
4611
+ { key: "G1", label: "G1" },
4612
+ { key: "G2", label: "G2" },
4613
+ { key: "G3", label: "G3" },
4614
+ { key: "G4", label: "G4" },
4615
+ { key: "closed", label: "\u5DF2\u7ED3\u675F" }
4616
+ ];
4582
4617
  function ExportFormDialog({ api, projects, t, onClose, onError }) {
4583
4618
  const rows = (0, import_react3.useMemo)(
4584
- () => projects.map((project) => ({ pocId: project.pocId, name: project.name, company: project.company })),
4619
+ () => projects.map((project) => ({
4620
+ pocId: project.pocId,
4621
+ name: project.name,
4622
+ company: project.company,
4623
+ stage: project.stageLabel,
4624
+ stageKey: project.closed ? "closed" : project.stage ?? "unknown"
4625
+ })),
4585
4626
  [projects]
4586
4627
  );
4628
+ const [intent, setIntent] = (0, import_react3.useState)("supplement");
4629
+ const [stageFilter, setStageFilter] = (0, import_react3.useState)(null);
4630
+ const visibleRows = (0, import_react3.useMemo)(
4631
+ () => stageFilter === null ? rows : rows.filter((row) => row.stageKey === stageFilter),
4632
+ [rows, stageFilter]
4633
+ );
4587
4634
  const [selected, setSelected] = (0, import_react3.useState)(() => new Set(rows.map((row) => row.pocId)));
4588
4635
  const [busy, setBusy] = (0, import_react3.useState)(false);
4589
4636
  const toggle = (pocId) => {
@@ -4594,13 +4641,13 @@ window.__ModuleLoader__.load({
4594
4641
  return next;
4595
4642
  });
4596
4643
  };
4597
- const selectAll = () => setSelected(new Set(rows.map((row) => row.pocId)));
4644
+ const selectAll = () => setSelected(new Set(visibleRows.map((row) => row.pocId)));
4598
4645
  const selectNone = () => setSelected(/* @__PURE__ */ new Set());
4599
4646
  const generate = async () => {
4600
4647
  setBusy(true);
4601
4648
  try {
4602
- const mode = selected.size === 0 ? "blank" : "fill";
4603
- const result = await api.exportForm(mode, mode === "blank" ? [] : [...selected]);
4649
+ const mode = intent === "new" ? "blank" : "fill";
4650
+ const result = await api.exportForm(mode, mode === "blank" ? [] : [...selected], intent);
4604
4651
  const blob = new Blob([result.html], { type: "text/html;charset=utf-8" });
4605
4652
  const url = URL.createObjectURL(blob);
4606
4653
  const anchor = document.createElement("a");
@@ -4639,12 +4686,66 @@ window.__ModuleLoader__.load({
4639
4686
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "modal-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "modal-title", children: t("exportTitle") }) }),
4640
4687
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-content", children: [
4641
4688
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportSubtitle") }),
4642
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "export-toolbar", children: [
4643
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectAll, disabled: busy, children: t("exportSelectAll") }),
4644
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectNone, disabled: busy, children: t("exportSelectNone") }),
4645
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-count", children: format(t("exportSelected"), { count: selected.size }) })
4689
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "export-intent", role: "group", "aria-label": t("exportIntentLabel"), children: [
4690
+ { key: "new", label: t("exportIntentNew"), hint: t("exportIntentNewHint") },
4691
+ { key: "supplement", label: t("exportIntentSupplement"), hint: t("exportIntentSupplementHint") },
4692
+ { key: "progress", label: t("exportIntentProgress"), hint: t("exportIntentProgressHint") }
4693
+ ].map((option) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4694
+ "button",
4695
+ {
4696
+ type: "button",
4697
+ className: "export-intent-btn",
4698
+ "data-active": intent === option.key,
4699
+ title: option.hint,
4700
+ disabled: busy,
4701
+ onClick: () => setIntent(option.key),
4702
+ children: [
4703
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-intent-label", children: option.label }),
4704
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-intent-hint", children: option.hint })
4705
+ ]
4706
+ },
4707
+ option.key
4708
+ )) }),
4709
+ intent === "new" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: t("exportNewHint") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4710
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "export-stage-filter", role: "group", "aria-label": t("exportStageFilterLabel"), children: [
4711
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4712
+ "button",
4713
+ {
4714
+ type: "button",
4715
+ className: "btn btn-small",
4716
+ "data-active": stageFilter === null,
4717
+ onClick: () => setStageFilter(null),
4718
+ disabled: busy,
4719
+ children: t("exportStageAll")
4720
+ }
4721
+ ),
4722
+ STAGE_FILTERS.map((bucket) => {
4723
+ const count = rows.filter((row) => row.stageKey === bucket.key).length;
4724
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4725
+ "button",
4726
+ {
4727
+ type: "button",
4728
+ className: "btn btn-small",
4729
+ "data-active": stageFilter === bucket.key,
4730
+ "data-zero": count === 0,
4731
+ disabled: busy || count === 0 && stageFilter !== bucket.key,
4732
+ onClick: () => setStageFilter(stageFilter === bucket.key ? null : bucket.key),
4733
+ children: [
4734
+ bucket.label,
4735
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-stage-count", children: count })
4736
+ ]
4737
+ },
4738
+ bucket.key
4739
+ );
4740
+ })
4741
+ ] }),
4742
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "export-toolbar", children: [
4743
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectAll, disabled: busy, children: t("exportSelectAll") }),
4744
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectNone, disabled: busy, children: t("exportSelectNone") }),
4745
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-count", children: format(t("exportSelected"), { count: selected.size }) })
4746
+ ] })
4646
4747
  ] }),
4647
- rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportNoProjects") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { className: "export-list", children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "export-row", "data-selected": selected.has(row.pocId), children: [
4748
+ intent !== "new" && (rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportNoProjects") }) : visibleRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportStageEmpty") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { className: "export-list", children: visibleRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "export-row", "data-selected": selected.has(row.pocId), children: [
4648
4749
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4649
4750
  "input",
4650
4751
  {
@@ -4658,22 +4759,32 @@ window.__ModuleLoader__.load({
4658
4759
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-row-name", children: row.name === "" ? row.pocId : row.name }),
4659
4760
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "export-row-meta", children: [
4660
4761
  row.pocId,
4661
- row.company === "" ? "" : ` \xB7 ${row.company}`
4762
+ row.company === "" ? "" : ` \xB7 ${row.company}`,
4763
+ row.stage === "" ? "" : ` \xB7 ${row.stage}`
4662
4764
  ] })
4663
4765
  ] })
4664
- ] }) }, row.pocId)) }),
4665
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: selected.size === 0 ? t("exportBlankHint") : t("exportHint") })
4766
+ ] }) }, row.pocId)) })),
4767
+ intent === "new" ? null : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: selected.size === 0 ? t("exportBlankHint") : t("exportHint") })
4666
4768
  ] }),
4667
4769
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-footer", children: [
4668
4770
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "spacer" }),
4669
4771
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn", onClick: onClose, disabled: busy, children: t("cancel") }),
4670
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-primary", onClick: () => {
4671
- void generate();
4672
- }, disabled: busy, children: busy ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4673
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "spinner" }),
4674
- " ",
4675
- t("exportGenerating")
4676
- ] }) : t("exportGenerate") })
4772
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4773
+ "button",
4774
+ {
4775
+ type: "button",
4776
+ className: "btn btn-primary",
4777
+ onClick: () => {
4778
+ void generate();
4779
+ },
4780
+ disabled: busy || intent !== "new" && selected.size === 0,
4781
+ children: busy ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4782
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "spinner" }),
4783
+ " ",
4784
+ t("exportGenerating")
4785
+ ] }) : t("exportGenerate")
4786
+ }
4787
+ )
4677
4788
  ] })
4678
4789
  ]
4679
4790
  }
@@ -4974,7 +5085,7 @@ window.__ModuleLoader__.load({
4974
5085
  ] }),
4975
5086
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "pcard-progress", children: [
4976
5087
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-progress-label", children: t("cardLatestProgress") }),
4977
- project.progressCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-progress-copy is-muted", children: t("cardNoProgress") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-progress-copy", children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
5088
+ project.progressCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-progress-copy is-muted", children: t("cardNoProgress") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-progress-copy", title: project.lastProgressSummary === "" ? void 0 : project.lastProgressSummary, children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
4978
5089
  project.progressCount === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "pcard-progress-meta", children: [
4979
5090
  formatDate(project.lastProgressDate, locale),
4980
5091
  " \xB7 ",
@@ -5017,7 +5128,7 @@ window.__ModuleLoader__.load({
5017
5128
  project.owner
5018
5129
  ] })
5019
5130
  ] }),
5020
- project.progressCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pboard-card-progress is-muted", children: t("cardNoProgress") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pboard-card-progress", children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
5131
+ project.progressCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pboard-card-progress is-muted", children: t("cardNoProgress") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pboard-card-progress", title: project.lastProgressSummary === "" ? void 0 : project.lastProgressSummary, children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
5021
5132
  project.highGapCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pboard-card-gap", "data-tone": "red", children: format(t("boardHighBadge"), { count: project.highGapCount }) }) : null
5022
5133
  ] });
5023
5134
  }
@@ -5105,7 +5216,7 @@ window.__ModuleLoader__.load({
5105
5216
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(InlineMeter, { value: project.amountWan, max: peak, tone: "amber" })
5106
5217
  ] }) }),
5107
5218
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { children: project.progressCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "project-meta is-muted", children: t("cardNoProgress") }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
5108
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "progress-summary", children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
5219
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "progress-summary", title: project.lastProgressSummary === "" ? void 0 : project.lastProgressSummary, children: project.lastProgressSummary === "" ? t("emptyField") : project.lastProgressSummary }),
5109
5220
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "project-id", children: format(t("tableProgressCell"), { date: formatDate(project.lastProgressDate, locale), count: project.progressCount }) })
5110
5221
  ] }) }),
5111
5222
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "gap-cell", children: [
@@ -6081,6 +6192,36 @@ window.__ModuleLoader__.load({
6081
6192
  margin: 0 0 4px; font-size: 12px; line-height: 18px;
6082
6193
  color: var(--dsw-alias-label-secondary);
6083
6194
  }
6195
+ /* ---------- export intents: the choice that decides what the form asks ---- */
6196
+ .wd-shell .export-intent {
6197
+ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
6198
+ gap: 8px; margin: 10px 0 4px;
6199
+ }
6200
+ .wd-shell .export-intent-btn {
6201
+ display: flex; flex-direction: column; gap: 2px; text-align: left;
6202
+ padding: 9px 11px; border-radius: 8px; cursor: pointer;
6203
+ background: var(--wd-surface); border: 1px solid var(--wd-hairline);
6204
+ font-family: inherit; transition: border-color .11s ease, background .11s ease;
6205
+ }
6206
+ .wd-shell .export-intent-btn:hover { border-color: var(--wd-primary); }
6207
+ .wd-shell .export-intent-btn[data-active="true"] {
6208
+ background: var(--wd-primary-soft); border-color: var(--wd-primary);
6209
+ }
6210
+ .wd-shell .export-intent-label { font-size: 12px; line-height: 17px; font-weight: 650; color: var(--wd-text); }
6211
+ .wd-shell .export-intent-hint { font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
6212
+ .wd-shell .export-stage-filter {
6213
+ display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
6214
+ padding: 6px 0 2px;
6215
+ }
6216
+ .wd-shell .export-stage-filter .btn[data-active="true"] {
6217
+ background: var(--wd-primary-soft); border-color: var(--wd-primary); color: var(--wd-primary);
6218
+ }
6219
+ .wd-shell .export-stage-filter .btn[data-zero="true"] { opacity: .45; }
6220
+ .wd-shell .export-stage-count {
6221
+ margin-left: 5px; font-size: 9.5px; font-variant-numeric: tabular-nums;
6222
+ color: var(--dsw-alias-label-tertiary);
6223
+ }
6224
+
6084
6225
  .wd-shell .export-toolbar {
6085
6226
  display: flex; align-items: center; gap: 7px;
6086
6227
  padding: 8px 0 6px;
@@ -6572,7 +6713,15 @@ window.__ModuleLoader__.load({
6572
6713
  .wd-shell .dt-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
6573
6714
 
6574
6715
  /* ---------- Gate 0 card grid ---------- */
6575
- .wd-shell .g0-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
6716
+ /* 'align-items: start' keeps every card at its own content height. The default
6717
+ 'stretch' would force a one-line answer and a ten-line argument sharing a row
6718
+ to be equally tall, leaving a hollow block under the short one that reads as
6719
+ "this card was never finished". The short answers stay visually even anyway:
6720
+ they are all one or two lines. */
6721
+ .wd-shell .g0-grid {
6722
+ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
6723
+ gap: 12px; align-items: start;
6724
+ }
6576
6725
  .wd-shell .g0-card {
6577
6726
  display: flex; flex-direction: column; gap: 5px;
6578
6727
  padding: 10px 12px; border-radius: 8px;
@@ -6586,136 +6735,43 @@ window.__ModuleLoader__.load({
6586
6735
  color: var(--wd-amber); background: var(--wd-amber-soft);
6587
6736
  padding: 1px 5px; border-radius: 4px; white-space: nowrap;
6588
6737
  }
6738
+ /* Every G0 answer keeps its own line breaks. The ledger stores these fields as
6739
+ structured prose \u2014 '\u4E3A\u4EC0\u4E48\u6D4B\u8BD5\uFF1A' / numbered points / a blank line / '\u4E0B\u4E00\u6B65\u52A8\u4F5C
6740
+ \u548C\u76EE\u6807\uFF1A' \u2014 and 'white-space: normal' collapses all of that into one run-on
6741
+ paragraph: the numbers detach from their items and the second heading vanishes
6742
+ into the body. 71% of the ledger's non-empty G0 answers carry such breaks. */
6589
6743
  .wd-shell .g0-card-body {
6590
6744
  margin: 0; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary);
6591
- overflow-wrap: anywhere;
6745
+ overflow-wrap: anywhere; white-space: pre-wrap;
6746
+ }
6747
+ /* The two narrative answers are NOT clamped.
6748
+ *
6749
+ * An earlier version cut them at three lines, which silently hid 62% of the
6750
+ * ledger's G0 arguments (up to 7 of a field's 10 lines) with no ellipsis and no
6751
+ * expand affordance. These two fields are the densest content the ledger holds;
6752
+ * a page that claims to be "read, not skimmed" cannot truncate them. They are
6753
+ * given a heavier weight instead, so an argument reads as evidence rather than
6754
+ * as another one-line answer. */
6755
+ .wd-shell .g0-card[data-prose="true"] .g0-card-body {
6756
+ font-size: 11.5px; line-height: 17px;
6757
+ color: var(--dsw-alias-label-primary);
6592
6758
  }
6593
- .wd-shell .g0-card[data-prose="true"] .g0-card-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
6594
6759
  .wd-shell .g0-card-body[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
6595
6760
  .wd-shell .g0-grid-note { margin: 0; font-size: 10px; line-height: 15px; color: var(--wd-amber); }
6596
6761
 
6597
6762
  /* ---------- rail ---------- */
6598
- .wd-shell .dt-rail-head { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
6599
- .wd-shell .dt-rail-back { margin-bottom: 4px; }
6600
- .wd-shell .dt-rail-title {
6601
- margin: 0; font-size: 16px; line-height: 23px; font-weight: 650;
6602
- letter-spacing: -.01em; overflow-wrap: anywhere;
6603
- }
6604
- .wd-shell .dt-rail-id { display: block; }
6605
- .wd-shell .dt-rail-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
6606
- .wd-shell .dt-rail-amount {
6607
- display: flex; flex-direction: column; gap: 1px;
6608
- padding: 10px 12px; border-radius: 9px;
6609
- background: var(--wd-amber-soft); border: 1px solid transparent;
6610
- }
6611
- .wd-shell .dt-rail-amount-label {
6612
- font-size: 9.5px; line-height: 14px; letter-spacing: .05em;
6613
- text-transform: uppercase; font-weight: 600; color: var(--wd-amber);
6614
- }
6615
- .wd-shell .dt-rail-amount-value {
6616
- font-size: 22px; line-height: 28px; font-weight: 650;
6617
- font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em;
6618
- }
6619
- .wd-shell .dt-rail-amount-value[data-empty="true"] {
6620
- font-size: 13px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary);
6621
- }
6622
- .wd-shell .dt-rail-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }
6623
- .wd-shell .dt-rail-block { display: flex; flex-direction: column; gap: 7px; }
6624
- .wd-shell .dt-rail-block-title {
6625
- margin: 0; font-size: 10.5px; line-height: 15px; letter-spacing: .06em;
6626
- text-transform: uppercase; font-weight: 650; color: var(--dsw-alias-label-tertiary);
6627
- }
6628
- .wd-shell .dt-rail-empty { margin: 0; font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-tertiary); font-style: italic; }
6629
6763
 
6630
6764
  /* vertical stage track */
6631
- .wd-shell .dt-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; position: relative; }
6632
- .wd-shell .dt-stage { display: flex; align-items: center; gap: 9px; padding: 4px 0; position: relative; }
6633
- .wd-shell .dt-stage:not(:last-child)::after {
6634
- content: ''; position: absolute; left: 9px; top: 22px; bottom: -3px;
6635
- width: 1px; background: var(--wd-hairline);
6636
- }
6637
- .wd-shell .dt-stage[data-done="true"]:not(:last-child)::after { background: var(--wd-green); opacity: .45; }
6638
- .wd-shell .dt-stage-marker {
6639
- position: relative; z-index: 1; flex: none;
6640
- width: 19px; height: 19px; border-radius: 50%;
6641
- display: flex; align-items: center; justify-content: center;
6642
- font-size: 9px; font-weight: 650;
6643
- border: 1.5px solid var(--wd-hairline); background: var(--wd-surface);
6644
- color: var(--dsw-alias-label-tertiary);
6645
- }
6646
- .wd-shell .dt-stage[data-done="true"] .dt-stage-marker { border-color: var(--wd-green); background: var(--wd-green); color: #fff; }
6647
- .wd-shell .dt-stage[data-current="true"] .dt-stage-marker {
6648
- border-color: var(--wd-primary); background: var(--wd-primary); color: #fff;
6649
- box-shadow: 0 0 0 3px var(--wd-primary-soft);
6650
- }
6651
- .wd-shell .dt-stage-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
6652
- .wd-shell .dt-stage-label { font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--dsw-alias-label-secondary); }
6653
- .wd-shell .dt-stage[data-current="true"] .dt-stage-label { color: var(--wd-primary); }
6654
- .wd-shell .dt-stage-state { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
6655
- .wd-shell .dt-stage[data-current="true"] .dt-stage-state { color: var(--wd-primary); }
6656
6765
 
6657
6766
  /* rail dimension summary: four compact marks, never merged into one score.
6658
6767
  The full cards with their origin tags live in the reading pane; the rail only
6659
6768
  needs to say "which of the four exist", because the rail is scanned, not read. */
6660
- .wd-shell .dt-rail-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
6661
- .wd-shell .dim-mini {
6662
- display: flex; align-items: center; gap: 5px; min-width: 0;
6663
- padding: 4px 7px; border-radius: 6px;
6664
- background: var(--wd-red-soft);
6665
- }
6666
- .wd-shell .dim-mini[data-present="true"] { background: var(--wd-green-soft); }
6667
- .wd-shell .dim-mini-mark { flex: none; font-size: 10px; line-height: 14px; font-weight: 650; color: var(--wd-red); }
6668
- .wd-shell .dim-mini[data-present="true"] .dim-mini-mark { color: var(--wd-green); }
6669
- .wd-shell .dim-mini-label {
6670
- font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);
6671
- white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
6672
- }
6673
- .wd-shell .dim-card {
6674
- display: flex; flex-direction: column; gap: 1px; min-width: 0;
6675
- padding: 7px 8px; border-radius: 8px;
6676
- border: 1px solid var(--wd-hairline); background: var(--wd-inset);
6677
- }
6678
- .wd-shell .dim-card[data-present="true"] { border-color: transparent; background: var(--wd-green-soft); }
6679
- .wd-shell .dim-card[data-present="false"] { border-color: transparent; background: var(--wd-red-soft); }
6680
- .wd-shell .dim-card-label { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary); font-weight: 550; }
6681
- .wd-shell .dim-card-mark { font-size: 11px; line-height: 15px; font-weight: 650; }
6682
- .wd-shell .dim-card[data-present="true"] .dim-card-mark { color: var(--wd-green); }
6683
- .wd-shell .dim-card[data-present="false"] .dim-card-mark { color: var(--wd-red); }
6684
- .wd-shell .dim-card-value {
6685
- font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-secondary);
6686
- overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
6687
- }
6688
- .wd-shell .dim-card-origin {
6689
- margin-top: 1px; font-size: 8.5px; line-height: 12px;
6690
- color: var(--dsw-alias-label-tertiary); letter-spacing: .02em;
6691
- }
6692
- .wd-shell .dim-card-reason { font-size: 8.5px; line-height: 12px; color: var(--wd-red); opacity: .8; }
6693
6769
 
6694
6770
  /* rail gaps */
6695
- .wd-shell .dt-rail-gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
6696
- .wd-shell .dt-rail-gap { display: flex; align-items: baseline; gap: 6px; }
6697
- .wd-shell .dt-rail-gap-no {
6698
- flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
6699
- font-size: 9px; line-height: 14px; font-weight: 650;
6700
- padding: 0 4px; border-radius: 3px;
6701
- }
6702
- .wd-shell .dt-rail-gap[data-level="high"] .dt-rail-gap-no { background: var(--wd-red-soft); color: var(--wd-red); }
6703
- .wd-shell .dt-rail-gap[data-level="medium"] .dt-rail-gap-no { background: var(--wd-amber-soft); color: var(--wd-amber); }
6704
- .wd-shell .dt-rail-gap-title { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
6705
6771
 
6706
6772
  /* rail meta */
6707
- .wd-shell .dt-rail-meta { display: flex; flex-direction: column; gap: 3px; }
6708
- .wd-shell .dt-rail-meta-row { display: flex; align-items: baseline; gap: 8px; }
6709
- .wd-shell .dt-rail-meta-label { flex: none; width: 82px; font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
6710
- .wd-shell .dt-rail-meta-value {
6711
- flex: 1 1 auto; min-width: 0; font-size: 10.5px; line-height: 15px;
6712
- color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;
6713
- }
6714
- .wd-shell .dt-rail-meta-value[data-empty="true"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }
6715
6773
 
6716
6774
  /* rail navigation */
6717
- .wd-shell .dt-rail-nav { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
6718
- .wd-shell .dt-rail-position { flex: 1 1 auto; text-align: center; font-size: 9.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
6719
6775
 
6720
6776
  /* ---------- section frame ---------- */
6721
6777
  .wd-shell .dsec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@@ -6796,112 +6852,49 @@ window.__ModuleLoader__.load({
6796
6852
  .wd-shell .prog-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
6797
6853
  .wd-shell .prog-date { font-size: 12px; line-height: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
6798
6854
  .wd-shell .prog-type { font-size: 10.5px; line-height: 16px; padding: 0 7px; border-radius: 20px; background: var(--wd-inset); border: 1px solid var(--wd-hairline); color: var(--dsw-alias-label-secondary); }
6799
- .wd-shell .prog-seq { font-size: 9.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
6800
6855
  .wd-shell .prog-chip { margin-left: auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); }
6801
6856
  .wd-shell .prog-meter { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 150px; }
6802
- .wd-shell .prog-meter-label { font-size: 9px; line-height: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); }
6803
6857
  .wd-shell .prog-meter .inline-meter { flex: 1 1 auto; min-width: 40px; }
6804
6858
  .wd-shell .prog-meter-value { font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--dsw-alias-label-secondary); }
6805
6859
 
6806
- .wd-shell .prog-pair { display: flex; flex-direction: column; gap: 3px; }
6807
- .wd-shell .prog-goal { display: flex; flex-direction: column; gap: 0; }
6808
- .wd-shell .prog-actual { display: flex; flex-direction: column; gap: 0; }
6809
- .wd-shell .prog-pair-label {
6810
- font-size: 9px; line-height: 13px; letter-spacing: .05em;
6811
- text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);
6812
- }
6813
- .wd-shell .prog-goal .prog-pair-value { font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }
6814
- .wd-shell .prog-actual .prog-pair-value { font-size: 12.5px; line-height: 19px; font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
6815
- .wd-shell .prog-scope, .wd-shell .prog-evidence, .wd-shell .prog-customer, .wd-shell .prog-feedback { display: flex; flex-direction: column; gap: 4px; }
6816
- .wd-shell .prog-scope-label, .wd-shell .prog-block-label {
6817
- font-size: 9px; line-height: 13px; letter-spacing: .05em;
6818
- text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);
6860
+
6861
+ /*
6862
+ * Balance the columns.
6863
+ *
6864
+ * The progress stream grows without limit (one card per round), while the left
6865
+ * column holds a fixed set of commitments. Left alone, a project with ten rounds
6866
+ * leaves the commitments column looking half-empty. Capping the stream keeps the
6867
+ * two columns visually comparable and gives the reader an obvious scroll target,
6868
+ * while every round stays reachable.
6869
+ */
6870
+ .wd-shell .dt-col-side .prog-stream {
6871
+ max-height: none; overflow-y: visible;
6872
+ padding-right: 4px;
6873
+ scrollbar-width: thin;
6819
6874
  }
6820
- .wd-shell .prog-customer { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
6821
- .wd-shell .prog-customer .prog-block-label { margin-right: 1px; }
6822
- .wd-shell .prog-missing { font-size: 10.5px; line-height: 15px; color: var(--wd-amber); font-style: italic; }
6823
- .wd-shell .prog-evidence-link { text-decoration: none; color: var(--wd-primary); }
6824
- .wd-shell .prog-evidence-link:hover { background: var(--wd-primary-soft); }
6825
- .wd-shell .prog-external { margin-left: 2px; font-size: 9px; }
6826
- .wd-shell .prog-feedback-copy { font-size: 11.5px; line-height: 18px; }
6827
- .wd-shell .prog-next {
6828
- display: flex; flex-direction: column; gap: 3px;
6829
- padding: 7px 10px; border-radius: 8px;
6830
- border-left: 3px solid var(--wd-primary);
6831
- background: var(--wd-primary-soft);
6875
+ .wd-shell .dt-col-side .prog-stream::-webkit-scrollbar { width: 6px; }
6876
+ .wd-shell .dt-col-side .prog-stream::-webkit-scrollbar-thumb { background: var(--wd-hairline); border-radius: 3px; }
6877
+
6878
+ /* ---------- compact timeline row ---------- */
6879
+ .wd-shell .prog-card-compact { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; }
6880
+ .wd-shell .prog-card-compact .prog-head { gap: 8px; }
6881
+ .wd-shell .prog-change {
6882
+ font-size: 9px; line-height: 13px; font-weight: 650;
6883
+ color: var(--wd-primary); background: var(--wd-primary-soft);
6884
+ padding: 1px 5px; border-radius: 4px; white-space: nowrap;
6832
6885
  }
6833
- .wd-shell .prog-next-empty { border-left-color: var(--wd-hairline); background: var(--wd-inset); }
6834
- .wd-shell .prog-next-label {
6835
- font-size: 9px; line-height: 13px; letter-spacing: .05em;
6836
- text-transform: uppercase; font-weight: 650; color: var(--wd-primary);
6886
+ .wd-shell .prog-actual-line {
6887
+ margin: 0; font-size: 11.5px; line-height: 17px;
6888
+ color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;
6837
6889
  }
6838
- .wd-shell .prog-next-empty .prog-next-label { color: var(--dsw-alias-label-tertiary); }
6839
- .wd-shell .prog-next-body { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
6840
- .wd-shell .prog-next-goal { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); }
6890
+ .wd-shell .prog-actual-line[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
6891
+ .wd-shell .prog-scope-row { margin-top: 1px; }
6841
6892
 
6842
6893
  /* ---------- dimension grid (detail) ---------- */
6843
- .wd-shell .dim-grid-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
6844
- @media (max-width: 900px) { .wd-shell .dim-grid-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
6845
- .wd-shell .dim-grid-detail .dim-card {
6846
- padding: 11px 12px; border-radius: 10px; gap: 3px;
6847
- border-left: 3px solid var(--wd-red);
6848
- box-shadow: var(--wd-shadow-1);
6849
- }
6850
- .wd-shell .dim-grid-detail .dim-card[data-present="true"] { border-left-color: var(--wd-green); }
6851
- .wd-shell .dim-grid-detail .dim-card-label { font-size: 10.5px; line-height: 15px; }
6852
- .wd-shell .dim-grid-detail .dim-card-mark { font-size: 14px; line-height: 20px; }
6853
- .wd-shell .dim-grid-detail .dim-card-value { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-primary); -webkit-line-clamp: 3; }
6854
- .wd-shell .dim-grid-detail .dim-card-origin {
6855
- display: inline-flex; align-self: flex-start; margin-top: 2px;
6856
- padding: 0 5px; border-radius: 4px; font-size: 9px; line-height: 15px;
6857
- background: var(--wd-inset); border: 1px solid var(--wd-hairline);
6858
- color: var(--dsw-alias-label-tertiary);
6859
- }
6860
6894
 
6861
6895
  /* ---------- G0 meter ---------- */
6862
- .wd-shell .g0-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
6863
- @media (max-width: 760px) { .wd-shell .g0-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
6864
- .wd-shell .g0-cell {
6865
- display: flex; flex-direction: column; align-items: center; gap: 2px;
6866
- padding: 8px 6px; border-radius: 8px; min-width: 0;
6867
- background: var(--wd-red-soft); border: 1px solid transparent;
6868
- }
6869
- .wd-shell .g0-cell[data-present="true"] { background: var(--wd-green-soft); }
6870
- .wd-shell .g0-cell-mark { font-size: 12px; line-height: 16px; font-weight: 650; color: var(--wd-red); }
6871
- .wd-shell .g0-cell[data-present="true"] .g0-cell-mark { color: var(--wd-green); }
6872
- .wd-shell .g0-cell-label {
6873
- font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);
6874
- text-align: center; overflow-wrap: anywhere;
6875
- }
6876
- .wd-shell .g0-fields { display: flex; flex-direction: column; gap: 8px; }
6877
- .wd-shell .g0-field {
6878
- display: flex; flex-direction: column; gap: 2px;
6879
- padding: 9px 11px; border-radius: 9px;
6880
- border: 1px solid var(--wd-hairline); background: var(--wd-surface);
6881
- }
6882
- .wd-shell .g0-field[data-present="false"] { border-color: transparent; background: var(--wd-red-soft); }
6883
- .wd-shell .g0-field-label {
6884
- font-size: 9.5px; line-height: 14px; letter-spacing: .05em;
6885
- text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);
6886
- }
6887
- .wd-shell .g0-field-value { margin: 0; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }
6888
- .wd-shell .g0-field[data-prose="true"] .g0-field-value { font-size: 12.5px; line-height: 20px; color: var(--dsw-alias-label-primary); }
6889
- .wd-shell .g0-field-missing { margin: 0; font-size: 11px; line-height: 16px; color: var(--wd-red); font-style: italic; }
6890
- .wd-shell .g0-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
6891
- .wd-shell .g0-review { font-size: 11px; line-height: 17px; color: var(--dsw-alias-label-secondary); }
6892
- .wd-shell .g0-review[data-empty="true"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }
6893
6896
 
6894
6897
  /* ---------- plan ---------- */
6895
- .wd-shell .plan-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
6896
- @media (max-width: 900px) { .wd-shell .plan-meta { grid-template-columns: minmax(0, 1fr); } }
6897
- .wd-shell .plan-strip {
6898
- display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
6899
- padding: 9px 12px; border-radius: 9px;
6900
- background: var(--wd-inset); border: 1px solid var(--wd-hairline);
6901
- }
6902
- .wd-shell .plan-strip-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
6903
- .wd-shell .plan-strip-label { font-size: 9.5px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); font-weight: 600; }
6904
- .wd-shell .plan-strip-value { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); font-variant-numeric: tabular-nums; }
6905
6898
  .wd-shell .plan-block { display: flex; flex-direction: column; gap: 7px; }
6906
6899
  .wd-shell .plan-block-head { display: flex; align-items: baseline; gap: 8px; }
6907
6900
  .wd-shell .plan-block-title { margin: 0; font-size: 11.5px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }
@@ -6963,11 +6956,6 @@ window.__ModuleLoader__.load({
6963
6956
  .wd-shell .plan-criterion-status { white-space: nowrap; }
6964
6957
 
6965
6958
  /* ---------- scenario legend ---------- */
6966
- .wd-shell .plan-scenario-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2px; }
6967
- .wd-shell .plan-scenario-legend-item { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
6968
- .wd-shell .plan-scenario-legend-item[data-tone="green"] { color: var(--wd-green); }
6969
- .wd-shell .plan-scenario-legend-item[data-tone="amber"] { color: var(--wd-amber); }
6970
- .wd-shell .plan-scenario-legend-item[data-tone="red"] { color: var(--wd-red); }
6971
6959
 
6972
6960
  /* ---------- next actions ---------- */
6973
6961
  .wd-shell .next-table {
@@ -7052,115 +7040,11 @@ window.__ModuleLoader__.load({
7052
7040
  .wd-shell .plan-risk-mitigation { font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
7053
7041
 
7054
7042
  /* ---------- outcome ---------- */
7055
- .wd-shell .out-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
7056
- @media (max-width: 900px) { .wd-shell .out-triple { grid-template-columns: minmax(0, 1fr); } }
7057
- .wd-shell .out-milestone {
7058
- display: flex; flex-direction: column; gap: 4px;
7059
- padding: 12px 14px; border-radius: 10px;
7060
- border-left: 3px solid var(--wd-red); background: var(--wd-red-soft);
7061
- }
7062
- .wd-shell .out-milestone[data-present="true"] { border-left-color: var(--wd-green); background: var(--wd-green-soft); }
7063
- .wd-shell .out-milestone-label {
7064
- font-size: 9.5px; line-height: 14px; letter-spacing: .05em;
7065
- text-transform: uppercase; font-weight: 650; color: var(--wd-red);
7066
- }
7067
- .wd-shell .out-milestone[data-present="true"] .out-milestone-label { color: var(--wd-green); }
7068
- .wd-shell .out-milestone-text { font-size: 13px; line-height: 20px; font-weight: 650; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
7069
- .wd-shell .out-milestone-missing { font-size: 11.5px; line-height: 18px; color: var(--wd-red); overflow-wrap: anywhere; }
7070
- .wd-shell .out-milestone-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
7071
- .wd-shell .out-meta {
7072
- display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
7073
- padding-top: 10px; border-top: 1px solid var(--wd-hairline);
7074
- }
7075
- @media (max-width: 900px) { .wd-shell .out-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
7076
7043
 
7077
7044
  @media (prefers-reduced-motion: reduce) {
7078
- .wd-shell .dim-card, .wd-shell .prog-card { transition: none; }
7079
- }
7080
-
7081
- /* ================= v3.1 layout: banner + fixed two columns ================= */
7082
- .wd-shell .dt-shell { display: flex; flex-direction: column; gap: 16px; padding: 20px 28px 44px; min-height: 100%; }
7083
- .wd-shell .dt-body { display: flex; flex-direction: column; gap: 18px; }
7084
-
7085
- .wd-shell .dt-header {
7086
- display: grid; grid-template-columns: minmax(0, 1fr) auto;
7087
- grid-template-areas: "main side" "nav nav"; gap: 10px 18px;
7088
- padding: 16px 20px; background: var(--wd-surface);
7089
- border: 1px solid var(--wd-hairline); border-radius: 10px;
7045
+ .wd-shell .prog-card { transition: none; }
7090
7046
  }
7091
- .wd-shell .dt-header-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
7092
- .wd-shell .dt-header-back { align-self: flex-start; margin-bottom: 2px; }
7093
- .wd-shell .dt-header-title {
7094
- margin: 0; font-size: 20px; line-height: 28px; font-weight: 700;
7095
- letter-spacing: -.01em; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere;
7096
- }
7097
- .wd-shell .dt-header-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
7098
- .wd-shell .dt-header-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
7099
- .wd-shell .dt-header-org { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
7100
- .wd-shell .dt-header-side { grid-area: side; display: flex; align-items: flex-start; gap: 18px; }
7101
- .wd-shell .dt-header-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
7102
- .wd-shell .dt-header-amount { display: flex; flex-direction: column; align-items: flex-end; }
7103
- .wd-shell .dt-header-amount-label { font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--wd-amber); }
7104
- .wd-shell .dt-header-amount-value { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em; }
7105
- .wd-shell .dt-header-amount-value[data-empty="true"] { font-size: 12px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary); }
7106
- .wd-shell .dt-header-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }
7107
- .wd-shell .dt-header-nav { grid-area: nav; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--wd-hairline); }
7108
- .wd-shell .dt-header-position { margin: 0 auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
7109
7047
 
7110
- .wd-shell .dt-columns { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 18px; align-items: start; }
7111
- @media (max-width: 1180px) { .wd-shell .dt-columns { grid-template-columns: minmax(0, 1fr); } }
7112
- .wd-shell .dt-col-main,
7113
- .wd-shell .dt-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
7114
-
7115
- .wd-shell .g0-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
7116
- .wd-shell .g0-card { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 8px; background: var(--wd-surface); border: 1px solid var(--wd-hairline); }
7117
- .wd-shell .g0-card[data-present="false"] { background: var(--wd-inset); border-style: dashed; }
7118
- .wd-shell .g0-card-head { display: flex; align-items: baseline; gap: 8px; }
7119
- .wd-shell .g0-card-label { font-size: 11px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }
7120
- .wd-shell .g0-card-missing { margin-left: auto; font-size: 9px; line-height: 13px; font-weight: 650; color: var(--wd-amber); background: var(--wd-amber-soft); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
7121
- .wd-shell .g0-card-body { margin: 0; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
7122
- .wd-shell .g0-card[data-prose="true"] .g0-card-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
7123
- .wd-shell .g0-card-body[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
7124
- .wd-shell .g0-grid-note { margin: 0; font-size: 10px; line-height: 15px; color: var(--wd-amber); }
7125
-
7126
- .wd-shell .next-table { width: 100%; border-collapse: collapse; border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden; background: var(--wd-surface); }
7127
- .wd-shell .next-table th { padding: 7px 10px; text-align: left; font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary); background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline); }
7128
- .wd-shell .next-table td { padding: 8px 10px; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline); vertical-align: top; }
7129
- .wd-shell .next-table tbody tr:last-child td { border-bottom: 0; }
7130
- .wd-shell .next-goal { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
7131
- .wd-shell .next-deadline { font-variant-numeric: tabular-nums; }
7132
-
7133
- /*
7134
- * Balance the columns.
7135
- *
7136
- * The progress stream grows without limit (one card per round), while the left
7137
- * column holds a fixed set of commitments. Left alone, a project with ten rounds
7138
- * leaves the commitments column looking half-empty. Capping the stream keeps the
7139
- * two columns visually comparable and gives the reader an obvious scroll target,
7140
- * while every round stays reachable.
7141
- */
7142
- .wd-shell .dt-col-side .prog-stream {
7143
- max-height: none; overflow-y: visible;
7144
- padding-right: 4px;
7145
- scrollbar-width: thin;
7146
- }
7147
- .wd-shell .dt-col-side .prog-stream::-webkit-scrollbar { width: 6px; }
7148
- .wd-shell .dt-col-side .prog-stream::-webkit-scrollbar-thumb { background: var(--wd-hairline); border-radius: 3px; }
7149
-
7150
- /* ---------- compact timeline row ---------- */
7151
- .wd-shell .prog-card-compact { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; }
7152
- .wd-shell .prog-card-compact .prog-head { gap: 8px; }
7153
- .wd-shell .prog-change {
7154
- font-size: 9px; line-height: 13px; font-weight: 650;
7155
- color: var(--wd-primary); background: var(--wd-primary-soft);
7156
- padding: 1px 5px; border-radius: 4px; white-space: nowrap;
7157
- }
7158
- .wd-shell .prog-actual-line {
7159
- margin: 0; font-size: 11.5px; line-height: 17px;
7160
- color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;
7161
- }
7162
- .wd-shell .prog-actual-line[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
7163
- .wd-shell .prog-scope-row { margin-top: 1px; }
7164
7048
  `;
7165
7049
 
7166
7050
  // src/client/css/insights.ts
@@ -7893,11 +7777,14 @@ window.__ModuleLoader__.load({
7893
7777
  }
7894
7778
  .wd-shell .pf-collapse:hover { color: var(--wd-text); background: var(--wd-surface); }
7895
7779
  .wd-shell .pf-band[data-collapsed="true"] .pf-grid { display: none; }
7780
+ /* The note under a band block carries the analysis *conclusion*, not a caption:
7781
+ the long form ends with the recommended action. Clamping it at two lines cut
7782
+ exactly that sentence off, so it flows at its natural height instead. Measured
7783
+ at 307px, the long note runs to three lines \u2014 15px taller than the clamp. */
7896
7784
  .wd-shell .pf-note {
7897
7785
  margin: 5px 0 0; font-size: 10px; line-height: 15px;
7898
7786
  color: var(--dsw-alias-label-tertiary);
7899
7787
  overflow-wrap: anywhere;
7900
- display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
7901
7788
  }
7902
7789
  .wd-shell .pf-note[data-tone="amber"] { color: var(--wd-amber); }
7903
7790
 
@@ -8035,9 +7922,17 @@ window.__ModuleLoader__.load({
8035
7922
  }
8036
7923
  .wd-shell .pboard-card-meta { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
8037
7924
  .wd-shell .pboard-card-owner { font-variant-numeric: normal; }
7925
+ /* Three lines, not one.
7926
+ *
7927
+ * A board column is 258px wide, so 'nowrap' fit roughly 25 of the summary's 68
7928
+ * characters and sent the remaining 43 into an ellipsis \u2014 not enough left to tell
7929
+ * what kind of progress it even was. Three wrapped lines hold all of it and cost
7930
+ * the card 14px, which the column has: it is the one surface on this page whose
7931
+ * job is to say what just happened, not just that something happened. */
8038
7932
  .wd-shell .pboard-card-progress {
8039
7933
  font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-secondary);
8040
- overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
7934
+ overflow: hidden; display: -webkit-box;
7935
+ -webkit-line-clamp: 3; -webkit-box-orient: vertical;
8041
7936
  }
8042
7937
  .wd-shell .pboard-card-gap { font-size: 9.5px; line-height: 14px; font-weight: 650; color: var(--wd-red); }
8043
7938
  .wd-shell .pboard-empty {