@skillre/dsh-plugin-work-dashboard 0.10.0 → 0.10.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
@@ -610,6 +610,17 @@ window.__ModuleLoader__.load({
610
610
  dtPlanScenarioEvidence: "{count} \u9879\u8BC1\u636E",
611
611
  dtProgressCountLabel: "{count} \u6761",
612
612
  dtPlanScenarioDetail: "\u8BE6\u60C5",
613
+ dtG0GridTitle: "Gate 0 \xB7 \u5173\u952E\u4FE1\u606F\u533A",
614
+ dtG0ReviewTitle: "G0 Review",
615
+ dtG0Answered: "{answered} / {total} \u5DF2\u586B",
616
+ dtG0MissingNote: "\u8FD8\u6709 {count} \u9879\u5FC5\u586B\u6CA1\u5199\u3002G0 \u4E0D\u9F50\uFF0C\u540E\u9762\u6240\u6709\u5224\u65AD\u90FD\u4E0D\u53EF\u4FE1\u3002",
617
+ dtNextActionsTitle: "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u76EE\u6807\u53CA\u8BA1\u5212",
618
+ dtNextActionsKicker: "\u627F\u63A5 outcome.business.milestone \uFF0F progress[].next",
619
+ dtNextActionsNone: "\u8FD8\u6CA1\u6709\u4E0B\u4E00\u6B65\u3002POC \u505A\u6210\u4E86\u5374\u6CA1\u6709\u4E0B\u4E00\u6B65\uFF0C\u662F\u6700\u5BB9\u6613\u6F0F\u6389\u3001\u5546\u4E1A\u4EF7\u503C\u6700\u9AD8\u7684\u7F3A\u53E3\u3002",
620
+ dtNextGoal: "\u76EE\u6807",
621
+ dtNextOwner: "\u8D1F\u8D23\u4EBA",
622
+ dtNextDeadline: "\u622A\u6B62",
623
+ dtNextStatus: "\u72B6\u6001",
613
624
  dtScenarioBack: "\u8FD4\u56DE\u603B\u89C8",
614
625
  dtScenarioTitle: "\u573A\u666F\u8BE6\u60C5",
615
626
  dtScenarioGoal: "\u6210\u529F\u76EE\u6807",
@@ -1174,6 +1185,17 @@ window.__ModuleLoader__.load({
1174
1185
  dtPlanScenarioEvidence: "{count} evidence",
1175
1186
  dtProgressCountLabel: "{count} entries",
1176
1187
  dtPlanScenarioDetail: "Detail",
1188
+ dtG0GridTitle: "Gate 0 \xB7 key information",
1189
+ dtG0ReviewTitle: "G0 review",
1190
+ dtG0Answered: "{answered} / {total} answered",
1191
+ dtG0MissingNote: "{count} required answer(s) still missing. Until G0 is complete, nothing downstream is trustworthy.",
1192
+ dtNextActionsTitle: "Next steps",
1193
+ dtNextActionsKicker: "outcome.business.milestone \uFF0F progress[].next",
1194
+ dtNextActionsNone: "No next step yet. A pilot that worked with nothing following is the most expensive gap.",
1195
+ dtNextGoal: "Goal",
1196
+ dtNextOwner: "Owner",
1197
+ dtNextDeadline: "Due",
1198
+ dtNextStatus: "Status",
1177
1199
  dtScenarioBack: "Back to overview",
1178
1200
  dtScenarioTitle: "Scenario detail",
1179
1201
  dtScenarioGoal: "Success goal",
@@ -4092,107 +4114,9 @@ window.__ModuleLoader__.load({
4092
4114
  ] }, group.pocId)) })
4093
4115
  ] });
4094
4116
  }
4095
- var G0_WORK_LABEL = {
4096
- why_customer: "whyCustomerTest",
4097
- why_us: "whyWeTest",
4098
- decision_chain: "decisionChain",
4099
- post_poc_decision: "postPocDecision",
4100
- tech_owner: "customerTechOwner"
4101
- };
4102
- function Worklist({ detail, rows, t }) {
4103
- const items = (0, import_react.useMemo)(() => {
4104
- const next = [];
4105
- const missing = detail.gate0.checklist.filter((item) => !item.present);
4106
- for (const [index, item] of missing.entries()) {
4107
- const label = t(G0_WORK_LABEL[item.field] ?? item.field);
4108
- next.push({
4109
- key: `g0:${item.field}`,
4110
- label: format(t("worklistG0Field"), { field: label }),
4111
- // The count is a fact about the group, not about this row: repeating it
4112
- // on all five lines turned the most actionable block on the page into a
4113
- // wall of identical sentences. It is said once, on the first row.
4114
- copy: index === 0 ? t("worklistG0Intro", { count: String(missing.length) }) : "",
4115
- action: index === 0 ? t("worklistG0Hint") : ""
4116
- });
4117
- }
4118
- const has = (source) => (rows ?? []).some((row) => row.source === source);
4119
- if (has("missing-amount")) {
4120
- next.push({
4121
- key: "amount",
4122
- label: t("worklistMissingAmountAction"),
4123
- copy: t("worklistMissingAmountIntro"),
4124
- action: ""
4125
- });
4126
- }
4127
- if (has("no-stage-since")) {
4128
- next.push({
4129
- key: "stage-since",
4130
- label: t("worklistMissingStageSinceAction"),
4131
- copy: t("worklistMissingStageSinceIntro"),
4132
- action: ""
4133
- });
4134
- }
4135
- if (has("no-progress")) {
4136
- next.push({
4137
- key: "progress",
4138
- label: t("worklistNoProgressAction"),
4139
- copy: t("worklistNoProgressIntro"),
4140
- action: ""
4141
- });
4142
- }
4143
- if (detail.plan.criteria.length === 0) {
4144
- next.push({
4145
- key: "plan",
4146
- label: t("worklistNoPlanAction"),
4147
- copy: t("worklistNoPlanIntro"),
4148
- action: ""
4149
- });
4150
- }
4151
- if (detail.outcome.overall === "" && detail.outcome.achievement === "") {
4152
- next.push({
4153
- key: "outcome",
4154
- label: t("worklistNoOutcomeAction"),
4155
- copy: t("worklistNoOutcomeIntro"),
4156
- action: ""
4157
- });
4158
- }
4159
- return next;
4160
- }, [detail, rows, t]);
4161
- if (items.length === 0) {
4162
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "worklist", "data-empty": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "worklist-done", children: t("worklistDone") }) });
4163
- }
4164
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "worklist", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "worklist-items", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("li", { className: "worklist-item", children: [
4165
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-mark", "aria-hidden": "true", children: "\u25A1" }),
4166
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "worklist-text", children: [
4167
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-label", children: item.label }),
4168
- item.copy === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-copy", children: item.copy }),
4169
- item.action === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-action", children: item.action })
4170
- ] })
4171
- ] }, item.key)) }) });
4172
- }
4173
4117
 
4174
4118
  // src/client/detail.tsx
4175
4119
  var import_jsx_runtime3 = require("react/jsx-runtime");
4176
- var DIMENSION_TEXT = {
4177
- achievement: "dimAchievement",
4178
- evidence: "dimEvidence",
4179
- recognition: "dimRecognition",
4180
- nextMilestone: "dimNextMilestone"
4181
- };
4182
- var DIMENSION_ORIGIN = {
4183
- achievement: "auto",
4184
- evidence: "manual",
4185
- recognition: "auto",
4186
- nextMilestone: "manual"
4187
- };
4188
- var G0_LABEL = {
4189
- why_customer: "whyCustomerTest",
4190
- why_us: "whyWeTest",
4191
- decision_chain: "decisionChain",
4192
- post_poc_decision: "postPocDecision",
4193
- tech_owner: "customerTechOwner"
4194
- };
4195
- var G0_PROSE = /* @__PURE__ */ new Set(["why_customer", "why_us"]);
4196
4120
  function recognitionTone(value) {
4197
4121
  if (value === "\u8BA4\u53EF") return "green";
4198
4122
  if (value === "\u90E8\u5206\u8BA4\u53EF" || value === "\u5F85\u786E\u8BA4") return "amber";
@@ -4252,42 +4176,6 @@ window.__ModuleLoader__.load({
4252
4176
  if (!Number.isFinite(parsed)) return null;
4253
4177
  return Math.min(1, Math.max(0, parsed / 100));
4254
4178
  }
4255
- var SKELETON_FOR = {
4256
- G0: { sections: ["basic", "gate0", "plan"], title: "dtStageG0Title", copy: "dtStageG0Copy", next: "dtStageG0Next" },
4257
- G1: { sections: ["basic", "plan", "progress"], title: "dtStageG1Title", copy: "dtStageG1Copy", next: "dtStageG1Next" },
4258
- G2: { sections: ["basic", "plan", "progress"], title: "dtStageG2Title", copy: "dtStageG2Copy", next: "dtStageG2Next" },
4259
- G3: { sections: ["progress", "dimensions", "basic"], title: "dtStageG3Title", copy: "dtStageG3Copy", next: "dtStageG3Next" },
4260
- G4: { sections: ["dimensions", "outcome", "basic"], title: "dtStageG4Title", copy: "dtStageG4Copy", next: "dtStageG4Next" },
4261
- closed: { sections: ["outcome", "dimensions", "basic"], title: "dtStageClosedTitle", copy: "dtStageClosedCopy", next: "dtStageG4Next" },
4262
- unknown: {
4263
- sections: ["basic", "progress", "dimensions", "gate0", "plan", "outcome"],
4264
- title: "dtStageUnknownTitle",
4265
- copy: "dtStageUnknownCopy",
4266
- next: "dtStageUnknownCopy"
4267
- }
4268
- };
4269
- function stageStateOf(detail) {
4270
- const stage = detail.summary.stage;
4271
- if (detail.summary.closed) return { done: true, pending: false };
4272
- if (stage === null) return { done: false, pending: true };
4273
- const index = STAGES.indexOf(stage);
4274
- if (index === -1) return { done: false, pending: true };
4275
- const done = detail.summary.stageDone[index] === true;
4276
- return { done, pending: !done };
4277
- }
4278
- function StageContext({ stage, done, pending, t }) {
4279
- const key = stage ?? "unknown";
4280
- const skeleton = SKELETON_FOR[key] ?? SKELETON_FOR.unknown;
4281
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "dt-stage-context", "data-done": done, "aria-label": t("dtStageSkeleton"), children: [
4282
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-stage-context-head", children: [
4283
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-stage-context-title", children: t(skeleton.title) }),
4284
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-context-kicker", children: t("dtStageSkeleton") })
4285
- ] }),
4286
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-stage-context-copy", children: t(skeleton.copy) }),
4287
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-stage-context-next", children: t(skeleton.next) }),
4288
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-context-state", children: pending ? t("dtStagePending") : t("dtStageDone") })
4289
- ] });
4290
- }
4291
4179
  function Section({ title, kicker, children }) {
4292
4180
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "dsec", children: [
4293
4181
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "dsec-head", children: [
@@ -4306,196 +4194,26 @@ window.__ModuleLoader__.load({
4306
4194
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-prose-body prose", children: value === "" ? t("emptyField") : value })
4307
4195
  ] });
4308
4196
  }
4309
- function RailMeta({ label, value, t }) {
4310
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-meta-row", children: [
4311
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-meta-label", children: label }),
4312
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-meta-value", "data-empty": value === "", children: value === "" ? t("dtUnset") : value })
4313
- ] });
4314
- }
4315
- function StageTrackVertical({ detail, t }) {
4316
- const currentIndex = detail.summary.stage === null ? -1 : STAGES.indexOf(detail.summary.stage);
4317
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "dt-stages", "aria-label": t("stageTrack"), children: STAGES.map((stage, index) => {
4318
- const done = detail.summary.closed ? true : detail.summary.stageDone[index] === true;
4319
- const current = !detail.summary.closed && index === currentIndex;
4320
- const state = done ? t("stageDone") : current ? t("stageCurrent") : t("stagePending");
4321
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "dt-stage", "data-done": done, "data-current": current, "aria-current": current ? "step" : void 0, children: [
4322
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-marker", "aria-hidden": "true", children: done ? "\u2713" : current ? "\u25C9" : index + 1 }),
4323
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-stage-text", children: [
4324
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-label", children: t(`stage${stage}`) }),
4325
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-state", children: state })
4326
- ] })
4327
- ] }, stage);
4328
- }) });
4329
- }
4330
- function IdentityRail({ props }) {
4331
- const { detail, gaps, t, position, onPrev, onNext, onBack, locale } = props;
4332
- const summary = detail.summary;
4333
- const resolved = {
4334
- achievement: detail.outcome.achievement,
4335
- evidence: detail.outcome.ourProof,
4336
- recognition: detail.outcome.customerRecognition,
4337
- nextMilestone: detail.outcome.milestone
4338
- };
4339
- const present = {
4340
- achievement: detail.outcome.achievement !== "",
4341
- evidence: detail.outcome.ourProof !== "",
4342
- recognition: detail.outcome.customerRecognition !== "",
4343
- nextMilestone: detail.outcome.milestone !== ""
4344
- };
4345
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("aside", { className: "dt-rail", "aria-label": t("dtRailTitle"), children: [
4346
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-head", children: [
4347
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "btn btn-small dt-rail-back", onClick: onBack, children: t("back") }),
4348
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { className: "dt-rail-title", children: summary.name }),
4349
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-id mono", children: summary.pocId }),
4350
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-pills", children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "status-pill tone-blue", children: [
4352
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4353
- summary.closed ? t("stageClosed") : summary.stageLabel === "" ? t("stageUnknown") : summary.stageLabel
4354
- ] }),
4355
- summary.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-pill tone-slate", children: summary.status }),
4356
- summary.priority === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `status-pill tone-${summary.priority === "strategic" ? "amber" : summary.priority === "high" ? "amber" : "slate"}`, children: t(priorityLabelKey(summary.priority)) })
4357
- ] })
4358
- ] }),
4359
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-amount", children: [
4360
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-label", children: t("dtAmountLabel") }),
4361
- summary.amountWan === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-value", "data-empty": "true", children: t("dtUnset") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-rail-amount-value", children: [
4362
- formatWan(summary.amountWan),
4363
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-unit", children: t("statAmountUnit") })
4364
- ] })
4365
- ] }),
4366
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
4367
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtStageSection") }),
4368
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StageTrackVertical, { detail, t })
4369
- ] }),
4370
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
4371
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtDimensionSection") }),
4372
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dt-rail-dims", children: DIMENSIONS.map((key) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dim-mini", "data-present": present[key], "data-origin": DIMENSION_ORIGIN[key], title: `${t(DIMENSION_TEXT[key])}: ${present[key] ? resolved[key] : t("dimMissing")}`, children: [
4373
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-mini-mark", "aria-hidden": "true", children: present[key] ? "\u2713" : "\u2717" }),
4374
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-mini-label", children: t(DIMENSION_TEXT[key]) })
4375
- ] }, key)) })
4376
- ] }),
4377
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
4378
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtGapSection") }),
4379
- gaps.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-rail-empty", children: t("dtNoGaps") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "dt-rail-gaps", children: gaps.map((item) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "dt-rail-gap", "data-level": item.level, children: [
4380
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-rail-gap-no", children: [
4381
- "R",
4382
- item.ruleNo
4383
- ] }),
4384
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-gap-title", children: format(t(`gap.${item.rule}.title`), { ...item.params ?? {} }) })
4385
- ] }, item.rule)) })
4386
- ] }),
4387
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
4388
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("sectionIdentity") }),
4389
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-meta", children: [
4390
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtCustomerCompany"), value: orgText(detail.org.company), t }),
4391
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtCustomerSystem"), value: orgText(detail.org.system), t }),
4392
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtOwnerLabel"), value: summary.owner, t }),
4393
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtTechOwnerLabel"), value: summary.techOwner, t }),
4394
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtSalesLabel"), value: detail.sales, t }),
4395
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtSponsorLabel"), value: detail.execSponsor, t }),
4396
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("type"), value: summary.pocType, t }),
4397
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtStageSinceLabel"), value: summary.stageSince === null ? "" : `${formatDate(summary.stageSince, locale)}${summary.daysInStage === null ? "" : ` \xB7 ${format(t("daysInStage"), { days: summary.daysInStage })}`}`, t }),
4398
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtPriorityLabel"), value: summary.priority === "" ? "" : t(priorityLabelKey(summary.priority)), t })
4399
- ] })
4400
- ] }),
4401
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-nav", children: [
4402
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onPrev === null, onClick: onPrev ?? void 0, children: [
4403
- "\u2190 ",
4404
- t("dtPrevProject")
4405
- ] }),
4406
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-position", children: format(t("dtPosition"), { index: position.index, total: position.total }) }),
4407
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onNext === null, onClick: onNext ?? void 0, children: [
4408
- t("dtNextProject"),
4409
- " \u2192"
4410
- ] })
4411
- ] })
4412
- ] });
4413
- }
4414
4197
  function ProgressItem({ entry, index, t, locale, detail }) {
4415
4198
  const tone = recognitionTone(entry.customer.recognition);
4416
4199
  const ratio = completionRatio(entry.completion);
4417
- const hasNext = entry.next.goal !== "" || entry.next.owner !== "" || entry.next.deadline !== "";
4418
4200
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "prog-item", "data-tone": tone, "data-latest": index === 0, children: [
4419
4201
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "prog-gutter", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-node", "data-tone": tone }) }),
4420
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("article", { className: "prog-card", children: [
4202
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("article", { className: "prog-card prog-card-compact", children: [
4421
4203
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "prog-head", children: [
4422
4204
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("time", { className: "prog-date", dateTime: entry.date, children: formatDate(entry.date, locale) || "\u2014" }),
4423
4205
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-type", children: entry.type === "" ? t("progressTypeUnset") : entry.type }),
4424
- entry.seq === null ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-seq", children: format(t("dtProgressSeq"), { seq: entry.seq }) }),
4425
- ratio === null ? entry.completion === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "prog-chip", children: [
4426
- t("dtProgressCompletion"),
4427
- " ",
4428
- entry.completion
4429
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "prog-meter", children: [
4430
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-meter-label", children: t("dtProgressCompletion") }),
4206
+ entry.change === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-change", children: entry.change }),
4207
+ ratio === null ? entry.completion === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-chip", children: entry.completion }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "prog-meter", children: [
4431
4208
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InlineMeter, { value: ratio, max: 1, tone: ratio >= 1 ? "green" : "blue" }),
4432
4209
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-meter-value", children: entry.completion })
4433
4210
  ] })
4434
4211
  ] }),
4435
- entry.goal === "" && entry.actual === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-pair", children: [
4436
- entry.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-goal", children: [
4437
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-label", children: t("dtProgressGoal") }),
4438
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-value", children: entry.goal })
4439
- ] }),
4440
- entry.actual === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-actual", children: [
4441
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-label", children: t("dtProgressActual") }),
4442
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-value", children: entry.actual })
4443
- ] })
4444
- ] }),
4445
- entry.scenarioIds.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-scope", children: [
4446
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-scope-label", children: t("dtProgressScope") }),
4447
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row", children: entry.scenarioIds.map((id, itemIndex) => {
4448
- const linked = scenarioNameOf(detail, id);
4449
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: linked === "" ? id : linked }, `${id}:${itemIndex}`);
4450
- }) })
4451
- ] }),
4452
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-evidence", children: [
4453
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressEvidence") }),
4454
- entry.evidence.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressEvidenceNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row", children: entry.evidence.map((item, itemIndex) => {
4455
- const label = `${item.type === "" ? "" : `${item.type} \xB7 `}${item.title === "" ? t("emptyField") : item.title}`;
4456
- return item.link === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: label }, `${item.title}:${itemIndex}`) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("a", { className: "chip prog-evidence-link", href: item.link, target: "_blank", rel: "noreferrer", title: item.link, children: [
4457
- label,
4458
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-external", "aria-hidden": "true", children: "\u2197" })
4459
- ] }, `${item.title}:${itemIndex}`);
4460
- }) })
4461
- ] }),
4462
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-customer", children: [
4463
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressCustomer") }),
4464
- entry.customer.syncedWith === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressCustomerNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: entry.customer.syncedWith }),
4465
- entry.customer.recognition === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
4466
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4467
- entry.customer.recognition
4468
- ] }),
4469
- entry.gate3_1 === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
4470
- t("gate3_1Label"),
4471
- "\uFF1A",
4472
- entry.gate3_1
4473
- ] }),
4474
- entry.gate3_2 === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
4475
- t("gate3_2Label"),
4476
- "\uFF1A",
4477
- entry.gate3_2
4478
- ] })
4479
- ] }),
4480
- entry.customer.feedback === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-feedback", children: [
4481
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressFeedback") }),
4482
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-feedback-copy prose", children: entry.customer.feedback })
4483
- ] }),
4484
- hasNext ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-next", children: [
4485
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-next-label", children: t("dtProgressNext") }),
4486
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-next-body", children: [
4487
- entry.next.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-next-goal", children: entry.next.goal }),
4488
- entry.next.owner === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
4489
- "@ ",
4490
- entry.next.owner
4491
- ] }),
4492
- entry.next.deadline === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
4493
- t("dtProgressDeadline"),
4494
- " ",
4495
- formatDate(entry.next.deadline, locale)
4496
- ] })
4497
- ] })
4498
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "prog-next prog-next-empty", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressNextNone") }) })
4212
+ entry.actual === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "prog-actual-line", "data-empty": "true", children: t("emptyField") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "prog-actual-line", children: entry.actual }),
4213
+ entry.scenarioIds.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row prog-scope-row", children: entry.scenarioIds.map((id, itemIndex) => {
4214
+ const linked = scenarioNameOf(detail, id);
4215
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: linked === "" ? id : linked }, `${id}:${itemIndex}`);
4216
+ }) })
4499
4217
  ] })
4500
4218
  ] });
4501
4219
  }
@@ -4509,55 +4227,6 @@ window.__ModuleLoader__.load({
4509
4227
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dsec-empty-copy", children: t("dtProgressEmptyCopy") })
4510
4228
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "prog-stream", children: ordered.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressItem, { entry, index, t, locale, detail }, `${entry.date}:${entry.seq ?? index}`)) }) });
4511
4229
  }
4512
- function DimensionGrid({ detail, t }) {
4513
- const values = {
4514
- achievement: detail.outcome.achievement,
4515
- evidence: detail.outcome.ourProof,
4516
- recognition: detail.outcome.customerRecognition,
4517
- nextMilestone: detail.outcome.milestone
4518
- };
4519
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtDimensionSection"), kicker: format(t("dimensionCount"), { count: detail.summary.dimensionCount }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dim-grid-detail", children: DIMENSIONS.map((key) => {
4520
- const present = values[key] !== "";
4521
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dim-card", "data-present": present, "data-origin": DIMENSION_ORIGIN[key], children: [
4522
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-label", children: t(DIMENSION_TEXT[key]) }),
4523
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-mark", "aria-hidden": "true", children: present ? "\u2713" : "\u2717" }),
4524
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-value", children: present ? values[key] : t("dimMissing") }),
4525
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-origin", children: DIMENSION_ORIGIN[key] === "auto" ? t("dtDimensionAuto") : t("dtDimensionManual") }),
4526
- present ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-reason", children: t("dtDimensionEmptyReason") })
4527
- ] }, key);
4528
- }) }) });
4529
- }
4530
- function Gate0Meter({ detail, t }) {
4531
- const checklist = detail.gate0.checklist;
4532
- const presentCount = checklist.filter((item) => item.present).length;
4533
- const review = detail.gate0.conclusion === "" ? t("dtG0Unreviewed") : format(t("dtG0ReviewLine"), {
4534
- reviewer: detail.gate0.reviewer === "" ? t("dtUnset") : detail.gate0.reviewer,
4535
- date: detail.gate0.reviewedAt === "" ? t("dtUnset") : detail.gate0.reviewedAt,
4536
- conclusion: detail.gate0.conclusion
4537
- });
4538
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtG0Title"), kicker: format(t("dtG0FiveRequired"), { present: presentCount }), children: [
4539
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-meter", role: "group", "aria-label": t("dtG0Title"), children: checklist.map((item) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-cell", "data-present": item.present, title: `${t(G0_LABEL[item.field] ?? item.field)}: ${item.present ? t("dtG0Present") : t("dtG0Missing")}`, children: [
4540
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-cell-mark", "aria-hidden": "true", children: item.present ? "\u2713" : "\u2717" }),
4541
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-cell-label", children: t(G0_LABEL[item.field] ?? item.field) })
4542
- ] }, item.field)) }),
4543
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-fields", children: checklist.map((item) => {
4544
- const label = t(G0_LABEL[item.field] ?? item.field);
4545
- const prose = G0_PROSE.has(item.field);
4546
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-field", "data-present": item.present, "data-prose": prose, children: [
4547
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-field-label", children: label }),
4548
- item.present ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-field-value prose", children: item.value }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-field-missing", children: t("dtG0Missing") })
4549
- ] }, item.field);
4550
- }) }),
4551
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-foot", children: [
4552
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-review", "data-empty": detail.gate0.conclusion === "", children: review }),
4553
- detail.gate0.competitor === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
4554
- t("competitor"),
4555
- "\uFF1A",
4556
- detail.gate0.competitor
4557
- ] })
4558
- ] })
4559
- ] });
4560
- }
4561
4230
  function orgText(value) {
4562
4231
  return value === null || value === void 0 ? "" : value;
4563
4232
  }
@@ -4682,205 +4351,227 @@ window.__ModuleLoader__.load({
4682
4351
  ] })
4683
4352
  ] });
4684
4353
  }
4685
- function PlanPanels({ detail, t, onOpenScenario }) {
4686
- const plan = detail.plan;
4687
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtPlanTitle"), children: [
4688
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-meta", children: [
4689
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtPlanPain"), value: plan.customerPain, t }),
4690
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtPlanRecognition"), value: plan.expectedRecognition, t }),
4691
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtPlanEdge"), value: plan.ourEdge, t })
4354
+ function PageHeader({ props }) {
4355
+ const { detail, t, position, onPrev, onNext, onBack } = props;
4356
+ const summary = detail.summary;
4357
+ const org = [orgText(detail.org.system), orgText(detail.org.company), summary.pocType].filter((part) => part !== "");
4358
+ const owner = summary.owner === "" ? "" : `${t("dtOwnerLabel")} ${summary.owner}`;
4359
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "dt-header", children: [
4360
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-main", children: [
4361
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "btn btn-small dt-header-back", onClick: onBack, children: t("back") }),
4362
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { className: "dt-header-title", children: summary.name }),
4363
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-meta", children: [
4364
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-id mono", children: summary.pocId }),
4365
+ org.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-org", children: org.join(" \xB7 ") }),
4366
+ owner === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-org", children: owner })
4367
+ ] })
4692
4368
  ] }),
4693
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-strip", children: [
4694
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
4695
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanWindow") }),
4696
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-value", children: plan.timelineStart === "" && plan.timelineEnd === "" ? t("dtUnset") : `${plan.timelineStart === "" ? "\u2014" : plan.timelineStart} \u2192 ${plan.timelineEnd === "" ? "\u2014" : plan.timelineEnd}` })
4697
- ] }),
4698
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
4699
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanGate1") }),
4700
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${plan.gate1Conclusion === "\u901A\u8FC7" ? "green" : "slate"}`, children: [
4369
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-side", children: [
4370
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-pills", children: [
4371
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "status-pill tone-blue", children: [
4701
4372
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4702
- plan.gate1Conclusion === "" ? t("dtUnset") : plan.gate1Conclusion
4703
- ] })
4373
+ summary.closed ? t("stageClosed") : summary.stageLabel === "" ? t("stageUnknown") : summary.stageLabel
4374
+ ] }),
4375
+ summary.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-pill tone-slate", children: summary.status }),
4376
+ summary.priority === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `status-pill tone-${summary.priority === "normal" ? "slate" : "amber"}`, children: t(priorityLabelKey(summary.priority)) })
4704
4377
  ] }),
4705
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
4706
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanGate2") }),
4707
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${plan.gate2Ready === "Ready" ? "green" : plan.gate2Ready === "" ? "slate" : "amber"}`, children: [
4708
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4709
- plan.gate2Ready === "" ? t("dtUnset") : plan.gate2Ready
4378
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-amount", children: [
4379
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-label", children: t("dtAmountLabel") }),
4380
+ summary.amountWan === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-value", "data-empty": "true", children: t("dtUnset") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-header-amount-value", children: [
4381
+ formatWan(summary.amountWan),
4382
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-unit", children: t("statAmountUnit") })
4710
4383
  ] })
4711
- ] }),
4712
- plan.reportNodes.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
4713
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanReportNodes") }),
4714
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip-row", children: plan.reportNodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: node }, `${node}:${index}`)) })
4715
4384
  ] })
4716
4385
  ] }),
4717
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-block", children: [
4718
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "plan-block-head", children: [
4719
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { className: "plan-block-title", children: t("dtPlanCriteria") }),
4720
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-block-note", children: plan.criteria.length === 0 ? t("dtPlanCriteriaNone") : format(t("dtPlanCriteriaCount"), { count: plan.criteria.length }) })
4386
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("nav", { className: "dt-header-nav", "aria-label": t("dtRailTitle"), children: [
4387
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onPrev === null, onClick: onPrev ?? void 0, children: [
4388
+ "\u2190 ",
4389
+ t("dtPrevProject")
4721
4390
  ] }),
4722
- plan.criteria.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanCriteriaNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "plan-criteria", children: [
4723
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4724
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteria") }),
4725
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanMetric") }),
4726
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanBaseline") }),
4727
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanTarget") }),
4728
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteriaStatus") })
4729
- ] }) }),
4730
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: plan.criteria.map((criterion, index) => {
4731
- const status = criterion.status;
4732
- const tone = criterionTone(status);
4733
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4734
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-name", children: criterion.name === "" ? t("emptyField") : criterion.name }),
4735
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: criterion.metric === "" ? t("emptyField") : criterion.metric }),
4736
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-num", children: criterion.baseline === "" ? "\u2014" : criterion.baseline }),
4737
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-target", children: criterion.target === "" ? "\u2014" : criterion.target }),
4738
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-status", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
4739
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4740
- t(`dtCrit${CRITERION_STATUS_KEY[status] ?? "Unverified"}`)
4741
- ] }) })
4742
- ] }, criterion.id === "" ? `${criterion.name}:${index}` : criterion.id);
4743
- }) })
4391
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-position", children: format(t("dtPosition"), { index: position.index, total: position.total }) }),
4392
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onNext === null, onClick: onNext ?? void 0, children: [
4393
+ t("dtNextProject"),
4394
+ " \u2192"
4744
4395
  ] })
4745
- ] }),
4746
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-block", children: [
4747
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "plan-block-head", children: [
4748
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { className: "plan-block-title", children: t("dtPlanScenarios") }),
4749
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-block-note", children: plan.scenarios.length === 0 ? t("dtPlanScenariosNone") : format(t("dtPlanScenariosCount"), { count: plan.scenarios.length }) })
4750
- ] }),
4751
- plan.scenarios.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanScenariosNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "plan-scenarios", children: plan.scenarios.map((scenario, index) => {
4752
- const tone = scenarioTone(scenario.status);
4753
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-scenario", "data-tone": tone, children: [
4754
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-no", children: String(index + 1).padStart(2, "0") }),
4755
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-body", children: [
4756
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-name", children: scenario.name === "" ? t("emptyField") : scenario.name }),
4757
- scenario.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-goal", children: [
4758
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-goal-label", children: t("dtPlanScenarioGoal") }),
4759
- scenario.goal
4760
- ] })
4761
- ] }),
4762
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-tail", children: [
4763
- scenario.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
4764
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-glyph", "aria-hidden": "true", children: scenarioGlyph(scenario.status) }),
4765
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
4766
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4767
- t(`dtStatus${SCENARIO_STATUS_KEY[scenario.status] ?? "NoEvidence"}`)
4768
- ] }),
4769
- scenario.evidenceCount === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-evidence", children: format(t("dtPlanScenarioEvidence"), { count: scenario.evidenceCount }) })
4770
- ] }),
4771
- scenario.id === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4772
- "button",
4773
- {
4774
- type: "button",
4775
- className: "plan-scenario-open",
4776
- onClick: () => onOpenScenario(scenario.id),
4777
- "aria-label": `${t("dtPlanScenarioDetail")}: ${scenario.name}`,
4778
- children: [
4779
- t("dtPlanScenarioDetail"),
4780
- " \u203A"
4781
- ]
4782
- }
4783
- )
4784
- ] })
4785
- ] }, scenario.id === "" ? `${scenario.name}:${index}` : scenario.id);
4786
- }) })
4787
- ] }),
4788
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-block", children: [
4789
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "plan-block-head", children: [
4790
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { className: "plan-block-title", children: t("dtPlanRisks") }),
4791
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-block-note", children: plan.risks.length === 0 ? t("dtPlanRisksNone") : format(t("dtPlanRisksCount"), { count: plan.risks.length }) })
4396
+ ] })
4397
+ ] });
4398
+ }
4399
+ function Gate0Grid({ detail, t }) {
4400
+ const gate0 = detail.gate0;
4401
+ const answered = gate0.checklist.filter((item) => item.present).length;
4402
+ const cards = [
4403
+ { key: "why_customer", label: t("whyCustomerTest"), value: gate0.whyCustomer, present: gate0.whyCustomer !== "", prose: true },
4404
+ { key: "why_us", label: t("whyWeTest"), value: gate0.whyUs, present: gate0.whyUs !== "", prose: true },
4405
+ { key: "post_poc_decision", label: t("postPocDecision"), value: gate0.postPocDecision, present: gate0.postPocDecision !== "", prose: false },
4406
+ { key: "decision_chain", label: t("decisionChain"), value: gate0.decisionChain, present: gate0.decisionChain !== "", prose: false },
4407
+ { key: "competitor", label: t("competitor"), value: gate0.competitor, present: gate0.competitor !== "", prose: false },
4408
+ {
4409
+ key: "review",
4410
+ label: t("dtG0ReviewTitle"),
4411
+ value: gate0.conclusion === "" ? "" : [gate0.conclusion, gate0.reviewer, gate0.reviewedAt].filter((part) => part !== "").join(" \xB7 "),
4412
+ present: gate0.conclusion !== "",
4413
+ prose: false
4414
+ }
4415
+ ];
4416
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtG0GridTitle"), kicker: format(t("dtG0Answered"), { answered, total: gate0.checklist.length }), children: [
4417
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-grid", children: cards.map((card) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-card", "data-present": card.present, "data-prose": card.prose, children: [
4418
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-card-head", children: [
4419
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-card-label", children: card.label }),
4420
+ card.present ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-card-missing", children: t("dtG0Missing") })
4792
4421
  ] }),
4793
- plan.risks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanRisksNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "plan-risks", children: plan.risks.map((risk, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-risk", "data-tone": riskTone(risk.level), children: [
4794
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-dot", "aria-hidden": "true" }),
4795
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-text", children: [
4796
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-name", children: risk.name === "" ? t("emptyField") : risk.name }),
4797
- risk.level === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-level", children: risk.level }),
4798
- risk.mitigation === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-mitigation", children: [
4799
- t("dtPlanMitigation"),
4800
- "\uFF1A",
4801
- risk.mitigation
4802
- ] })
4422
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-card-body", "data-empty": !card.present, children: card.present ? card.value : t("emptyField") })
4423
+ ] }, card.key)) }),
4424
+ gate0.missing.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-grid-note", children: format(t("dtG0MissingNote"), { count: gate0.missing.length }) })
4425
+ ] });
4426
+ }
4427
+ function CriteriaPanel({ detail, t }) {
4428
+ const plan = detail.plan;
4429
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanCriteria"), kicker: plan.criteria.length === 0 ? void 0 : format(t("dtPlanCriteriaCount"), { count: plan.criteria.length }), children: plan.criteria.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanCriteriaNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "plan-criteria", children: [
4430
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4431
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteria") }),
4432
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanMetric") }),
4433
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanBaseline") }),
4434
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanTarget") }),
4435
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteriaStatus") })
4436
+ ] }) }),
4437
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: plan.criteria.map((criterion, index) => {
4438
+ const status = criterion.status;
4439
+ const tone = criterionTone(status);
4440
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4441
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-name", children: criterion.name === "" ? t("emptyField") : criterion.name }),
4442
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: criterion.metric === "" ? t("emptyField") : criterion.metric }),
4443
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-num", children: criterion.baseline === "" ? "\u2014" : criterion.baseline }),
4444
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-target", children: criterion.target === "" ? "\u2014" : criterion.target }),
4445
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-status", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
4446
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4447
+ t(`dtCrit${CRITERION_STATUS_KEY[status] ?? "Unverified"}`)
4448
+ ] }) })
4449
+ ] }, criterion.id === "" ? `${criterion.name}:${index}` : criterion.id);
4450
+ }) })
4451
+ ] }) });
4452
+ }
4453
+ function ScenarioPanel({ detail, t, onOpenScenario }) {
4454
+ const plan = detail.plan;
4455
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanScenarios"), kicker: plan.scenarios.length === 0 ? void 0 : format(t("dtPlanScenariosCount"), { count: plan.scenarios.length }), children: plan.scenarios.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanScenariosNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "plan-scenarios", children: plan.scenarios.map((scenario, index) => {
4456
+ const tone = scenarioTone(scenario.status);
4457
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-scenario", "data-tone": tone, children: [
4458
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-no", children: String(index + 1).padStart(2, "0") }),
4459
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-body", children: [
4460
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-name", children: scenario.name === "" ? t("emptyField") : scenario.name }),
4461
+ scenario.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-goal", children: [
4462
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-goal-label", children: t("dtPlanScenarioGoal") }),
4463
+ scenario.goal
4803
4464
  ] })
4804
- ] }, `${risk.name}:${index}`)) })
4465
+ ] }),
4466
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-tail", children: [
4467
+ scenario.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
4468
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-glyph", "aria-hidden": "true", children: scenarioGlyph(scenario.status) }),
4469
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
4470
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4471
+ t(`dtStatus${SCENARIO_STATUS_KEY[scenario.status] ?? "NoEvidence"}`)
4472
+ ] }),
4473
+ scenario.evidenceCount === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-evidence", children: format(t("dtPlanScenarioEvidence"), { count: scenario.evidenceCount }) })
4474
+ ] }),
4475
+ scenario.id === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4476
+ "button",
4477
+ {
4478
+ type: "button",
4479
+ className: "plan-scenario-open",
4480
+ onClick: () => onOpenScenario(scenario.id),
4481
+ "aria-label": `${t("dtPlanScenarioDetail")}: ${scenario.name}`,
4482
+ children: [
4483
+ t("dtPlanScenarioDetail"),
4484
+ " \u203A"
4485
+ ]
4486
+ }
4487
+ )
4488
+ ] })
4489
+ ] }, scenario.id === "" ? `${scenario.name}:${index}` : scenario.id);
4490
+ }) }) });
4491
+ }
4492
+ function RiskPanel({ detail, t }) {
4493
+ const risks = detail.plan.risks;
4494
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanRisks"), kicker: risks.length === 0 ? void 0 : format(t("dtPlanRisksCount"), { count: risks.length }), children: risks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanRisksNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "plan-risks", children: risks.map((risk, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-risk", "data-tone": riskTone(risk.level), children: [
4495
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-dot", "aria-hidden": "true" }),
4496
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-text", children: [
4497
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-name", children: risk.name === "" ? t("emptyField") : risk.name }),
4498
+ risk.level === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-level", children: risk.level }),
4499
+ risk.mitigation === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-mitigation", children: [
4500
+ t("dtPlanMitigation"),
4501
+ "\uFF1A",
4502
+ risk.mitigation
4503
+ ] })
4805
4504
  ] })
4806
- ] });
4505
+ ] }, `${risk.name}:${index}`)) }) });
4807
4506
  }
4808
- function OutcomePanel({ detail, t }) {
4507
+ function NextActionsPanel({ detail, t }) {
4809
4508
  const outcome = detail.outcome;
4810
- const hasMilestone = outcome.milestone !== "";
4811
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtOutcomeTitle"), children: [
4812
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "out-triple", children: [
4813
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeProved"), value: outcome.proved, t }),
4814
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeRecognized"), value: outcome.recognized, t }),
4815
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeNext"), value: outcome.nextBusiness, t })
4816
- ] }),
4817
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "out-milestone", "data-present": hasMilestone, children: [
4818
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "out-milestone-label", children: t("dtOutcomeMilestone") }),
4819
- hasMilestone ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "out-milestone-text", children: outcome.milestone }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "out-milestone-missing", children: t("dtOutcomeMilestoneNone") }),
4820
- hasMilestone ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "out-milestone-meta", children: [
4821
- outcome.businessOwner === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: format(t("dtOutcomeMilestoneOwner"), { owner: outcome.businessOwner }) }),
4822
- outcome.businessDeadline === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: format(t("dtOutcomeMilestoneDeadline"), { date: outcome.businessDeadline }) }),
4823
- outcome.businessStatus === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: format(t("dtOutcomeMilestoneStatus"), { status: outcome.businessStatus }) })
4824
- ] }) : null
4825
- ] }),
4826
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "out-meta", children: [
4827
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeProof"), value: outcome.ourProof, t }),
4828
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeRemaining"), value: outcome.remainingRisks, t }),
4829
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeOverall"), value: outcome.overall, t }),
4830
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prose, { label: t("dtOutcomeReviewed"), value: outcome.reviewedAt, t })
4831
- ] })
4832
- ] });
4509
+ const newestNext = detail.progress.find((entry) => entry.next.goal !== "" || entry.next.owner !== "" || entry.next.deadline !== "");
4510
+ const rows = [];
4511
+ if (outcome.milestone !== "" || outcome.businessOwner !== "" || outcome.businessDeadline !== "") {
4512
+ rows.push({
4513
+ goal: outcome.milestone,
4514
+ owner: outcome.businessOwner,
4515
+ deadline: outcome.businessDeadline,
4516
+ status: outcome.businessStatus,
4517
+ tone: outcome.businessStatus === "\u5DF2\u8FDB\u5165\u4E0B\u4E00\u91CC\u7A0B\u7891" ? "green" : outcome.businessStatus === "" ? "slate" : "amber"
4518
+ });
4519
+ }
4520
+ if (newestNext !== void 0) {
4521
+ rows.push({
4522
+ goal: newestNext.next.goal,
4523
+ owner: newestNext.next.owner,
4524
+ deadline: newestNext.next.deadline,
4525
+ status: t("dtStatusNotStarted"),
4526
+ tone: "slate"
4527
+ });
4528
+ }
4529
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtNextActionsTitle"), kicker: t("dtNextActionsKicker"), children: rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtNextActionsNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "next-table", children: [
4530
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4531
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextGoal") }),
4532
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextOwner") }),
4533
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextDeadline") }),
4534
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextStatus") })
4535
+ ] }) }),
4536
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
4537
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "next-goal", children: row.goal === "" ? t("emptyField") : row.goal }),
4538
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: row.owner === "" ? "\u2014" : row.owner }),
4539
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "next-deadline", children: row.deadline === "" ? "\u2014" : row.deadline }),
4540
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${row.tone}`, children: [
4541
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
4542
+ row.status === "" ? t("dtUnset") : row.status
4543
+ ] }) })
4544
+ ] }, `${row.goal}:${index}`)) })
4545
+ ] }) });
4833
4546
  }
4834
4547
  function DetailPage(props) {
4835
4548
  const { detail, t, locale } = props;
4836
- const stage = detail.summary.closed ? "closed" : detail.summary.stage;
4837
- const skeleton = SKELETON_FOR[stage] ?? SKELETON_FOR.unknown;
4838
- const [foldOpen, setFoldOpen] = (0, import_react2.useState)(false);
4839
4549
  const [scenarioId, setScenarioId] = (0, import_react2.useState)(null);
4840
- const sections = {
4841
- basic: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BasicInfo, { detail, t }, "basic"),
4842
- progress: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressStream, { detail, t, locale }, "progress"),
4843
- dimensions: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DimensionGrid, { detail, t }, "dimensions"),
4844
- gate0: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Gate0Meter, { detail, t }, "gate0"),
4845
- plan: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PlanPanels, { detail, t, onOpenScenario: setScenarioId }, "plan"),
4846
- outcome: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OutcomePanel, { detail, t }, "outcome")
4847
- };
4848
- const primary = skeleton.sections;
4849
- const secondary = ["basic", "progress", "dimensions", "gate0", "plan", "outcome"].filter((key) => !primary.includes(key));
4850
- const stageState = stageStateOf(detail);
4851
- const projectBlockers = props.blockers ?? [];
4852
4550
  if (scenarioId !== null) {
4853
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-page", children: [
4854
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IdentityRail, { props }),
4855
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-pane", children: [
4551
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-shell", children: [
4552
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageHeader, { props }),
4553
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-body", children: [
4856
4554
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "sd-back", onClick: () => setScenarioId(null), children: t("dtScenarioBack") }),
4857
4555
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ScenarioDetail, { detail, scenarioId, t })
4858
4556
  ] })
4859
4557
  ] });
4860
4558
  }
4861
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-page", children: [
4862
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IdentityRail, { props }),
4863
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-pane", children: [
4864
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StageContext, { stage, done: stageState.done, pending: stageState.pending, t }),
4865
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("section", { className: "dt-worklist", "aria-label": t("worklistTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Worklist, { detail, rows: projectBlockers, t }) }),
4866
- primary.map((key) => sections[key]),
4867
- secondary.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "dt-fold", "data-open": foldOpen, children: [
4868
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4869
- "button",
4870
- {
4871
- type: "button",
4872
- className: "dt-fold-head",
4873
- "aria-expanded": foldOpen,
4874
- onClick: () => setFoldOpen((value) => !value),
4875
- children: [
4876
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-fold-title", children: t("dtOtherSections") }),
4877
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-fold-hint", children: t("dtOtherSectionsHint") }),
4878
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-fold-arrow", "aria-hidden": "true", children: foldOpen ? "\u25B4" : "\u25BE" })
4879
- ]
4880
- }
4881
- ),
4882
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dt-fold-body", children: secondary.map((key) => sections[key]) })
4883
- ] })
4559
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-shell", children: [
4560
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageHeader, { props }),
4561
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-body", children: [
4562
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-columns", children: [
4563
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-col-main", children: [
4564
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Gate0Grid, { detail, t }),
4565
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CriteriaPanel, { detail, t }),
4566
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ScenarioPanel, { detail, t, onOpenScenario: setScenarioId })
4567
+ ] }),
4568
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-col-side", children: [
4569
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BasicInfo, { detail, t }),
4570
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressStream, { detail, t, locale }),
4571
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RiskPanel, { detail, t })
4572
+ ] })
4573
+ ] }),
4574
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NextActionsPanel, { detail, t })
4884
4575
  ] })
4885
4576
  ] });
4886
4577
  }
@@ -5206,7 +4897,7 @@ window.__ModuleLoader__.load({
5206
4897
 
5207
4898
  // src/client/overview.tsx
5208
4899
  var import_jsx_runtime6 = require("react/jsx-runtime");
5209
- var DIMENSION_TEXT2 = {
4900
+ var DIMENSION_TEXT = {
5210
4901
  achievement: "dimAchievement",
5211
4902
  evidence: "dimEvidence",
5212
4903
  recognition: "dimRecognition",
@@ -5222,9 +4913,9 @@ window.__ModuleLoader__.load({
5222
4913
  function DimensionMarks({ project, t }) {
5223
4914
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "pcard-dims", role: "group", "aria-label": t("colDimensions"), children: DIMENSIONS.map((key) => {
5224
4915
  const present = project.dimensions[key];
5225
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "pcard-dim", "data-present": present, title: `${t(DIMENSION_TEXT2[key])}: ${present ? t("dimPresent") : t("dimMissing")}`, children: [
4916
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "pcard-dim", "data-present": present, title: `${t(DIMENSION_TEXT[key])}: ${present ? t("dimPresent") : t("dimMissing")}`, children: [
5226
4917
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-mark", "aria-hidden": "true", children: present ? "\u2713" : "\u2717" }),
5227
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-label", children: t(DIMENSION_TEXT2[key]) })
4918
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-label", children: t(DIMENSION_TEXT[key]) })
5228
4919
  ] }, key);
5229
4920
  }) });
5230
4921
  }
@@ -5534,11 +5225,11 @@ window.__ModuleLoader__.load({
5534
5225
  RadialMeter,
5535
5226
  {
5536
5227
  ratio: row.ratio,
5537
- label: t(DIMENSION_TEXT2[row.key]),
5228
+ label: t(DIMENSION_TEXT[row.key]),
5538
5229
  value: format(t("coveragePresent"), { present: row.present, total: row.present + row.missing }),
5539
5230
  ...row.missing > 0 ? { note: format(t("coverageMissingNote"), { count: row.missing }) } : {},
5540
5231
  tone: dimensionTone(row.key),
5541
- ariaLabel: `${t(DIMENSION_TEXT2[row.key])} ${row.present}/${row.present + row.missing}`
5232
+ ariaLabel: `${t(DIMENSION_TEXT[row.key])} ${row.present}/${row.present + row.missing}`
5542
5233
  },
5543
5234
  row.key
5544
5235
  )) })
@@ -6818,30 +6509,90 @@ window.__ModuleLoader__.load({
6818
6509
 
6819
6510
  // src/client/css/detail.ts
6820
6511
  var DETAIL_CSS = `
6821
- /* ---------- two-pane layout ---------- */
6822
- .wd-shell .dt-page {
6823
- display: grid;
6824
- grid-template-columns: 316px minmax(0, 1fr);
6825
- align-items: start;
6512
+ /* ---------- page shell: banner + fixed two columns ---------- */
6513
+ .wd-shell .dt-shell {
6514
+ display: flex; flex-direction: column;
6515
+ gap: 16px;
6516
+ padding: 20px 28px 44px;
6826
6517
  min-height: 100%;
6827
6518
  }
6828
- @media (max-width: 1100px) { .wd-shell .dt-page { grid-template-columns: minmax(0, 1fr); } }
6519
+ .wd-shell .dt-body { display: flex; flex-direction: column; gap: 18px; }
6829
6520
 
6830
- .wd-shell .dt-rail {
6831
- position: sticky; top: 0;
6832
- align-self: start;
6833
- display: flex; flex-direction: column; gap: 14px;
6834
- padding: 18px 18px 22px;
6521
+ /* ---------- banner ---------- */
6522
+ .wd-shell .dt-header {
6523
+ display: grid;
6524
+ grid-template-columns: minmax(0, 1fr) auto;
6525
+ grid-template-areas: "main side" "nav nav";
6526
+ gap: 10px 18px;
6527
+ padding: 16px 20px;
6835
6528
  background: var(--wd-surface);
6836
- border-right: 1px solid var(--wd-hairline);
6837
- min-height: 100%;
6529
+ border: 1px solid var(--wd-hairline);
6530
+ border-radius: 10px;
6838
6531
  }
6839
- @media (max-width: 1100px) { .wd-shell .dt-rail { position: static; border-right: 0; border-bottom: 1px solid var(--wd-hairline); } }
6840
- .wd-shell .dt-pane {
6841
- display: flex; flex-direction: column; gap: 22px;
6842
- padding: 20px 28px 44px;
6843
- min-width: 0;
6532
+ .wd-shell .dt-header-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
6533
+ .wd-shell .dt-header-back { align-self: flex-start; margin-bottom: 2px; }
6534
+ .wd-shell .dt-header-title {
6535
+ margin: 0; font-size: 20px; line-height: 28px; font-weight: 700;
6536
+ letter-spacing: -.01em; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere;
6537
+ }
6538
+ .wd-shell .dt-header-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
6539
+ .wd-shell .dt-header-id {
6540
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
6541
+ font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary);
6542
+ }
6543
+ .wd-shell .dt-header-org { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
6544
+ .wd-shell .dt-header-side { grid-area: side; display: flex; align-items: flex-start; gap: 18px; }
6545
+ .wd-shell .dt-header-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
6546
+ .wd-shell .dt-header-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
6547
+ .wd-shell .dt-header-amount-label {
6548
+ font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
6549
+ font-weight: 600; color: var(--wd-amber);
6550
+ }
6551
+ .wd-shell .dt-header-amount-value {
6552
+ font-size: 22px; line-height: 28px; font-weight: 700;
6553
+ font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em;
6554
+ }
6555
+ .wd-shell .dt-header-amount-value[data-empty="true"] { font-size: 12px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary); }
6556
+ .wd-shell .dt-header-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }
6557
+ .wd-shell .dt-header-nav {
6558
+ grid-area: nav; display: flex; align-items: center; gap: 10px;
6559
+ padding-top: 10px; border-top: 1px solid var(--wd-hairline);
6560
+ }
6561
+ .wd-shell .dt-header-position { margin: 0 auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
6562
+
6563
+ /* ---------- the fixed two-column contract ---------- */
6564
+ .wd-shell .dt-columns {
6565
+ display: grid;
6566
+ grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
6567
+ gap: 18px;
6568
+ align-items: start;
6569
+ }
6570
+ @media (max-width: 1180px) { .wd-shell .dt-columns { grid-template-columns: minmax(0, 1fr); } }
6571
+ .wd-shell .dt-col-main,
6572
+ .wd-shell .dt-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
6573
+
6574
+ /* ---------- Gate 0 card grid ---------- */
6575
+ .wd-shell .g0-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
6576
+ .wd-shell .g0-card {
6577
+ display: flex; flex-direction: column; gap: 5px;
6578
+ padding: 10px 12px; border-radius: 8px;
6579
+ background: var(--wd-surface); border: 1px solid var(--wd-hairline);
6580
+ }
6581
+ .wd-shell .g0-card[data-present="false"] { background: var(--wd-inset); border-style: dashed; }
6582
+ .wd-shell .g0-card-head { display: flex; align-items: baseline; gap: 8px; }
6583
+ .wd-shell .g0-card-label { font-size: 11px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }
6584
+ .wd-shell .g0-card-missing {
6585
+ margin-left: auto; font-size: 9px; line-height: 13px; font-weight: 650;
6586
+ color: var(--wd-amber); background: var(--wd-amber-soft);
6587
+ padding: 1px 5px; border-radius: 4px; white-space: nowrap;
6588
+ }
6589
+ .wd-shell .g0-card-body {
6590
+ margin: 0; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary);
6591
+ overflow-wrap: anywhere;
6844
6592
  }
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
+ .wd-shell .g0-card-body[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
6595
+ .wd-shell .g0-grid-note { margin: 0; font-size: 10px; line-height: 15px; color: var(--wd-amber); }
6845
6596
 
6846
6597
  /* ---------- rail ---------- */
6847
6598
  .wd-shell .dt-rail-head { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
@@ -7211,6 +6962,34 @@ window.__ModuleLoader__.load({
7211
6962
  }
7212
6963
  .wd-shell .plan-criterion-status { white-space: nowrap; }
7213
6964
 
6965
+ /* ---------- 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
+
6972
+ /* ---------- next actions ---------- */
6973
+ .wd-shell .next-table {
6974
+ width: 100%; border-collapse: collapse;
6975
+ border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden;
6976
+ background: var(--wd-surface);
6977
+ }
6978
+ .wd-shell .next-table th {
6979
+ padding: 7px 10px; text-align: left;
6980
+ font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
6981
+ font-weight: 600; color: var(--dsw-alias-label-tertiary);
6982
+ background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline);
6983
+ }
6984
+ .wd-shell .next-table td {
6985
+ padding: 8px 10px; font-size: 11.5px; line-height: 17px;
6986
+ color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline);
6987
+ vertical-align: top;
6988
+ }
6989
+ .wd-shell .next-table tbody tr:last-child td { border-bottom: 0; }
6990
+ .wd-shell .next-goal { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
6991
+ .wd-shell .next-deadline { font-variant-numeric: tabular-nums; }
6992
+
7214
6993
  /* ---------- scenario detail (layer two) ---------- */
7215
6994
  .wd-shell .plan-scenario-open {
7216
6995
  flex: none; margin-left: 2px; padding: 2px 6px;
@@ -7298,6 +7077,90 @@ window.__ModuleLoader__.load({
7298
7077
  @media (prefers-reduced-motion: reduce) {
7299
7078
  .wd-shell .dim-card, .wd-shell .prog-card { transition: none; }
7300
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;
7090
+ }
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
+
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; }
7301
7164
  `;
7302
7165
 
7303
7166
  // src/client/css/insights.ts