@linxin666/dsh-client-ui-task-board 0.4.8 → 0.4.10

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 (64) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +28 -22
  3. package/README.zh.md +28 -22
  4. package/lib/client.js +1435 -682
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +356 -366
  7. package/lib/types/client/PluginSettingsCard.d.ts +21 -0
  8. package/lib/types/client/TaskBoardSettingsCard.d.ts +7 -0
  9. package/lib/types/client/board/ExecutionLog.d.ts +16 -0
  10. package/lib/types/client/board/TaskForm.d.ts +4 -0
  11. package/lib/types/client/board/VerificationReport.d.ts +2 -15
  12. package/lib/types/client/body-mutations.d.ts +45 -0
  13. package/lib/types/client/locales.d.ts +42 -6
  14. package/lib/types/client/suppress-schedule-row.d.ts +86 -0
  15. package/lib/types/core/controller.d.ts +1 -1
  16. package/lib/types/core/subtask.d.ts +59 -49
  17. package/lib/types/core/tasks.d.ts +5 -8
  18. package/lib/types/core/use-cases/task-update.d.ts +1 -1
  19. package/lib/types/core/workspace-target.d.ts +23 -3
  20. package/lib/types/host/launch-admission.d.ts +8 -9
  21. package/lib/types/host-ledger.d.ts +72 -48
  22. package/lib/types/host-routes.d.ts +49 -0
  23. package/lib/types/host-runner.d.ts +20 -10
  24. package/lib/types/host-service.d.ts +7 -50
  25. package/lib/types/index.d.ts +61 -63
  26. package/lib/types/loopback.d.ts +21 -0
  27. package/lib/types/protocol.d.ts +0 -5
  28. package/lib/types/tool-surface.d.ts +1 -0
  29. package/package.json +25 -25
  30. package/src/client/CardDefaultPresetField.tsx +1 -1
  31. package/src/client/PluginSettingsCard.tsx +78 -18
  32. package/src/client/TaskBoardSettingsCard.tsx +68 -25
  33. package/src/client/board/ExecutionLog.tsx +140 -0
  34. package/src/client/board/LinkSubtaskModal.tsx +1 -9
  35. package/src/client/board/NewTaskModal.tsx +2 -11
  36. package/src/client/board/TaskCard.tsx +45 -23
  37. package/src/client/board/TaskDetail.tsx +407 -261
  38. package/src/client/board/TaskForm.tsx +19 -4
  39. package/src/client/board/VerificationReport.tsx +143 -104
  40. package/src/client/board/task-markdown.module.css +11 -8
  41. package/src/client/board-settings.module.css +35 -7
  42. package/src/client/board.module.css +855 -115
  43. package/src/client/body-mutations.ts +133 -0
  44. package/src/client/index.ts +10 -0
  45. package/src/client/locales.ts +97 -24
  46. package/src/client/settings-card.module.css +71 -10
  47. package/src/client/suppress-schedule-row.ts +198 -0
  48. package/src/core/controller.ts +1 -3
  49. package/src/core/subtask.ts +81 -76
  50. package/src/core/tasks.ts +5 -9
  51. package/src/core/use-cases/task-update.ts +1 -3
  52. package/src/core/workspace-target.ts +27 -3
  53. package/src/host/agent-tools.ts +14 -15
  54. package/src/host/launch-admission.ts +8 -9
  55. package/src/host-ledger.ts +158 -125
  56. package/src/host-routes.ts +65 -2
  57. package/src/host-runner.ts +53 -28
  58. package/src/host-service.ts +42 -127
  59. package/src/index.ts +84 -106
  60. package/src/loopback.ts +32 -0
  61. package/src/protocol.ts +2 -9
  62. package/src/tool-surface.ts +1 -0
  63. package/lib/types/client/board/team-run-promotion.d.ts +0 -26
  64. package/src/client/board/team-run-promotion.ts +0 -39
@@ -45,6 +45,18 @@
45
45
  --dsh-tb-motion-close: 140ms;
46
46
  --dsh-tb-ease: cubic-bezier(0.2, 0, 0, 1);
47
47
 
48
+ /* Card surface geometry. Every consumer below reads these in a grid or flex
49
+ track — the column rail, the card's stripe track, its content track and
50
+ each row's reserved slot height — so a card's alignment is a track
51
+ boundary rather than a per-element pixel nudge. Declared here because the
52
+ label filter row and the detail panel's label list are siblings of the
53
+ columns, not descendants of one. */
54
+ --dsh-tb-rail: 12px;
55
+ --dsh-tb-card-stripe: 3px;
56
+ --dsh-tb-card-inset: 8px;
57
+ --dsh-tb-card-row: 18px;
58
+ --dsh-tb-card-gap: 6px;
59
+
48
60
  display: flex;
49
61
  flex-direction: column;
50
62
  box-sizing: border-box;
@@ -79,9 +91,11 @@
79
91
  margin-left: auto;
80
92
  }
81
93
 
94
+ /* The board's own title sits on the same three-step scale as the detail panel
95
+ (15 title / 13 body / 12 meta); the column area below adds no fourth size. */
82
96
  .boardTitle {
83
97
  margin: 0;
84
- font-size: 16px;
98
+ font-size: 15px;
85
99
  font-weight: 700;
86
100
  color: var(--dsw-alias-label-primary);
87
101
  white-space: nowrap;
@@ -159,11 +173,17 @@
159
173
  overflow: hidden;
160
174
  }
161
175
 
176
+ /* The header's content box starts on the column rail, exactly where the first
177
+ card's left edge starts; the status dot is the header's own leading marker,
178
+ the counterpart of a card's outcome stripe. */
162
179
  .columnHeader {
163
180
  display: flex;
164
181
  align-items: center;
165
- gap: 6px;
166
- padding: 10px 12px;
182
+ gap: 8px;
183
+ padding: 8px var(--dsh-tb-rail);
184
+ /* One height with and without the density switch (the archive column has
185
+ none), so moving between columns never shifts the cards below. */
186
+ min-height: calc(var(--dsh-tb-card-row) + 18px);
167
187
  flex: none;
168
188
  }
169
189
 
@@ -181,11 +201,12 @@
181
201
  .columnCount {
182
202
  flex: none;
183
203
  min-width: 0;
204
+ padding: 0 8px;
184
205
  font-size: 12px;
206
+ line-height: var(--dsh-tb-card-row);
185
207
  color: var(--dsw-alias-label-tertiary);
186
208
  background: var(--dsw-alias-interactive-bg-hover);
187
209
  border-radius: 999px;
188
- padding: 1px 8px;
189
210
  }
190
211
 
191
212
  .statusDot {
@@ -201,18 +222,21 @@
201
222
  .statusDot[data-status='done'] { background: var(--dsw-alias-state-success-primary); }
202
223
  .statusDot[data-status='failed'] { background: var(--dsw-alias-state-error-primary); }
203
224
 
225
+ /* The inset is the same rail the header uses, so a card's left edge lines up
226
+ under the header's content box in every column. */
204
227
  .cards {
205
228
  display: flex;
206
229
  flex-direction: column;
207
230
  gap: 8px;
208
- padding: 2px 8px 10px;
231
+ padding: 2px var(--dsh-tb-rail) 10px;
209
232
  overflow-y: auto;
210
233
  flex: 1;
211
234
  min-height: 0;
212
235
  }
213
236
 
237
+ /* The empty state takes its inset from the column rail like everything else. */
214
238
  .columnEmpty {
215
- padding: 24px 8px;
239
+ padding: 24px 0;
216
240
  text-align: center;
217
241
  font-size: 12px;
218
242
  color: var(--dsw-alias-label-tertiary);
@@ -223,14 +247,22 @@
223
247
  /* The card is an article; the stretched .cardOpen button is its keyboard and
224
248
  accessibility target. Content sits above the button (z-index 1) so the
225
249
  badges keep their own tooltips, and the article's click handler opens the
226
- detail for any click that is not a quick action. */
250
+ detail for any click that is not a quick action.
251
+
252
+ The card is a two-track grid: the outcome stripe owns the first track and
253
+ every piece of content the second. One placement rule below puts all
254
+ children on the content track, so the title row, excerpt, meta line, labels
255
+ and quick actions share one rail instead of each one being nudged into
256
+ place. */
227
257
  .card {
228
258
  position: relative;
229
- display: flex;
259
+ display: grid;
260
+ grid-template-columns: var(--dsh-tb-card-stripe) minmax(0, 1fr);
261
+ column-gap: var(--dsh-tb-card-inset);
262
+ row-gap: var(--dsh-tb-card-gap);
263
+ align-content: start;
230
264
  flex: none;
231
- flex-direction: column;
232
- gap: 6px;
233
- padding: 10px 12px 10px 14px;
265
+ padding: 10px calc(var(--dsh-tb-card-stripe) + var(--dsh-tb-card-inset)) 10px 0;
234
266
  text-align: left;
235
267
  background: var(--dsw-alias-bg-base);
236
268
  border: 1px solid var(--dsw-alias-border-l2);
@@ -242,19 +274,25 @@
242
274
  transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
243
275
  }
244
276
 
277
+ /* One placement rule for every in-flow child: the card's content track. */
245
278
  .card > :not(.cardOpen) {
279
+ grid-column: 2;
280
+ min-width: 0;
246
281
  position: relative;
247
282
  z-index: 1;
248
283
  }
249
284
 
250
285
  /* State stripe: the latest execution's outcome, readable while scanning a
251
- column without reading the run count. No tone (never ran, archived) paints
252
- nothing. */
286
+ column without reading the run count. It is the same token that declares the
287
+ card grid's first track, so the stripe and the content rail cannot drift.
288
+ No tone (never ran, archived) paints nothing. */
253
289
  .card::before {
254
290
  content: '';
255
291
  position: absolute;
256
- inset: 0 auto 0 0;
257
- width: 3px;
292
+ top: 0;
293
+ bottom: 0;
294
+ left: 0;
295
+ width: var(--dsh-tb-card-stripe);
258
296
  background: transparent;
259
297
  pointer-events: none;
260
298
  }
@@ -304,14 +342,16 @@
304
342
  min-width: 0;
305
343
  }
306
344
 
345
+ /* Neutral filled slot on the meta tier: the type prefix is a label, not a
346
+ fourth type size, and its row-tall line box sits it on the title's first
347
+ line without a pixel offset. */
307
348
  .cardKind {
308
349
  flex: none;
309
- margin-top: 1px;
310
- padding: 0 6px;
311
- border-radius: 4px;
312
- font-size: 10px;
350
+ padding: 0 8px;
351
+ border-radius: 999px;
352
+ font-size: 12px;
313
353
  font-weight: 600;
314
- line-height: 16px;
354
+ line-height: var(--dsh-tb-card-row);
315
355
  white-space: nowrap;
316
356
  color: var(--dsw-alias-label-secondary);
317
357
  background: var(--dsw-alias-interactive-bg-hover);
@@ -321,7 +361,7 @@
321
361
  min-width: 0;
322
362
  font-size: 13px;
323
363
  font-weight: 600;
324
- line-height: 1.35;
364
+ line-height: 1.4;
325
365
  overflow: hidden;
326
366
  display: -webkit-box;
327
367
  -webkit-line-clamp: 2;
@@ -329,7 +369,7 @@
329
369
  }
330
370
 
331
371
  .card[data-compact] {
332
- gap: 2px;
372
+ row-gap: 2px;
333
373
  padding-top: 6px;
334
374
  padding-bottom: 6px;
335
375
  }
@@ -363,16 +403,19 @@
363
403
  -webkit-box-orient: vertical;
364
404
  }
365
405
 
366
- /* The meta line holds values that all have to stay readable — the update
367
- stamp, the label/schedule/roll-up chips and the run count — so it wraps
368
- instead of squeezing the stamp down to an unreadable stub on a narrow
369
- column, and the stamp itself keeps its full width. */
406
+ /* The meta line holds values that all have to stay readable — the stamp, the
407
+ label/schedule/roll-up chips — so it wraps instead of squeezing the stamp
408
+ down to an unreadable stub on a narrow column, and the stamp keeps its full
409
+ width. It reserves one row slot, and every chip on it is exactly one slot
410
+ tall, so a state that swaps content in never re-measures the row. */
370
411
  .cardMeta {
371
412
  display: flex;
372
413
  align-items: center;
373
414
  flex-wrap: wrap;
374
415
  gap: 4px 8px;
375
- font-size: 11px;
416
+ min-height: var(--dsh-tb-card-row);
417
+ font-size: 12px;
418
+ line-height: var(--dsh-tb-card-row);
376
419
  color: var(--dsw-alias-label-tertiary);
377
420
  }
378
421
 
@@ -382,6 +425,8 @@
382
425
  overflow: hidden;
383
426
  text-overflow: ellipsis;
384
427
  white-space: nowrap;
428
+ /* Tabular figures keep a ticking stamp from re-measuring the row. */
429
+ font-variant-numeric: tabular-nums;
385
430
  }
386
431
 
387
432
  .cardSchedule {
@@ -390,17 +435,27 @@
390
435
  gap: 4px;
391
436
  flex: none;
392
437
  min-width: 0;
438
+ height: var(--dsh-tb-card-row);
439
+ padding: 0 8px;
393
440
  font-size: 12px;
394
441
  line-height: 1;
395
442
  white-space: nowrap;
396
- padding: 2px 6px;
397
443
  border-radius: 999px;
398
444
  color: var(--dsw-alias-label-secondary);
399
445
  background: var(--dsw-alias-interactive-bg-hover);
400
446
  }
401
447
 
448
+ /* The run line: one filled result badge beside the run count, both inside the
449
+ same fixed slot, so a settled run never re-measures the row it sits on. */
402
450
  .cardRun {
451
+ display: inline-flex;
452
+ align-items: center;
453
+ gap: 6px;
403
454
  flex: none;
455
+ height: var(--dsh-tb-card-row);
456
+ font-size: 12px;
457
+ line-height: var(--dsh-tb-card-row);
458
+ color: var(--dsw-alias-label-tertiary);
404
459
  }
405
460
 
406
461
  .cardRun[data-declared] {
@@ -408,27 +463,52 @@
408
463
  text-underline-offset: 2px;
409
464
  }
410
465
 
411
- .cardRun[data-result='failed'] {
412
- color: var(--dsw-alias-state-error-primary);
466
+ /* The detail panel's badge slot, on the card: the outcome's secondary surface
467
+ carries the outcome's primary colour as text, so running, succeeded, failed
468
+ and cancelled all read with one weight instead of a filled/unfilled mix. */
469
+ .cardResult {
470
+ flex: none;
471
+ padding: 0 8px;
472
+ border-radius: 999px;
473
+ font-size: 12px;
474
+ font-weight: 600;
475
+ line-height: var(--dsh-tb-card-row);
476
+ color: var(--dsw-alias-state-warn-primary);
477
+ background: var(--dsw-alias-state-warn-secondary);
413
478
  }
414
479
 
415
- .cardRun[data-result='succeeded'] {
480
+ .cardResult[data-result='succeeded'] {
416
481
  color: var(--dsw-alias-state-success-primary);
482
+ background: var(--dsw-alias-state-success-secondary);
483
+ }
484
+
485
+ .cardResult[data-result='failed'] {
486
+ color: var(--dsw-alias-state-error-primary);
487
+ background: var(--dsw-alias-state-error-secondary);
488
+ }
489
+
490
+ .cardResult[data-result='cancelled'] {
491
+ color: var(--dsw-alias-label-secondary);
492
+ background: var(--dsw-alias-interactive-bg-hover);
417
493
  }
418
494
 
495
+ /* The session mark keeps the row slot whether it is an action or an inert
496
+ stamp, so a card with a session and a card without one line up. */
419
497
  .cardSession {
420
498
  display: inline-flex;
421
499
  align-items: center;
500
+ justify-content: center;
422
501
  flex: none;
502
+ width: var(--dsh-tb-card-row);
503
+ height: var(--dsh-tb-card-row);
423
504
  color: var(--dsw-alias-state-business-primary);
424
505
  }
425
506
 
426
- /* A quick action on a card: a compact icon button above the open control. */
507
+ /* A quick action on a card: an 18px glyph box on the status rail whose pointer
508
+ target is the board's 44px minimum, expanded exactly like the header's icon
509
+ buttons, so the visible box never has to grow. */
427
510
  .cardAction {
428
- justify-content: center;
429
- width: 22px;
430
- height: 22px;
431
- margin: -4px -4px -4px 0;
511
+ position: relative;
432
512
  padding: 0;
433
513
  border: 0;
434
514
  border-radius: 6px;
@@ -437,13 +517,23 @@
437
517
  font-family: inherit;
438
518
  }
439
519
 
520
+ .cardAction::after {
521
+ content: '';
522
+ position: absolute;
523
+ left: 50%;
524
+ top: 50%;
525
+ width: var(--dsh-tb-hit-size);
526
+ height: var(--dsh-tb-hit-size);
527
+ transform: translate(-50%, -50%);
528
+ }
529
+
440
530
  .cardAction:hover {
441
531
  background: var(--dsw-alias-interactive-bg-hover);
442
532
  }
443
533
 
444
534
  .cardAction:focus-visible {
445
535
  outline: 2px solid var(--dsw-alias-state-business-primary);
446
- outline-offset: 1px;
536
+ outline-offset: 2px;
447
537
  }
448
538
 
449
539
  /* Recency groups inside a settled column. */
@@ -453,12 +543,14 @@
453
543
  gap: 6px;
454
544
  }
455
545
 
546
+ /* Group headers sit on the same rail as the cards they fold. */
456
547
  .cardGroupHeader {
457
548
  display: flex;
458
549
  align-items: center;
459
550
  gap: 6px;
460
- padding: 4px 2px 0;
461
- font-size: 11px;
551
+ padding: 4px 0 0;
552
+ min-height: var(--dsh-tb-card-row);
553
+ font-size: 12px;
462
554
  font-weight: 600;
463
555
  color: var(--dsw-alias-label-tertiary);
464
556
  }
@@ -469,17 +561,19 @@
469
561
 
470
562
  .cardGroupHeader .linkButton {
471
563
  margin-left: auto;
472
- font-size: 11px;
564
+ font-size: 12px;
473
565
  }
474
566
 
475
- /* Per-column density switch in the column header. */
567
+ /* Per-column density switch in the column header: one row slot, 44px pointer
568
+ target from the same expansion the card's quick action uses. */
476
569
  .densityToggle {
570
+ position: relative;
477
571
  display: inline-flex;
478
572
  align-items: center;
479
573
  justify-content: center;
480
574
  flex: none;
481
- width: 22px;
482
- height: 22px;
575
+ width: var(--dsh-tb-card-row);
576
+ height: var(--dsh-tb-card-row);
483
577
  padding: 0;
484
578
  border: 0;
485
579
  border-radius: 6px;
@@ -488,6 +582,16 @@
488
582
  cursor: pointer;
489
583
  }
490
584
 
585
+ .densityToggle::after {
586
+ content: '';
587
+ position: absolute;
588
+ left: 50%;
589
+ top: 50%;
590
+ width: var(--dsh-tb-hit-size);
591
+ height: var(--dsh-tb-hit-size);
592
+ transform: translate(-50%, -50%);
593
+ }
594
+
491
595
  .densityToggle:hover,
492
596
  .densityToggle[data-active='true'] {
493
597
  color: var(--dsw-alias-label-primary);
@@ -496,17 +600,68 @@
496
600
 
497
601
  .densityToggle:focus-visible {
498
602
  outline: 2px solid var(--dsw-alias-state-business-primary);
499
- outline-offset: 1px;
603
+ outline-offset: 2px;
604
+ }
605
+
606
+ /* The status rail exists on every full card — idle, running, settled, archived,
607
+ folded into a group — with one reserved slot height. A run that starts adds a
608
+ label and a spinner inside that slot instead of growing the card. */
609
+ .cardStatus {
610
+ display: flex;
611
+ align-items: center;
612
+ gap: 8px;
613
+ min-height: var(--dsh-tb-card-row);
614
+ font-size: 12px;
615
+ line-height: var(--dsh-tb-card-row);
616
+ color: var(--dsw-alias-label-tertiary);
617
+ }
618
+
619
+ /* The two zones of the rail: the state text and the result on the leading
620
+ side, then the reserved spinner box and the quick action. */
621
+ .cardStatusText {
622
+ display: flex;
623
+ align-items: center;
624
+ gap: 8px;
625
+ flex: 0 1 auto;
626
+ min-width: 0;
627
+ }
628
+
629
+ .cardStatusTrail {
630
+ display: flex;
631
+ align-items: center;
632
+ gap: 8px;
633
+ flex: none;
634
+ }
635
+
636
+ .cardRuns {
637
+ font-variant-numeric: tabular-nums;
638
+ white-space: nowrap;
500
639
  }
501
640
 
502
641
  .cardRunningLabel {
503
- font-size: 11px;
642
+ flex: 0 1 auto;
643
+ min-width: 0;
644
+ overflow: hidden;
645
+ text-overflow: ellipsis;
646
+ white-space: nowrap;
647
+ font-size: 12px;
504
648
  color: var(--dsw-alias-state-warn-primary);
505
649
  }
506
650
 
651
+ /* Reserved spinner box: its size is the same whether or not a run is open, so
652
+ the trailing edge of the rail never moves. */
653
+ .cardSpinnerSlot {
654
+ display: inline-flex;
655
+ align-items: center;
656
+ justify-content: center;
657
+ flex: none;
658
+ width: var(--dsh-tb-card-row);
659
+ height: var(--dsh-tb-card-row);
660
+ }
661
+
507
662
  .cardSpinner {
508
- width: 10px;
509
- height: 10px;
663
+ width: 12px;
664
+ height: 12px;
510
665
  flex: none;
511
666
  border: 2px solid var(--dsw-alias-state-warn-primary);
512
667
  border-top-color: transparent;
@@ -724,7 +879,7 @@
724
879
 
725
880
  .modalTitle {
726
881
  margin: 0;
727
- font-size: 15px;
882
+ font-size: 16px;
728
883
  font-weight: 700;
729
884
  }
730
885
 
@@ -788,7 +943,7 @@
788
943
 
789
944
  .tagManageCount {
790
945
  flex: none;
791
- font-size: 11px;
946
+ font-size: 12px;
792
947
  color: var(--dsw-alias-label-tertiary);
793
948
  }
794
949
 
@@ -799,7 +954,7 @@
799
954
 
800
955
  .tagManageMerge {
801
956
  flex: 1 0 100%;
802
- font-size: 11px;
957
+ font-size: 12px;
803
958
  color: var(--dsw-alias-label-tertiary);
804
959
  }
805
960
 
@@ -809,6 +964,13 @@
809
964
  * every collapsed header carries a one-line summary of what it holds. The
810
965
  * body keeps an overflow fallback for tiny viewports. The chevron is drawn
811
966
  * with borders (no glyph), so no font or emoji can change it.
967
+ *
968
+ * The region is the SAME disclosure contract the card panel's folds use: the
969
+ * same markup (data-open, aria-expanded/aria-controls, one summary track), a
970
+ * 12px header row, a label that shrinks and ellipsizes before the summary
971
+ * does, a summary held on the one right-hand track by its auto margin, and a
972
+ * 44px pointer target expanded past the row. Only the spacing rhythm around
973
+ * the regions is the dialog's own, at the dialog's control geometry.
812
974
  * ----------------------------------------------------------------------------- */
813
975
 
814
976
  .modalBody {
@@ -826,27 +988,36 @@
826
988
  flex: none;
827
989
  }
828
990
 
991
+ /* A row is shorter than its 44px target, so the section stops clipping and the
992
+ header carries the section's inner radius itself — which is what
993
+ `overflow: hidden` used to do. */
829
994
  .formSection {
830
995
  display: flex;
831
996
  flex-direction: column;
832
997
  border: 1px solid var(--dsw-alias-separator-primary);
833
998
  border-radius: 10px;
834
- overflow: hidden;
999
+ overflow: visible;
835
1000
  }
836
1001
 
1002
+ /* 28px row on the dialog's 30px control height (plus the section border). */
837
1003
  .formSectionHeader {
1004
+ position: relative;
1005
+ box-sizing: border-box;
838
1006
  display: flex;
839
1007
  align-items: center;
840
1008
  gap: 8px;
841
1009
  width: 100%;
842
- padding: 7px 10px;
1010
+ min-height: 28px;
1011
+ padding: 6px 10px;
843
1012
  font-family: inherit;
844
- font-size: 12.5px;
1013
+ font-size: 12px;
1014
+ line-height: 16px;
845
1015
  font-weight: 600;
846
1016
  color: var(--dsw-alias-label-primary);
847
1017
  text-align: left;
848
1018
  background: transparent;
849
1019
  border: 0;
1020
+ border-radius: 9px;
850
1021
  cursor: pointer;
851
1022
  }
852
1023
 
@@ -854,6 +1025,22 @@
854
1025
  background: var(--dsw-alias-bg-mask-1);
855
1026
  }
856
1027
 
1028
+ .formSection[data-open='true'] .formSectionHeader {
1029
+ border-radius: 9px 9px 0 0;
1030
+ }
1031
+
1032
+ /* Pointer target: the board's 44px minimum, expanded past the row exactly like
1033
+ the panel's fold row and the board's card actions. */
1034
+ .formSectionHeader::after {
1035
+ content: '';
1036
+ position: absolute;
1037
+ left: 50%;
1038
+ top: 50%;
1039
+ width: var(--dsh-tb-hit-size);
1040
+ height: var(--dsh-tb-hit-size);
1041
+ transform: translate(-50%, -50%);
1042
+ }
1043
+
857
1044
  .formSectionChevron {
858
1045
  flex: none;
859
1046
  width: 0;
@@ -869,13 +1056,22 @@
869
1056
  transform: rotate(90deg);
870
1057
  }
871
1058
 
1059
+ /* Title and summary both shrink, so a long summary never takes the row: the
1060
+ label keeps its own width and the line that gives way is the one that
1061
+ ellipsizes. The summary's auto margin is what puts every region's summary on
1062
+ the dialog's one right-hand track. */
872
1063
  .formSectionTitle {
873
- flex: none;
1064
+ flex: 0 1 auto;
1065
+ min-width: 0;
1066
+ overflow: hidden;
1067
+ text-overflow: ellipsis;
1068
+ white-space: nowrap;
874
1069
  }
875
1070
 
876
1071
  .formSectionSummary {
877
- flex: 1 1 auto;
1072
+ flex: 0 1 auto;
878
1073
  min-width: 0;
1074
+ margin-left: auto;
879
1075
  overflow: hidden;
880
1076
  font-weight: 400;
881
1077
  color: var(--dsw-alias-label-tertiary);
@@ -949,12 +1145,22 @@
949
1145
  color: var(--dsw-alias-state-error-primary);
950
1146
  }
951
1147
 
952
- /* --- detail ------------------------------------------------------------------- */
1148
+ /* --- detail -------------------------------------------------------------------
1149
+ * Two columns on a wide panel, one column under 1024px: the card's content
1150
+ * (description, prompt, labels, subtasks, freeze/handover) reads on the left and
1151
+ * what the board does with it (execution settings, schedule, history, status) on
1152
+ * the right. Both columns open on the same baseline, and every padding and gap
1153
+ * here is a multiple of 8 so the two tracks keep one rhythm.
1154
+ *
1155
+ * The view's whole type scale is three steps: 15 title, 13 body, 12 meta.
1156
+ * Hierarchy inside that scale comes from weight and the label colour role,
1157
+ * never from a fourth size.
1158
+ * --------------------------------------------------------------------------- */
953
1159
 
954
1160
  .detail {
955
1161
  display: flex;
956
1162
  flex-direction: column;
957
- width: min(640px, calc(100vw - 48px));
1163
+ width: min(960px, calc(100vw - 48px));
958
1164
  max-height: calc(100vh - 80px);
959
1165
  background: var(--dsw-alias-bg-base);
960
1166
  border: 1px solid var(--dsw-alias-border-l2);
@@ -965,10 +1171,12 @@
965
1171
  }
966
1172
 
967
1173
  .detailHeader {
1174
+ position: relative;
1175
+ z-index: 1;
968
1176
  display: flex;
969
1177
  align-items: center;
970
- gap: 10px;
971
- padding: 14px 18px;
1178
+ gap: 8px;
1179
+ padding: 16px 24px;
972
1180
  border-bottom: 1px solid var(--dsw-alias-separator-primary);
973
1181
  flex: none;
974
1182
  }
@@ -976,8 +1184,10 @@
976
1184
  .detailTitle {
977
1185
  margin: 0;
978
1186
  flex: 1;
1187
+ min-width: 0;
979
1188
  font-size: 15px;
980
1189
  font-weight: 700;
1190
+ line-height: 1.4;
981
1191
  overflow-wrap: anywhere;
982
1192
  }
983
1193
 
@@ -1006,26 +1216,60 @@
1006
1216
  }
1007
1217
 
1008
1218
  .detailBody {
1009
- padding: 14px 18px;
1219
+ padding: 16px 24px 24px;
1010
1220
  overflow-y: auto;
1011
1221
  display: flex;
1012
1222
  flex-direction: column;
1013
1223
  gap: 16px;
1014
1224
  flex: 1;
1225
+ min-height: 0;
1226
+ }
1227
+
1228
+ .detailColumns {
1229
+ display: grid;
1230
+ grid-template-columns: minmax(0, 1fr);
1231
+ align-items: start;
1232
+ gap: 24px;
1233
+ }
1234
+
1235
+ .detailColumn {
1236
+ display: flex;
1237
+ flex-direction: column;
1238
+ gap: 16px;
1239
+ min-width: 0;
1240
+ }
1241
+
1242
+ /* The panel's folded regions read as one list. A group container — not a
1243
+ per-row margin — owns the tighter spacing, so the 8px between two folds
1244
+ cannot leak onto the sections above and below them: those keep the panel's
1245
+ 16px section rhythm because they are siblings of the group, not of a fold. */
1246
+ .detailFolds {
1247
+ display: flex;
1248
+ flex-direction: column;
1249
+ gap: 8px;
1250
+ min-width: 0;
1251
+ }
1252
+
1253
+ /* The two tracks only exist while the panel can carry them; below this the
1254
+ reading order is the single column above. */
1255
+ @media (min-width: 1024px) {
1256
+ .detailColumns {
1257
+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
1258
+ }
1015
1259
  }
1016
1260
 
1017
1261
  .detailSection {
1018
1262
  display: flex;
1019
1263
  flex-direction: column;
1020
- gap: 6px;
1264
+ gap: 8px;
1265
+ min-width: 0;
1021
1266
  }
1022
1267
 
1023
1268
  .detailSection h4 {
1024
1269
  margin: 0;
1025
1270
  font-size: 12px;
1026
1271
  font-weight: 700;
1027
- color: var(--dsw-alias-label-tertiary);
1028
- text-transform: none;
1272
+ color: var(--dsw-alias-label-secondary);
1029
1273
  }
1030
1274
 
1031
1275
  .detailText {
@@ -1037,6 +1281,21 @@
1037
1281
  overflow-wrap: anywhere;
1038
1282
  }
1039
1283
 
1284
+ /* The view's controls are shared with the board's form dialogs, where this
1285
+ scale does not apply; inside the panel they read as body copy or as meta so
1286
+ the three-step budget holds. */
1287
+ .detailBody .scheduleInput,
1288
+ .detailBody .schedulePreset,
1289
+ .detailBody .promptBlock {
1290
+ font-size: 13px;
1291
+ }
1292
+
1293
+ .detailBody .scheduleZone,
1294
+ .detailBody .scheduleMeta,
1295
+ .detailBody .cardTag {
1296
+ font-size: 12px;
1297
+ }
1298
+
1040
1299
  /* --- scheduled runs ---------------------------------------------------------- */
1041
1300
 
1042
1301
  .scheduleToggle {
@@ -1063,7 +1322,6 @@
1063
1322
  flex: 1;
1064
1323
  min-width: 0;
1065
1324
  font-family: var(--dsw-font-markdown-code-block-small);
1066
- font-size: 12.5px;
1067
1325
  }
1068
1326
 
1069
1327
  .scheduleInputInvalid {
@@ -1079,7 +1337,6 @@
1079
1337
  box-sizing: border-box;
1080
1338
  height: var(--dsh-tb-control-h);
1081
1339
  padding: 0 8px;
1082
- font-size: 12.5px;
1083
1340
  color: var(--dsw-alias-label-primary);
1084
1341
  background: var(--dsw-specific-input-major);
1085
1342
  border: 1px solid var(--dsw-alias-border-l2);
@@ -1093,7 +1350,6 @@
1093
1350
  display: flex;
1094
1351
  align-items: center;
1095
1352
  gap: 8px;
1096
- font-size: 12.5px;
1097
1353
  color: var(--dsw-alias-label-secondary);
1098
1354
  }
1099
1355
 
@@ -1104,7 +1360,6 @@
1104
1360
 
1105
1361
  .scheduleMeta {
1106
1362
  margin: 0;
1107
- font-size: 12px;
1108
1363
  color: var(--dsw-alias-label-secondary);
1109
1364
  overflow-wrap: anywhere;
1110
1365
  }
@@ -1112,7 +1367,6 @@
1112
1367
  .promptBlock {
1113
1368
  margin: 0;
1114
1369
  padding: 10px 12px;
1115
- font-size: 12.5px;
1116
1370
  line-height: 1.5;
1117
1371
  font-family: var(--dsw-font-markdown-code-block-small);
1118
1372
  color: var(--dsw-alias-label-primary);
@@ -1157,6 +1411,21 @@
1157
1411
  align-self: flex-start;
1158
1412
  }
1159
1413
 
1414
+ /* --- execution history -------------------------------------------------------
1415
+ * One row per run, two lines each: identity on the head line (status, start and
1416
+ * end in one absolute format, the session jump) and the evidence the run
1417
+ * produced underneath. The newest five rows are always visible; the rest sit
1418
+ * behind one disclosure whose open and close legs are the same motion reversed
1419
+ * (see `dshTbRowsIn` / `dshTbRowsOut`).
1420
+ * --------------------------------------------------------------------------- */
1421
+
1422
+ .executionLog {
1423
+ display: flex;
1424
+ flex-direction: column;
1425
+ gap: 8px;
1426
+ min-width: 0;
1427
+ }
1428
+
1160
1429
  .executionList {
1161
1430
  list-style: none;
1162
1431
  margin: 0;
@@ -1164,23 +1433,50 @@
1164
1433
  display: flex;
1165
1434
  flex-direction: column;
1166
1435
  gap: 8px;
1436
+ min-width: 0;
1437
+ }
1438
+
1439
+ .executionExtra {
1440
+ display: flex;
1441
+ flex-direction: column;
1442
+ gap: 8px;
1443
+ min-width: 0;
1167
1444
  }
1168
1445
 
1169
1446
  .executionRow {
1170
1447
  display: flex;
1171
- align-items: center;
1172
- gap: 10px;
1173
- padding: 8px 10px;
1448
+ flex-direction: column;
1449
+ gap: 8px;
1450
+ padding: 10px 12px;
1174
1451
  border: 1px solid var(--dsw-alias-border-l1);
1175
1452
  border-radius: 8px;
1453
+ min-width: 0;
1454
+ }
1455
+
1456
+ .executionRowHead {
1457
+ display: flex;
1458
+ align-items: center;
1176
1459
  flex-wrap: wrap;
1460
+ gap: 8px;
1461
+ min-width: 0;
1462
+ }
1463
+
1464
+ .executionRowEvidence {
1465
+ display: flex;
1466
+ flex-direction: column;
1467
+ gap: 6px;
1468
+ min-width: 0;
1177
1469
  }
1178
1470
 
1471
+ /* One filled slot per outcome: the secondary state surface carries the state
1472
+ colour as text, so running, succeeded, failed and cancelled read with the
1473
+ same weight instead of mixing a filled and an unfilled badge. */
1179
1474
  .executionBadge {
1180
1475
  flex: none;
1181
1476
  padding: 1px 8px;
1182
- font-size: 11px;
1477
+ font-size: 12px;
1183
1478
  font-weight: 600;
1479
+ line-height: 18px;
1184
1480
  border-radius: 999px;
1185
1481
  color: var(--dsw-alias-state-warn-primary);
1186
1482
  background: var(--dsw-alias-state-warn-secondary);
@@ -1188,53 +1484,445 @@
1188
1484
 
1189
1485
  .executionBadge[data-result='succeeded'] {
1190
1486
  color: var(--dsw-alias-state-success-primary);
1191
- background: transparent;
1487
+ background: var(--dsw-alias-state-success-secondary);
1192
1488
  }
1193
1489
 
1194
1490
  .executionBadge[data-result='failed'] {
1195
1491
  color: var(--dsw-alias-state-error-primary);
1196
- background: transparent;
1492
+ background: var(--dsw-alias-state-error-secondary);
1197
1493
  }
1198
1494
 
1199
1495
  .executionBadge[data-result='cancelled'] {
1200
- color: var(--dsw-alias-label-tertiary);
1201
- background: transparent;
1496
+ color: var(--dsw-alias-label-secondary);
1497
+ background: var(--dsw-alias-interactive-bg-hover);
1202
1498
  }
1203
1499
 
1204
1500
  .executionTimes {
1205
1501
  font-size: 12px;
1502
+ line-height: 1.5;
1206
1503
  color: var(--dsw-alias-label-secondary);
1504
+ overflow-wrap: anywhere;
1207
1505
  }
1208
1506
 
1209
1507
  .executionError {
1210
- width: 100%;
1211
1508
  font-size: 12px;
1509
+ line-height: 1.5;
1212
1510
  color: var(--dsw-alias-state-error-primary);
1213
1511
  overflow-wrap: anywhere;
1214
1512
  }
1215
1513
 
1216
- .moveRow {
1217
- display: flex;
1218
- gap: 8px;
1219
- flex-wrap: wrap;
1514
+ /* The session jump rides the row's head line, pushed to its trailing edge; its
1515
+ pointer target is grown to the 44px minimum without moving the glyph. */
1516
+ .executionSession {
1517
+ position: relative;
1518
+ display: inline-flex;
1519
+ align-items: center;
1520
+ gap: 4px;
1521
+ margin-left: auto;
1522
+ padding: 0 2px;
1523
+ font-family: inherit;
1524
+ font-size: 12px;
1525
+ color: var(--dsw-alias-state-business-primary);
1526
+ background: none;
1527
+ border: none;
1528
+ cursor: pointer;
1529
+ white-space: nowrap;
1220
1530
  }
1221
1531
 
1222
- .detailFooter {
1223
- display: flex;
1532
+ .executionSession::after {
1533
+ content: '';
1534
+ position: absolute;
1535
+ left: 50%;
1536
+ top: 50%;
1537
+ width: 100%;
1538
+ height: var(--dsh-tb-hit-size);
1539
+ transform: translate(-50%, -50%);
1540
+ }
1541
+
1542
+ .executionSession:hover {
1543
+ text-decoration: underline;
1544
+ }
1545
+
1546
+ .executionDisclosure {
1547
+ display: inline-flex;
1224
1548
  align-items: center;
1225
- gap: 10px;
1226
- padding: 12px 18px;
1227
- border-top: 1px solid var(--dsw-alias-separator-primary);
1549
+ gap: 6px;
1550
+ align-self: flex-start;
1551
+ }
1552
+
1553
+ /* One disclosure chevron for every folded region of the panel: drawn from
1554
+ borders so it never depends on a glyph font, and it turns by the same 120ms
1555
+ motion the rest of the board uses. */
1556
+ .disclosureChevron {
1228
1557
  flex: none;
1558
+ width: 5px;
1559
+ height: 5px;
1560
+ border-right: 1.5px solid currentColor;
1561
+ border-bottom: 1.5px solid currentColor;
1562
+ transform: rotate(45deg);
1563
+ transition: transform 120ms var(--dsh-tb-ease);
1229
1564
  }
1230
1565
 
1231
- .detailMeta {
1232
- margin-left: auto;
1233
- font-size: 11px;
1234
- color: var(--dsw-alias-label-tertiary);
1566
+ .disclosureChevron[data-open='true'] {
1567
+ transform: rotate(225deg);
1235
1568
  }
1236
1569
 
1237
- /* --- constrained board containers ------------------------------------------ */
1570
+ /* --- acceptance report -------------------------------------------------------
1571
+ * The row carries the verdict only. Everything the board decided on stays one
1572
+ * press away inside the fold: counts, judge route, per-criterion scores, the
1573
+ * findings, the evidence scope and the usage are all rendered there, unchanged.
1574
+ * --------------------------------------------------------------------------- */
1575
+
1576
+ .verifyReport {
1577
+ display: flex;
1578
+ flex-direction: column;
1579
+ gap: 8px;
1580
+ min-width: 0;
1581
+ }
1582
+
1583
+ .verifyBadge {
1584
+ position: relative;
1585
+ display: inline-flex;
1586
+ align-items: center;
1587
+ gap: 6px;
1588
+ align-self: flex-start;
1589
+ max-width: 100%;
1590
+ padding: 2px 10px;
1591
+ font-family: inherit;
1592
+ font-size: 12px;
1593
+ font-weight: 600;
1594
+ line-height: 18px;
1595
+ color: var(--dsw-alias-label-secondary);
1596
+ background: var(--dsw-alias-interactive-bg-hover);
1597
+ border: 1px solid var(--dsw-alias-border-l2);
1598
+ border-radius: 999px;
1599
+ cursor: pointer;
1600
+ }
1601
+
1602
+ .verifyBadge::after {
1603
+ content: '';
1604
+ position: absolute;
1605
+ left: 0;
1606
+ right: 0;
1607
+ top: 50%;
1608
+ height: var(--dsh-tb-hit-size);
1609
+ transform: translateY(-50%);
1610
+ }
1611
+
1612
+ .verifyBadge[data-tone='warn'] {
1613
+ color: var(--dsw-alias-state-warn-primary);
1614
+ background: var(--dsw-alias-state-warn-secondary);
1615
+ border-color: transparent;
1616
+ }
1617
+
1618
+ .verifyBadge[data-tone='success'] {
1619
+ color: var(--dsw-alias-state-success-primary);
1620
+ background: var(--dsw-alias-state-success-secondary);
1621
+ border-color: transparent;
1622
+ }
1623
+
1624
+ .verifyBadge[data-tone='error'] {
1625
+ color: var(--dsw-alias-state-error-primary);
1626
+ background: var(--dsw-alias-state-error-secondary);
1627
+ border-color: transparent;
1628
+ }
1629
+
1630
+ .verifyVerdict {
1631
+ font-weight: 700;
1632
+ overflow-wrap: anywhere;
1633
+ }
1634
+
1635
+ .verifyPanel {
1636
+ display: flex;
1637
+ flex-direction: column;
1638
+ gap: 8px;
1639
+ padding: 10px 12px;
1640
+ background: var(--dsw-alias-bg-layer-2);
1641
+ border: 1px solid var(--dsw-alias-border-l1);
1642
+ border-radius: 8px;
1643
+ min-width: 0;
1644
+ }
1645
+
1646
+ .attemptRow {
1647
+ display: flex;
1648
+ flex-direction: column;
1649
+ gap: 6px;
1650
+ padding: 8px 10px;
1651
+ background: var(--dsw-alias-bg-base);
1652
+ border: 1px solid var(--dsw-alias-border-l1);
1653
+ border-radius: 8px;
1654
+ min-width: 0;
1655
+ }
1656
+
1657
+ .attemptHead {
1658
+ display: flex;
1659
+ align-items: center;
1660
+ flex-wrap: wrap;
1661
+ gap: 8px;
1662
+ min-width: 0;
1663
+ }
1664
+
1665
+ /* --- free-text references (handover bundle) --------------------------------- */
1666
+
1667
+ .referenceList {
1668
+ list-style: none;
1669
+ margin: 0;
1670
+ padding: 0;
1671
+ display: flex;
1672
+ flex-direction: column;
1673
+ gap: 6px;
1674
+ min-width: 0;
1675
+ }
1676
+
1677
+ .referenceRow {
1678
+ font-size: 12px;
1679
+ color: var(--dsw-alias-label-secondary);
1680
+ overflow-wrap: anywhere;
1681
+ }
1682
+
1683
+ /* --- compact action menu (status moves, secondary card actions) ---------------
1684
+ * One trigger on the control track, the choices only while it is open. Escape
1685
+ * and an outside press close it and focus returns to the trigger; the panel
1686
+ * paints above the scrolling body, so the menu never clips against it.
1687
+ * --------------------------------------------------------------------------- */
1688
+
1689
+ .menuRoot {
1690
+ position: relative;
1691
+ display: inline-flex;
1692
+ flex: none;
1693
+ }
1694
+
1695
+ .menuChevron {
1696
+ flex: none;
1697
+ width: 5px;
1698
+ height: 5px;
1699
+ margin-top: -3px;
1700
+ border-right: 1.5px solid currentColor;
1701
+ border-bottom: 1.5px solid currentColor;
1702
+ transform: rotate(45deg);
1703
+ transition: transform 120ms var(--dsh-tb-ease);
1704
+ }
1705
+
1706
+ .menuChevron[data-open='true'] {
1707
+ margin-top: 0;
1708
+ transform: rotate(225deg);
1709
+ }
1710
+
1711
+ .menuPanel {
1712
+ position: absolute;
1713
+ top: calc(100% + 4px);
1714
+ left: 0;
1715
+ z-index: 20;
1716
+ display: flex;
1717
+ flex-direction: column;
1718
+ min-width: 180px;
1719
+ padding: 4px;
1720
+ background: var(--dsw-alias-bg-base);
1721
+ border: 1px solid var(--dsw-alias-border-l2);
1722
+ border-radius: 10px;
1723
+ box-shadow: var(--dsw-shadow-lv2);
1724
+ }
1725
+
1726
+ /* The header's menu hangs from the panel's trailing edge instead. */
1727
+ .detailHeader .menuPanel {
1728
+ left: auto;
1729
+ right: 0;
1730
+ }
1731
+
1732
+ .menuItem {
1733
+ display: flex;
1734
+ align-items: center;
1735
+ min-height: var(--dsh-tb-hit-size);
1736
+ padding: 0 10px;
1737
+ font-family: inherit;
1738
+ font-size: 13px;
1739
+ color: var(--dsw-alias-label-primary);
1740
+ background: none;
1741
+ border: none;
1742
+ border-radius: 8px;
1743
+ cursor: pointer;
1744
+ text-align: left;
1745
+ white-space: nowrap;
1746
+ }
1747
+
1748
+ .menuItem:hover:not(:disabled) {
1749
+ background: var(--dsw-alias-interactive-bg-hover);
1750
+ }
1751
+
1752
+ .menuItem:disabled {
1753
+ opacity: 0.45;
1754
+ cursor: default;
1755
+ }
1756
+
1757
+ /* --- detail footer -----------------------------------------------------------
1758
+ * Exactly three controls on the normal track: edit (ghost), run (primary) and
1759
+ * delete (danger). The stamp separates the destructive control from the primary
1760
+ * action, so the two are never adjacent.
1761
+ * --------------------------------------------------------------------------- */
1762
+
1763
+ .detailFooter {
1764
+ display: flex;
1765
+ align-items: center;
1766
+ gap: 8px;
1767
+ padding: 16px 24px;
1768
+ border-top: 1px solid var(--dsw-alias-separator-primary);
1769
+ flex: none;
1770
+ }
1771
+
1772
+ .detailMeta {
1773
+ font-size: 12px;
1774
+ color: var(--dsw-alias-label-tertiary);
1775
+ overflow-wrap: anywhere;
1776
+ }
1777
+
1778
+ .detailFooter > .detailMeta {
1779
+ margin-left: 0;
1780
+ }
1781
+
1782
+ .detailStamp {
1783
+ margin-left: auto;
1784
+ text-align: end;
1785
+ }
1786
+
1787
+ /* --- disclosure motion -------------------------------------------------------
1788
+ * The folded regions of the panel (the rest of the history, the acceptance
1789
+ * detail) appear and leave as one reversed pair: the same 6px travel on the
1790
+ * same curve, only opposite in direction. `usePresence` keeps the node mounted
1791
+ * through the exit leg, so the close never snaps.
1792
+ * --------------------------------------------------------------------------- */
1793
+
1794
+ .executionExtra,
1795
+ .verifyPanel,
1796
+ .detailBody .formSectionBody {
1797
+ animation: dshTbRowsIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;
1798
+ }
1799
+
1800
+ .executionExtra[data-execution-fold='closing'],
1801
+ .verifyPanel[data-state='closing'],
1802
+ .detailBody .formSectionBody[data-state='closing'] {
1803
+ animation: dshTbRowsOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both;
1804
+ }
1805
+
1806
+ /* The task dialogs' regions are the same fold body under another name, so they
1807
+ ride the same pair rather than a third disclosure style: one keyframe pair,
1808
+ one 6px travel, the panel's two duration tokens. `usePresence` in
1809
+ `CollapsibleSection` keeps the body mounted through the exit leg. */
1810
+ .formSectionBody {
1811
+ animation: dshTbRowsIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;
1812
+ }
1813
+
1814
+ .formSectionBody[data-state='closing'] {
1815
+ animation: dshTbRowsOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both;
1816
+ }
1817
+
1818
+ @keyframes dshTbRowsIn {
1819
+ from { opacity: 0; transform: translateY(-6px); }
1820
+ to { opacity: 1; transform: translateY(0); }
1821
+ }
1822
+
1823
+ @keyframes dshTbRowsOut {
1824
+ from { opacity: 1; transform: translateY(0); }
1825
+ to { opacity: 0; transform: translateY(-6px); }
1826
+ }
1827
+
1828
+ @keyframes dshTbFadeIn {
1829
+ from { opacity: 0; }
1830
+ to { opacity: 1; }
1831
+ }
1832
+
1833
+ @keyframes dshTbFadeOut {
1834
+ from { opacity: 1; }
1835
+ to { opacity: 0; }
1836
+ }
1837
+
1838
+ /* Reduced motion: the same folds keep their short fade and drop only the
1839
+ spatial travel. Both legs stay the reversed pair and `usePresence` still
1840
+ unmounts on the close duration. */
1841
+ @media (prefers-reduced-motion: reduce) {
1842
+ .executionExtra,
1843
+ .verifyPanel,
1844
+ .detailBody .formSectionBody {
1845
+ animation: dshTbFadeIn var(--dsh-tb-motion-close) linear both;
1846
+ }
1847
+
1848
+ .executionExtra[data-execution-fold='closing'],
1849
+ .verifyPanel[data-state='closing'],
1850
+ .detailBody .formSectionBody[data-state='closing'] {
1851
+ animation: dshTbFadeOut var(--dsh-tb-motion-close) linear both;
1852
+ }
1853
+
1854
+ .formSectionBody {
1855
+ animation: dshTbFadeIn var(--dsh-tb-motion-close) linear both;
1856
+ }
1857
+
1858
+ .formSectionBody[data-state='closing'] {
1859
+ animation: dshTbFadeOut var(--dsh-tb-motion-close) linear both;
1860
+ }
1861
+ }
1862
+
1863
+ /* --- folded regions of the panel ---------------------------------------------
1864
+ * The panel folds reuse the task form's own region contract (`.formSection`);
1865
+ * only the sizes and the spacing rhythm are the panel's, so the form dialogs
1866
+ * keep their own scale. Nothing here is a second disclosure style.
1867
+ * --------------------------------------------------------------------------- */
1868
+
1869
+ /* A fold row is 30px tall and its pointer target is still the board's 44px
1870
+ minimum, expanded past the row exactly like `.cardAction`. A target that
1871
+ overflows the row cannot live inside a clipping section, so the section stops
1872
+ clipping and the header carries the section's inner radius itself — which is
1873
+ what `overflow: hidden` used to do. */
1874
+ .detailBody .formSection {
1875
+ min-width: 0;
1876
+ overflow: visible;
1877
+ }
1878
+
1879
+ .detailBody .formSectionHeader {
1880
+ position: relative;
1881
+ box-sizing: border-box;
1882
+ min-height: 28px;
1883
+ padding: 4px 10px;
1884
+ font-size: 12px;
1885
+ line-height: 16px;
1886
+ border-radius: 9px;
1887
+ }
1888
+
1889
+ .detailBody .formSection[data-open='true'] .formSectionHeader {
1890
+ border-radius: 9px 9px 0 0;
1891
+ }
1892
+
1893
+ .detailBody .formSectionHeader::after {
1894
+ content: '';
1895
+ position: absolute;
1896
+ left: 50%;
1897
+ top: 50%;
1898
+ width: var(--dsh-tb-hit-size);
1899
+ height: var(--dsh-tb-hit-size);
1900
+ transform: translate(-50%, -50%);
1901
+ }
1902
+
1903
+ /* Title and summary both shrink, so a long summary never takes the row: the
1904
+ label keeps its own width and the line that gives way is the one that
1905
+ ellipsizes. The summary's auto margin is what puts every fold's summary on
1906
+ the panel's one right-hand track, two glyphs or clipped alike. */
1907
+ .detailBody .formSectionTitle {
1908
+ flex: 0 1 auto;
1909
+ min-width: 0;
1910
+ overflow: hidden;
1911
+ text-overflow: ellipsis;
1912
+ white-space: nowrap;
1913
+ }
1914
+
1915
+ .detailBody .formSectionSummary {
1916
+ flex: 0 1 auto;
1917
+ min-width: 0;
1918
+ margin-left: auto;
1919
+ }
1920
+
1921
+ .detailBody .formSectionBody {
1922
+ gap: 8px;
1923
+ }
1924
+
1925
+ /* --- constrained board containers ------------------------------------------ */
1238
1926
 
1239
1927
  @container task-board-view (max-width: 768px) {
1240
1928
  .board {
@@ -1393,26 +2081,40 @@
1393
2081
 
1394
2082
  .detailHeader {
1395
2083
  flex-wrap: wrap;
1396
- padding-top: max(12px, env(safe-area-inset-top));
1397
- padding-right: max(14px, env(safe-area-inset-right));
1398
- padding-left: max(14px, env(safe-area-inset-left));
2084
+ padding-top: max(16px, env(safe-area-inset-top));
2085
+ padding-right: max(16px, env(safe-area-inset-right));
2086
+ padding-left: max(16px, env(safe-area-inset-left));
1399
2087
  }
1400
2088
 
1401
2089
  .detailTitle {
1402
2090
  min-width: 0;
1403
2091
  }
1404
2092
 
2093
+ /* One reading column: the panel is narrower than the two tracks can carry. */
2094
+ .detailColumns {
2095
+ grid-template-columns: minmax(0, 1fr);
2096
+ gap: 16px;
2097
+ }
2098
+
2099
+ .detailColumn {
2100
+ gap: 16px;
2101
+ }
2102
+
1405
2103
  .detailBody {
1406
2104
  overscroll-behavior-y: contain;
1407
- padding-right: max(14px, env(safe-area-inset-right));
1408
- padding-left: max(14px, env(safe-area-inset-left));
2105
+ padding-right: max(16px, env(safe-area-inset-right));
2106
+ padding-left: max(16px, env(safe-area-inset-left));
1409
2107
  }
1410
2108
 
1411
2109
  .detailFooter {
1412
2110
  flex-wrap: wrap;
1413
- padding-right: max(14px, env(safe-area-inset-right));
1414
- padding-bottom: max(12px, env(safe-area-inset-bottom));
1415
- padding-left: max(14px, env(safe-area-inset-left));
2111
+ padding-right: max(16px, env(safe-area-inset-right));
2112
+ padding-bottom: max(16px, env(safe-area-inset-bottom));
2113
+ padding-left: max(16px, env(safe-area-inset-left));
2114
+ }
2115
+
2116
+ .menuPanel {
2117
+ min-width: 200px;
1416
2118
  }
1417
2119
 
1418
2120
  .detailFooter > button {
@@ -1448,6 +2150,9 @@
1448
2150
  .dangerButton:focus-visible,
1449
2151
  .iconButton:focus-visible,
1450
2152
  .linkButton:focus-visible,
2153
+ .menuItem:focus-visible,
2154
+ .verifyBadge:focus-visible,
2155
+ .executionSession:focus-visible,
1451
2156
  .search:focus-visible,
1452
2157
  .input:focus-visible,
1453
2158
  .select:focus-visible,
@@ -1464,6 +2169,9 @@
1464
2169
  .dangerButton,
1465
2170
  .iconButton,
1466
2171
  .linkButton,
2172
+ .menuItem,
2173
+ .verifyBadge,
2174
+ .executionSession,
1467
2175
  .search,
1468
2176
  .input,
1469
2177
  .select,
@@ -1526,6 +2234,11 @@
1526
2234
  .dangerButton,
1527
2235
  .iconButton,
1528
2236
  .linkButton,
2237
+ .menuItem,
2238
+ .verifyBadge,
2239
+ .executionSession,
2240
+ .disclosureChevron,
2241
+ .menuChevron,
1529
2242
  .search,
1530
2243
  .input,
1531
2244
  .select,
@@ -1555,6 +2268,7 @@
1555
2268
  .modalBackdrop[data-state='closing'] .detail {
1556
2269
  animation: dshTbBackdropOut var(--dsh-tb-motion-close) linear both;
1557
2270
  }
2271
+
1558
2272
  }
1559
2273
 
1560
2274
  /* --- task tags (issue #1521) ---------------------------------------------------
@@ -1571,16 +2285,21 @@
1571
2285
  gap: 4px;
1572
2286
  }
1573
2287
 
2288
+ /* An empty label list paints no row at all instead of a gap-sized sliver. */
2289
+ .cardTags:empty {
2290
+ display: none;
2291
+ }
2292
+
1574
2293
  .cardTag {
1575
2294
  max-width: 100%;
1576
- padding: 0 7px;
2295
+ padding: 0 8px;
1577
2296
  overflow: hidden;
1578
2297
  border: 1px solid var(--dsh-task-tag-border);
1579
2298
  border-radius: 999px;
1580
2299
  background: var(--dsh-task-tag-fill);
1581
2300
  color: var(--dsw-alias-label-primary);
1582
- font-size: 10px;
1583
- line-height: 16px;
2301
+ font-size: 12px;
2302
+ line-height: 1.5;
1584
2303
  text-overflow: ellipsis;
1585
2304
  white-space: nowrap;
1586
2305
  }
@@ -1589,7 +2308,7 @@
1589
2308
  display: flex;
1590
2309
  flex-wrap: wrap;
1591
2310
  align-items: center;
1592
- gap: 6px;
2311
+ gap: 8px;
1593
2312
  /* The board's own row rhythm spaces this row from the header and the
1594
2313
  columns; a local margin would double it. */
1595
2314
  margin: 0;
@@ -1598,10 +2317,13 @@
1598
2317
 
1599
2318
  .tagFilterLabel {
1600
2319
  color: var(--dsw-alias-label-tertiary);
1601
- font-size: 11px;
2320
+ font-size: 12px;
1602
2321
  }
1603
2322
 
2323
+ /* A filter chip keeps its compact box and takes the 44px pointer target from
2324
+ the same expansion the card's quick action uses. */
1604
2325
  .tagChip {
2326
+ position: relative;
1605
2327
  padding: 1px 9px;
1606
2328
  border: 1px solid var(--dsh-task-tag-border);
1607
2329
  border-radius: 999px;
@@ -1609,8 +2331,23 @@
1609
2331
  color: var(--dsw-alias-label-secondary);
1610
2332
  cursor: pointer;
1611
2333
  font-family: inherit;
1612
- font-size: 11px;
1613
- line-height: 18px;
2334
+ font-size: 12px;
2335
+ line-height: var(--dsh-tb-card-row);
2336
+ }
2337
+
2338
+ .tagChip::after {
2339
+ content: '';
2340
+ position: absolute;
2341
+ left: 50%;
2342
+ top: 50%;
2343
+ width: var(--dsh-tb-hit-size);
2344
+ height: var(--dsh-tb-hit-size);
2345
+ transform: translate(-50%, -50%);
2346
+ }
2347
+
2348
+ .tagChip:focus-visible {
2349
+ outline: 2px solid var(--dsw-alias-state-business-primary);
2350
+ outline-offset: 2px;
1614
2351
  }
1615
2352
 
1616
2353
  .tagChip[data-active='true'] {
@@ -1655,8 +2392,9 @@
1655
2392
  }
1656
2393
 
1657
2394
  .fieldHint {
2395
+ margin: 0;
1658
2396
  color: var(--dsw-alias-label-tertiary);
1659
- font-size: 11px;
2397
+ font-size: 12px;
1660
2398
  line-height: 1.4;
1661
2399
  }
1662
2400
 
@@ -1746,33 +2484,35 @@
1746
2484
  * with their statuses.
1747
2485
  * ----------------------------------------------------------------------------- */
1748
2486
 
2487
+ /* Lineage badges reuse the card's filled badge slot: one row-tall pill, the
2488
+ tone's secondary surface with the tone's primary colour as text. The border
2489
+ is gone so the pill is exactly one row slot tall. */
1749
2490
  .cardSubtask {
1750
2491
  max-width: 100%;
1751
- padding: 0 7px;
2492
+ padding: 0 8px;
1752
2493
  overflow: hidden;
1753
- border: 1px solid var(--dsw-alias-border-l2);
1754
2494
  border-radius: 999px;
1755
- background: transparent;
2495
+ background: var(--dsw-alias-interactive-bg-hover);
1756
2496
  color: var(--dsw-alias-label-secondary);
1757
- font-size: 10px;
1758
- line-height: 16px;
2497
+ font-size: 12px;
2498
+ line-height: var(--dsh-tb-card-row);
1759
2499
  text-overflow: ellipsis;
1760
2500
  white-space: nowrap;
1761
2501
  }
1762
2502
 
1763
2503
  .cardSubtask[data-tone='failed'] {
1764
2504
  color: var(--dsw-alias-state-error-primary);
1765
- border-color: var(--dsw-alias-state-error-primary);
2505
+ background: var(--dsw-alias-state-error-secondary);
1766
2506
  }
1767
2507
 
1768
2508
  .cardSubtask[data-tone='running'] {
1769
2509
  color: var(--dsw-alias-state-warn-primary);
1770
- border-color: var(--dsw-alias-state-warn-primary);
2510
+ background: var(--dsw-alias-state-warn-secondary);
1771
2511
  }
1772
2512
 
1773
2513
  .cardSubtask[data-tone='done'] {
1774
2514
  color: var(--dsw-alias-state-success-primary);
1775
- border-color: var(--dsw-alias-state-success-primary);
2515
+ background: var(--dsw-alias-state-success-secondary);
1776
2516
  }
1777
2517
 
1778
2518
  .subtaskList {