@skillre/dsh-plugin-work-dashboard 0.0.0-stage → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +253 -0
  3. package/README.md +347 -2
  4. package/UNINSTALL.md +7 -0
  5. package/compatibility.json +155 -0
  6. package/cordis.patch.yml +24 -0
  7. package/docs/DESIGN-0.3.md +122 -0
  8. package/docs/DETAIL.md +1 -0
  9. package/docs/DETAIL.zh.md +1 -0
  10. package/docs/preview.svg +254 -0
  11. package/docs/preview.zh.svg +254 -0
  12. package/icon.svg +17 -0
  13. package/lib/client/api.d.ts +35 -0
  14. package/lib/client/api.js +44 -0
  15. package/lib/client/contracts.d.ts +94 -0
  16. package/lib/client/contracts.js +21 -0
  17. package/lib/client/css/base.d.ts +31 -0
  18. package/lib/client/css/base.js +422 -0
  19. package/lib/client/css/charts.d.ts +14 -0
  20. package/lib/client/css/charts.js +191 -0
  21. package/lib/client/css/detail.d.ts +21 -0
  22. package/lib/client/css/detail.js +399 -0
  23. package/lib/client/css/insights.d.ts +27 -0
  24. package/lib/client/css/insights.js +660 -0
  25. package/lib/client/css/overview.d.ts +22 -0
  26. package/lib/client/css/overview.js +338 -0
  27. package/lib/client/preferences.d.ts +56 -0
  28. package/lib/client/preferences.js +118 -0
  29. package/lib/client/styles.d.ts +17 -0
  30. package/lib/client/styles.js +22 -0
  31. package/lib/client/text.d.ts +32 -0
  32. package/lib/client/text.js +934 -0
  33. package/lib/client/view-contract.d.ts +110 -0
  34. package/lib/client/view-contract.js +28 -0
  35. package/lib/client.js +5389 -0
  36. package/lib/config.d.ts +61 -0
  37. package/lib/config.js +67 -0
  38. package/lib/gap.d.ts +60 -0
  39. package/lib/gap.js +227 -0
  40. package/lib/index.d.ts +40 -0
  41. package/lib/index.js +130 -0
  42. package/lib/repo.d.ts +124 -0
  43. package/lib/repo.js +407 -0
  44. package/lib/risks.d.ts +24 -0
  45. package/lib/risks.js +85 -0
  46. package/lib/skill.d.ts +94 -0
  47. package/lib/skill.js +220 -0
  48. package/lib/store.d.ts +63 -0
  49. package/lib/store.js +494 -0
  50. package/lib/timeline.d.ts +23 -0
  51. package/lib/timeline.js +93 -0
  52. package/lib/transport.d.ts +61 -0
  53. package/lib/transport.js +121 -0
  54. package/lib/types.d.ts +612 -0
  55. package/lib/types.js +62 -0
  56. package/locale/en.json +7 -0
  57. package/locale/zh.json +7 -0
  58. package/package.json +117 -4
  59. package/skills/poc-export/SKILL.md +81 -0
  60. package/skills/poc-export/scripts/export-form.mjs +654 -0
  61. package/skills/poc-ledger/SKILL.md +171 -0
  62. package/skills/poc-submit/SKILL.md +186 -0
@@ -0,0 +1,660 @@
1
+ /**
2
+ * Styles for the two aggregation surfaces.
3
+ *
4
+ * Two ideas drive this sheet:
5
+ *
6
+ * 1. **Aggregation is shown by containment, not by a heading.** A severity
7
+ * lane is a container with a colour rail down its left edge, so the lane's
8
+ * severity is legible from the shape of the block before any text is read.
9
+ * The lane header repeats the count and a share meter so the four lanes
10
+ * compare against each other at a glance, while the rows below stay
11
+ * individually scannable.
12
+ * 2. **A stream is read down a spine.** The timeline cards hang off a
13
+ * continuous vertical line with one node per entry, tinted by recognition
14
+ * state. Month dividers break the spine with a rule, which is what makes
15
+ * "nothing happened in September" visible without counting cards.
16
+ *
17
+ * Both surfaces are inside `.wd-shell`, so every rule is scoped there and
18
+ * nothing leaks into product DOM. Colour comes only from the shared `--wd-*`
19
+ * palette and the `--dsw-alias-*` theme tokens: a lane is red/amber/green/slate
20
+ * and nothing else, so the board can never introduce a sixth severity colour.
21
+ *
22
+ * Class prefixes: `.risk-*` for the board, `.tl-*` for the timeline. The
23
+ * timeline also reuses the shared `.status-pill` for the recognition badge, and
24
+ * the board reuses `.status-pill` for level pills — those are the shell's
25
+ * primitives, so this sheet only adds layout around them.
26
+ */
27
+ export const INSIGHTS_CSS = `
28
+ /* =========================================================================
29
+ Risk board — severity lanes
30
+ ========================================================================= */
31
+
32
+ .wd-shell .risk-board {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: 18px;
36
+ padding: 18px 20px 24px;
37
+ }
38
+
39
+ /* ---------- page header (this surface owns it; the shell does not) ---------- */
40
+ .wd-shell .risk-head,
41
+ .wd-shell .tl-head {
42
+ display: flex;
43
+ align-items: flex-start;
44
+ gap: 16px;
45
+ min-width: 0;
46
+ }
47
+ .wd-shell .risk-head-text,
48
+ .wd-shell .tl-head-text {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 2px;
52
+ min-width: 0;
53
+ flex: 1 1 auto;
54
+ }
55
+ .wd-shell .risk-head-title,
56
+ .wd-shell .tl-head-title {
57
+ margin: 0;
58
+ font-size: 17px;
59
+ line-height: 24px;
60
+ font-weight: 650;
61
+ letter-spacing: -.01em;
62
+ color: var(--dsw-alias-label-primary);
63
+ }
64
+ .wd-shell .risk-head-subtitle,
65
+ .wd-shell .tl-head-subtitle {
66
+ margin: 0;
67
+ font-size: 11.5px;
68
+ line-height: 17px;
69
+ color: var(--dsw-alias-label-secondary);
70
+ }
71
+ .wd-shell .risk-back,
72
+ .wd-shell .tl-back {
73
+ flex: none;
74
+ height: 28px;
75
+ padding: 0 12px;
76
+ border-radius: 7px;
77
+ border: 1px solid var(--wd-border);
78
+ background: var(--wd-surface);
79
+ color: var(--dsw-alias-label-secondary);
80
+ font-family: inherit;
81
+ font-size: 11.5px;
82
+ cursor: pointer;
83
+ transition: background .12s ease, border-color .12s ease, color .12s ease;
84
+ }
85
+ .wd-shell .risk-back:hover,
86
+ .wd-shell .tl-back:hover {
87
+ background: var(--wd-inset);
88
+ border-color: var(--wd-primary-ring);
89
+ color: var(--wd-primary);
90
+ }
91
+ .wd-shell .risk-back:focus-visible,
92
+ .wd-shell .tl-back:focus-visible {
93
+ outline: 2px solid var(--wd-primary);
94
+ outline-offset: 1px;
95
+ }
96
+
97
+ /* ---------- severity distribution figure ---------- */
98
+ .wd-shell .risk-figure,
99
+ .wd-shell .risk-projects {
100
+ display: flex;
101
+ flex-direction: column;
102
+ gap: 8px;
103
+ padding: 13px 15px 14px;
104
+ border-radius: 11px;
105
+ background: var(--wd-surface);
106
+ border: 1px solid var(--wd-hairline);
107
+ box-shadow: var(--wd-shadow-1);
108
+ }
109
+ .wd-shell .risk-figure-head {
110
+ display: flex;
111
+ align-items: baseline;
112
+ gap: 9px;
113
+ min-width: 0;
114
+ }
115
+ .wd-shell .risk-figure-title {
116
+ margin: 0;
117
+ font-size: 11.5px;
118
+ line-height: 16px;
119
+ font-weight: 650;
120
+ letter-spacing: .01em;
121
+ color: var(--dsw-alias-label-primary);
122
+ }
123
+ .wd-shell .risk-figure-note {
124
+ margin-left: auto;
125
+ font-size: 10.5px;
126
+ line-height: 15px;
127
+ color: var(--dsw-alias-label-tertiary);
128
+ font-variant-numeric: tabular-nums;
129
+ text-align: right;
130
+ }
131
+ .wd-shell .risk-caption {
132
+ margin: 0;
133
+ font-size: 10.5px;
134
+ line-height: 15px;
135
+ color: var(--dsw-alias-label-tertiary);
136
+ font-variant-numeric: tabular-nums;
137
+ }
138
+
139
+ /* ---------- lane stack ---------- */
140
+ .wd-shell .risk-lanes {
141
+ display: flex;
142
+ flex-direction: column;
143
+ gap: 10px;
144
+ }
145
+ .wd-shell .risk-lane {
146
+ position: relative;
147
+ display: flex;
148
+ flex-direction: column;
149
+ border-radius: 10px;
150
+ background: var(--wd-surface);
151
+ border: 1px solid var(--wd-hairline);
152
+ box-shadow: var(--wd-shadow-1);
153
+ overflow: hidden;
154
+ /* The rail: severity as the left edge of the whole lane, not as a badge. */
155
+ border-left-width: 3px;
156
+ border-left-style: solid;
157
+ border-left-color: var(--wd-slate);
158
+ }
159
+ .wd-shell .risk-lane[data-level="high"] { border-left-color: var(--wd-red); }
160
+ .wd-shell .risk-lane[data-level="medium"] { border-left-color: var(--wd-amber); }
161
+ .wd-shell .risk-lane[data-level="low"] { border-left-color: var(--wd-green); }
162
+ .wd-shell .risk-lane[data-level="unset"] { border-left-color: var(--wd-slate); }
163
+
164
+ .wd-shell .risk-lane-head {
165
+ display: flex;
166
+ align-items: center;
167
+ gap: 9px;
168
+ padding: 8px 12px 7px;
169
+ background: var(--wd-inset);
170
+ border-bottom: 1px solid var(--wd-hairline);
171
+ }
172
+ .wd-shell .risk-lane-count {
173
+ font-size: 12px;
174
+ line-height: 16px;
175
+ font-weight: 700;
176
+ font-variant-numeric: tabular-nums;
177
+ color: var(--dsw-alias-label-primary);
178
+ }
179
+ .wd-shell .risk-lane[data-level="high"] .risk-lane-count { color: var(--wd-red); }
180
+ .wd-shell .risk-lane[data-level="medium"] .risk-lane-count { color: var(--wd-amber); }
181
+ .wd-shell .risk-lane[data-level="low"] .risk-lane-count { color: var(--wd-green); }
182
+ .wd-shell .risk-lane[data-level="unset"] .risk-lane-count { color: var(--wd-slate); }
183
+ /* The share meter compares lanes; it is deliberately thin and unfilled-chrome. */
184
+ .wd-shell .risk-lane-meter {
185
+ flex: 1 1 auto;
186
+ min-width: 40px;
187
+ max-width: 180px;
188
+ display: block;
189
+ }
190
+ .wd-shell .risk-lane-share {
191
+ margin-left: auto;
192
+ font-size: 10px;
193
+ line-height: 14px;
194
+ color: var(--dsw-alias-label-tertiary);
195
+ font-variant-numeric: tabular-nums;
196
+ }
197
+
198
+ /* ---------- rows ---------- */
199
+ .wd-shell .risk-rows {
200
+ list-style: none;
201
+ margin: 0;
202
+ padding: 0;
203
+ }
204
+ .wd-shell .risk-row-item + .risk-row-item { border-top: 1px solid var(--wd-hairline); }
205
+ .wd-shell .risk-row {
206
+ position: relative;
207
+ display: grid;
208
+ grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
209
+ gap: 14px;
210
+ align-items: start;
211
+ padding: 10px 13px 10px 12px;
212
+ color: inherit;
213
+ /* A severity tint on the row's own left edge, one step quieter than the rail. */
214
+ box-shadow: inset 3px 0 0 var(--wd-slate-soft);
215
+ transition: background .12s ease;
216
+ }
217
+ .wd-shell .risk-row[data-level="high"] { box-shadow: inset 3px 0 0 var(--wd-red-soft); }
218
+ .wd-shell .risk-row[data-level="medium"] { box-shadow: inset 3px 0 0 var(--wd-amber-soft); }
219
+ .wd-shell .risk-row[data-level="low"] { box-shadow: inset 3px 0 0 var(--wd-green-soft); }
220
+ .wd-shell .risk-row:hover { background: var(--wd-inset); }
221
+ /* The row itself is not focusable; the stretched project button is. Ring the
222
+ row so the keyboard user sees which whole row is about to open. */
223
+ .wd-shell .risk-row:focus-within {
224
+ background: var(--wd-inset);
225
+ box-shadow: inset 3px 0 0 var(--wd-primary), inset 0 0 0 1px var(--wd-primary-ring);
226
+ }
227
+
228
+ .wd-shell .risk-row-main {
229
+ display: flex;
230
+ flex-direction: column;
231
+ gap: 3px;
232
+ min-width: 0;
233
+ }
234
+ .wd-shell .risk-name {
235
+ font-size: 12.5px;
236
+ line-height: 18px;
237
+ font-weight: 650;
238
+ color: var(--dsw-alias-label-primary);
239
+ overflow-wrap: anywhere;
240
+ }
241
+ .wd-shell .risk-mitigation {
242
+ display: flex;
243
+ flex-wrap: wrap;
244
+ gap: 5px;
245
+ font-size: 11px;
246
+ line-height: 16px;
247
+ color: var(--dsw-alias-label-secondary);
248
+ overflow-wrap: anywhere;
249
+ }
250
+ .wd-shell .risk-mitigation-label {
251
+ flex: none;
252
+ font-size: 10px;
253
+ line-height: 15px;
254
+ padding: 0 5px;
255
+ border-radius: 4px;
256
+ background: var(--wd-slate-soft);
257
+ color: var(--dsw-alias-label-tertiary);
258
+ }
259
+
260
+ .wd-shell .risk-row-side {
261
+ display: flex;
262
+ flex-direction: column;
263
+ gap: 3px;
264
+ align-items: flex-end;
265
+ min-width: 0;
266
+ }
267
+ /* Stretched link: the button is the row's only control, and its overlay makes
268
+ the whole row clickable. The overlay sits above the row's own background but
269
+ below the gap note, so the note stays selectable. */
270
+ .wd-shell .risk-project {
271
+ display: inline-flex;
272
+ align-items: center;
273
+ gap: 4px;
274
+ max-width: 100%;
275
+ padding: 0;
276
+ border: 0;
277
+ background: transparent;
278
+ font-family: inherit;
279
+ font-size: 11px;
280
+ line-height: 16px;
281
+ color: var(--wd-primary);
282
+ cursor: pointer;
283
+ text-align: right;
284
+ }
285
+ .wd-shell .risk-project::after {
286
+ content: '';
287
+ position: absolute;
288
+ inset: 0;
289
+ }
290
+ .wd-shell .risk-project:hover { text-decoration: underline; }
291
+ .wd-shell .risk-project:focus-visible { outline: none; }
292
+ .wd-shell .risk-project-arrow {
293
+ flex: none;
294
+ opacity: .65;
295
+ transition: transform .12s ease, opacity .12s ease;
296
+ }
297
+ .wd-shell .risk-row:hover .risk-project-arrow { transform: translateX(2px); opacity: 1; }
298
+ .wd-shell .risk-gap {
299
+ position: relative;
300
+ z-index: 1;
301
+ pointer-events: none;
302
+ font-size: 10.5px;
303
+ line-height: 15px;
304
+ color: var(--dsw-alias-label-tertiary);
305
+ font-variant-numeric: tabular-nums;
306
+ text-align: right;
307
+ }
308
+
309
+ /* ---------- empty state ---------- */
310
+ .wd-shell .risk-empty,
311
+ .wd-shell .tl-empty {
312
+ display: flex;
313
+ flex-direction: column;
314
+ align-items: center;
315
+ justify-content: center;
316
+ gap: 6px;
317
+ padding: 34px 20px;
318
+ border-radius: 11px;
319
+ border: 1px dashed var(--wd-hairline);
320
+ background: var(--wd-surface);
321
+ }
322
+ .wd-shell .risk-empty-mark,
323
+ .wd-shell .tl-empty-mark {
324
+ font-size: 18px;
325
+ line-height: 22px;
326
+ color: var(--dsw-alias-label-tertiary);
327
+ }
328
+ .wd-shell .risk-empty-copy,
329
+ .wd-shell .tl-empty-copy {
330
+ margin: 0;
331
+ font-size: 12px;
332
+ line-height: 18px;
333
+ color: var(--dsw-alias-label-secondary);
334
+ text-align: center;
335
+ max-width: 42ch;
336
+ }
337
+
338
+ /* =========================================================================
339
+ Timeline — distribution, silent projects, stream
340
+ ========================================================================= */
341
+
342
+ .wd-shell .tl-page {
343
+ display: flex;
344
+ flex-direction: column;
345
+ gap: 16px;
346
+ padding: 18px 20px 24px;
347
+ }
348
+
349
+ .wd-shell .tl-figure,
350
+ .wd-shell .tl-silent {
351
+ display: flex;
352
+ flex-direction: column;
353
+ gap: 8px;
354
+ padding: 13px 15px 14px;
355
+ border-radius: 11px;
356
+ background: var(--wd-surface);
357
+ border: 1px solid var(--wd-hairline);
358
+ box-shadow: var(--wd-shadow-1);
359
+ }
360
+ .wd-shell .tl-figure-head,
361
+ .wd-shell .tl-silent-head {
362
+ display: flex;
363
+ align-items: baseline;
364
+ gap: 9px;
365
+ min-width: 0;
366
+ }
367
+ .wd-shell .tl-figure-title,
368
+ .wd-shell .tl-silent-title {
369
+ margin: 0;
370
+ font-size: 11.5px;
371
+ line-height: 16px;
372
+ font-weight: 650;
373
+ letter-spacing: .01em;
374
+ color: var(--dsw-alias-label-primary);
375
+ }
376
+ .wd-shell .tl-figure-note,
377
+ .wd-shell .tl-silent-note {
378
+ margin-left: auto;
379
+ font-size: 10.5px;
380
+ line-height: 15px;
381
+ color: var(--dsw-alias-label-tertiary);
382
+ font-variant-numeric: tabular-nums;
383
+ text-align: right;
384
+ }
385
+ .wd-shell .tl-caption {
386
+ margin: 0;
387
+ font-size: 10.5px;
388
+ line-height: 15px;
389
+ color: var(--dsw-alias-label-tertiary);
390
+ font-variant-numeric: tabular-nums;
391
+ }
392
+
393
+ /* ---------- silent projects ---------- */
394
+ .wd-shell .tl-silent {
395
+ border-left: 3px solid var(--wd-amber);
396
+ }
397
+ .wd-shell .tl-silent-title { color: var(--wd-amber); }
398
+ .wd-shell .tl-silent-chips {
399
+ display: flex;
400
+ flex-wrap: wrap;
401
+ gap: 6px;
402
+ }
403
+ .wd-shell .tl-chip-button {
404
+ padding: 3px 10px;
405
+ border-radius: 20px;
406
+ border: 1px solid var(--wd-hairline);
407
+ background: var(--wd-inset);
408
+ color: var(--dsw-alias-label-secondary);
409
+ font-family: inherit;
410
+ font-size: 11.5px;
411
+ line-height: 17px;
412
+ cursor: pointer;
413
+ transition: background .12s ease, color .12s ease, border-color .12s ease;
414
+ }
415
+ .wd-shell .tl-chip-button:hover {
416
+ background: var(--wd-primary-soft);
417
+ border-color: var(--wd-primary-ring);
418
+ color: var(--wd-primary);
419
+ }
420
+ .wd-shell .tl-chip-button:focus-visible {
421
+ outline: 2px solid var(--wd-primary);
422
+ outline-offset: 1px;
423
+ }
424
+ .wd-shell .tl-silent-hint {
425
+ margin: 0;
426
+ font-size: 10.5px;
427
+ line-height: 15px;
428
+ color: var(--dsw-alias-label-tertiary);
429
+ }
430
+
431
+ /* ---------- the stream ---------- */
432
+ .wd-shell .tl-stream {
433
+ display: flex;
434
+ flex-direction: column;
435
+ gap: 14px;
436
+ }
437
+ /* One month section = divider + its cards. The group is the spacing unit, so
438
+ the stream never relies on a margin collapsing between sections. */
439
+ .wd-shell .tl-month-group {
440
+ display: flex;
441
+ flex-direction: column;
442
+ gap: 8px;
443
+ }
444
+
445
+ /* A month divider is a plain row, never sticky: the whole stream is one
446
+ scroll flow owned by the shell, and a sticky row inside it would fight that
447
+ scroll container instead of helping. */
448
+ .wd-shell .tl-month {
449
+ display: flex;
450
+ align-items: center;
451
+ gap: 9px;
452
+ padding: 2px 2px 0;
453
+ }
454
+ .wd-shell .tl-month-label {
455
+ font-size: 12px;
456
+ line-height: 16px;
457
+ font-weight: 700;
458
+ letter-spacing: .02em;
459
+ font-variant-numeric: tabular-nums;
460
+ color: var(--dsw-alias-label-primary);
461
+ }
462
+ .wd-shell .tl-month-count {
463
+ font-size: 10.5px;
464
+ line-height: 15px;
465
+ color: var(--dsw-alias-label-tertiary);
466
+ font-variant-numeric: tabular-nums;
467
+ }
468
+ .wd-shell .tl-month-rule {
469
+ flex: 1 1 auto;
470
+ height: 1px;
471
+ background: var(--wd-hairline);
472
+ }
473
+
474
+ .wd-shell .tl-entries {
475
+ list-style: none;
476
+ margin: 0;
477
+ padding: 0;
478
+ display: flex;
479
+ flex-direction: column;
480
+ }
481
+
482
+ /* Each entry is a two-column row: the gutter owns the spine, the card owns
483
+ the content. The spine is drawn by the gutter's ::before and the node by
484
+ ::after, so no extra DOM node is needed for the connector. */
485
+ .wd-shell .tl-entry {
486
+ display: grid;
487
+ grid-template-columns: 20px minmax(0, 1fr);
488
+ gap: 10px;
489
+ padding-bottom: 10px;
490
+ }
491
+ .wd-shell .tl-entry:last-child { padding-bottom: 0; }
492
+
493
+ .wd-shell .tl-gutter {
494
+ position: relative;
495
+ display: flex;
496
+ align-items: flex-start;
497
+ justify-content: center;
498
+ padding-top: 11px;
499
+ }
500
+ .wd-shell .tl-gutter::before {
501
+ content: '';
502
+ position: absolute;
503
+ top: 0;
504
+ bottom: -10px;
505
+ left: 50%;
506
+ width: 1px;
507
+ margin-left: -.5px;
508
+ background: var(--wd-hairline);
509
+ }
510
+ .wd-shell .tl-entry:last-child .tl-gutter::before { bottom: 50%; }
511
+ .wd-shell .tl-node {
512
+ position: relative;
513
+ z-index: 1;
514
+ width: 9px;
515
+ height: 9px;
516
+ border-radius: 50%;
517
+ background: var(--wd-slate);
518
+ box-shadow: 0 0 0 2px var(--wd-surface);
519
+ }
520
+ .wd-shell .tl-node[data-tone="green"] { background: var(--wd-green); }
521
+ .wd-shell .tl-node[data-tone="amber"] { background: var(--wd-amber); }
522
+ .wd-shell .tl-node[data-tone="red"] { background: var(--wd-red); }
523
+
524
+ .wd-shell .tl-card {
525
+ display: flex;
526
+ flex-direction: column;
527
+ gap: 7px;
528
+ min-width: 0;
529
+ padding: 10px 13px 11px;
530
+ border-radius: 10px;
531
+ background: var(--wd-surface);
532
+ border: 1px solid var(--wd-hairline);
533
+ box-shadow: var(--wd-shadow-1);
534
+ }
535
+ .wd-shell .tl-card-head {
536
+ display: flex;
537
+ align-items: center;
538
+ flex-wrap: wrap;
539
+ gap: 8px;
540
+ min-width: 0;
541
+ }
542
+ .wd-shell .tl-date {
543
+ font-size: 11.5px;
544
+ line-height: 16px;
545
+ font-weight: 700;
546
+ font-variant-numeric: tabular-nums;
547
+ color: var(--dsw-alias-label-primary);
548
+ }
549
+ .wd-shell .tl-type {
550
+ font-size: 10px;
551
+ line-height: 15px;
552
+ padding: 0 6px;
553
+ border-radius: 4px;
554
+ background: var(--wd-slate-soft);
555
+ color: var(--dsw-alias-label-secondary);
556
+ white-space: nowrap;
557
+ }
558
+ .wd-shell .tl-project {
559
+ padding: 0;
560
+ border: 0;
561
+ background: transparent;
562
+ font-family: inherit;
563
+ font-size: 11px;
564
+ line-height: 16px;
565
+ color: var(--wd-primary);
566
+ cursor: pointer;
567
+ text-align: left;
568
+ overflow-wrap: anywhere;
569
+ }
570
+ .wd-shell .tl-project:hover { text-decoration: underline; }
571
+ .wd-shell .tl-project:focus-visible {
572
+ outline: 2px solid var(--wd-primary);
573
+ outline-offset: 1px;
574
+ border-radius: 3px;
575
+ }
576
+ .wd-shell .tl-recog {
577
+ margin-left: auto;
578
+ font-size: 10.5px;
579
+ }
580
+
581
+ /* The body is a definition list: label above value, so a long goal wraps
582
+ under its own label instead of shoving the next field to the right. */
583
+ .wd-shell .tl-fields {
584
+ display: grid;
585
+ grid-template-columns: minmax(0, 1fr);
586
+ gap: 4px;
587
+ margin: 0;
588
+ }
589
+ .wd-shell .tl-field {
590
+ display: grid;
591
+ grid-template-columns: 54px minmax(0, 1fr);
592
+ gap: 9px;
593
+ align-items: baseline;
594
+ min-width: 0;
595
+ }
596
+ .wd-shell .tl-field-label {
597
+ font-size: 10.5px;
598
+ line-height: 16px;
599
+ color: var(--dsw-alias-label-tertiary);
600
+ white-space: nowrap;
601
+ }
602
+ .wd-shell .tl-field-value {
603
+ margin: 0;
604
+ font-size: 12px;
605
+ line-height: 17px;
606
+ color: var(--dsw-alias-label-secondary);
607
+ overflow-wrap: anywhere;
608
+ }
609
+ .wd-shell .tl-field-value[data-emphasis="strong"] {
610
+ color: var(--dsw-alias-label-primary);
611
+ font-weight: 600;
612
+ }
613
+ .wd-shell .tl-field-value[data-emphasis="muted"] { color: var(--dsw-alias-label-secondary); }
614
+ .wd-shell .tl-field-value[data-emphasis="missing"] {
615
+ color: var(--dsw-alias-label-tertiary);
616
+ font-style: italic;
617
+ }
618
+
619
+ /* ---------- footer chips ---------- */
620
+ .wd-shell .tl-chips {
621
+ display: flex;
622
+ flex-wrap: wrap;
623
+ gap: 5px;
624
+ padding-top: 7px;
625
+ border-top: 1px solid var(--wd-hairline);
626
+ margin-top: 1px;
627
+ }
628
+ .wd-shell .tl-chip {
629
+ display: inline-flex;
630
+ align-items: baseline;
631
+ gap: 5px;
632
+ padding: 1px 8px;
633
+ border-radius: 20px;
634
+ background: var(--wd-inset);
635
+ border: 1px solid var(--wd-hairline);
636
+ font-size: 10.5px;
637
+ line-height: 16px;
638
+ color: var(--dsw-alias-label-secondary);
639
+ font-variant-numeric: tabular-nums;
640
+ }
641
+ .wd-shell .tl-chip-label {
642
+ font-size: 9.5px;
643
+ color: var(--dsw-alias-label-tertiary);
644
+ }
645
+
646
+ /* ---------- narrow widths ---------- */
647
+ @media (max-width: 720px) {
648
+ .wd-shell .risk-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
649
+ .wd-shell .risk-row-side { align-items: flex-start; }
650
+ .wd-shell .risk-gap { text-align: left; }
651
+ .wd-shell .risk-lane-meter { display: none; }
652
+ .wd-shell .tl-field { grid-template-columns: minmax(0, 1fr); gap: 0; }
653
+ }
654
+
655
+ @media (prefers-reduced-motion: reduce) {
656
+ .wd-shell .risk-row,
657
+ .wd-shell .tl-chip-button,
658
+ .wd-shell .risk-project-arrow { transition: none; }
659
+ }
660
+ `;