@fish-under-sea/dsh-client-ui-task-board-fish 0.0.0-stage → 0.5.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 (165) hide show
  1. package/LICENSE +202 -0
  2. package/README.i18n.yaml +6 -0
  3. package/README.md +202 -2
  4. package/README.zh.md +203 -0
  5. package/cordis.patch.yml +12 -0
  6. package/icon.svg +3 -0
  7. package/lib/client.js +12941 -0
  8. package/lib/client.js.map +1 -0
  9. package/lib/index.js +10471 -0
  10. package/lib/types/client/PluginSettingsCard.d.ts +144 -0
  11. package/lib/types/client/TaskBoardSettingsCard.d.ts +92 -0
  12. package/lib/types/client/apply-guard.d.ts +25 -0
  13. package/lib/types/client/board/ClampedMarkdown.d.ts +3 -0
  14. package/lib/types/client/board/ConfirmDialog.d.ts +15 -0
  15. package/lib/types/client/board/EditTaskModal.d.ts +17 -0
  16. package/lib/types/client/board/LinkSubtaskModal.d.ts +14 -0
  17. package/lib/types/client/board/NewTaskModal.d.ts +26 -0
  18. package/lib/types/client/board/TagManagerModal.d.ts +26 -0
  19. package/lib/types/client/board/TaskBoard.d.ts +26 -0
  20. package/lib/types/client/board/TaskCard.d.ts +36 -0
  21. package/lib/types/client/board/TaskDetail.d.ts +9 -0
  22. package/lib/types/client/board/TaskForm.d.ts +72 -0
  23. package/lib/types/client/board/VerificationReport.d.ts +23 -0
  24. package/lib/types/client/board/card-view.d.ts +113 -0
  25. package/lib/types/client/board/icons.d.ts +32 -0
  26. package/lib/types/client/board/overlay.d.ts +69 -0
  27. package/lib/types/client/board/parse-model-pref.d.ts +4 -0
  28. package/lib/types/client/board/preset-label.d.ts +22 -0
  29. package/lib/types/client/board/status-key.d.ts +19 -0
  30. package/lib/types/client/board/task-markdown.d.ts +19 -0
  31. package/lib/types/client/host-api.d.ts +63 -0
  32. package/lib/types/client/index.d.ts +128 -0
  33. package/lib/types/client/locales.d.ts +443 -0
  34. package/lib/types/client/main-session.d.ts +32 -0
  35. package/lib/types/client/native-panel.d.ts +48 -0
  36. package/lib/types/client/plugin-card-seat.d.ts +108 -0
  37. package/lib/types/client/schedule-presets.d.ts +10 -0
  38. package/lib/types/client/schedule-zone.d.ts +97 -0
  39. package/lib/types/client/seats.d.ts +18 -0
  40. package/lib/types/client/service.d.ts +32 -0
  41. package/lib/types/client/settings-entry-form.d.ts +49 -0
  42. package/lib/types/client/settings-form.d.ts +213 -0
  43. package/lib/types/core/controller.d.ts +373 -0
  44. package/lib/types/core/degraded-reason.d.ts +46 -0
  45. package/lib/types/core/extension.d.ts +283 -0
  46. package/lib/types/core/freeze-snapshot.d.ts +71 -0
  47. package/lib/types/core/handover.d.ts +70 -0
  48. package/lib/types/core/issue-form.d.ts +16 -0
  49. package/lib/types/core/package-name.d.ts +9 -0
  50. package/lib/types/core/poll-cadence.d.ts +31 -0
  51. package/lib/types/core/schedule.d.ts +124 -0
  52. package/lib/types/core/session-reuse.d.ts +24 -0
  53. package/lib/types/core/store.d.ts +64 -0
  54. package/lib/types/core/subtask.d.ts +141 -0
  55. package/lib/types/core/tasks.d.ts +601 -0
  56. package/lib/types/core/use-cases/task-archive.d.ts +20 -0
  57. package/lib/types/core/use-cases/task-create.d.ts +27 -0
  58. package/lib/types/core/use-cases/task-delete.d.ts +27 -0
  59. package/lib/types/core/use-cases/task-parent.d.ts +21 -0
  60. package/lib/types/core/use-cases/task-schedule.d.ts +96 -0
  61. package/lib/types/core/use-cases/task-tag.d.ts +48 -0
  62. package/lib/types/core/use-cases/task-update.d.ts +56 -0
  63. package/lib/types/core/verification-budget.d.ts +52 -0
  64. package/lib/types/core/verification.d.ts +753 -0
  65. package/lib/types/core/workspace-target.d.ts +41 -0
  66. package/lib/types/dsh-home.d.ts +16 -0
  67. package/lib/types/host/agent-tools.d.ts +27 -0
  68. package/lib/types/host/extension-registry.d.ts +111 -0
  69. package/lib/types/host/llm-dispatch.d.ts +63 -0
  70. package/lib/types/host/verification-gate.d.ts +95 -0
  71. package/lib/types/host/verification-runner.d.ts +139 -0
  72. package/lib/types/host/workspace-evidence.d.ts +53 -0
  73. package/lib/types/host-ai.d.ts +51 -0
  74. package/lib/types/host-ledger.d.ts +385 -0
  75. package/lib/types/host-routes.d.ts +36 -0
  76. package/lib/types/host-runner.d.ts +252 -0
  77. package/lib/types/host-service.d.ts +379 -0
  78. package/lib/types/http.d.ts +59 -0
  79. package/lib/types/index.d.ts +322 -0
  80. package/lib/types/loopback.d.ts +24 -0
  81. package/lib/types/mount-once.d.ts +55 -0
  82. package/lib/types/power-inhibitor.d.ts +73 -0
  83. package/lib/types/protocol.d.ts +212 -0
  84. package/lib/types/tool-surface.d.ts +71 -0
  85. package/package.json +107 -4
  86. package/src/client/PluginSettingsCard.tsx +564 -0
  87. package/src/client/TaskBoardSettingsCard.tsx +539 -0
  88. package/src/client/apply-guard.ts +35 -0
  89. package/src/client/board/ClampedMarkdown.tsx +69 -0
  90. package/src/client/board/ConfirmDialog.tsx +44 -0
  91. package/src/client/board/EditTaskModal.tsx +110 -0
  92. package/src/client/board/LinkSubtaskModal.tsx +97 -0
  93. package/src/client/board/NewTaskModal.tsx +718 -0
  94. package/src/client/board/TagManagerModal.tsx +235 -0
  95. package/src/client/board/TaskBoard.tsx +558 -0
  96. package/src/client/board/TaskCard.tsx +315 -0
  97. package/src/client/board/TaskDetail.tsx +985 -0
  98. package/src/client/board/TaskForm.tsx +264 -0
  99. package/src/client/board/VerificationReport.tsx +322 -0
  100. package/src/client/board/card-view.ts +220 -0
  101. package/src/client/board/icons.tsx +89 -0
  102. package/src/client/board/overlay.tsx +189 -0
  103. package/src/client/board/parse-model-pref.ts +35 -0
  104. package/src/client/board/preset-label.ts +44 -0
  105. package/src/client/board/status-key.ts +41 -0
  106. package/src/client/board/task-markdown.module.css +137 -0
  107. package/src/client/board/task-markdown.tsx +106 -0
  108. package/src/client/board-settings.module.css +66 -0
  109. package/src/client/board.module.css +1837 -0
  110. package/src/client/css-modules.d.ts +5 -0
  111. package/src/client/host-api.ts +336 -0
  112. package/src/client/index.ts +501 -0
  113. package/src/client/locales.ts +905 -0
  114. package/src/client/main-session.ts +43 -0
  115. package/src/client/native-panel.tsx +140 -0
  116. package/src/client/plugin-card-seat.ts +199 -0
  117. package/src/client/schedule-presets.ts +13 -0
  118. package/src/client/schedule-zone.ts +233 -0
  119. package/src/client/seats.tsx +58 -0
  120. package/src/client/service.ts +94 -0
  121. package/src/client/settings-card.module.css +444 -0
  122. package/src/client/settings-entry-form.ts +142 -0
  123. package/src/client/settings-form.ts +468 -0
  124. package/src/core/controller.ts +871 -0
  125. package/src/core/degraded-reason.ts +81 -0
  126. package/src/core/extension.ts +376 -0
  127. package/src/core/freeze-snapshot.ts +213 -0
  128. package/src/core/handover.ts +132 -0
  129. package/src/core/issue-form.ts +19 -0
  130. package/src/core/package-name.ts +9 -0
  131. package/src/core/poll-cadence.ts +41 -0
  132. package/src/core/schedule.ts +363 -0
  133. package/src/core/session-reuse.ts +40 -0
  134. package/src/core/store.ts +371 -0
  135. package/src/core/subtask.ts +341 -0
  136. package/src/core/tasks.ts +843 -0
  137. package/src/core/use-cases/task-archive.ts +91 -0
  138. package/src/core/use-cases/task-create.ts +110 -0
  139. package/src/core/use-cases/task-delete.ts +43 -0
  140. package/src/core/use-cases/task-parent.ts +65 -0
  141. package/src/core/use-cases/task-schedule.ts +251 -0
  142. package/src/core/use-cases/task-tag.ts +110 -0
  143. package/src/core/use-cases/task-update.ts +126 -0
  144. package/src/core/verification-budget.ts +115 -0
  145. package/src/core/verification.ts +1594 -0
  146. package/src/core/workspace-target.ts +59 -0
  147. package/src/dsh-home.ts +42 -0
  148. package/src/host/agent-tools.ts +762 -0
  149. package/src/host/extension-registry.ts +509 -0
  150. package/src/host/llm-dispatch.ts +87 -0
  151. package/src/host/verification-gate.ts +487 -0
  152. package/src/host/verification-runner.ts +702 -0
  153. package/src/host/workspace-evidence.ts +176 -0
  154. package/src/host-ai.ts +158 -0
  155. package/src/host-ledger.ts +1826 -0
  156. package/src/host-routes.ts +306 -0
  157. package/src/host-runner.ts +755 -0
  158. package/src/host-service.ts +1112 -0
  159. package/src/http.ts +127 -0
  160. package/src/index.ts +722 -0
  161. package/src/loopback.ts +63 -0
  162. package/src/mount-once.ts +142 -0
  163. package/src/power-inhibitor.ts +321 -0
  164. package/src/protocol.ts +591 -0
  165. package/src/tool-surface.ts +95 -0
@@ -0,0 +1,1837 @@
1
+ /**
2
+ * Task-board styles. Scoped by the plugin's own data attributes so nothing
3
+ * leaks into the rest of the GUI; colors ride the dsh --dsw-* tokens so the
4
+ * board follows the active theme (light/dark and skins).
5
+ */
6
+
7
+ /* --- native panel page ------------------------------------------------------- */
8
+
9
+ /* The board is an official center-column panel: the layout mounts this element
10
+ as the selected keyed 'main' occupant, so the shell's own column already
11
+ owns position, sizing and the conversation underneath. Nothing here hides or
12
+ re-parents another plugin's surface — the previous DOM takeover (absolute
13
+ overlay over a hidden conversation subtree) is gone with it.
14
+
15
+ The container query context stays: the board's responsive rules measure the
16
+ PANEL rather than the viewport, so a narrow column or a resized window
17
+ narrows the board at the same threshold the shell uses for its columns. */
18
+ [data-dsh-taskboard-view] {
19
+ display: flex;
20
+ flex-direction: column;
21
+ box-sizing: border-box;
22
+ width: 100%;
23
+ height: 100%;
24
+ min-width: 0;
25
+ min-height: 0;
26
+ container-name: task-board-view;
27
+ container-type: inline-size;
28
+ background: var(--dsw-alias-bg-base);
29
+ }
30
+
31
+ /* --- board frame -------------------------------------------------------------- */
32
+
33
+ /* Board geometry and motion tokens. Every single-line control on the board —
34
+ the header's buttons, its pickers, its search box, the form inputs — takes
35
+ its height, radius and spacing from this one place, so a control never
36
+ drifts off the header's shared track as its padding is tuned. Declared on
37
+ the board root, which also contains every overlay the board mounts. */
38
+ .board {
39
+ --dsh-tb-control-h: 30px;
40
+ --dsh-tb-control-radius: 8px;
41
+ --dsh-tb-control-gap: 8px;
42
+ --dsh-tb-icon-size: 30px;
43
+ --dsh-tb-hit-size: 44px;
44
+ --dsh-tb-motion-enter: 160ms;
45
+ --dsh-tb-motion-close: 140ms;
46
+ --dsh-tb-ease: cubic-bezier(0.2, 0, 0, 1);
47
+
48
+ display: flex;
49
+ flex-direction: column;
50
+ box-sizing: border-box;
51
+ height: 100%;
52
+ min-width: 0;
53
+ min-height: 0;
54
+ padding: 14px 16px 16px;
55
+ gap: 12px;
56
+ background: var(--dsw-alias-bg-base);
57
+ color: var(--dsw-alias-label-primary);
58
+ font-family: var(--dsw-font-family);
59
+ }
60
+
61
+ .boardHeader {
62
+ display: flex;
63
+ align-items: center;
64
+ gap: 10px;
65
+ flex: none;
66
+ }
67
+
68
+ /* The right-hand toolbar. Filters, view toggles and the create action ride one
69
+ row on the shared control height, pushed against the trailing edge by their
70
+ own container so the identity block (title + host meta) and the toolbar read
71
+ as two groups instead of one undifferentiated strip. */
72
+ .boardTools {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: var(--dsh-tb-control-gap);
76
+ flex: 1 1 auto;
77
+ min-width: 0;
78
+ justify-content: flex-end;
79
+ margin-left: auto;
80
+ }
81
+
82
+ .boardTitle {
83
+ margin: 0;
84
+ font-size: 16px;
85
+ font-weight: 700;
86
+ color: var(--dsw-alias-label-primary);
87
+ white-space: nowrap;
88
+ }
89
+
90
+ .backButton {
91
+ display: inline-flex;
92
+ align-items: center;
93
+ gap: 4px;
94
+ }
95
+
96
+ .search {
97
+ flex: 0 1 260px;
98
+ min-width: 120px;
99
+ box-sizing: border-box;
100
+ height: var(--dsh-tb-control-h);
101
+ padding: 0 10px;
102
+ font-size: 13px;
103
+ color: var(--dsw-alias-label-primary);
104
+ background: var(--dsw-specific-input-major);
105
+ border: 1px solid var(--dsw-alias-border-l2);
106
+ border-radius: var(--dsh-tb-control-radius);
107
+ outline: none;
108
+ }
109
+
110
+ .search::placeholder {
111
+ color: var(--dsw-alias-label-tertiary);
112
+ }
113
+
114
+ /* --- columns ------------------------------------------------------------------ */
115
+
116
+ .columns {
117
+ display: grid;
118
+ grid-auto-flow: column;
119
+ grid-auto-columns: minmax(220px, 1fr);
120
+ gap: 12px;
121
+ flex: 1;
122
+ min-height: 0;
123
+ overflow-x: auto;
124
+ overflow-y: hidden;
125
+ overscroll-behavior-inline: contain;
126
+ padding-bottom: 6px;
127
+ scrollbar-color: var(--dsw-alias-border-l3) var(--dsw-alias-interactive-bg-hover);
128
+ scrollbar-width: thin;
129
+ }
130
+
131
+ .columns::-webkit-scrollbar {
132
+ height: 10px;
133
+ }
134
+
135
+ .columns::-webkit-scrollbar-track {
136
+ background: var(--dsw-alias-interactive-bg-hover);
137
+ border-radius: 999px;
138
+ }
139
+
140
+ .columns::-webkit-scrollbar-thumb {
141
+ background: var(--dsw-alias-border-l3);
142
+ background-clip: content-box;
143
+ border: 2px solid transparent;
144
+ border-radius: 999px;
145
+ }
146
+
147
+ .columns::-webkit-scrollbar-thumb:hover {
148
+ background: var(--dsw-alias-border-l4);
149
+ background-clip: content-box;
150
+ }
151
+
152
+ .column {
153
+ display: flex;
154
+ flex-direction: column;
155
+ min-height: 0;
156
+ background: var(--dsw-alias-bg-layer-2);
157
+ border: 1px solid var(--dsw-alias-border-l1);
158
+ border-radius: 12px;
159
+ overflow: hidden;
160
+ }
161
+
162
+ .columnHeader {
163
+ display: flex;
164
+ align-items: center;
165
+ gap: 6px;
166
+ padding: 10px 12px;
167
+ flex: none;
168
+ }
169
+
170
+ .columnTitle {
171
+ margin: 0;
172
+ flex: 1;
173
+ font-size: 13px;
174
+ font-weight: 700;
175
+ color: var(--dsw-alias-label-primary);
176
+ overflow: hidden;
177
+ text-overflow: ellipsis;
178
+ white-space: nowrap;
179
+ }
180
+
181
+ .columnCount {
182
+ flex: none;
183
+ min-width: 0;
184
+ font-size: 12px;
185
+ color: var(--dsw-alias-label-tertiary);
186
+ background: var(--dsw-alias-interactive-bg-hover);
187
+ border-radius: 999px;
188
+ padding: 1px 8px;
189
+ }
190
+
191
+ .statusDot {
192
+ width: 8px;
193
+ height: 8px;
194
+ border-radius: 50%;
195
+ flex: none;
196
+ }
197
+
198
+ .statusDot[data-status='backlog'] { background: var(--dsw-alias-label-tertiary); }
199
+ .statusDot[data-status='todo'] { background: var(--dsw-alias-state-business-primary); }
200
+ .statusDot[data-status='running'] { background: var(--dsw-alias-state-warn-primary); }
201
+ .statusDot[data-status='done'] { background: var(--dsw-alias-state-success-primary); }
202
+ .statusDot[data-status='failed'] { background: var(--dsw-alias-state-error-primary); }
203
+
204
+ .cards {
205
+ display: flex;
206
+ flex-direction: column;
207
+ gap: 8px;
208
+ padding: 2px 8px 10px;
209
+ overflow-y: auto;
210
+ flex: 1;
211
+ min-height: 0;
212
+ }
213
+
214
+ .columnEmpty {
215
+ padding: 24px 8px;
216
+ text-align: center;
217
+ font-size: 12px;
218
+ color: var(--dsw-alias-label-tertiary);
219
+ }
220
+
221
+ /* --- cards -------------------------------------------------------------------- */
222
+
223
+ /* The card is an article; the stretched .cardOpen button is its keyboard and
224
+ accessibility target. Content sits above the button (z-index 1) so the
225
+ badges keep their own tooltips, and the article's click handler opens the
226
+ detail for any click that is not a quick action. */
227
+ .card {
228
+ position: relative;
229
+ display: flex;
230
+ flex: none;
231
+ flex-direction: column;
232
+ gap: 6px;
233
+ padding: 10px 12px 10px 14px;
234
+ text-align: left;
235
+ background: var(--dsw-alias-bg-base);
236
+ border: 1px solid var(--dsw-alias-border-l2);
237
+ border-radius: 10px;
238
+ cursor: pointer;
239
+ color: var(--dsw-alias-label-primary);
240
+ font-family: inherit;
241
+ overflow: hidden;
242
+ transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
243
+ }
244
+
245
+ .card > :not(.cardOpen) {
246
+ position: relative;
247
+ z-index: 1;
248
+ }
249
+
250
+ /* 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. */
253
+ .card::before {
254
+ content: '';
255
+ position: absolute;
256
+ inset: 0 auto 0 0;
257
+ width: 3px;
258
+ background: transparent;
259
+ pointer-events: none;
260
+ }
261
+
262
+ .card[data-tone='running']::before { background: var(--dsw-alias-state-warn-primary); }
263
+ .card[data-tone='succeeded']::before { background: var(--dsw-alias-state-success-primary); }
264
+ .card[data-tone='failed']::before { background: var(--dsw-alias-state-error-primary); }
265
+ .card[data-tone='cancelled']::before { background: var(--dsw-alias-label-tertiary); }
266
+
267
+ .card:hover {
268
+ box-shadow: var(--dsw-shadow-lv2);
269
+ border-color: var(--dsw-alias-border-l3);
270
+ transform: translateY(-1px);
271
+ }
272
+
273
+ /* Dense columns scroll fast; a lift per hovered row reads as jitter. */
274
+ .card[data-compact]:hover {
275
+ box-shadow: none;
276
+ transform: none;
277
+ }
278
+
279
+ .card[data-status='running'] {
280
+ border-color: var(--dsw-alias-state-warn-primary);
281
+ }
282
+
283
+ .cardOpen {
284
+ position: absolute;
285
+ inset: 0;
286
+ z-index: 0;
287
+ margin: 0;
288
+ padding: 0;
289
+ border: 0;
290
+ border-radius: inherit;
291
+ background: transparent;
292
+ cursor: pointer;
293
+ }
294
+
295
+ .cardOpen:focus-visible {
296
+ outline: 2px solid var(--dsw-alias-state-business-primary);
297
+ outline-offset: -2px;
298
+ }
299
+
300
+ .cardTitleRow {
301
+ display: flex;
302
+ align-items: flex-start;
303
+ gap: 6px;
304
+ min-width: 0;
305
+ }
306
+
307
+ .cardKind {
308
+ flex: none;
309
+ margin-top: 1px;
310
+ padding: 0 6px;
311
+ border-radius: 4px;
312
+ font-size: 10px;
313
+ font-weight: 600;
314
+ line-height: 16px;
315
+ white-space: nowrap;
316
+ color: var(--dsw-alias-label-secondary);
317
+ background: var(--dsw-alias-interactive-bg-hover);
318
+ }
319
+
320
+ .cardTitle {
321
+ min-width: 0;
322
+ font-size: 13px;
323
+ font-weight: 600;
324
+ line-height: 1.35;
325
+ overflow: hidden;
326
+ display: -webkit-box;
327
+ -webkit-line-clamp: 2;
328
+ -webkit-box-orient: vertical;
329
+ }
330
+
331
+ .card[data-compact] {
332
+ gap: 2px;
333
+ padding-top: 6px;
334
+ padding-bottom: 6px;
335
+ }
336
+
337
+ .card[data-compact] .cardTitle {
338
+ font-size: 12px;
339
+ font-weight: 500;
340
+ -webkit-line-clamp: 1;
341
+ }
342
+
343
+ /* Provider decorations join the meta row as inline chips, never a full-width
344
+ row of their own; an empty decoration takes no space. */
345
+ .cardDecoration {
346
+ display: inline-flex;
347
+ align-items: center;
348
+ gap: 4px;
349
+ flex: none;
350
+ }
351
+
352
+ .cardDecoration:empty {
353
+ display: none;
354
+ }
355
+
356
+ .cardExcerpt {
357
+ font-size: 12px;
358
+ line-height: 1.4;
359
+ color: var(--dsw-alias-label-secondary);
360
+ overflow: hidden;
361
+ display: -webkit-box;
362
+ -webkit-line-clamp: 2;
363
+ -webkit-box-orient: vertical;
364
+ }
365
+
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. */
370
+ .cardMeta {
371
+ display: flex;
372
+ align-items: center;
373
+ flex-wrap: wrap;
374
+ gap: 4px 8px;
375
+ font-size: 11px;
376
+ color: var(--dsw-alias-label-tertiary);
377
+ }
378
+
379
+ .cardTime {
380
+ flex: 1 1 auto;
381
+ min-width: max-content;
382
+ overflow: hidden;
383
+ text-overflow: ellipsis;
384
+ white-space: nowrap;
385
+ }
386
+
387
+ .cardSchedule {
388
+ display: inline-flex;
389
+ align-items: center;
390
+ gap: 4px;
391
+ flex: none;
392
+ min-width: 0;
393
+ font-size: 12px;
394
+ line-height: 1;
395
+ white-space: nowrap;
396
+ padding: 2px 6px;
397
+ border-radius: 999px;
398
+ color: var(--dsw-alias-label-secondary);
399
+ background: var(--dsw-alias-interactive-bg-hover);
400
+ }
401
+
402
+ .cardRun {
403
+ flex: none;
404
+ }
405
+
406
+ .cardRun[data-declared] {
407
+ text-decoration: underline dotted;
408
+ text-underline-offset: 2px;
409
+ }
410
+
411
+ .cardRun[data-result='failed'] {
412
+ color: var(--dsw-alias-state-error-primary);
413
+ }
414
+
415
+ .cardRun[data-result='succeeded'] {
416
+ color: var(--dsw-alias-state-success-primary);
417
+ }
418
+
419
+ .cardSession {
420
+ display: inline-flex;
421
+ align-items: center;
422
+ flex: none;
423
+ color: var(--dsw-alias-state-business-primary);
424
+ }
425
+
426
+ /* A quick action on a card: a compact icon button above the open control. */
427
+ .cardAction {
428
+ justify-content: center;
429
+ width: 22px;
430
+ height: 22px;
431
+ margin: -4px -4px -4px 0;
432
+ padding: 0;
433
+ border: 0;
434
+ border-radius: 6px;
435
+ background: transparent;
436
+ cursor: pointer;
437
+ font-family: inherit;
438
+ }
439
+
440
+ .cardAction:hover {
441
+ background: var(--dsw-alias-interactive-bg-hover);
442
+ }
443
+
444
+ .cardAction:focus-visible {
445
+ outline: 2px solid var(--dsw-alias-state-business-primary);
446
+ outline-offset: 1px;
447
+ }
448
+
449
+ /* Recency groups inside a settled column. */
450
+ .cardGroup {
451
+ display: flex;
452
+ flex-direction: column;
453
+ gap: 6px;
454
+ }
455
+
456
+ .cardGroupHeader {
457
+ display: flex;
458
+ align-items: center;
459
+ gap: 6px;
460
+ padding: 4px 2px 0;
461
+ font-size: 11px;
462
+ font-weight: 600;
463
+ color: var(--dsw-alias-label-tertiary);
464
+ }
465
+
466
+ .cardGroupCount {
467
+ font-weight: 400;
468
+ }
469
+
470
+ .cardGroupHeader .linkButton {
471
+ margin-left: auto;
472
+ font-size: 11px;
473
+ }
474
+
475
+ /* Per-column density switch in the column header. */
476
+ .densityToggle {
477
+ display: inline-flex;
478
+ align-items: center;
479
+ justify-content: center;
480
+ flex: none;
481
+ width: 22px;
482
+ height: 22px;
483
+ padding: 0;
484
+ border: 0;
485
+ border-radius: 6px;
486
+ background: transparent;
487
+ color: var(--dsw-alias-label-tertiary);
488
+ cursor: pointer;
489
+ }
490
+
491
+ .densityToggle:hover,
492
+ .densityToggle[data-active='true'] {
493
+ color: var(--dsw-alias-label-primary);
494
+ background: var(--dsw-alias-interactive-bg-hover);
495
+ }
496
+
497
+ .densityToggle:focus-visible {
498
+ outline: 2px solid var(--dsw-alias-state-business-primary);
499
+ outline-offset: 1px;
500
+ }
501
+
502
+ .cardRunningLabel {
503
+ font-size: 11px;
504
+ color: var(--dsw-alias-state-warn-primary);
505
+ }
506
+
507
+ .cardSpinner {
508
+ width: 10px;
509
+ height: 10px;
510
+ flex: none;
511
+ border: 2px solid var(--dsw-alias-state-warn-primary);
512
+ border-top-color: transparent;
513
+ border-radius: 50%;
514
+ animation: dshTbSpin 800ms linear infinite;
515
+ }
516
+
517
+ @keyframes dshTbSpin {
518
+ to { transform: rotate(360deg); }
519
+ }
520
+
521
+ /* --- buttons ------------------------------------------------------------------ */
522
+
523
+ /* One geometry, three roles. Every filled, outlined and icon control on the
524
+ board takes its height, radius and inner alignment from the board tokens, so
525
+ the header's buttons, the detail footer's actions and every modal footer sit
526
+ on one track, and a state change (selected, disabled, pending) can never
527
+ resize the control. Filled actions use the matched primary-action set
528
+ (button-primary-fill / button-primary-hover / label-primary-foreground) and
529
+ never a cross-family pair. */
530
+ .primaryButton,
531
+ .ghostButton,
532
+ .dangerButton,
533
+ .iconButton {
534
+ display: inline-flex;
535
+ align-items: center;
536
+ justify-content: center;
537
+ gap: 6px;
538
+ box-sizing: border-box;
539
+ height: var(--dsh-tb-control-h);
540
+ border-radius: var(--dsh-tb-control-radius);
541
+ cursor: pointer;
542
+ white-space: nowrap;
543
+ font-family: inherit;
544
+ }
545
+
546
+ .primaryButton,
547
+ .dangerButton {
548
+ padding: 0 14px;
549
+ font-size: 13px;
550
+ font-weight: 600;
551
+ }
552
+
553
+ .primaryButton {
554
+ color: var(--dsw-alias-label-primary-foreground);
555
+ background: var(--dsw-alias-button-primary-fill);
556
+ border: 1px solid transparent;
557
+ }
558
+
559
+ .dangerButton {
560
+ color: var(--dsw-alias-label-primary-foreground);
561
+ background: var(--dsw-alias-state-error-primary);
562
+ border: 1px solid transparent;
563
+ }
564
+
565
+ .ghostButton {
566
+ padding: 0 12px;
567
+ font-size: 13px;
568
+ color: var(--dsw-alias-label-primary);
569
+ background: transparent;
570
+ border: 1px solid var(--dsw-alias-border-l2);
571
+ }
572
+
573
+ /* Selected view toggle. The outlined control keeps its box and only changes
574
+ role colour, so pressing a toggle cannot move the toolbar around it. */
575
+ .ghostButton[data-active='true'] {
576
+ color: var(--dsw-alias-label-primary-foreground);
577
+ background: var(--dsw-alias-button-primary-fill);
578
+ border-color: transparent;
579
+ }
580
+
581
+ .primaryButton:hover:not(:disabled) {
582
+ background: var(--dsw-alias-button-primary-hover);
583
+ }
584
+
585
+ .ghostButton:hover:not(:disabled) {
586
+ background: var(--dsw-alias-interactive-bg-hover);
587
+ }
588
+
589
+ .ghostButton[data-active='true']:hover:not(:disabled) {
590
+ background: var(--dsw-alias-button-primary-hover);
591
+ }
592
+
593
+ .dangerButton:hover:not(:disabled) {
594
+ filter: brightness(1.08);
595
+ }
596
+
597
+ .dangerButton:active:not(:disabled) {
598
+ filter: brightness(0.94);
599
+ }
600
+
601
+ .primaryButton:disabled,
602
+ .dangerButton:disabled {
603
+ opacity: 0.5;
604
+ cursor: default;
605
+ }
606
+
607
+ .ghostButton:disabled {
608
+ opacity: 0.45;
609
+ cursor: default;
610
+ }
611
+
612
+ /* Icon-only control: a 30px box on the control track whose pointer target is
613
+ expanded to the 44px minimum without changing what the eye sees. */
614
+ .iconButton {
615
+ position: relative;
616
+ width: var(--dsh-tb-icon-size);
617
+ padding: 0;
618
+ background: transparent;
619
+ border: 1px solid transparent;
620
+ color: var(--dsw-alias-label-secondary);
621
+ }
622
+
623
+ .iconButton::after {
624
+ content: '';
625
+ position: absolute;
626
+ left: 50%;
627
+ top: 50%;
628
+ width: var(--dsh-tb-hit-size);
629
+ height: var(--dsh-tb-hit-size);
630
+ transform: translate(-50%, -50%);
631
+ }
632
+
633
+ .iconButton:hover:not(:disabled) {
634
+ background: var(--dsw-alias-interactive-bg-hover);
635
+ color: var(--dsw-alias-label-primary);
636
+ }
637
+
638
+ .iconButton:disabled {
639
+ opacity: 0.45;
640
+ cursor: default;
641
+ }
642
+
643
+ .linkButton {
644
+ padding: 0;
645
+ font-size: 12px;
646
+ color: var(--dsw-alias-state-business-primary);
647
+ background: none;
648
+ border: none;
649
+ cursor: pointer;
650
+ white-space: nowrap;
651
+ }
652
+
653
+ .linkButton:hover {
654
+ text-decoration: underline;
655
+ }
656
+
657
+ /* --- modals ------------------------------------------------------------------- */
658
+
659
+ /* Enter and exit are one motion pair: the backdrop fades while the surface
660
+ rises from exactly the origin it returns to (8px down, 98% scale, centred).
661
+ `usePresence` keeps the node mounted through the exit leg and paints
662
+ `data-state="closing"`, so the reverse leg always runs instead of the node
663
+ vanishing; both legs keep the surface's dimensions, so nothing behind the
664
+ overlay reflows. */
665
+ .modalBackdrop {
666
+ position: fixed;
667
+ inset: 0;
668
+ z-index: 1300;
669
+ display: flex;
670
+ align-items: center;
671
+ justify-content: center;
672
+ background: var(--dsw-alias-bg-mask-1);
673
+ animation: dshTbBackdropIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;
674
+ }
675
+
676
+ .modalBackdrop[data-state='closing'] {
677
+ animation: dshTbBackdropOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both;
678
+ }
679
+
680
+ .modal,
681
+ .detail {
682
+ animation: dshTbSurfaceIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;
683
+ }
684
+
685
+ .modalBackdrop[data-state='closing'] .modal,
686
+ .modalBackdrop[data-state='closing'] .detail {
687
+ animation: dshTbSurfaceOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both;
688
+ }
689
+
690
+ @keyframes dshTbBackdropIn {
691
+ from { opacity: 0; }
692
+ to { opacity: 1; }
693
+ }
694
+
695
+ @keyframes dshTbBackdropOut {
696
+ from { opacity: 1; }
697
+ to { opacity: 0; }
698
+ }
699
+
700
+ @keyframes dshTbSurfaceIn {
701
+ from { opacity: 0; transform: translateY(8px) scale(0.98); }
702
+ to { opacity: 1; transform: none; }
703
+ }
704
+
705
+ @keyframes dshTbSurfaceOut {
706
+ from { opacity: 1; transform: none; }
707
+ to { opacity: 0; transform: translateY(8px) scale(0.98); }
708
+ }
709
+
710
+ .modal {
711
+ display: flex;
712
+ flex-direction: column;
713
+ gap: 10px;
714
+ width: min(520px, calc(100vw - 48px));
715
+ max-height: calc(100vh - 96px);
716
+ overflow: hidden;
717
+ padding: 18px;
718
+ background: var(--dsw-alias-bg-base);
719
+ border: 1px solid var(--dsw-alias-border-l2);
720
+ border-radius: 14px;
721
+ box-shadow: var(--dsw-shadow-lv3);
722
+ color: var(--dsw-alias-label-primary);
723
+ }
724
+
725
+ .modalTitle {
726
+ margin: 0;
727
+ font-size: 15px;
728
+ font-weight: 700;
729
+ }
730
+
731
+ .confirmMessage {
732
+ margin: 0;
733
+ font-size: 13px;
734
+ line-height: 1.5;
735
+ color: var(--dsw-alias-label-secondary);
736
+ white-space: pre-wrap;
737
+ overflow-wrap: anywhere;
738
+ }
739
+
740
+ .modalFooter {
741
+ display: flex;
742
+ justify-content: flex-end;
743
+ gap: 10px;
744
+ margin-top: 4px;
745
+ }
746
+
747
+ /* Label manager (label cleanup): a titled overlay with one row per label in
748
+ use, each carrying its usage count and the two ledger-wide transitions. */
749
+ .modalHeader {
750
+ display: flex;
751
+ align-items: center;
752
+ gap: 10px;
753
+ }
754
+
755
+ .modalHeader > .modalTitle {
756
+ flex: 1;
757
+ min-width: 0;
758
+ }
759
+
760
+ .tagManageList {
761
+ list-style: none;
762
+ margin: 0;
763
+ padding: 0;
764
+ display: flex;
765
+ flex-direction: column;
766
+ gap: 6px;
767
+ }
768
+
769
+ .tagManageRow {
770
+ display: flex;
771
+ align-items: center;
772
+ flex-wrap: wrap;
773
+ gap: 8px;
774
+ padding: 6px 8px;
775
+ border: 1px solid var(--dsw-alias-border-l1);
776
+ border-radius: var(--dsh-tb-control-radius);
777
+ }
778
+
779
+ .tagManageName {
780
+ flex: 1 1 auto;
781
+ min-width: 0;
782
+ overflow: hidden;
783
+ text-overflow: ellipsis;
784
+ white-space: nowrap;
785
+ font-size: 13px;
786
+ color: var(--dsw-alias-label-primary);
787
+ }
788
+
789
+ .tagManageCount {
790
+ flex: none;
791
+ font-size: 11px;
792
+ color: var(--dsw-alias-label-tertiary);
793
+ }
794
+
795
+ .tagManageInput {
796
+ flex: 1 1 auto;
797
+ min-width: 0;
798
+ }
799
+
800
+ .tagManageMerge {
801
+ flex: 1 0 100%;
802
+ font-size: 11px;
803
+ color: var(--dsw-alias-label-tertiary);
804
+ }
805
+
806
+ /* --- form sections (create/edit dialog) --------------------------------------
807
+ * The task form groups its configuration into collapsible regions so the
808
+ * dialog fits without a scrollbar: only the content region starts open, and
809
+ * every collapsed header carries a one-line summary of what it holds. The
810
+ * body keeps an overflow fallback for tiny viewports. The chevron is drawn
811
+ * with borders (no glyph), so no font or emoji can change it.
812
+ * ----------------------------------------------------------------------------- */
813
+
814
+ .modalBody {
815
+ display: flex;
816
+ flex-direction: column;
817
+ gap: 8px;
818
+ min-height: 0;
819
+ overflow-y: auto;
820
+ }
821
+
822
+ /* Every direct child keeps its natural height: a column flex item shrinks by
823
+ default, and a shrunk region would clip its own fields behind its
824
+ `overflow: hidden` instead of letting the body scroll. */
825
+ .modalBody > * {
826
+ flex: none;
827
+ }
828
+
829
+ .formSection {
830
+ display: flex;
831
+ flex-direction: column;
832
+ border: 1px solid var(--dsw-alias-separator-primary);
833
+ border-radius: 10px;
834
+ overflow: hidden;
835
+ }
836
+
837
+ .formSectionHeader {
838
+ display: flex;
839
+ align-items: center;
840
+ gap: 8px;
841
+ width: 100%;
842
+ padding: 7px 10px;
843
+ font-family: inherit;
844
+ font-size: 12.5px;
845
+ font-weight: 600;
846
+ color: var(--dsw-alias-label-primary);
847
+ text-align: left;
848
+ background: transparent;
849
+ border: 0;
850
+ cursor: pointer;
851
+ }
852
+
853
+ .formSectionHeader:hover {
854
+ background: var(--dsw-alias-bg-mask-1);
855
+ }
856
+
857
+ .formSectionChevron {
858
+ flex: none;
859
+ width: 0;
860
+ height: 0;
861
+ margin-left: 1px;
862
+ border-top: 4px solid transparent;
863
+ border-bottom: 4px solid transparent;
864
+ border-left: 5px solid var(--dsw-alias-label-tertiary);
865
+ transition: transform 120ms ease;
866
+ }
867
+
868
+ .formSection[data-open='true'] .formSectionChevron {
869
+ transform: rotate(90deg);
870
+ }
871
+
872
+ .formSectionTitle {
873
+ flex: none;
874
+ }
875
+
876
+ .formSectionSummary {
877
+ flex: 1 1 auto;
878
+ min-width: 0;
879
+ overflow: hidden;
880
+ font-weight: 400;
881
+ color: var(--dsw-alias-label-tertiary);
882
+ text-align: right;
883
+ text-overflow: ellipsis;
884
+ white-space: nowrap;
885
+ }
886
+
887
+ .formSectionBody {
888
+ display: flex;
889
+ flex-direction: column;
890
+ gap: 8px;
891
+ padding: 8px 10px 10px;
892
+ border-top: 1px solid var(--dsw-alias-separator-primary);
893
+ }
894
+
895
+ .field {
896
+ display: flex;
897
+ flex-direction: column;
898
+ gap: 5px;
899
+ }
900
+
901
+ .fieldLabel {
902
+ font-size: 12px;
903
+ font-weight: 600;
904
+ color: var(--dsw-alias-label-secondary);
905
+ }
906
+
907
+ /* Single-line fields (and the multi-line ones, which only grow past the
908
+ minimum) share the control height, the control radius and the control
909
+ border, so an input never sits taller than the button beside it. */
910
+ .input {
911
+ box-sizing: border-box;
912
+ min-height: var(--dsh-tb-control-h);
913
+ padding: 6px 10px;
914
+ font-size: 13px;
915
+ color: var(--dsw-alias-label-primary);
916
+ background: var(--dsw-specific-input-major);
917
+ border: 1px solid var(--dsw-alias-border-l2);
918
+ border-radius: var(--dsh-tb-control-radius);
919
+ outline: none;
920
+ resize: vertical;
921
+ font-family: inherit;
922
+ }
923
+
924
+ .input:focus {
925
+ border-color: var(--dsw-alias-state-business-primary);
926
+ }
927
+
928
+ .select {
929
+ box-sizing: border-box;
930
+ height: var(--dsh-tb-control-h);
931
+ padding: 0 10px;
932
+ font-size: 13px;
933
+ color: var(--dsw-alias-label-primary);
934
+ background: var(--dsw-specific-input-major);
935
+ border: 1px solid var(--dsw-alias-border-l2);
936
+ border-radius: var(--dsh-tb-control-radius);
937
+ outline: none;
938
+ font-family: inherit;
939
+ max-width: 100%;
940
+ }
941
+
942
+ .input::placeholder {
943
+ color: var(--dsw-alias-label-tertiary);
944
+ }
945
+
946
+ .formError {
947
+ margin: 0;
948
+ font-size: 12px;
949
+ color: var(--dsw-alias-state-error-primary);
950
+ }
951
+
952
+ /* --- detail ------------------------------------------------------------------- */
953
+
954
+ .detail {
955
+ display: flex;
956
+ flex-direction: column;
957
+ width: min(640px, calc(100vw - 48px));
958
+ max-height: calc(100vh - 80px);
959
+ background: var(--dsw-alias-bg-base);
960
+ border: 1px solid var(--dsw-alias-border-l2);
961
+ border-radius: 14px;
962
+ box-shadow: var(--dsw-shadow-lv3);
963
+ color: var(--dsw-alias-label-primary);
964
+ overflow: hidden;
965
+ }
966
+
967
+ .detailHeader {
968
+ display: flex;
969
+ align-items: center;
970
+ gap: 10px;
971
+ padding: 14px 18px;
972
+ border-bottom: 1px solid var(--dsw-alias-separator-primary);
973
+ flex: none;
974
+ }
975
+
976
+ .detailTitle {
977
+ margin: 0;
978
+ flex: 1;
979
+ font-size: 15px;
980
+ font-weight: 700;
981
+ overflow-wrap: anywhere;
982
+ }
983
+
984
+ .statusBadge {
985
+ flex: none;
986
+ padding: 2px 10px;
987
+ font-size: 12px;
988
+ border-radius: 999px;
989
+ border: 1px solid var(--dsw-alias-border-l2);
990
+ color: var(--dsw-alias-label-secondary);
991
+ }
992
+
993
+ .statusBadge[data-status='running'] {
994
+ color: var(--dsw-alias-state-warn-primary);
995
+ border-color: var(--dsw-alias-state-warn-primary);
996
+ }
997
+
998
+ .statusBadge[data-status='done'] {
999
+ color: var(--dsw-alias-state-success-primary);
1000
+ border-color: var(--dsw-alias-state-success-primary);
1001
+ }
1002
+
1003
+ .statusBadge[data-status='failed'] {
1004
+ color: var(--dsw-alias-state-error-primary);
1005
+ border-color: var(--dsw-alias-state-error-primary);
1006
+ }
1007
+
1008
+ .detailBody {
1009
+ padding: 14px 18px;
1010
+ overflow-y: auto;
1011
+ display: flex;
1012
+ flex-direction: column;
1013
+ gap: 16px;
1014
+ flex: 1;
1015
+ }
1016
+
1017
+ .detailSection {
1018
+ display: flex;
1019
+ flex-direction: column;
1020
+ gap: 6px;
1021
+ }
1022
+
1023
+ .detailSection h4 {
1024
+ margin: 0;
1025
+ font-size: 12px;
1026
+ font-weight: 700;
1027
+ color: var(--dsw-alias-label-tertiary);
1028
+ text-transform: none;
1029
+ }
1030
+
1031
+ .detailText {
1032
+ margin: 0;
1033
+ font-size: 13px;
1034
+ line-height: 1.55;
1035
+ color: var(--dsw-alias-label-primary);
1036
+ white-space: pre-wrap;
1037
+ overflow-wrap: anywhere;
1038
+ }
1039
+
1040
+ /* --- scheduled runs ---------------------------------------------------------- */
1041
+
1042
+ .scheduleToggle {
1043
+ display: flex;
1044
+ align-items: center;
1045
+ gap: 8px;
1046
+ font-size: 13px;
1047
+ color: var(--dsw-alias-label-primary);
1048
+ cursor: pointer;
1049
+ user-select: none;
1050
+ }
1051
+
1052
+ .scheduleToggle input {
1053
+ accent-color: var(--dsw-alias-state-business-primary);
1054
+ }
1055
+
1056
+ .scheduleRow {
1057
+ display: flex;
1058
+ align-items: center;
1059
+ gap: 8px;
1060
+ }
1061
+
1062
+ .scheduleInput {
1063
+ flex: 1;
1064
+ min-width: 0;
1065
+ font-family: var(--dsw-font-markdown-code-block-small);
1066
+ font-size: 12.5px;
1067
+ }
1068
+
1069
+ .scheduleInputInvalid {
1070
+ border-color: var(--dsw-alias-state-error-primary);
1071
+ }
1072
+
1073
+ .scheduleInputInvalid:focus {
1074
+ border-color: var(--dsw-alias-state-error-primary);
1075
+ }
1076
+
1077
+ .schedulePreset {
1078
+ flex: none;
1079
+ box-sizing: border-box;
1080
+ height: var(--dsh-tb-control-h);
1081
+ padding: 0 8px;
1082
+ font-size: 12.5px;
1083
+ color: var(--dsw-alias-label-primary);
1084
+ background: var(--dsw-specific-input-major);
1085
+ border: 1px solid var(--dsw-alias-border-l2);
1086
+ border-radius: var(--dsh-tb-control-radius);
1087
+ outline: none;
1088
+ }
1089
+
1090
+ /* Zone row: the label and the picker share the cron row's geometry so the two
1091
+ controls read as one editor. */
1092
+ .scheduleZone {
1093
+ display: flex;
1094
+ align-items: center;
1095
+ gap: 8px;
1096
+ font-size: 12.5px;
1097
+ color: var(--dsw-alias-label-secondary);
1098
+ }
1099
+
1100
+ .scheduleZone select {
1101
+ flex: 1;
1102
+ min-width: 0;
1103
+ }
1104
+
1105
+ .scheduleMeta {
1106
+ margin: 0;
1107
+ font-size: 12px;
1108
+ color: var(--dsw-alias-label-secondary);
1109
+ overflow-wrap: anywhere;
1110
+ }
1111
+
1112
+ .promptBlock {
1113
+ margin: 0;
1114
+ padding: 10px 12px;
1115
+ font-size: 12.5px;
1116
+ line-height: 1.5;
1117
+ font-family: var(--dsw-font-markdown-code-block-small);
1118
+ color: var(--dsw-alias-label-primary);
1119
+ background: var(--dsw-alias-markdown-code-block);
1120
+ border: 1px solid var(--dsw-alias-border-l1);
1121
+ border-radius: 8px;
1122
+ white-space: pre-wrap;
1123
+ overflow-wrap: anywhere;
1124
+ max-height: 240px;
1125
+ overflow-y: auto;
1126
+ }
1127
+
1128
+ /* --- clamped long content (detail description / prompt) ---------------------
1129
+ * A long markdown body renders behind a fixed clamp with a fade into the
1130
+ * detail surface; the expand toggle exists only when the content really
1131
+ * overflows the clamp (measured at runtime), so short texts are untouched.
1132
+ * The clamp height is read back by ClampedMarkdown through getComputedStyle —
1133
+ * keep the pixel value here only.
1134
+ * --------------------------------------------------------------------------- */
1135
+
1136
+ .clampBody {
1137
+ position: relative;
1138
+ }
1139
+
1140
+ .clampBody[data-clamped='true'] {
1141
+ max-height: 160px;
1142
+ overflow: hidden;
1143
+ }
1144
+
1145
+ .clampBody[data-clamped='true']::after {
1146
+ content: '';
1147
+ position: absolute;
1148
+ right: 0;
1149
+ bottom: 0;
1150
+ left: 0;
1151
+ height: 44px;
1152
+ pointer-events: none;
1153
+ background: linear-gradient(to bottom, transparent, var(--dsw-alias-bg-base));
1154
+ }
1155
+
1156
+ .clampToggle {
1157
+ align-self: flex-start;
1158
+ }
1159
+
1160
+ .executionList {
1161
+ list-style: none;
1162
+ margin: 0;
1163
+ padding: 0;
1164
+ display: flex;
1165
+ flex-direction: column;
1166
+ gap: 8px;
1167
+ }
1168
+
1169
+ .executionRow {
1170
+ display: flex;
1171
+ align-items: center;
1172
+ gap: 10px;
1173
+ padding: 8px 10px;
1174
+ border: 1px solid var(--dsw-alias-border-l1);
1175
+ border-radius: 8px;
1176
+ flex-wrap: wrap;
1177
+ }
1178
+
1179
+ .executionBadge {
1180
+ flex: none;
1181
+ padding: 1px 8px;
1182
+ font-size: 11px;
1183
+ font-weight: 600;
1184
+ border-radius: 999px;
1185
+ color: var(--dsw-alias-state-warn-primary);
1186
+ background: var(--dsw-alias-state-warn-secondary);
1187
+ }
1188
+
1189
+ .executionBadge[data-result='succeeded'] {
1190
+ color: var(--dsw-alias-state-success-primary);
1191
+ background: transparent;
1192
+ }
1193
+
1194
+ .executionBadge[data-result='failed'] {
1195
+ color: var(--dsw-alias-state-error-primary);
1196
+ background: transparent;
1197
+ }
1198
+
1199
+ .executionBadge[data-result='cancelled'] {
1200
+ color: var(--dsw-alias-label-tertiary);
1201
+ background: transparent;
1202
+ }
1203
+
1204
+ .executionTimes {
1205
+ font-size: 12px;
1206
+ color: var(--dsw-alias-label-secondary);
1207
+ }
1208
+
1209
+ .executionError {
1210
+ width: 100%;
1211
+ font-size: 12px;
1212
+ color: var(--dsw-alias-state-error-primary);
1213
+ overflow-wrap: anywhere;
1214
+ }
1215
+
1216
+ .moveRow {
1217
+ display: flex;
1218
+ gap: 8px;
1219
+ flex-wrap: wrap;
1220
+ }
1221
+
1222
+ .detailFooter {
1223
+ display: flex;
1224
+ align-items: center;
1225
+ gap: 10px;
1226
+ padding: 12px 18px;
1227
+ border-top: 1px solid var(--dsw-alias-separator-primary);
1228
+ flex: none;
1229
+ }
1230
+
1231
+ .detailMeta {
1232
+ margin-left: auto;
1233
+ font-size: 11px;
1234
+ color: var(--dsw-alias-label-tertiary);
1235
+ }
1236
+
1237
+ /* --- constrained board containers ------------------------------------------ */
1238
+
1239
+ @container task-board-view (max-width: 768px) {
1240
+ .board {
1241
+ gap: 10px;
1242
+ padding: 10px;
1243
+ }
1244
+
1245
+ /* The header stacks in source order: identity (back control + title), then the
1246
+ host stamp on its own line, then the toolbar, which wraps inside itself —
1247
+ the search takes a full line, the picker and the actions share the next. No
1248
+ order overrides: the toolbar is one group now, and reordering its children
1249
+ from outside the group is what would break this layout. */
1250
+ .boardHeader {
1251
+ align-items: center;
1252
+ flex-wrap: wrap;
1253
+ gap: 8px;
1254
+ }
1255
+
1256
+ .backButton {
1257
+ flex: 0 0 auto;
1258
+ }
1259
+
1260
+ .boardTitle {
1261
+ flex: 1 1 auto;
1262
+ }
1263
+
1264
+ .boardHeader > .detailMeta {
1265
+ flex: 1 0 100%;
1266
+ margin-left: 0;
1267
+ }
1268
+
1269
+ .boardTools {
1270
+ flex: 1 0 100%;
1271
+ margin-left: 0;
1272
+ flex-wrap: wrap;
1273
+ justify-content: flex-start;
1274
+ }
1275
+
1276
+ .boardTools > .search {
1277
+ flex: 1 0 100%;
1278
+ min-width: 0;
1279
+ }
1280
+
1281
+ .boardTools > .projectFilter {
1282
+ flex: 1 1 auto;
1283
+ min-width: 0;
1284
+ }
1285
+
1286
+ .boardTools > button {
1287
+ flex: 1 1 0;
1288
+ min-width: 0;
1289
+ }
1290
+
1291
+ .columns {
1292
+ grid-auto-columns: 86cqw;
1293
+ gap: 10px;
1294
+ padding-inline: 2px 14cqw;
1295
+ scroll-padding-inline: 2px;
1296
+ scroll-snap-type: inline mandatory;
1297
+ scrollbar-width: none;
1298
+ -webkit-overflow-scrolling: touch;
1299
+ }
1300
+
1301
+ .columns::-webkit-scrollbar {
1302
+ display: none;
1303
+ }
1304
+
1305
+ .column {
1306
+ scroll-snap-align: start;
1307
+ scroll-snap-stop: always;
1308
+ }
1309
+ }
1310
+
1311
+ @container task-board-view (max-width: 720px) {
1312
+ .boardHeader > .detailMeta {
1313
+ overflow: hidden;
1314
+ text-overflow: ellipsis;
1315
+ white-space: nowrap;
1316
+ }
1317
+ }
1318
+
1319
+ @container task-board-view (max-width: 600px) {
1320
+ .board {
1321
+ padding-inline: 8px;
1322
+ }
1323
+ }
1324
+
1325
+ /* Viewport-specific mobile treatment: overlays occupy the dynamic viewport,
1326
+ preserve notches/home indicators, and keep their action rows reachable. */
1327
+ @media (max-width: 768px) {
1328
+ [data-dsh-taskboard-view] {
1329
+ height: 100vh;
1330
+ height: 100dvh;
1331
+ }
1332
+
1333
+ .card,
1334
+ .primaryButton,
1335
+ .ghostButton,
1336
+ .dangerButton,
1337
+ .iconButton,
1338
+ .linkButton,
1339
+ .search,
1340
+ .input,
1341
+ .select,
1342
+ .schedulePreset,
1343
+ .scheduleToggle {
1344
+ min-height: 44px;
1345
+ }
1346
+
1347
+ .search,
1348
+ .input,
1349
+ .select,
1350
+ .schedulePreset {
1351
+ box-sizing: border-box;
1352
+ font-size: 16px;
1353
+ }
1354
+
1355
+ .modalBackdrop {
1356
+ align-items: stretch;
1357
+ justify-content: stretch;
1358
+ width: 100vw;
1359
+ height: 100vh;
1360
+ height: 100dvh;
1361
+ }
1362
+
1363
+ .modal,
1364
+ .detail {
1365
+ box-sizing: border-box;
1366
+ width: 100vw;
1367
+ height: 100vh;
1368
+ height: 100dvh;
1369
+ max-height: none;
1370
+ border: 0;
1371
+ border-radius: 0;
1372
+ }
1373
+
1374
+ .modal {
1375
+ padding-top: max(16px, env(safe-area-inset-top));
1376
+ padding-right: max(16px, env(safe-area-inset-right));
1377
+ padding-bottom: max(16px, env(safe-area-inset-bottom));
1378
+ padding-left: max(16px, env(safe-area-inset-left));
1379
+ }
1380
+
1381
+ .modalFooter {
1382
+ position: sticky;
1383
+ bottom: 0;
1384
+ z-index: 1;
1385
+ flex-wrap: wrap;
1386
+ padding-top: 8px;
1387
+ background: var(--dsw-alias-bg-base);
1388
+ }
1389
+
1390
+ .modalFooter > button {
1391
+ flex: 1 1 120px;
1392
+ }
1393
+
1394
+ .detailHeader {
1395
+ 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));
1399
+ }
1400
+
1401
+ .detailTitle {
1402
+ min-width: 0;
1403
+ }
1404
+
1405
+ .detailBody {
1406
+ overscroll-behavior-y: contain;
1407
+ padding-right: max(14px, env(safe-area-inset-right));
1408
+ padding-left: max(14px, env(safe-area-inset-left));
1409
+ }
1410
+
1411
+ .detailFooter {
1412
+ 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));
1416
+ }
1417
+
1418
+ .detailFooter > button {
1419
+ flex: 1 1 96px;
1420
+ }
1421
+
1422
+ .detailFooter > .detailMeta {
1423
+ flex: 1 0 100%;
1424
+ margin-left: 0;
1425
+ text-align: end;
1426
+ }
1427
+
1428
+ .scheduleRow {
1429
+ align-items: stretch;
1430
+ flex-direction: column;
1431
+ }
1432
+
1433
+ .schedulePreset {
1434
+ width: 100%;
1435
+ }
1436
+ }
1437
+
1438
+ /* -----------------------------------------------------------------------------
1439
+ * Polish pass: complete interaction states (hover / active / focus-visible /
1440
+ * disabled), unified 120ms motion, and reduced-motion fallback.
1441
+ * Colors use the --dsw-alias-* design tokens, which adapt to light/dark/skins
1442
+ * automatically, so every rule below is dark-safe by construction.
1443
+ * --------------------------------------------------------------------------- */
1444
+
1445
+ /* --- one themed focus-visible ring (approx 2px, 2px offset) --- */
1446
+ .primaryButton:focus-visible,
1447
+ .ghostButton:focus-visible,
1448
+ .dangerButton:focus-visible,
1449
+ .iconButton:focus-visible,
1450
+ .linkButton:focus-visible,
1451
+ .search:focus-visible,
1452
+ .input:focus-visible,
1453
+ .select:focus-visible,
1454
+ .schedulePreset:focus-visible,
1455
+ .scheduleToggle input:focus-visible,
1456
+ .formSectionHeader:focus-visible {
1457
+ outline: 2px solid var(--dsw-alias-state-business-primary);
1458
+ outline-offset: 2px;
1459
+ }
1460
+
1461
+ /* --- unified 120ms motion across the board's interactive controls --- */
1462
+ .primaryButton,
1463
+ .ghostButton,
1464
+ .dangerButton,
1465
+ .iconButton,
1466
+ .linkButton,
1467
+ .search,
1468
+ .input,
1469
+ .select,
1470
+ .schedulePreset,
1471
+ .scheduleToggle input,
1472
+ .formSectionHeader,
1473
+ .formSectionChevron {
1474
+ transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, outline-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
1475
+ }
1476
+
1477
+ /* --- press (active) feedback --- */
1478
+ .card:active {
1479
+ box-shadow: var(--dsw-shadow-lv1);
1480
+ transform: translateY(0);
1481
+ }
1482
+
1483
+ .primaryButton:active:not(:disabled),
1484
+ .ghostButton:active:not(:disabled),
1485
+ .dangerButton:active:not(:disabled),
1486
+ .iconButton:active:not(:disabled),
1487
+ .linkButton:active:not(:disabled) {
1488
+ transform: translateY(1px);
1489
+ }
1490
+
1491
+ /* --- guarded hover for the remaining icon/link buttons (defensive: never
1492
+ disabled today, but a disabled element must not react to hover) --- */
1493
+ .iconButton:hover:not(:disabled) {
1494
+ background: var(--dsw-alias-interactive-bg-hover);
1495
+ color: var(--dsw-alias-label-primary);
1496
+ }
1497
+
1498
+ .linkButton:hover:not(:disabled) {
1499
+ text-decoration: underline;
1500
+ }
1501
+
1502
+ .iconButton:disabled,
1503
+ .linkButton:disabled {
1504
+ opacity: 0.45;
1505
+ cursor: default;
1506
+ }
1507
+
1508
+ /* --- search box focus (border tint + themed ring above) --- */
1509
+ .search:focus,
1510
+ .select:focus,
1511
+ .schedulePreset:focus {
1512
+ border-color: var(--dsw-alias-state-business-primary);
1513
+ }
1514
+
1515
+ /* --- schedule toggle checkbox focus already covered by the shared ring;
1516
+ keep the accent-color and size stable --- */
1517
+ .scheduleToggle input {
1518
+ margin: 0;
1519
+ }
1520
+
1521
+ /* --- reduced motion: strip transitions, stop the decorative spinner --- */
1522
+ @media (prefers-reduced-motion: reduce) {
1523
+ .card,
1524
+ .primaryButton,
1525
+ .ghostButton,
1526
+ .dangerButton,
1527
+ .iconButton,
1528
+ .linkButton,
1529
+ .search,
1530
+ .input,
1531
+ .select,
1532
+ .schedulePreset,
1533
+ .scheduleToggle input,
1534
+ .formSectionHeader,
1535
+ .formSectionChevron {
1536
+ transition: none;
1537
+ }
1538
+
1539
+ .cardSpinner {
1540
+ animation: none;
1541
+ }
1542
+
1543
+ /* Overlay lifecycle without spatial travel: the backdrop and the surface keep
1544
+ a short reversible fade, so entering and leaving stay perceptible and the
1545
+ surface still spends the same time on screen before `usePresence`
1546
+ unmounts it. */
1547
+ .modalBackdrop,
1548
+ .modal,
1549
+ .detail {
1550
+ animation: dshTbBackdropIn var(--dsh-tb-motion-close) linear both;
1551
+ }
1552
+
1553
+ .modalBackdrop[data-state='closing'],
1554
+ .modalBackdrop[data-state='closing'] .modal,
1555
+ .modalBackdrop[data-state='closing'] .detail {
1556
+ animation: dshTbBackdropOut var(--dsh-tb-motion-close) linear both;
1557
+ }
1558
+ }
1559
+
1560
+ /* --- task tags (issue #1521) ---------------------------------------------------
1561
+ * A badge takes its tone from a fixed six-colour palette chosen by hashing the
1562
+ * name, so one label always paints the same way and nothing per-tag has to be
1563
+ * stored. The fill is translucent and the text keeps the theme's own primary
1564
+ * label colour, so badges stay readable on light, dark, and every skin without
1565
+ * depending on a token a skin may not define.
1566
+ * ----------------------------------------------------------------------------- */
1567
+
1568
+ .cardTags {
1569
+ display: flex;
1570
+ flex-wrap: wrap;
1571
+ gap: 4px;
1572
+ }
1573
+
1574
+ .cardTag {
1575
+ max-width: 100%;
1576
+ padding: 0 7px;
1577
+ overflow: hidden;
1578
+ border: 1px solid var(--dsh-task-tag-border);
1579
+ border-radius: 999px;
1580
+ background: var(--dsh-task-tag-fill);
1581
+ color: var(--dsw-alias-label-primary);
1582
+ font-size: 10px;
1583
+ line-height: 16px;
1584
+ text-overflow: ellipsis;
1585
+ white-space: nowrap;
1586
+ }
1587
+
1588
+ .tagFilter {
1589
+ display: flex;
1590
+ flex-wrap: wrap;
1591
+ align-items: center;
1592
+ gap: 6px;
1593
+ /* The board's own row rhythm spaces this row from the header and the
1594
+ columns; a local margin would double it. */
1595
+ margin: 0;
1596
+ flex: none;
1597
+ }
1598
+
1599
+ .tagFilterLabel {
1600
+ color: var(--dsw-alias-label-tertiary);
1601
+ font-size: 11px;
1602
+ }
1603
+
1604
+ .tagChip {
1605
+ padding: 1px 9px;
1606
+ border: 1px solid var(--dsh-task-tag-border);
1607
+ border-radius: 999px;
1608
+ background: transparent;
1609
+ color: var(--dsw-alias-label-secondary);
1610
+ cursor: pointer;
1611
+ font-family: inherit;
1612
+ font-size: 11px;
1613
+ line-height: 18px;
1614
+ }
1615
+
1616
+ .tagChip[data-active='true'] {
1617
+ background: var(--dsh-task-tag-fill);
1618
+ color: var(--dsw-alias-label-primary);
1619
+ }
1620
+
1621
+ .cardTag[data-tag-tone='0'],
1622
+ .tagChip[data-tag-tone='0'] {
1623
+ --dsh-task-tag-fill: #4e93e82e;
1624
+ --dsh-task-tag-border: #4e93e866;
1625
+ }
1626
+
1627
+ .cardTag[data-tag-tone='1'],
1628
+ .tagChip[data-tag-tone='1'] {
1629
+ --dsh-task-tag-fill: #2ea36a2e;
1630
+ --dsh-task-tag-border: #2ea36a66;
1631
+ }
1632
+
1633
+ .cardTag[data-tag-tone='2'],
1634
+ .tagChip[data-tag-tone='2'] {
1635
+ --dsh-task-tag-fill: #d08a2a2e;
1636
+ --dsh-task-tag-border: #d08a2a66;
1637
+ }
1638
+
1639
+ .cardTag[data-tag-tone='3'],
1640
+ .tagChip[data-tag-tone='3'] {
1641
+ --dsh-task-tag-fill: #b456c82e;
1642
+ --dsh-task-tag-border: #b456c866;
1643
+ }
1644
+
1645
+ .cardTag[data-tag-tone='4'],
1646
+ .tagChip[data-tag-tone='4'] {
1647
+ --dsh-task-tag-fill: #cf5f7a2e;
1648
+ --dsh-task-tag-border: #cf5f7a66;
1649
+ }
1650
+
1651
+ .cardTag[data-tag-tone='5'],
1652
+ .tagChip[data-tag-tone='5'] {
1653
+ --dsh-task-tag-fill: #4a9fb52e;
1654
+ --dsh-task-tag-border: #4a9fb566;
1655
+ }
1656
+
1657
+ .fieldHint {
1658
+ color: var(--dsw-alias-label-tertiary);
1659
+ font-size: 11px;
1660
+ line-height: 1.4;
1661
+ }
1662
+
1663
+ .tagRow {
1664
+ display: flex;
1665
+ align-items: center;
1666
+ gap: 6px;
1667
+ }
1668
+
1669
+ .tagRow .input {
1670
+ flex: 1 1 0;
1671
+ min-width: 0;
1672
+ }
1673
+
1674
+ .tagRow .ghostButton {
1675
+ flex: none;
1676
+ }
1677
+
1678
+ .tagAddButton {
1679
+ align-self: flex-start;
1680
+ }
1681
+
1682
+ /* --- project partition (#1536) ------------------------------------------------ */
1683
+
1684
+ .projectFilter {
1685
+ display: flex;
1686
+ align-items: center;
1687
+ gap: 6px;
1688
+ flex: none;
1689
+ }
1690
+
1691
+ .projectFilterLabel {
1692
+ font-size: 12px;
1693
+ color: var(--dsw-alias-label-secondary);
1694
+ white-space: nowrap;
1695
+ }
1696
+
1697
+ .projectDialog {
1698
+ display: flex;
1699
+ flex-direction: column;
1700
+ gap: 8px;
1701
+ flex: none;
1702
+ margin-bottom: 8px;
1703
+ padding: 10px 12px;
1704
+ background: var(--dsw-alias-bg-layer-2);
1705
+ border: 1px solid var(--dsw-alias-border-l2);
1706
+ border-radius: 10px;
1707
+ }
1708
+
1709
+ .projectDialogActions {
1710
+ display: flex;
1711
+ justify-content: flex-end;
1712
+ gap: 8px;
1713
+ }
1714
+
1715
+ /* --- AI parse of pasted text (#1540) ------------------------------------------ */
1716
+
1717
+ .aiParse {
1718
+ display: flex;
1719
+ flex-direction: column;
1720
+ gap: 6px;
1721
+ padding: 10px 12px;
1722
+ background: var(--dsw-alias-bg-layer-2);
1723
+ border: 1px solid var(--dsw-alias-border-l2);
1724
+ border-radius: 10px;
1725
+ }
1726
+
1727
+ .aiParseRow {
1728
+ display: flex;
1729
+ align-items: center;
1730
+ gap: 8px;
1731
+ }
1732
+
1733
+ .aiParseRow .select {
1734
+ flex: 1 1 0;
1735
+ min-width: 0;
1736
+ }
1737
+
1738
+ .aiParseRow .ghostButton,
1739
+ .aiParseRow .primaryButton {
1740
+ flex: none;
1741
+ }
1742
+
1743
+ /* --- subtask tree (parent link, cascade runs) ---------------------------------
1744
+ * A subtask is an ordinary card with a parent link; the badges below only mark
1745
+ * the lineage on the board, and the detail block lists the direct children
1746
+ * with their statuses.
1747
+ * ----------------------------------------------------------------------------- */
1748
+
1749
+ .cardSubtask {
1750
+ max-width: 100%;
1751
+ padding: 0 7px;
1752
+ overflow: hidden;
1753
+ border: 1px solid var(--dsw-alias-border-l2);
1754
+ border-radius: 999px;
1755
+ background: transparent;
1756
+ color: var(--dsw-alias-label-secondary);
1757
+ font-size: 10px;
1758
+ line-height: 16px;
1759
+ text-overflow: ellipsis;
1760
+ white-space: nowrap;
1761
+ }
1762
+
1763
+ .cardSubtask[data-tone='failed'] {
1764
+ color: var(--dsw-alias-state-error-primary);
1765
+ border-color: var(--dsw-alias-state-error-primary);
1766
+ }
1767
+
1768
+ .cardSubtask[data-tone='running'] {
1769
+ color: var(--dsw-alias-state-warn-primary);
1770
+ border-color: var(--dsw-alias-state-warn-primary);
1771
+ }
1772
+
1773
+ .cardSubtask[data-tone='done'] {
1774
+ color: var(--dsw-alias-state-success-primary);
1775
+ border-color: var(--dsw-alias-state-success-primary);
1776
+ }
1777
+
1778
+ .subtaskList {
1779
+ list-style: none;
1780
+ margin: 0;
1781
+ padding: 0;
1782
+ display: flex;
1783
+ flex-direction: column;
1784
+ gap: 6px;
1785
+ }
1786
+
1787
+ .subtaskRow {
1788
+ display: flex;
1789
+ align-items: center;
1790
+ gap: 10px;
1791
+ padding: 6px 10px;
1792
+ border: 1px solid var(--dsw-alias-border-l1);
1793
+ border-radius: 8px;
1794
+ flex-wrap: wrap;
1795
+ }
1796
+
1797
+ .subtaskRow .linkButton:first-child {
1798
+ flex: 1 1 auto;
1799
+ min-width: 0;
1800
+ text-align: left;
1801
+ overflow-wrap: anywhere;
1802
+ }
1803
+
1804
+ .subtaskAddRow {
1805
+ display: flex;
1806
+ gap: 8px;
1807
+ flex-wrap: wrap;
1808
+ }
1809
+
1810
+ .pickList {
1811
+ list-style: none;
1812
+ margin: 0;
1813
+ padding: 0;
1814
+ display: flex;
1815
+ flex-direction: column;
1816
+ gap: 6px;
1817
+ max-height: 320px;
1818
+ overflow-y: auto;
1819
+ }
1820
+
1821
+ .pickRow {
1822
+ display: flex;
1823
+ align-items: center;
1824
+ gap: 10px;
1825
+ padding: 6px 10px;
1826
+ border: 1px solid var(--dsw-alias-border-l1);
1827
+ border-radius: 8px;
1828
+ }
1829
+
1830
+ .pickTitle {
1831
+ flex: 1 1 auto;
1832
+ min-width: 0;
1833
+ font-size: 13px;
1834
+ color: var(--dsw-alias-label-primary);
1835
+ overflow-wrap: anywhere;
1836
+ }
1837
+