@skillre/dsh-plugin-work-dashboard 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,233 @@
1
+ # 老 Mac SuperAgent 第二步改造记录
2
+
3
+ > 机器:jinchengdedeMacBook-Pro.local / Ventura 13.7.8 / x86_64
4
+ > 入口:`ssh skillre@115.171.85.158 -p 6422`(公网映射,不再是内网 192.168.3.11)
5
+ > 服务:DSH `--profile superagent`,监听 `127.0.0.1:3082`(tmux 会话 `dsh-superagent`)
6
+ > 日期:2026-11-18
7
+
8
+ ---
9
+
10
+ ## 一、改造前的现场
11
+
12
+ | 项 | 状态 |
13
+ |---|---|
14
+ | 服务 | 运行中,PID 69600,uptime 13 天,`overview.problems = 0` |
15
+ | Policy 规则 | 4 条:poc-data-sync / poc-gap-report / poc-form-export / copy |
16
+ | eval 模式 | `auto`,模型 trae/deepseek-v4.1-flash/high |
17
+ | GitHub Source | `skillre/workbranch`,observeIssues/Pulls/Comments 全开 |
18
+ | **bots 名单** | **缺失** |
19
+ | prompts 技能 | 只有 `poc-review` |
20
+ | 定时器 | 无 |
21
+
22
+ ---
23
+
24
+ ## 二、改造清单
25
+
26
+ ### 1. Policy 规则(revision 2 → 3)
27
+
28
+ | 规则 | 变化 |
29
+ |---|---|
30
+ | poc-data-sync / poc-gap-report / poc-form-export | 保留启用 |
31
+ | `copy` | **禁用** —— 代码场景的文案纠错规则,对台账无用 |
32
+ | `visual` | 本就不存在,确认无需新增(也绝不启用) |
33
+ | **poc-daily-advisory** | 新增:只认 `[daily-advisory]` 前缀的 issue,只写 `signals/` |
34
+ | **poc-gate-review** | 新增:判断能否升级,只给建议不改 stage |
35
+
36
+ ### 2. GitHub Source 的 bots 名单
37
+
38
+ 加入了 `skillre-q`。**但这一项最终不是关键**,原因见第四节。
39
+
40
+ ### 3. Prompts(revision 1 → 2)
41
+
42
+ - 新增技能 `advisory-write`:每日巡检的执行规范(先跑校验、只写 signals、幂等、健康度分两层)
43
+ - 新增技能 `gate-review`:Gate 评审的判定表与输出格式
44
+ - 重写 `delivery`:原文写的是"UI 截图证据",对无 UI 的台账毫无意义,改为
45
+ "路径 + 命令 + 输出",并写明派生值不得手改、progress 只追加
46
+
47
+ ### 4. 定时器
48
+
49
+ | 文件 | 作用 |
50
+ |---|---|
51
+ | `~/bin/daily-advisory.sh` | 每天 08:30 由 launchd 调用,开一个 advisory issue |
52
+ | `~/bin/advisory-body.md` | issue 正文(单独成文件,见第六节的坑) |
53
+ | `~/bin/gh-human` | gh 包装器,固定在**主账号** skillre |
54
+ | `~/Library/LaunchAgents/com.skillre.poc-advisory.plist` | launchd 任务,`StartCalendarInterval` 08:30 |
55
+
56
+ ### 5. 执行环境(executor revision 3 → 4)
57
+
58
+ `prepare` 由单行 `git clone` 改为 `bash ~/bin/prepare-workbranch.sh`,原因见第五节。
59
+
60
+ ---
61
+
62
+ ## 三、为什么定时器必须用主账号
63
+
64
+ 这是本次最重要的发现,也是唯一**无法靠配置绕过**的。
65
+
66
+ 源码 `src/sources/github.ts` 的 `readStream` 里有一行:
67
+
68
+ ```ts
69
+ if (sameName(item.user.login, login)) continue
70
+ ```
71
+
72
+ `login` 是 agent 账号(skillre-q)。也就是说:**agent 账号自己创建的 issue,
73
+ 在进入 eval 之前就被丢弃了**,连 Policy 都不会看到。
74
+
75
+ 实测验证:
76
+
77
+ | issue | 创建者 | 结果 |
78
+ |---|---|---|
79
+ | #10 | skillre-q(agent) | **没有 thread、没有 decision**,完全消失 |
80
+ | #11 | skillre(人) | 进入 thread,`evaluating` → `accept` |
81
+
82
+ 所以:
83
+ - 把 `skillre-q` 加进 bots 名单**解决不了**这个问题——bots 名单管的是"收到之后能做什么",
84
+ 管不了"能不能收到"。
85
+ - 定时器必须用 **gh-human(主账号)** 开 issue。
86
+ - 副作用是好的:巡检本身也变成"人发起的",符合"agent 不能给自己派活"的原则。
87
+
88
+ ---
89
+
90
+ ## 四、端到端验证证据
91
+
92
+ Issue #15(主账号创建、标题带 `[daily-advisory]`):
93
+
94
+ ```
95
+ thread: github:15
96
+ strength: inferred
97
+ rules: poc-daily-advisory → matched: true
98
+ mandate: basis.via = admission / cell = listedUnaddressed / observation.mode = auto
99
+ ticket: 88ac7aaa7e59f5aa00fb8e21bd292da4 → working
100
+ ```
101
+
102
+ 未匹配的三条规则各自给出了理由(poc-data-sync 说"这是 advisory 运行不是改 projects"、
103
+ poc-gap-report 说"这是标题限定的巡检不是通用扫描"),说明规则边界是有效的,
104
+ 不是靠"匹配第一条"蒙对的。
105
+
106
+ ---
107
+
108
+ ## 五、prepare 命令的两个真实故障
109
+
110
+ 两个都表现为 Ticket 摘要里的 `The prepare command failed`,看起来像权限问题,实际是网络。
111
+
112
+ | 错误 | 原因 | 处理 |
113
+ |---|---|---|
114
+ | `Failed to connect to github.com port 443 after 75004 ms` | 本机走 `127.0.0.1:7890` 代理(Clash Party),代理偶发抖动;git 默认超时 75 秒,一次失败就整单失败 | 重试 4 次,间隔 4 秒 |
115
+ | `Error in the HTTP2 framing layer` | 代理会回收连接,HTTP/2 多路复用在其上不稳定 | 强制 `http.version=HTTP/1.1`,加大 `http.postBuffer`,设 `lowSpeedLimit/Time` |
116
+
117
+ **注意**:没有关掉全局代理。代理本身是通的(`curl -x 127.0.0.1:7890` 返回 200),
118
+ 关掉反而会换一条完全不同的网络路径。
119
+
120
+ ---
121
+
122
+ ## 六、写脚本时踩的三个坑
123
+
124
+ 1. **反引号被 shell 吃掉**。issue 正文里写 ``node tools/derive.mjs``,在双引号赋值里
125
+ 被当成命令替换执行,正文变成空串。现象是 issue 里出现「先跑 与 」两个空洞。
126
+ → 正文改为独立文件 `~/bin/advisory-body.md`,脚本用 `--body-file` 传。
127
+ 2. **`timeout` 命令 macOS 没有**。诊断脚本里用了 GNU `timeout`,Ventura 上直接报
128
+ command not found。
129
+ 3. **node 不在非交互 PATH 里**。`ssh` 执行时 `node` 找不到,必须用
130
+ `~/.local/bin/node`(v22.23.2)的绝对路径。
131
+
132
+ ---
133
+
134
+ ## 七、日常运维
135
+
136
+ ```sh
137
+ # 看服务
138
+ ssh -p 6422 skillre@115.171.85.158 'launchctl list | grep poc-advisory'
139
+
140
+ # 手动触发一次巡检(会先查重,已开则不重复创建)
141
+ ssh -p 6422 skillre@115.171.85.158 '~/bin/daily-advisory.sh; tail -3 ~/Library/Logs/poc-daily-advisory.log'
142
+
143
+ # 看最近决策
144
+ curl -s -H "x-orchestrator-request: 1" http://127.0.0.1:3082/orchestrator/api/decisions
145
+
146
+ # 两个身份
147
+ ~/bin/gh-human api user --jq .login # skillre(定时器、人)
148
+ ~/.local/bin/gh-agent api user --jq .login # skillre-q(agent 干活)
149
+ ```
150
+
151
+ 备份在 `~/superagent-config-backup/`(settings 与 prompts,改造前各一份)。
152
+
153
+ ---
154
+
155
+ ## 八、尚未完成
156
+
157
+ - **worker 执行时长未收敛**:首次运行截至记录时已 8 分钟仍在 working。
158
+ 30 个项目 × 每个一份 `signals/` 是主要原因。若常态超过 15 分钟,
159
+ 需要把全量拆成"只写有变化的项目"。
160
+ - **幂等尚未实测**:`project_sha + rules_sha` 都没变时是否真的跳过,
161
+ 要等第二次运行才能验证。
162
+ - **飞书提醒未收敛**:仍是原样。
163
+ ---
164
+
165
+ ## 九、增补:指纹幂等(2026-11-18 晚)
166
+
167
+ ### 问题
168
+
169
+ 首轮巡检产出了 PR #16:**1498 行、30 个文件、全部新增**。下一次运行会同样重写全部
170
+ 30 个文件,即使台账一个字都没改。
171
+
172
+ 后果不是「浪费时间」,而是:审阅者看完第一屏就放弃,然后无条件合并。
173
+ 一旦形成这个习惯,真正的异常改动也会被一起合进去。
174
+
175
+ ### 做法
176
+
177
+ `tools/derive.mjs` 新增 `--fingerprints`,每行一个项目:
178
+
179
+ ```
180
+ POC-006 411439995586a380
181
+ ```
182
+
183
+ 指纹 = 「项目记录 + `config/rules.yaml`」规范化 JSON(键序排序)后 sha256 前 16 位。
184
+
185
+ | 发生什么 | 指纹 | 巡检行为 |
186
+ |---|---|---|
187
+ | 项目没变 | 不变 | **跳过** |
188
+ | 项目改了 | 变化 | 重算重写 |
189
+ | **规则阈值改了** | **全部变化** | **全部重算** |
190
+
191
+ 最后一条是关键:改一次 `large_amount_wan`,旧结论必须全部失效,否则看板上会留着
192
+ 按旧阈值算出来的判断而没人知道它是旧的。
193
+
194
+ 指纹**只取输入、不含时间戳**——同样输入永远同样指纹,否则跳过规则永不触发。
195
+
196
+ ### 契约变化
197
+
198
+ | 项 | 变化 |
199
+ |---|---|
200
+ | `signals/*.yaml` 的 `fingerprint` | **新增必填**,唯一幂等键 |
201
+ | `inputs.project_sha / rules_sha` | **移除**。两个 blob sha 漏掉了「规则变但项目没变」这一整类失效 |
202
+ | `fingerprint` 缺失时 | 按「有变化」处理,宁可重算不要漏 |
203
+
204
+ ### 实测验证
205
+
206
+ 拿首轮的 30 个真实 signal 做对照:
207
+
208
+ ```
209
+ 第一轮(旧文件无 fingerprint):
210
+ unchanged (skip): 0
211
+ changed (rewrite): 30 ← 全部保守重算,符合「宁可重算不漏」
212
+
213
+ 盖上 fingerprint 后第二轮:
214
+ unchanged (skip): 30
215
+ changed (rewrite): 0 ← 幂等生效
216
+ ```
217
+
218
+ ### 配置同步
219
+
220
+ | 项 | 版本 | 状态 |
221
+ |---|---|---|
222
+ | Policy `poc-daily-advisory` | rev 3 → **4** | 已改为增量语义,含「无变化则不开 PR」 |
223
+ | 技能 `advisory-write` | rev 2 → **3** | 已加入指纹比对三步法 |
224
+
225
+ ### PR
226
+
227
+ - **PR #17**(+111 行 / 3 文件):指纹能力与契约升级,CI 已通过
228
+ - **PR #16 已关闭**:它是改造前的全量产物,没有 `fingerprint` 字段,合入会让跳过逻辑失效
229
+
230
+ ### 待办
231
+
232
+ - 等 #17 合入后由新版本重跑一次,验证真实环境下的增量行为
233
+ - 届时第一轮仍会重写 30 个(补 fingerprint),第二轮起才进入跳过状态
@@ -18,4 +18,4 @@
18
18
  * Class prefixes owned here: `.dt-`, `.dsec-`, `.prog-`, `.dim-card`, `.g0-`,
19
19
  * `.plan-`, `.out-`.
20
20
  */
21
- export declare const DETAIL_CSS = "\n/* ---------- two-pane layout ---------- */\n.wd-shell .dt-page {\n display: grid;\n grid-template-columns: 316px minmax(0, 1fr);\n align-items: start;\n min-height: 100%;\n}\n@media (max-width: 1100px) { .wd-shell .dt-page { grid-template-columns: minmax(0, 1fr); } }\n\n.wd-shell .dt-rail {\n position: sticky; top: 0;\n align-self: start;\n display: flex; flex-direction: column; gap: 14px;\n padding: 18px 18px 22px;\n background: var(--wd-surface);\n border-right: 1px solid var(--wd-hairline);\n min-height: 100%;\n}\n@media (max-width: 1100px) { .wd-shell .dt-rail { position: static; border-right: 0; border-bottom: 1px solid var(--wd-hairline); } }\n.wd-shell .dt-pane {\n display: flex; flex-direction: column; gap: 22px;\n padding: 20px 28px 44px;\n min-width: 0;\n}\n\n/* ---------- rail ---------- */\n.wd-shell .dt-rail-head { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }\n.wd-shell .dt-rail-back { margin-bottom: 4px; }\n.wd-shell .dt-rail-title {\n margin: 0; font-size: 16px; line-height: 23px; font-weight: 650;\n letter-spacing: -.01em; overflow-wrap: anywhere;\n}\n.wd-shell .dt-rail-id { display: block; }\n.wd-shell .dt-rail-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }\n.wd-shell .dt-rail-amount {\n display: flex; flex-direction: column; gap: 1px;\n padding: 10px 12px; border-radius: 9px;\n background: var(--wd-amber-soft); border: 1px solid transparent;\n}\n.wd-shell .dt-rail-amount-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--wd-amber);\n}\n.wd-shell .dt-rail-amount-value {\n font-size: 22px; line-height: 28px; font-weight: 650;\n font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em;\n}\n.wd-shell .dt-rail-amount-value[data-empty=\"true\"] {\n font-size: 13px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-rail-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }\n.wd-shell .dt-rail-block { display: flex; flex-direction: column; gap: 7px; }\n.wd-shell .dt-rail-block-title {\n margin: 0; font-size: 10.5px; line-height: 15px; letter-spacing: .06em;\n text-transform: uppercase; font-weight: 650; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-rail-empty { margin: 0; font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* vertical stage track */\n.wd-shell .dt-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; position: relative; }\n.wd-shell .dt-stage { display: flex; align-items: center; gap: 9px; padding: 4px 0; position: relative; }\n.wd-shell .dt-stage:not(:last-child)::after {\n content: ''; position: absolute; left: 9px; top: 22px; bottom: -3px;\n width: 1px; background: var(--wd-hairline);\n}\n.wd-shell .dt-stage[data-done=\"true\"]:not(:last-child)::after { background: var(--wd-green); opacity: .45; }\n.wd-shell .dt-stage-marker {\n position: relative; z-index: 1; flex: none;\n width: 19px; height: 19px; border-radius: 50%;\n display: flex; align-items: center; justify-content: center;\n font-size: 9px; font-weight: 650;\n border: 1.5px solid var(--wd-hairline); background: var(--wd-surface);\n color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-stage[data-done=\"true\"] .dt-stage-marker { border-color: var(--wd-green); background: var(--wd-green); color: #fff; }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-marker {\n border-color: var(--wd-primary); background: var(--wd-primary); color: #fff;\n box-shadow: 0 0 0 3px var(--wd-primary-soft);\n}\n.wd-shell .dt-stage-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; }\n.wd-shell .dt-stage-label { font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--dsw-alias-label-secondary); }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-label { color: var(--wd-primary); }\n.wd-shell .dt-stage-state { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-state { color: var(--wd-primary); }\n\n/* rail dimension summary: four compact marks, never merged into one score.\n The full cards with their origin tags live in the reading pane; the rail only\n needs to say \"which of the four exist\", because the rail is scanned, not read. */\n.wd-shell .dt-rail-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }\n.wd-shell .dim-mini {\n display: flex; align-items: center; gap: 5px; min-width: 0;\n padding: 4px 7px; border-radius: 6px;\n background: var(--wd-red-soft);\n}\n.wd-shell .dim-mini[data-present=\"true\"] { background: var(--wd-green-soft); }\n.wd-shell .dim-mini-mark { flex: none; font-size: 10px; line-height: 14px; font-weight: 650; color: var(--wd-red); }\n.wd-shell .dim-mini[data-present=\"true\"] .dim-mini-mark { color: var(--wd-green); }\n.wd-shell .dim-mini-label {\n font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\n}\n.wd-shell .dim-card {\n display: flex; flex-direction: column; gap: 1px; min-width: 0;\n padding: 7px 8px; border-radius: 8px;\n border: 1px solid var(--wd-hairline); background: var(--wd-inset);\n}\n.wd-shell .dim-card[data-present=\"true\"] { border-color: transparent; background: var(--wd-green-soft); }\n.wd-shell .dim-card[data-present=\"false\"] { border-color: transparent; background: var(--wd-red-soft); }\n.wd-shell .dim-card-label { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary); font-weight: 550; }\n.wd-shell .dim-card-mark { font-size: 11px; line-height: 15px; font-weight: 650; }\n.wd-shell .dim-card[data-present=\"true\"] .dim-card-mark { color: var(--wd-green); }\n.wd-shell .dim-card[data-present=\"false\"] .dim-card-mark { color: var(--wd-red); }\n.wd-shell .dim-card-value {\n font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;\n}\n.wd-shell .dim-card-origin {\n margin-top: 1px; font-size: 8.5px; line-height: 12px;\n color: var(--dsw-alias-label-tertiary); letter-spacing: .02em;\n}\n.wd-shell .dim-card-reason { font-size: 8.5px; line-height: 12px; color: var(--wd-red); opacity: .8; }\n\n/* rail gaps */\n.wd-shell .dt-rail-gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .dt-rail-gap { display: flex; align-items: baseline; gap: 6px; }\n.wd-shell .dt-rail-gap-no {\n flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 9px; line-height: 14px; font-weight: 650;\n padding: 0 4px; border-radius: 3px;\n}\n.wd-shell .dt-rail-gap[data-level=\"high\"] .dt-rail-gap-no { background: var(--wd-red-soft); color: var(--wd-red); }\n.wd-shell .dt-rail-gap[data-level=\"medium\"] .dt-rail-gap-no { background: var(--wd-amber-soft); color: var(--wd-amber); }\n.wd-shell .dt-rail-gap-title { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n\n/* rail meta */\n.wd-shell .dt-rail-meta { display: flex; flex-direction: column; gap: 3px; }\n.wd-shell .dt-rail-meta-row { display: flex; align-items: baseline; gap: 8px; }\n.wd-shell .dt-rail-meta-label { flex: none; width: 82px; font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .dt-rail-meta-value {\n flex: 1 1 auto; min-width: 0; font-size: 10.5px; line-height: 15px;\n color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;\n}\n.wd-shell .dt-rail-meta-value[data-empty=\"true\"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* rail navigation */\n.wd-shell .dt-rail-nav { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }\n.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; }\n\n/* ---------- section frame ---------- */\n.wd-shell .dsec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }\n.wd-shell .dsec-head { display: flex; align-items: baseline; gap: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--wd-hairline); }\n.wd-shell .dsec-title { margin: 0; font-size: 13.5px; line-height: 20px; font-weight: 650; letter-spacing: -.005em; }\n.wd-shell .dsec-kicker { margin-left: auto; font-size: 10.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .dsec-blank {\n padding: 14px; border-radius: 9px;\n border: 1px dashed var(--wd-hairline);\n font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary);\n text-align: center;\n}\n.wd-shell .dsec-empty {\n display: flex; flex-direction: column; align-items: center; gap: 5px;\n padding: 30px 20px; border-radius: 10px;\n border: 1px dashed var(--wd-hairline);\n text-align: center;\n}\n.wd-shell .dsec-empty-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 650; }\n.wd-shell .dsec-empty-copy { margin: 0; font-size: 11.5px; line-height: 18px; color: var(--dsw-alias-label-secondary); }\n\n/* ---------- prose blocks ---------- */\n.wd-shell .dt-prose { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.wd-shell .dt-prose-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-prose-body { margin: 0; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .dt-prose[data-empty=\"true\"] .dt-prose-body { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* ---------- basic information ---------- */\n.wd-shell .dt-basic-grid {\n display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 7px 18px; margin: 0 0 12px;\n}\n@media (max-width: 900px) { .wd-shell .dt-basic-grid { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .dt-basic-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }\n.wd-shell .dt-basic-label {\n flex: none; width: 108px;\n font-size: 11px; line-height: 17px; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-basic-value {\n margin: 0; font-size: 12px; line-height: 17px; font-weight: 500;\n color: var(--wd-text); overflow-wrap: anywhere;\n}\n.wd-shell .dt-basic-row[data-empty=\"true\"] .dt-basic-value {\n font-weight: 400; color: var(--dsw-alias-label-tertiary); font-style: italic;\n}\n.wd-shell .dt-basic-decisions {\n display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 12px; padding-top: 11px; border-top: 1px solid var(--wd-hairline);\n}\n@media (max-width: 900px) { .wd-shell .dt-basic-decisions { grid-template-columns: minmax(0, 1fr); } }\n\n/* ---------- progress stream ---------- */\n.wd-shell .prog-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }\n.wd-shell .prog-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }\n.wd-shell .prog-item:last-child { padding-bottom: 0; }\n.wd-shell .prog-gutter { position: relative; display: flex; justify-content: center; padding-top: 8px; }\n.wd-shell .prog-node {\n position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%;\n background: var(--wd-slate); box-shadow: 0 0 0 3px var(--wd-slate-soft);\n}\n.wd-shell .prog-node[data-tone=\"green\"] { background: var(--wd-green); box-shadow: 0 0 0 3px var(--wd-green-soft); }\n.wd-shell .prog-node[data-tone=\"amber\"] { background: var(--wd-amber); box-shadow: 0 0 0 3px var(--wd-amber-soft); }\n.wd-shell .prog-node[data-tone=\"red\"] { background: var(--wd-red); box-shadow: 0 0 0 3px var(--wd-red-soft); }\n.wd-shell .prog-item:not(:last-child) .prog-gutter::after {\n content: ''; position: absolute; top: 22px; bottom: -6px; width: 1px;\n background: var(--wd-hairline);\n}\n.wd-shell .prog-card {\n display: flex; flex-direction: column; gap: 8px;\n padding: 12px 14px 11px; min-width: 0;\n border: 1px solid var(--wd-hairline); border-radius: 10px;\n background: var(--wd-surface); box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .prog-item[data-latest=\"true\"] .prog-card { border-color: var(--dsw-alias-border-l2); box-shadow: var(--wd-shadow-2); }\n.wd-shell .prog-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.wd-shell .prog-date { font-size: 12px; line-height: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }\n.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); }\n.wd-shell .prog-seq { font-size: 9.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .prog-chip { margin-left: auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-meter { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 150px; }\n.wd-shell .prog-meter-label { font-size: 9px; line-height: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-meter .inline-meter { flex: 1 1 auto; min-width: 40px; }\n.wd-shell .prog-meter-value { font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--dsw-alias-label-secondary); }\n\n.wd-shell .prog-pair { display: flex; flex-direction: column; gap: 3px; }\n.wd-shell .prog-goal { display: flex; flex-direction: column; gap: 0; }\n.wd-shell .prog-actual { display: flex; flex-direction: column; gap: 0; }\n.wd-shell .prog-pair-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .prog-goal .prog-pair-value { font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }\n.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; }\n.wd-shell .prog-scope, .wd-shell .prog-evidence, .wd-shell .prog-customer, .wd-shell .prog-feedback { display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .prog-scope-label, .wd-shell .prog-block-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .prog-customer { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }\n.wd-shell .prog-customer .prog-block-label { margin-right: 1px; }\n.wd-shell .prog-missing { font-size: 10.5px; line-height: 15px; color: var(--wd-amber); font-style: italic; }\n.wd-shell .prog-evidence-link { text-decoration: none; color: var(--wd-primary); }\n.wd-shell .prog-evidence-link:hover { background: var(--wd-primary-soft); }\n.wd-shell .prog-external { margin-left: 2px; font-size: 9px; }\n.wd-shell .prog-feedback-copy { font-size: 11.5px; line-height: 18px; }\n.wd-shell .prog-next {\n display: flex; flex-direction: column; gap: 3px;\n padding: 7px 10px; border-radius: 8px;\n border-left: 3px solid var(--wd-primary);\n background: var(--wd-primary-soft);\n}\n.wd-shell .prog-next-empty { border-left-color: var(--wd-hairline); background: var(--wd-inset); }\n.wd-shell .prog-next-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 650; color: var(--wd-primary);\n}\n.wd-shell .prog-next-empty .prog-next-label { color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-next-body { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }\n.wd-shell .prog-next-goal { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); }\n\n/* ---------- dimension grid (detail) ---------- */\n.wd-shell .dim-grid-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }\n@media (max-width: 900px) { .wd-shell .dim-grid-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.wd-shell .dim-grid-detail .dim-card {\n padding: 11px 12px; border-radius: 10px; gap: 3px;\n border-left: 3px solid var(--wd-red);\n box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .dim-grid-detail .dim-card[data-present=\"true\"] { border-left-color: var(--wd-green); }\n.wd-shell .dim-grid-detail .dim-card-label { font-size: 10.5px; line-height: 15px; }\n.wd-shell .dim-grid-detail .dim-card-mark { font-size: 14px; line-height: 20px; }\n.wd-shell .dim-grid-detail .dim-card-value { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-primary); -webkit-line-clamp: 3; }\n.wd-shell .dim-grid-detail .dim-card-origin {\n display: inline-flex; align-self: flex-start; margin-top: 2px;\n padding: 0 5px; border-radius: 4px; font-size: 9px; line-height: 15px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n color: var(--dsw-alias-label-tertiary);\n}\n\n/* ---------- G0 meter ---------- */\n.wd-shell .g0-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }\n@media (max-width: 760px) { .wd-shell .g0-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.wd-shell .g0-cell {\n display: flex; flex-direction: column; align-items: center; gap: 2px;\n padding: 8px 6px; border-radius: 8px; min-width: 0;\n background: var(--wd-red-soft); border: 1px solid transparent;\n}\n.wd-shell .g0-cell[data-present=\"true\"] { background: var(--wd-green-soft); }\n.wd-shell .g0-cell-mark { font-size: 12px; line-height: 16px; font-weight: 650; color: var(--wd-red); }\n.wd-shell .g0-cell[data-present=\"true\"] .g0-cell-mark { color: var(--wd-green); }\n.wd-shell .g0-cell-label {\n font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n text-align: center; overflow-wrap: anywhere;\n}\n.wd-shell .g0-fields { display: flex; flex-direction: column; gap: 8px; }\n.wd-shell .g0-field {\n display: flex; flex-direction: column; gap: 2px;\n padding: 9px 11px; border-radius: 9px;\n border: 1px solid var(--wd-hairline); background: var(--wd-surface);\n}\n.wd-shell .g0-field[data-present=\"false\"] { border-color: transparent; background: var(--wd-red-soft); }\n.wd-shell .g0-field-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .g0-field-value { margin: 0; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .g0-field[data-prose=\"true\"] .g0-field-value { font-size: 12.5px; line-height: 20px; color: var(--dsw-alias-label-primary); }\n.wd-shell .g0-field-missing { margin: 0; font-size: 11px; line-height: 16px; color: var(--wd-red); font-style: italic; }\n.wd-shell .g0-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.wd-shell .g0-review { font-size: 11px; line-height: 17px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .g0-review[data-empty=\"true\"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* ---------- plan ---------- */\n.wd-shell .plan-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n@media (max-width: 900px) { .wd-shell .plan-meta { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .plan-strip {\n display: flex; align-items: center; gap: 16px; flex-wrap: wrap;\n padding: 9px 12px; border-radius: 9px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n}\n.wd-shell .plan-strip-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.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; }\n.wd-shell .plan-strip-value { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); font-variant-numeric: tabular-nums; }\n.wd-shell .plan-block { display: flex; flex-direction: column; gap: 7px; }\n.wd-shell .plan-block-head { display: flex; align-items: baseline; gap: 8px; }\n.wd-shell .plan-block-title { margin: 0; font-size: 11.5px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }\n.wd-shell .plan-block-note { margin-left: auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .plan-criteria {\n width: 100%; border-collapse: collapse;\n border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden;\n background: var(--wd-surface);\n}\n.wd-shell .plan-criteria th {\n padding: 7px 10px; text-align: left;\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;\n font-weight: 600; color: var(--dsw-alias-label-tertiary);\n background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline);\n}\n.wd-shell .plan-criteria td {\n padding: 8px 10px; font-size: 11.5px; line-height: 17px;\n color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline);\n vertical-align: top;\n}\n.wd-shell .plan-criteria tbody tr:last-child td { border-bottom: 0; }\n.wd-shell .plan-criterion-name { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .plan-criterion-num { font-variant-numeric: tabular-nums; }\n.wd-shell .plan-criterion-target { font-weight: 650; color: var(--wd-primary); font-variant-numeric: tabular-nums; }\n.wd-shell .plan-scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .plan-scenario { display: flex; align-items: baseline; gap: 9px; padding: 6px 10px; border-radius: 7px; background: var(--wd-inset); }\n.wd-shell .plan-scenario-no {\n flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 9.5px; line-height: 15px; font-weight: 650; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .plan-scenario-text { font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n.wd-shell .plan-risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }\n.wd-shell .plan-risk { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--wd-inset); }\n.wd-shell .plan-risk-dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--wd-slate); }\n.wd-shell .plan-risk[data-tone=\"red\"] .plan-risk-dot { background: var(--wd-red); }\n.wd-shell .plan-risk[data-tone=\"amber\"] .plan-risk-dot { background: var(--wd-amber); }\n.wd-shell .plan-risk[data-tone=\"green\"] .plan-risk-dot { background: var(--wd-green); }\n.wd-shell .plan-risk-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }\n.wd-shell .plan-risk-name { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .plan-risk-level { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .plan-risk-mitigation { font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n\n/* ---------- outcome ---------- */\n.wd-shell .out-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n@media (max-width: 900px) { .wd-shell .out-triple { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .out-milestone {\n display: flex; flex-direction: column; gap: 4px;\n padding: 12px 14px; border-radius: 10px;\n border-left: 3px solid var(--wd-red); background: var(--wd-red-soft);\n}\n.wd-shell .out-milestone[data-present=\"true\"] { border-left-color: var(--wd-green); background: var(--wd-green-soft); }\n.wd-shell .out-milestone-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 650; color: var(--wd-red);\n}\n.wd-shell .out-milestone[data-present=\"true\"] .out-milestone-label { color: var(--wd-green); }\n.wd-shell .out-milestone-text { font-size: 13px; line-height: 20px; font-weight: 650; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .out-milestone-missing { font-size: 11.5px; line-height: 18px; color: var(--wd-red); overflow-wrap: anywhere; }\n.wd-shell .out-milestone-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }\n.wd-shell .out-meta {\n display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;\n padding-top: 10px; border-top: 1px solid var(--wd-hairline);\n}\n@media (max-width: 900px) { .wd-shell .out-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n\n@media (prefers-reduced-motion: reduce) {\n .wd-shell .dim-card, .wd-shell .prog-card { transition: none; }\n}\n";
21
+ export declare const DETAIL_CSS = "\n/* ---------- two-pane layout ---------- */\n.wd-shell .dt-page {\n display: grid;\n grid-template-columns: 316px minmax(0, 1fr);\n align-items: start;\n min-height: 100%;\n}\n@media (max-width: 1100px) { .wd-shell .dt-page { grid-template-columns: minmax(0, 1fr); } }\n\n.wd-shell .dt-rail {\n position: sticky; top: 0;\n align-self: start;\n display: flex; flex-direction: column; gap: 14px;\n padding: 18px 18px 22px;\n background: var(--wd-surface);\n border-right: 1px solid var(--wd-hairline);\n min-height: 100%;\n}\n@media (max-width: 1100px) { .wd-shell .dt-rail { position: static; border-right: 0; border-bottom: 1px solid var(--wd-hairline); } }\n.wd-shell .dt-pane {\n display: flex; flex-direction: column; gap: 22px;\n padding: 20px 28px 44px;\n min-width: 0;\n}\n\n/* ---------- rail ---------- */\n.wd-shell .dt-rail-head { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }\n.wd-shell .dt-rail-back { margin-bottom: 4px; }\n.wd-shell .dt-rail-title {\n margin: 0; font-size: 16px; line-height: 23px; font-weight: 650;\n letter-spacing: -.01em; overflow-wrap: anywhere;\n}\n.wd-shell .dt-rail-id { display: block; }\n.wd-shell .dt-rail-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }\n.wd-shell .dt-rail-amount {\n display: flex; flex-direction: column; gap: 1px;\n padding: 10px 12px; border-radius: 9px;\n background: var(--wd-amber-soft); border: 1px solid transparent;\n}\n.wd-shell .dt-rail-amount-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--wd-amber);\n}\n.wd-shell .dt-rail-amount-value {\n font-size: 22px; line-height: 28px; font-weight: 650;\n font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em;\n}\n.wd-shell .dt-rail-amount-value[data-empty=\"true\"] {\n font-size: 13px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-rail-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }\n.wd-shell .dt-rail-block { display: flex; flex-direction: column; gap: 7px; }\n.wd-shell .dt-rail-block-title {\n margin: 0; font-size: 10.5px; line-height: 15px; letter-spacing: .06em;\n text-transform: uppercase; font-weight: 650; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-rail-empty { margin: 0; font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* vertical stage track */\n.wd-shell .dt-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; position: relative; }\n.wd-shell .dt-stage { display: flex; align-items: center; gap: 9px; padding: 4px 0; position: relative; }\n.wd-shell .dt-stage:not(:last-child)::after {\n content: ''; position: absolute; left: 9px; top: 22px; bottom: -3px;\n width: 1px; background: var(--wd-hairline);\n}\n.wd-shell .dt-stage[data-done=\"true\"]:not(:last-child)::after { background: var(--wd-green); opacity: .45; }\n.wd-shell .dt-stage-marker {\n position: relative; z-index: 1; flex: none;\n width: 19px; height: 19px; border-radius: 50%;\n display: flex; align-items: center; justify-content: center;\n font-size: 9px; font-weight: 650;\n border: 1.5px solid var(--wd-hairline); background: var(--wd-surface);\n color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-stage[data-done=\"true\"] .dt-stage-marker { border-color: var(--wd-green); background: var(--wd-green); color: #fff; }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-marker {\n border-color: var(--wd-primary); background: var(--wd-primary); color: #fff;\n box-shadow: 0 0 0 3px var(--wd-primary-soft);\n}\n.wd-shell .dt-stage-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; }\n.wd-shell .dt-stage-label { font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--dsw-alias-label-secondary); }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-label { color: var(--wd-primary); }\n.wd-shell .dt-stage-state { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .dt-stage[data-current=\"true\"] .dt-stage-state { color: var(--wd-primary); }\n\n/* rail dimension summary: four compact marks, never merged into one score.\n The full cards with their origin tags live in the reading pane; the rail only\n needs to say \"which of the four exist\", because the rail is scanned, not read. */\n.wd-shell .dt-rail-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }\n.wd-shell .dim-mini {\n display: flex; align-items: center; gap: 5px; min-width: 0;\n padding: 4px 7px; border-radius: 6px;\n background: var(--wd-red-soft);\n}\n.wd-shell .dim-mini[data-present=\"true\"] { background: var(--wd-green-soft); }\n.wd-shell .dim-mini-mark { flex: none; font-size: 10px; line-height: 14px; font-weight: 650; color: var(--wd-red); }\n.wd-shell .dim-mini[data-present=\"true\"] .dim-mini-mark { color: var(--wd-green); }\n.wd-shell .dim-mini-label {\n font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\n}\n.wd-shell .dim-card {\n display: flex; flex-direction: column; gap: 1px; min-width: 0;\n padding: 7px 8px; border-radius: 8px;\n border: 1px solid var(--wd-hairline); background: var(--wd-inset);\n}\n.wd-shell .dim-card[data-present=\"true\"] { border-color: transparent; background: var(--wd-green-soft); }\n.wd-shell .dim-card[data-present=\"false\"] { border-color: transparent; background: var(--wd-red-soft); }\n.wd-shell .dim-card-label { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary); font-weight: 550; }\n.wd-shell .dim-card-mark { font-size: 11px; line-height: 15px; font-weight: 650; }\n.wd-shell .dim-card[data-present=\"true\"] .dim-card-mark { color: var(--wd-green); }\n.wd-shell .dim-card[data-present=\"false\"] .dim-card-mark { color: var(--wd-red); }\n.wd-shell .dim-card-value {\n font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;\n}\n.wd-shell .dim-card-origin {\n margin-top: 1px; font-size: 8.5px; line-height: 12px;\n color: var(--dsw-alias-label-tertiary); letter-spacing: .02em;\n}\n.wd-shell .dim-card-reason { font-size: 8.5px; line-height: 12px; color: var(--wd-red); opacity: .8; }\n\n/* rail gaps */\n.wd-shell .dt-rail-gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .dt-rail-gap { display: flex; align-items: baseline; gap: 6px; }\n.wd-shell .dt-rail-gap-no {\n flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 9px; line-height: 14px; font-weight: 650;\n padding: 0 4px; border-radius: 3px;\n}\n.wd-shell .dt-rail-gap[data-level=\"high\"] .dt-rail-gap-no { background: var(--wd-red-soft); color: var(--wd-red); }\n.wd-shell .dt-rail-gap[data-level=\"medium\"] .dt-rail-gap-no { background: var(--wd-amber-soft); color: var(--wd-amber); }\n.wd-shell .dt-rail-gap-title { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n\n/* rail meta */\n.wd-shell .dt-rail-meta { display: flex; flex-direction: column; gap: 3px; }\n.wd-shell .dt-rail-meta-row { display: flex; align-items: baseline; gap: 8px; }\n.wd-shell .dt-rail-meta-label { flex: none; width: 82px; font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .dt-rail-meta-value {\n flex: 1 1 auto; min-width: 0; font-size: 10.5px; line-height: 15px;\n color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;\n}\n.wd-shell .dt-rail-meta-value[data-empty=\"true\"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* rail navigation */\n.wd-shell .dt-rail-nav { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }\n.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; }\n\n/* ---------- section frame ---------- */\n.wd-shell .dsec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }\n.wd-shell .dsec-head { display: flex; align-items: baseline; gap: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--wd-hairline); }\n.wd-shell .dsec-title { margin: 0; font-size: 13.5px; line-height: 20px; font-weight: 650; letter-spacing: -.005em; }\n.wd-shell .dsec-kicker { margin-left: auto; font-size: 10.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .dsec-blank {\n padding: 14px; border-radius: 9px;\n border: 1px dashed var(--wd-hairline);\n font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary);\n text-align: center;\n}\n.wd-shell .dsec-empty {\n display: flex; flex-direction: column; align-items: center; gap: 5px;\n padding: 30px 20px; border-radius: 10px;\n border: 1px dashed var(--wd-hairline);\n text-align: center;\n}\n.wd-shell .dsec-empty-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 650; }\n.wd-shell .dsec-empty-copy { margin: 0; font-size: 11.5px; line-height: 18px; color: var(--dsw-alias-label-secondary); }\n\n/* ---------- prose blocks ---------- */\n.wd-shell .dt-prose { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.wd-shell .dt-prose-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-prose-body { margin: 0; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .dt-prose[data-empty=\"true\"] .dt-prose-body { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* ---------- basic information ---------- */\n.wd-shell .dt-basic-grid {\n display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 7px 18px; margin: 0 0 12px;\n}\n@media (max-width: 900px) { .wd-shell .dt-basic-grid { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .dt-basic-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }\n.wd-shell .dt-basic-label {\n flex: none; width: 108px;\n font-size: 11px; line-height: 17px; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .dt-basic-value {\n margin: 0; font-size: 12px; line-height: 17px; font-weight: 500;\n color: var(--wd-text); overflow-wrap: anywhere;\n}\n.wd-shell .dt-basic-row[data-empty=\"true\"] .dt-basic-value {\n font-weight: 400; color: var(--dsw-alias-label-tertiary); font-style: italic;\n}\n.wd-shell .dt-basic-decisions {\n display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 12px; padding-top: 11px; border-top: 1px solid var(--wd-hairline);\n}\n@media (max-width: 900px) { .wd-shell .dt-basic-decisions { grid-template-columns: minmax(0, 1fr); } }\n\n/* ---------- progress stream ---------- */\n.wd-shell .prog-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }\n.wd-shell .prog-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }\n.wd-shell .prog-item:last-child { padding-bottom: 0; }\n.wd-shell .prog-gutter { position: relative; display: flex; justify-content: center; padding-top: 8px; }\n.wd-shell .prog-node {\n position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%;\n background: var(--wd-slate); box-shadow: 0 0 0 3px var(--wd-slate-soft);\n}\n.wd-shell .prog-node[data-tone=\"green\"] { background: var(--wd-green); box-shadow: 0 0 0 3px var(--wd-green-soft); }\n.wd-shell .prog-node[data-tone=\"amber\"] { background: var(--wd-amber); box-shadow: 0 0 0 3px var(--wd-amber-soft); }\n.wd-shell .prog-node[data-tone=\"red\"] { background: var(--wd-red); box-shadow: 0 0 0 3px var(--wd-red-soft); }\n.wd-shell .prog-item:not(:last-child) .prog-gutter::after {\n content: ''; position: absolute; top: 22px; bottom: -6px; width: 1px;\n background: var(--wd-hairline);\n}\n.wd-shell .prog-card {\n display: flex; flex-direction: column; gap: 8px;\n padding: 12px 14px 11px; min-width: 0;\n border: 1px solid var(--wd-hairline); border-radius: 10px;\n background: var(--wd-surface); box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .prog-item[data-latest=\"true\"] .prog-card { border-color: var(--dsw-alias-border-l2); box-shadow: var(--wd-shadow-2); }\n.wd-shell .prog-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.wd-shell .prog-date { font-size: 12px; line-height: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }\n.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); }\n.wd-shell .prog-seq { font-size: 9.5px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .prog-chip { margin-left: auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-meter { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 150px; }\n.wd-shell .prog-meter-label { font-size: 9px; line-height: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-meter .inline-meter { flex: 1 1 auto; min-width: 40px; }\n.wd-shell .prog-meter-value { font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--dsw-alias-label-secondary); }\n\n.wd-shell .prog-pair { display: flex; flex-direction: column; gap: 3px; }\n.wd-shell .prog-goal { display: flex; flex-direction: column; gap: 0; }\n.wd-shell .prog-actual { display: flex; flex-direction: column; gap: 0; }\n.wd-shell .prog-pair-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .prog-goal .prog-pair-value { font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }\n.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; }\n.wd-shell .prog-scope, .wd-shell .prog-evidence, .wd-shell .prog-customer, .wd-shell .prog-feedback { display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .prog-scope-label, .wd-shell .prog-block-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .prog-customer { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }\n.wd-shell .prog-customer .prog-block-label { margin-right: 1px; }\n.wd-shell .prog-missing { font-size: 10.5px; line-height: 15px; color: var(--wd-amber); font-style: italic; }\n.wd-shell .prog-evidence-link { text-decoration: none; color: var(--wd-primary); }\n.wd-shell .prog-evidence-link:hover { background: var(--wd-primary-soft); }\n.wd-shell .prog-external { margin-left: 2px; font-size: 9px; }\n.wd-shell .prog-feedback-copy { font-size: 11.5px; line-height: 18px; }\n.wd-shell .prog-next {\n display: flex; flex-direction: column; gap: 3px;\n padding: 7px 10px; border-radius: 8px;\n border-left: 3px solid var(--wd-primary);\n background: var(--wd-primary-soft);\n}\n.wd-shell .prog-next-empty { border-left-color: var(--wd-hairline); background: var(--wd-inset); }\n.wd-shell .prog-next-label {\n font-size: 9px; line-height: 13px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 650; color: var(--wd-primary);\n}\n.wd-shell .prog-next-empty .prog-next-label { color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prog-next-body { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }\n.wd-shell .prog-next-goal { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); }\n\n/* ---------- dimension grid (detail) ---------- */\n.wd-shell .dim-grid-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }\n@media (max-width: 900px) { .wd-shell .dim-grid-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.wd-shell .dim-grid-detail .dim-card {\n padding: 11px 12px; border-radius: 10px; gap: 3px;\n border-left: 3px solid var(--wd-red);\n box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .dim-grid-detail .dim-card[data-present=\"true\"] { border-left-color: var(--wd-green); }\n.wd-shell .dim-grid-detail .dim-card-label { font-size: 10.5px; line-height: 15px; }\n.wd-shell .dim-grid-detail .dim-card-mark { font-size: 14px; line-height: 20px; }\n.wd-shell .dim-grid-detail .dim-card-value { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-primary); -webkit-line-clamp: 3; }\n.wd-shell .dim-grid-detail .dim-card-origin {\n display: inline-flex; align-self: flex-start; margin-top: 2px;\n padding: 0 5px; border-radius: 4px; font-size: 9px; line-height: 15px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n color: var(--dsw-alias-label-tertiary);\n}\n\n/* ---------- G0 meter ---------- */\n.wd-shell .g0-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }\n@media (max-width: 760px) { .wd-shell .g0-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.wd-shell .g0-cell {\n display: flex; flex-direction: column; align-items: center; gap: 2px;\n padding: 8px 6px; border-radius: 8px; min-width: 0;\n background: var(--wd-red-soft); border: 1px solid transparent;\n}\n.wd-shell .g0-cell[data-present=\"true\"] { background: var(--wd-green-soft); }\n.wd-shell .g0-cell-mark { font-size: 12px; line-height: 16px; font-weight: 650; color: var(--wd-red); }\n.wd-shell .g0-cell[data-present=\"true\"] .g0-cell-mark { color: var(--wd-green); }\n.wd-shell .g0-cell-label {\n font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-secondary);\n text-align: center; overflow-wrap: anywhere;\n}\n.wd-shell .g0-fields { display: flex; flex-direction: column; gap: 8px; }\n.wd-shell .g0-field {\n display: flex; flex-direction: column; gap: 2px;\n padding: 9px 11px; border-radius: 9px;\n border: 1px solid var(--wd-hairline); background: var(--wd-surface);\n}\n.wd-shell .g0-field[data-present=\"false\"] { border-color: transparent; background: var(--wd-red-soft); }\n.wd-shell .g0-field-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .g0-field-value { margin: 0; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .g0-field[data-prose=\"true\"] .g0-field-value { font-size: 12.5px; line-height: 20px; color: var(--dsw-alias-label-primary); }\n.wd-shell .g0-field-missing { margin: 0; font-size: 11px; line-height: 16px; color: var(--wd-red); font-style: italic; }\n.wd-shell .g0-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.wd-shell .g0-review { font-size: 11px; line-height: 17px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .g0-review[data-empty=\"true\"] { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n\n/* ---------- plan ---------- */\n.wd-shell .plan-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n@media (max-width: 900px) { .wd-shell .plan-meta { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .plan-strip {\n display: flex; align-items: center; gap: 16px; flex-wrap: wrap;\n padding: 9px 12px; border-radius: 9px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n}\n.wd-shell .plan-strip-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.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; }\n.wd-shell .plan-strip-value { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); font-variant-numeric: tabular-nums; }\n.wd-shell .plan-block { display: flex; flex-direction: column; gap: 7px; }\n.wd-shell .plan-block-head { display: flex; align-items: baseline; gap: 8px; }\n.wd-shell .plan-block-title { margin: 0; font-size: 11.5px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }\n.wd-shell .plan-block-note { margin-left: auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .plan-criteria {\n width: 100%; border-collapse: collapse;\n border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden;\n background: var(--wd-surface);\n}\n.wd-shell .plan-criteria th {\n padding: 7px 10px; text-align: left;\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;\n font-weight: 600; color: var(--dsw-alias-label-tertiary);\n background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline);\n}\n.wd-shell .plan-criteria td {\n padding: 8px 10px; font-size: 11.5px; line-height: 17px;\n color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline);\n vertical-align: top;\n}\n.wd-shell .plan-criteria tbody tr:last-child td { border-bottom: 0; }\n.wd-shell .plan-criterion-name { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .plan-criterion-num { font-variant-numeric: tabular-nums; }\n.wd-shell .plan-criterion-target { font-weight: 650; color: var(--wd-primary); font-variant-numeric: tabular-nums; }\n.wd-shell .plan-scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }\n/* A scenario row carries its derived state as a left edge: the row's colour is\n the finding, so it has to survive a glance down the list. */\n.wd-shell .plan-scenario {\n display: flex; align-items: flex-start; gap: 10px;\n padding: 8px 10px 8px 9px; border-radius: 8px;\n background: var(--wd-surface); border: 1px solid var(--wd-hairline);\n border-left: 3px solid var(--wd-slate);\n}\n.wd-shell .plan-scenario[data-tone=\"green\"] { border-left-color: var(--wd-green); }\n.wd-shell .plan-scenario[data-tone=\"amber\"] { border-left-color: var(--wd-amber); }\n.wd-shell .plan-scenario[data-tone=\"red\"] { border-left-color: var(--wd-red); }\n.wd-shell .plan-scenario-no {\n flex: none; margin-top: 1px;\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 9.5px; line-height: 15px; font-weight: 650; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .plan-scenario[data-tone=\"green\"] .plan-scenario-no { color: var(--wd-green); }\n.wd-shell .plan-scenario[data-tone=\"amber\"] .plan-scenario-no { color: var(--wd-amber); }\n.wd-shell .plan-scenario[data-tone=\"red\"] .plan-scenario-no { color: var(--wd-red); }\n.wd-shell .plan-scenario-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }\n.wd-shell .plan-scenario-name { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .plan-scenario-goal { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }\n.wd-shell .plan-scenario-goal-label { margin-right: 5px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .plan-scenario-tail { flex: none; display: flex; align-items: center; gap: 6px; }\n.wd-shell .plan-scenario-glyph { font-size: 10px; line-height: 14px; }\n.wd-shell .plan-scenario[data-tone=\"green\"] .plan-scenario-glyph { color: var(--wd-green); }\n.wd-shell .plan-scenario[data-tone=\"amber\"] .plan-scenario-glyph { color: var(--wd-amber); }\n.wd-shell .plan-scenario[data-tone=\"red\"] .plan-scenario-glyph { color: var(--wd-red); }\n.wd-shell .plan-scenario[data-tone=\"slate\"] .plan-scenario-glyph { color: var(--wd-slate); }\n.wd-shell .plan-scenario-evidence {\n font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary);\n font-variant-numeric: tabular-nums; white-space: nowrap;\n}\n.wd-shell .plan-criterion-status { white-space: nowrap; }\n\n/* ---------- scenario detail (layer two) ---------- */\n.wd-shell .plan-scenario-open {\n flex: none; margin-left: 2px; padding: 2px 6px;\n border: 0; border-radius: 5px; background: transparent; cursor: pointer;\n font-family: inherit; font-size: 10.5px; line-height: 15px; font-weight: 600;\n color: var(--wd-primary);\n}\n.wd-shell .plan-scenario-open:hover { background: var(--wd-primary-soft); }\n.wd-shell .plan-scenario-open:focus-visible { outline: 2px solid var(--wd-primary-ring); outline-offset: 1px; }\n.wd-shell .sd-back {\n align-self: flex-start; margin-bottom: 2px; padding: 3px 8px;\n border: 1px solid var(--wd-hairline); border-radius: 6px; background: var(--wd-surface); cursor: pointer;\n font-family: inherit; font-size: 10.5px; line-height: 15px; font-weight: 600; color: var(--wd-primary);\n}\n.wd-shell .sd-back:hover { background: var(--wd-primary-soft); }\n.wd-shell .sd-back:focus-visible { outline: 2px solid var(--wd-primary-ring); outline-offset: 1px; }\n.wd-shell .sd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid var(--wd-hairline); }\n.wd-shell .sd-head-no {\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 10px; line-height: 15px; font-weight: 650; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .sd-head-name { font-size: 14px; line-height: 20px; font-weight: 650; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .sd-evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .sd-evidence-row {\n display: flex; align-items: baseline; gap: 9px; padding: 7px 10px;\n border-radius: 7px; background: var(--wd-inset);\n}\n.wd-shell .sd-evidence-type { flex: none; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .sd-evidence-title { flex: 1; min-width: 0; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n.wd-shell .sd-evidence-date { flex: none; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .sd-evidence-link { flex: none; font-size: 10.5px; color: var(--wd-primary); text-decoration: none; }\n.wd-shell .sd-evidence-link:hover { text-decoration: underline; }\n.wd-shell .sd-customer { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 8px; background: var(--wd-inset); }\n.wd-shell .sd-customer-sync { display: flex; align-items: baseline; gap: 8px; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .sd-customer-date { font-variant-numeric: tabular-nums; }\n.wd-shell .sd-customer-feedback { margin: 0; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .sd-gate3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }\n.wd-shell .sd-gate3-note {\n font-size: 9.5px; line-height: 14px; font-weight: 650; color: var(--wd-red);\n padding: 1px 5px; border-radius: 4px; background: var(--wd-red-soft);\n}\n.wd-shell .sd-linked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.wd-shell .sd-linked-row {\n display: grid; grid-template-columns: 82px 34px 76px minmax(0, 1fr); gap: 8px;\n align-items: baseline; padding: 6px 10px; border-radius: 7px; background: var(--wd-inset);\n}\n.wd-shell .sd-linked-date { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .sd-linked-seq { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n.wd-shell .sd-linked-change { font-size: 9.5px; line-height: 14px; font-weight: 600; color: var(--wd-primary); }\n.wd-shell .sd-linked-actual { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n.wd-shell .plan-risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }\n.wd-shell .plan-risk { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--wd-inset); }\n.wd-shell .plan-risk-dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--wd-slate); }\n.wd-shell .plan-risk[data-tone=\"red\"] .plan-risk-dot { background: var(--wd-red); }\n.wd-shell .plan-risk[data-tone=\"amber\"] .plan-risk-dot { background: var(--wd-amber); }\n.wd-shell .plan-risk[data-tone=\"green\"] .plan-risk-dot { background: var(--wd-green); }\n.wd-shell .plan-risk-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }\n.wd-shell .plan-risk-name { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .plan-risk-level { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .plan-risk-mitigation { font-size: 10.5px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n\n/* ---------- outcome ---------- */\n.wd-shell .out-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n@media (max-width: 900px) { .wd-shell .out-triple { grid-template-columns: minmax(0, 1fr); } }\n.wd-shell .out-milestone {\n display: flex; flex-direction: column; gap: 4px;\n padding: 12px 14px; border-radius: 10px;\n border-left: 3px solid var(--wd-red); background: var(--wd-red-soft);\n}\n.wd-shell .out-milestone[data-present=\"true\"] { border-left-color: var(--wd-green); background: var(--wd-green-soft); }\n.wd-shell .out-milestone-label {\n font-size: 9.5px; line-height: 14px; letter-spacing: .05em;\n text-transform: uppercase; font-weight: 650; color: var(--wd-red);\n}\n.wd-shell .out-milestone[data-present=\"true\"] .out-milestone-label { color: var(--wd-green); }\n.wd-shell .out-milestone-text { font-size: 13px; line-height: 20px; font-weight: 650; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }\n.wd-shell .out-milestone-missing { font-size: 11.5px; line-height: 18px; color: var(--wd-red); overflow-wrap: anywhere; }\n.wd-shell .out-milestone-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }\n.wd-shell .out-meta {\n display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;\n padding-top: 10px; border-top: 1px solid var(--wd-hairline);\n}\n@media (max-width: 900px) { .wd-shell .out-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n\n@media (prefers-reduced-motion: reduce) {\n .wd-shell .dim-card, .wd-shell .prog-card { transition: none; }\n}\n";
@@ -376,13 +376,92 @@ export const DETAIL_CSS = `
376
376
  .wd-shell .plan-criterion-name { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
377
377
  .wd-shell .plan-criterion-num { font-variant-numeric: tabular-nums; }
378
378
  .wd-shell .plan-criterion-target { font-weight: 650; color: var(--wd-primary); font-variant-numeric: tabular-nums; }
379
- .wd-shell .plan-scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
380
- .wd-shell .plan-scenario { display: flex; align-items: baseline; gap: 9px; padding: 6px 10px; border-radius: 7px; background: var(--wd-inset); }
379
+ .wd-shell .plan-scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
380
+ /* A scenario row carries its derived state as a left edge: the row's colour is
381
+ the finding, so it has to survive a glance down the list. */
382
+ .wd-shell .plan-scenario {
383
+ display: flex; align-items: flex-start; gap: 10px;
384
+ padding: 8px 10px 8px 9px; border-radius: 8px;
385
+ background: var(--wd-surface); border: 1px solid var(--wd-hairline);
386
+ border-left: 3px solid var(--wd-slate);
387
+ }
388
+ .wd-shell .plan-scenario[data-tone="green"] { border-left-color: var(--wd-green); }
389
+ .wd-shell .plan-scenario[data-tone="amber"] { border-left-color: var(--wd-amber); }
390
+ .wd-shell .plan-scenario[data-tone="red"] { border-left-color: var(--wd-red); }
381
391
  .wd-shell .plan-scenario-no {
382
- flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
392
+ flex: none; margin-top: 1px;
393
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
383
394
  font-size: 9.5px; line-height: 15px; font-weight: 650; color: var(--dsw-alias-label-tertiary);
384
395
  }
385
- .wd-shell .plan-scenario-text { font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
396
+ .wd-shell .plan-scenario[data-tone="green"] .plan-scenario-no { color: var(--wd-green); }
397
+ .wd-shell .plan-scenario[data-tone="amber"] .plan-scenario-no { color: var(--wd-amber); }
398
+ .wd-shell .plan-scenario[data-tone="red"] .plan-scenario-no { color: var(--wd-red); }
399
+ .wd-shell .plan-scenario-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
400
+ .wd-shell .plan-scenario-name { font-size: 11.5px; line-height: 17px; font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
401
+ .wd-shell .plan-scenario-goal { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }
402
+ .wd-shell .plan-scenario-goal-label { margin-right: 5px; color: var(--dsw-alias-label-tertiary); }
403
+ .wd-shell .plan-scenario-tail { flex: none; display: flex; align-items: center; gap: 6px; }
404
+ .wd-shell .plan-scenario-glyph { font-size: 10px; line-height: 14px; }
405
+ .wd-shell .plan-scenario[data-tone="green"] .plan-scenario-glyph { color: var(--wd-green); }
406
+ .wd-shell .plan-scenario[data-tone="amber"] .plan-scenario-glyph { color: var(--wd-amber); }
407
+ .wd-shell .plan-scenario[data-tone="red"] .plan-scenario-glyph { color: var(--wd-red); }
408
+ .wd-shell .plan-scenario[data-tone="slate"] .plan-scenario-glyph { color: var(--wd-slate); }
409
+ .wd-shell .plan-scenario-evidence {
410
+ font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary);
411
+ font-variant-numeric: tabular-nums; white-space: nowrap;
412
+ }
413
+ .wd-shell .plan-criterion-status { white-space: nowrap; }
414
+
415
+ /* ---------- scenario detail (layer two) ---------- */
416
+ .wd-shell .plan-scenario-open {
417
+ flex: none; margin-left: 2px; padding: 2px 6px;
418
+ border: 0; border-radius: 5px; background: transparent; cursor: pointer;
419
+ font-family: inherit; font-size: 10.5px; line-height: 15px; font-weight: 600;
420
+ color: var(--wd-primary);
421
+ }
422
+ .wd-shell .plan-scenario-open:hover { background: var(--wd-primary-soft); }
423
+ .wd-shell .plan-scenario-open:focus-visible { outline: 2px solid var(--wd-primary-ring); outline-offset: 1px; }
424
+ .wd-shell .sd-back {
425
+ align-self: flex-start; margin-bottom: 2px; padding: 3px 8px;
426
+ border: 1px solid var(--wd-hairline); border-radius: 6px; background: var(--wd-surface); cursor: pointer;
427
+ font-family: inherit; font-size: 10.5px; line-height: 15px; font-weight: 600; color: var(--wd-primary);
428
+ }
429
+ .wd-shell .sd-back:hover { background: var(--wd-primary-soft); }
430
+ .wd-shell .sd-back:focus-visible { outline: 2px solid var(--wd-primary-ring); outline-offset: 1px; }
431
+ .wd-shell .sd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid var(--wd-hairline); }
432
+ .wd-shell .sd-head-no {
433
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
434
+ font-size: 10px; line-height: 15px; font-weight: 650; color: var(--dsw-alias-label-tertiary);
435
+ }
436
+ .wd-shell .sd-head-name { font-size: 14px; line-height: 20px; font-weight: 650; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
437
+ .wd-shell .sd-evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
438
+ .wd-shell .sd-evidence-row {
439
+ display: flex; align-items: baseline; gap: 9px; padding: 7px 10px;
440
+ border-radius: 7px; background: var(--wd-inset);
441
+ }
442
+ .wd-shell .sd-evidence-type { flex: none; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
443
+ .wd-shell .sd-evidence-title { flex: 1; min-width: 0; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
444
+ .wd-shell .sd-evidence-date { flex: none; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
445
+ .wd-shell .sd-evidence-link { flex: none; font-size: 10.5px; color: var(--wd-primary); text-decoration: none; }
446
+ .wd-shell .sd-evidence-link:hover { text-decoration: underline; }
447
+ .wd-shell .sd-customer { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 8px; background: var(--wd-inset); }
448
+ .wd-shell .sd-customer-sync { display: flex; align-items: baseline; gap: 8px; font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
449
+ .wd-shell .sd-customer-date { font-variant-numeric: tabular-nums; }
450
+ .wd-shell .sd-customer-feedback { margin: 0; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); }
451
+ .wd-shell .sd-gate3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
452
+ .wd-shell .sd-gate3-note {
453
+ font-size: 9.5px; line-height: 14px; font-weight: 650; color: var(--wd-red);
454
+ padding: 1px 5px; border-radius: 4px; background: var(--wd-red-soft);
455
+ }
456
+ .wd-shell .sd-linked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
457
+ .wd-shell .sd-linked-row {
458
+ display: grid; grid-template-columns: 82px 34px 76px minmax(0, 1fr); gap: 8px;
459
+ align-items: baseline; padding: 6px 10px; border-radius: 7px; background: var(--wd-inset);
460
+ }
461
+ .wd-shell .sd-linked-date { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
462
+ .wd-shell .sd-linked-seq { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
463
+ .wd-shell .sd-linked-change { font-size: 9.5px; line-height: 14px; font-weight: 600; color: var(--wd-primary); }
464
+ .wd-shell .sd-linked-actual { font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
386
465
  .wd-shell .plan-risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
387
466
  .wd-shell .plan-risk { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--wd-inset); }
388
467
  .wd-shell .plan-risk-dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--wd-slate); }
@@ -125,6 +125,12 @@ export const zh = {
125
125
  scenariosLimitHint: '要求 3–5 个',
126
126
  risksLimitHint: '上限 3 个',
127
127
  emptyField: '(空)',
128
+ // The ledger's `priority` is an English enum (strategic/high/normal). Rendering
129
+ // it raw would read as a code fragment inside a Chinese page.
130
+ priorityStrategic: '战略',
131
+ priorityHigh: '高',
132
+ priorityNormal: '常规',
133
+ priorityUnknown: '未定',
128
134
  riskLevel: '等级',
129
135
  riskMitigation: '应对',
130
136
  round: '第 {round} 轮',
@@ -507,16 +513,42 @@ export const zh = {
507
513
  dtG0Unreviewed: '还没有评审结论',
508
514
  dtPlanTitle: '计划(G1 / G2)',
509
515
  dtPlanCriteria: '成功指标',
510
- dtPlanCriteriaNone: '还没有定义成功指标',
516
+ dtPlanCriteriaStatus: '状态',
517
+ dtPlanScenarioGoal: '目标',
518
+ dtPlanScenarioEvidence: '{count} 项证据',
519
+ dtProgressCountLabel: '{count} 条',
520
+ dtPlanScenarioDetail: '详情',
521
+ dtScenarioBack: '返回总览',
522
+ dtScenarioTitle: '场景详情',
523
+ dtScenarioGoal: '成功目标',
524
+ dtScenarioEvidence: '证据',
525
+ dtScenarioEvidenceNone: '这个场景还没有任何证据。没有证据的场景,在任何讨论里都等于没做过。',
526
+ dtScenarioCustomer: '客户反馈',
527
+ dtScenarioSyncedWith: '同步对象',
528
+ dtScenarioFeedbackEmpty: '还没有记录客户反馈。客户怎么说,比我们怎么测更重要。',
529
+ dtScenarioGate3: 'G3 判定',
530
+ dtScenarioLinked: '关联进展',
531
+ dtScenarioLinkedNone: '还没有进展关联到这个场景。新增进展时用 scenario_ids 引用它。',
532
+ dtScenarioNotFound: '找不到这个场景',
533
+ dtStatusProven: '已证明',
534
+ dtStatusAwaiting: '待客户确认',
535
+ dtStatusNoEvidence: '无证据',
536
+ dtStatusNotStarted: '未开始',
537
+ dtCritProven: '已达成',
538
+ dtCritPartial: '部分达成',
539
+ dtCritFailed: '未达成',
540
+ dtCritUnverified: '未验证',
541
+ dtCriteriaStatusNone: '未验证',
542
+ dtPlanCriteriaNone: '还没有成功指标。至少写 2 项可验收的指标,否则 POC 结束后无法判定成没成。',
511
543
  dtPlanCriteriaCount: '{count} 项(要求 2–3)',
512
544
  dtPlanMetric: '指标',
513
545
  dtPlanBaseline: '基线',
514
546
  dtPlanTarget: '目标',
515
547
  dtPlanScenarios: '验证场景',
516
- dtPlanScenariosNone: '还没有定义验证场景',
548
+ dtPlanScenariosNone: '还没有验证场景。写 3–5 个具体场景,每个都要能对应到证据。',
517
549
  dtPlanScenariosCount: '{count} 个(要求 3–5)',
518
550
  dtPlanRisks: '风险',
519
- dtPlanRisksNone: '没有登记风险',
551
+ dtPlanRisksNone: '没有登记风险。至少写下最可能让这次 POC 失败的那一条。',
520
552
  dtPlanRisksCount: '{count} 个(上限 3)',
521
553
  dtPlanMitigation: '应对',
522
554
  dtPlanPain: '客户痛点',
@@ -661,6 +693,10 @@ export const en = {
661
693
  scenariosLimitHint: '3–5 required',
662
694
  risksLimitHint: 'At most 3',
663
695
  emptyField: '(empty)',
696
+ priorityStrategic: 'Strategic',
697
+ priorityHigh: 'High',
698
+ priorityNormal: 'Normal',
699
+ priorityUnknown: 'Unset',
664
700
  riskLevel: 'Level',
665
701
  riskMitigation: 'Mitigation',
666
702
  round: 'Round {round}',
@@ -1042,16 +1078,42 @@ export const en = {
1042
1078
  dtG0Unreviewed: 'No review conclusion yet',
1043
1079
  dtPlanTitle: 'Plan (G1 / G2)',
1044
1080
  dtPlanCriteria: 'Success criteria',
1045
- dtPlanCriteriaNone: 'No success criterion defined yet',
1081
+ dtPlanCriteriaStatus: 'Status',
1082
+ dtPlanScenarioGoal: 'Goal',
1083
+ dtPlanScenarioEvidence: '{count} evidence',
1084
+ dtProgressCountLabel: '{count} entries',
1085
+ dtPlanScenarioDetail: 'Detail',
1086
+ dtScenarioBack: 'Back to overview',
1087
+ dtScenarioTitle: 'Scenario detail',
1088
+ dtScenarioGoal: 'Success goal',
1089
+ dtScenarioEvidence: 'Evidence',
1090
+ dtScenarioEvidenceNone: 'No evidence for this scenario yet. An unbacked scenario counts as not done.',
1091
+ dtScenarioCustomer: 'Customer feedback',
1092
+ dtScenarioSyncedWith: 'Synced with',
1093
+ dtScenarioFeedbackEmpty: 'No customer feedback yet. What the customer says matters more than what we tested.',
1094
+ dtScenarioGate3: 'G3 verdict',
1095
+ dtScenarioLinked: 'Linked progress',
1096
+ dtScenarioLinkedNone: 'No progress entry references this scenario yet. Cite its id in scenario_ids.',
1097
+ dtScenarioNotFound: 'Scenario not found',
1098
+ dtStatusProven: 'Proven',
1099
+ dtStatusAwaiting: 'Awaiting customer',
1100
+ dtStatusNoEvidence: 'No evidence',
1101
+ dtStatusNotStarted: 'Not started',
1102
+ dtCritProven: 'Met',
1103
+ dtCritPartial: 'Partially met',
1104
+ dtCritFailed: 'Not met',
1105
+ dtCritUnverified: 'Unverified',
1106
+ dtCriteriaStatusNone: 'Unverified',
1107
+ dtPlanCriteriaNone: 'No success criterion yet. Write at least 2 so the pilot can be judged when it ends.',
1046
1108
  dtPlanCriteriaCount: '{count} (2–3 required)',
1047
1109
  dtPlanMetric: 'Metric',
1048
1110
  dtPlanBaseline: 'Baseline',
1049
1111
  dtPlanTarget: 'Target',
1050
1112
  dtPlanScenarios: 'Validation scenarios',
1051
- dtPlanScenariosNone: 'No validation scenario defined yet',
1113
+ dtPlanScenariosNone: 'No validation scenario yet. Write 3–5 concrete ones, each able to point at evidence.',
1052
1114
  dtPlanScenariosCount: '{count} (3–5 required)',
1053
1115
  dtPlanRisks: 'Risks',
1054
- dtPlanRisksNone: 'No risk registered',
1116
+ dtPlanRisksNone: 'No risk registered. Name at least the one most likely to sink this pilot.',
1055
1117
  dtPlanRisksCount: '{count} (max 3)',
1056
1118
  dtPlanMitigation: 'Mitigation',
1057
1119
  dtPlanPain: 'Customer pain',