@wwwfz/dsh-agent-bridge 0.8.3 → 0.9.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 (40) hide show
  1. package/README.md +198 -194
  2. package/THIRD_PARTY_NOTICES.md +67 -0
  3. package/cordis.patch.yml +4 -4
  4. package/package.json +40 -40
  5. package/src/assets.js +405 -348
  6. package/src/catalog.js +906 -605
  7. package/src/client.js +623 -310
  8. package/src/config.js +88 -88
  9. package/src/export.js +241 -12
  10. package/src/index.js +160 -136
  11. package/src/project-archive.js +145 -145
  12. package/src/projects.js +1189 -980
  13. package/src/session-import.js +107 -93
  14. package/src/session-trace.js +121 -0
  15. package/src/skill-handoff.js +1327 -0
  16. package/src/skill-package.js +417 -0
  17. package/src/skill-provider.js +249 -0
  18. package/src/watch.js +309 -309
  19. package/web/Geist-OFL.txt +93 -93
  20. package/web/agent-icons/NOTICE.md +19 -19
  21. package/web/agent-icons/antigravity.svg +76 -76
  22. package/web/agent-icons/claude.svg +3 -3
  23. package/web/agent-icons/dsh.svg +58 -58
  24. package/web/agent-icons/licenses/copilot.txt +21 -21
  25. package/web/agent-icons/licenses/dsh.txt +21 -21
  26. package/web/agent-icons/licenses/gemini.txt +201 -201
  27. package/web/agent-icons/licenses/opencode.txt +21 -21
  28. package/web/agent-icons/licenses/qoder-notice.txt +18 -18
  29. package/web/agent-icons/licenses/qoder.txt +22 -22
  30. package/web/agent-icons/licenses/qwen.txt +202 -202
  31. package/web/agent-icons/qoder.svg +4 -4
  32. package/web/agent-icons/qwen.svg +5 -5
  33. package/web/agent-icons/workbuddy.svg +29 -29
  34. package/web/markdown.js +225 -0
  35. package/web/panel.css +607 -502
  36. package/web/panel.html +277 -246
  37. package/web/panel.js +2334 -1559
  38. package/web/project-context.js +25 -25
  39. package/web/vendor/markdown-it-LICENSE.txt +156 -0
  40. package/web/vendor/markdown-it.mjs +3064 -0
package/web/panel.css CHANGED
@@ -1,502 +1,607 @@
1
- @font-face {
2
- font-family: Geist;
3
- src: local('Geist Variable'), url('./geist-latin-wght-normal.woff2') format('woff2');
4
- font-weight: 100 900;
5
- font-style: normal;
6
- font-display: swap;
7
- }
8
-
9
- :root, :root[data-theme='blue'] {
10
- color-scheme: dark;
11
- --canvas: #101a2c;
12
- --paper: #16243a;
13
- --field: #121f33;
14
- --hover: #1d2f49;
15
- --line: #2b3b53;
16
- --line-strong: #3c5170;
17
- --ink: #edf3ff;
18
- --muted: #a4b4cd;
19
- --accent: #9ec3ff;
20
- --selected: #223b60;
21
- --selected-line: #446ca5;
22
- --focus: #a6caff;
23
- --amber: #efc67a;
24
- --danger: #ffb3b9;
25
- --primary: #3267e4;
26
- --primary-hover: #295bcd;
27
- --primary-line: #5580e8;
28
- --primary-ink: #fff;
29
- --shadow: #080f2059;
30
- --veil: #0710209c;
31
- --mark-surface: #e3eaf5;
32
- }
33
- :root[data-theme='white'] {
34
- color-scheme: light;
35
- --canvas: #f3f5f8;
36
- --paper: #fff;
37
- --field: #f7f8fa;
38
- --hover: #f1f4f8;
39
- --line: #e0e5ed;
40
- --line-strong: #c8d2e1;
41
- --ink: #192537;
42
- --muted: #536279;
43
- --accent: #2558b9;
44
- --selected: #edf3ff;
45
- --selected-line: #aec7f4;
46
- --focus: #2258c4;
47
- --amber: #805718;
48
- --danger: #a13e4b;
49
- --primary: #285fd7;
50
- --primary-hover: #1f50be;
51
- --primary-line: #285fd7;
52
- --shadow: #202c421d;
53
- --veil: #1c294866;
54
- --mark-surface: #eef2f7;
55
- }
56
- :root[data-theme='black'] {
57
- color-scheme: dark;
58
- --canvas: #101114;
59
- --paper: #191b1f;
60
- --field: #15171a;
61
- --hover: #24272c;
62
- --line: #30343c;
63
- --line-strong: #464b56;
64
- --ink: #eef0f4;
65
- --muted: #abb2be;
66
- --accent: #b0c6ef;
67
- --selected: #252e3b;
68
- --selected-line: #4b5a72;
69
- --focus: #a5c2fa;
70
- --amber: #e9c98e;
71
- --danger: #f3a8af;
72
- --primary: #345cb1;
73
- --primary-hover: #2a4e9a;
74
- --primary-line: #5576bb;
75
- --shadow: #00000060;
76
- --veil: #08090bb0;
77
- --mark-surface: #e6e8ed;
78
- }
79
- :root {
80
- --ease: cubic-bezier(.22, 1, .36, 1);
81
- --quick: 170ms;
82
- --radius: 18px;
83
- --panel-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
84
- --mono: 'IBM Plex Mono', 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
85
- font: 14px/1.5 Geist, 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
86
- }
87
-
88
- * { box-sizing: border-box; }
89
- [hidden] { display: none !important; }
90
- body { margin: 0; min-width: 0; color: var(--ink); background: var(--canvas); }
91
- body:has(dialog[open]) { overflow: hidden; }
92
- h1, h2, h3, p { margin: 0; }
93
- h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 680; }
94
- h2 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 660; }
95
- code, pre, .project-path, .project-location { font-family: var(--mono); }
96
- button, input, select { font: inherit; }
97
- button { cursor: pointer; }
98
- button:disabled { opacity: .55; cursor: default; }
99
- :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
100
- .icon-defs { position: absolute; inline-size: 0; block-size: 0; }
101
- .icon { inline-size: 16px; block-size: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
102
- .muted { color: var(--muted); }
103
- .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
104
-
105
- .app { max-width: 1500px; margin-inline: auto; padding: clamp(16px, 2.6vw, 36px); }
106
- .topbar, .brand, .toolbar-actions, .live-status { display: flex; align-items: center; }
107
- .topbar { justify-content: space-between; gap: 16px; margin-block-end: 20px; padding-block-end: 18px; border-block-end: 1px solid var(--line-strong); }
108
- .brand { min-width: 0; gap: 13px; }
109
- .brand-mark, .project-mark {
110
- display: grid; place-items: center; flex: none; inline-size: 42px; block-size: 42px;
111
- border-radius: 13px; border: 1px solid var(--selected-line); color: var(--accent); background: var(--selected);
112
- }
113
- .brand-mark { box-shadow: inset 0 1px #ffffff14; }
114
- .brand-mark .icon { inline-size: 23px; block-size: 23px; }
115
- .brand p { margin-block-start: 3px; color: var(--muted); font-size: .88rem; }
116
- .toolbar { min-width: 0; display: grid; justify-items: end; gap: 6px; }
117
- .toolbar-actions, .live-status { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
118
- .theme-picker { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
119
- .theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 25px; min-height: 25px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
120
- .theme-option:hover { background: var(--hover); color: var(--ink); }
121
- .theme-option[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
122
- .theme-swatch { width: 12px; height: 12px; border: 1px solid #95a5bc; border-radius: 50%; background: #3169e8; }
123
- .theme-option[data-theme-choice='white'] .theme-swatch { background: #f7f8fb; }
124
- .theme-option[data-theme-choice='black'] .theme-swatch { background: #191b20; }
125
- .live-status { color: var(--muted); font-size: .78rem; line-height: 1.3; }
126
- .live-status time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
127
- .live-status time::before { content: '· '; }
128
- #live-state { display: inline-flex; align-items: center; gap: 6px; }
129
- #live-state::before {
130
- content: ''; inline-size: 6px; block-size: 6px; flex: none; border-radius: 50%; background: currentColor;
131
- box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
132
- }
133
- #live-state[data-state='active'] { color: var(--accent); }
134
- #live-state[data-state='paused'] { color: var(--amber); }
135
- #live-state[data-state='error'] { color: var(--danger); }
136
- .status { margin-block: -5px 13px; padding: 8px 11px; border-radius: 9px; background: var(--paper); color: var(--muted); }
137
- .status:empty, #dialog-status:empty, .recent-status:empty, .selection-feedback:empty { display: none; }
138
- .error, #dialog-status.error { color: var(--danger); }
139
-
140
- .workspace { display: grid; grid-template-columns: minmax(222px, 252px) minmax(0, 1fr); align-items: start; gap: 14px; }
141
- .projects, .detail {
142
- min-inline-size: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--panel-shadow);
143
- }
144
- .projects { display: flex; flex-direction: column; }
145
- .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 10px; }
146
- .project-list-actions { display: flex; align-items: center; gap: 8px; }
147
- .list-heading .project-manage, .project-bulk .project-bulk-action, .project-feedback .project-undo {
148
- min-block-size: 28px; padding: 3px 7px; font-size: .76rem; white-space: nowrap;
149
- }
150
- .project-manage .icon { inline-size: 14px; block-size: 14px; }
151
- .project-list-actions .project-manage[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
152
- #project-count, .disclosure-count {
153
- color: var(--muted); font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap;
154
- }
155
- .project-controls { display: grid; gap: 9px; padding: 0 12px 10px; }
156
- .field { position: relative; min-inline-size: 0; }
157
- input[type='search'], select {
158
- min-inline-size: 0; inline-size: 100%; min-block-size: 36px; padding: 7px 10px;
159
- border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink);
160
- transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
161
- }
162
- input::placeholder { color: var(--muted); opacity: 1; }
163
- input[type='search']:focus, select:focus { border-color: var(--focus); }
164
- .field input[type='search'] { padding-inline: 32px 34px; }
165
- .field input[type='search']::-webkit-search-cancel-button { appearance: none; }
166
- .field-icon, .clear-search, .key-hint { position: absolute; inset-block-start: 50%; translate: 0 -50%; }
167
- .field-icon { inset-inline-start: 10px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
168
- .field-icon .icon, .field-icon.icon { inline-size: 14px; block-size: 14px; }
169
- .clear-search, .key-hint { inset-inline-end: 6px; }
170
- .clear-search { min-block-size: 24px; min-inline-size: 24px; }
171
- .key-hint { min-inline-size: 20px; padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: .7rem/1.25 var(--mono); text-align: center; pointer-events: none; }
172
- .field:focus-within .key-hint { visibility: hidden; }
173
- .agent-picker { position: relative; min-width: 0; }
174
- .agent-trigger {
175
- display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px;
176
- border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); text-align: start;
177
- transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
178
- }
179
- .agent-trigger:hover, .agent-trigger[aria-expanded='true'] { border-color: var(--line-strong); background: var(--hover); }
180
- .agent-trigger-mark { display: grid; place-items: center; width: 19px; height: 19px; flex: none; color: var(--muted); }
181
- .agent-trigger-label, .agent-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
182
- .select-chevron { width: 14px; height: 14px; flex: none; margin-inline-start: auto; color: var(--muted); transition: rotate var(--quick) var(--ease); }
183
- .agent-trigger[aria-expanded='true'] .select-chevron { rotate: 180deg; }
184
- .agent-popover {
185
- position: absolute; z-index: 10; inset: calc(100% + 6px) 0 auto; min-width: 0; padding: 4px;
186
- border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); box-shadow: 0 10px 26px var(--shadow);
187
- animation: menu-enter var(--quick) var(--ease) both;
188
- }
189
- .agent-popover[data-placement='above'] { inset-block-start: auto; inset-block-end: calc(100% + 6px); }
190
- @keyframes menu-enter { from { opacity: 0; } }
191
- .agent-options { display: grid; align-content: start; gap: 1px; max-block-size: min(280px, max(60px, calc(45dvh - 12px))); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; }
192
- .agent-option {
193
- display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; min-height: 33px; padding: 5px 6px;
194
- border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: start; font-size: .87rem; cursor: pointer;
195
- }
196
- .agent-option:hover, .agent-option[data-active='true'] { background: var(--hover); }
197
- .agent-option[aria-selected='true'] { color: var(--accent); background: var(--selected); }
198
- .agent-option[data-active='true'] { border-color: var(--selected-line); }
199
- .agent-option-mark { width: 19px; height: 19px; padding: 2px; color: var(--muted); }
200
- .agent-option-check { display: grid; place-items: center; width: 15px; height: 15px; flex: none; color: var(--accent); }
201
- .agent-option:not([aria-selected='true']) .agent-option-check { visibility: hidden; }
202
- .agent-brand-mark {
203
- display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; overflow: hidden;
204
- border-radius: 4px; color: var(--accent); background: var(--selected); font-size: 9px; font-weight: 700; line-height: 1;
205
- }
206
- .agent-brand-mark.has-image, img.agent-brand-mark { background: var(--mark-surface); }
207
- .agent-brand-mark img, img.agent-brand-mark { display: block; width: 100%; height: 100%; padding: 2px; object-fit: contain; }
208
- img.agent-brand-mark { width: 16px; height: 16px; }
209
- .agent-trigger .agent-brand-mark, .agent-option .agent-brand-mark { width: 19px; height: 19px; }
210
- .agent-label { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
211
- .agent-label-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
212
- .project-filters { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 5px; max-block-size: 92px; overflow: auto; scrollbar-width: thin; }
213
- .filter-button {
214
- display: inline-flex; align-items: center; gap: 4px; max-inline-size: 100%; min-block-size: 25px; padding: 2px 7px;
215
- border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .75rem;
216
- transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), color var(--quick) var(--ease);
217
- }
218
- .filter-button:hover { background: var(--hover); color: var(--ink); }
219
- .filter-button[aria-pressed='true'], .filter-button[data-active='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); font-weight: 650; }
220
- .filter-button span:last-child { font-variant-numeric: tabular-nums; }
221
- .project-bulk, .project-feedback {
222
- display: flex; align-items: center; justify-content: space-between; gap: 6px; min-inline-size: 0;
223
- padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); font-size: .76rem;
224
- }
225
- .project-bulk { flex-wrap: wrap; }
226
- .project-bulk-select { display: inline-flex; align-items: center; gap: 6px; min-block-size: 28px; cursor: pointer; white-space: nowrap; }
227
- .project-bulk-select input, .project-check { inline-size: 15px; block-size: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
228
- .project-feedback { margin: 0 12px 7px; }
229
- .project-feedback p { min-inline-size: 0; overflow-wrap: anywhere; }
230
- .project-feedback.error, .project-feedback .error { color: var(--danger); }
231
- .project-list {
232
- display: grid; align-content: start; gap: 3px; min-block-size: 120px; max-block-size: min(60dvh, 590px);
233
- overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 10px 10px;
234
- }
235
- .project-group-heading { padding: 6px 7px 1px; color: var(--muted); font-size: .75rem; font-weight: 650; }
236
- .project-group-heading:first-child { padding-block-start: 2px; }
237
- .project-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; min-inline-size: 0; }
238
- .project-row .project-check { margin-inline-start: 4px; }
239
- .project-row:has(.project-check:checked) { border-radius: 10px; background: var(--field); }
240
- .project {
241
- display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px; width: 100%; padding: 8px 7px;
242
- border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left;
243
- transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
244
- }
245
- .project:hover { background: var(--hover); }
246
- .project:is([aria-pressed='true'], [aria-current='true'], [data-current='true']) { border-color: var(--selected-line); background: var(--selected); }
247
- .project-icon, .asset-icon, .queue-icon { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--accent); }
248
- .project-icon .icon, .asset-icon .icon, .queue-icon .icon { inline-size: 15px; block-size: 15px; }
249
- .project-main { display: grid; min-width: 0; gap: 2px; }
250
- .project-title, .project-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
251
- .project-title { font-size: .9rem; font-weight: 650; }
252
- .project-path, .project-source { color: var(--muted); font-size: .72rem; }
253
- .project-source { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
254
- .project-source .agent-brand-mark { width: 13px; height: 13px; }
255
- .project-source .agent-brand-mark img, .project-source img.agent-brand-mark { padding: 1px; }
256
- .project-state { align-self: start; inline-size: 6px; block-size: 6px; margin-block-start: 7px; border-radius: 50%; color: var(--muted); background: currentColor; }
257
- .project-state[data-state='online'] { color: var(--accent); }
258
- .project-state[data-state='offline'] { color: var(--amber); }
259
- .project-state[data-state='archived'] { border-radius: 2px; }
260
-
261
- .sources { border-block-start: 1px solid var(--line); color: var(--muted); }
262
- .sources summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px 13px; list-style: none; cursor: pointer; font-size: .83rem; }
263
- .sources summary::-webkit-details-marker { display: none; }
264
- .sources summary .icon { inline-size: 14px; block-size: 14px; }
265
- .source-chevron { transition: rotate var(--quick) var(--ease); }
266
- .sources[open] .source-chevron { rotate: 90deg; }
267
- #sources-list { max-block-size: 262px; overflow: auto; scrollbar-width: thin; padding: 0 12px 10px; }
268
- .source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; align-items: baseline; padding: 7px 0; border-block-start: 1px solid var(--line); color: var(--ink); font-size: .75rem; }
269
- .source-row > strong { min-width: 0; }
270
- .source-row > :nth-child(3) { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--muted); }
271
- .source-state, .source-row > :nth-child(2) { color: var(--muted); font-size: .71rem; white-space: nowrap; }
272
- .source-row[data-state='ready'] .source-state, .source-row[data-state='ready'] > :nth-child(2), .source-state[data-state='ready'] { color: var(--accent); }
273
- .source-row[data-state='partial'] .source-state, .source-row[data-state='partial'] > :nth-child(2), .source-state[data-state='partial'] { color: var(--amber); }
274
- .source-row[data-state='error'] .source-state, .source-row[data-state='error'] > :nth-child(2), .source-state[data-state='error'] { color: var(--danger); }
275
-
276
- .detail { padding: clamp(14px, 2vw, 24px); }
277
- .empty {
278
- display: grid; min-block-size: 330px; place-content: center; justify-items: center; gap: 8px;
279
- padding-inline: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere;
280
- }
281
- .empty p { max-inline-size: 36ch; }
282
- .project-heading { display: grid; gap: 10px; padding-block-end: 14px; }
283
- .project-identity { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
284
- .project-mark .icon { inline-size: 21px; block-size: 21px; }
285
- .project-title-block { min-width: 0; flex: 1; }
286
- .project-detail-actions { display: flex; align-items: center; gap: 5px; flex: none; }
287
- .project-detail-actions .secondary { min-block-size: 30px; padding: 4px 8px; font-size: .77rem; white-space: nowrap; }
288
- .project-detail-actions .icon { inline-size: 14px; block-size: 14px; }
289
- .project-detail-actions .project-pin[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
290
- .project-heading h2 { font-size: clamp(1.28rem, 2.2vw, 1.7rem); line-height: 1.22; overflow-wrap: anywhere; }
291
- .project-location { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 5px 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); font-size: .76rem; }
292
- #project-path { display: -webkit-box; flex: 1; min-width: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); }
293
- .path-copy { flex: none; }
294
- .chips { display: flex; flex-wrap: wrap; gap: 4px; }
295
- #project-meta { margin-block-start: 6px; }
296
- .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .73rem; }
297
- .chip[data-state='ready'], .chip[data-state='online'], .chip[data-state='used'] { color: var(--accent); }
298
- .chip[data-state='partial'], .chip[data-state='offline'] { color: var(--amber); }
299
- .chip[data-state='error'] { color: var(--danger); }
300
- .chip[data-state='archived'] { border-color: var(--line-strong); }
301
- .continue-panel {
302
- display: grid; gap: 10px; padding: clamp(12px, 1.6vw, 17px); border: 1px solid var(--selected-line);
303
- border-radius: 13px; background: color-mix(in srgb, var(--selected) 35%, var(--paper));
304
- }
305
- .continue-heading { display: flex; align-items: center; gap: 10px; }
306
- .continue-mark, .disclosure-mark {
307
- display: grid; place-items: center; flex: none; inline-size: 33px; block-size: 33px;
308
- border: 1px solid var(--selected-line); border-radius: 9px; color: var(--accent); background: var(--selected);
309
- }
310
- .continue-heading h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 680; }
311
- .continue-heading p, .recent-status { color: var(--muted); font-size: .82rem; }
312
- .continue-heading p { margin-block-start: 3px; }
313
- .recent-status { padding: 2px 0; }
314
- .conversation-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
315
- .conversation-list:empty { display: none; }
316
- .conversation-item { min-width: 0; }
317
- .conversation-row {
318
- display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left;
319
- width: 100%; min-block-size: 47px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
320
- background: transparent; color: var(--ink); transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
321
- }
322
- .conversation-row:hover, .conversation-row:focus-visible { background: var(--selected); border-color: var(--selected-line); }
323
- .conversation-item + .conversation-item .conversation-row:not(:hover, :focus-visible) { border-block-start-color: var(--line); }
324
- .conversation-row > .agent-brand-mark { width: 28px; height: 28px; border-radius: 7px; }
325
- .conversation-info { display: grid; min-inline-size: 0; gap: 1px; }
326
- .conversation-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 640; }
327
- .conversation-meta { color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
328
- .conversation-action { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: .8rem; white-space: nowrap; }
329
- .conversation-action .icon, .text-action .icon { width: 13px; height: 13px; }
330
- .text-action {
331
- display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content;
332
- min-height: 27px; padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-size: .81rem;
333
- }
334
- .text-action:hover { background: var(--hover); }
335
- #browse-history { justify-self: end; }
336
-
337
- .draft-workflow, .global-library, .handoff { min-width: 0; border: 1px solid var(--line); border-radius: 11px; }
338
- .draft-workflow { margin-block-start: 12px; }
339
- .disclosure {
340
- display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 9px; list-style: none; cursor: pointer;
341
- border-radius: 10px; color: var(--muted); font-size: .82rem;
342
- }
343
- .disclosure::-webkit-details-marker { display: none; }
344
- .disclosure:hover { color: var(--ink); background: var(--hover); }
345
- .draft-summary { min-height: 48px; gap: 9px; padding: 8px 11px; }
346
- .disclosure-mark { inline-size: 28px; block-size: 28px; border-color: var(--line); background: var(--field); }
347
- .draft-title, .disclosure-title { flex: 1; min-width: 0; font-weight: 625; }
348
- .draft-title { color: var(--ink); font-size: .91rem; }
349
- .disclosure-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
350
- .disclosure-chevron { inline-size: 13px; block-size: 13px; transition: transform var(--quick) var(--ease); }
351
- details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
352
- .draft-body { display: grid; gap: 10px; padding: 10px; border-block-start: 1px solid var(--line); }
353
- .draft-intro { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: .83rem; }
354
- .draft-intro .field { flex: 0 1 210px; }
355
- .asset-list {
356
- display: grid; align-content: start; gap: 11px; max-block-size: min(43dvh, 430px);
357
- overflow: auto; scrollbar-width: thin; padding: 4px;
358
- }
359
- .asset-group { min-width: 0; display: grid; gap: 2px; }
360
- .asset-group-heading { display: flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 680; padding-inline: 4px; margin: 0; }
361
- .asset-group-note, .global-note { color: var(--muted); font-size: .75rem; padding: 0 4px 4px; }
362
- .global-note { padding: 3px 9px 5px; }
363
- .global-library .asset-list { margin: 0 5px 5px; max-block-size: min(37dvh, 345px); }
364
- .asset-row {
365
- display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 7px; min-block-size: 47px; padding: 5px 7px;
366
- border: 1px solid transparent; border-block-end-color: var(--line); border-radius: 8px;
367
- transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
368
- }
369
- .asset-row:hover { background: var(--hover); }
370
- .asset-row[data-selected='true'] { background: var(--selected); border-color: var(--selected-line); }
371
- .asset-check, .history input { margin: 0; inline-size: 15px; block-size: 15px; accent-color: var(--primary); flex: none; cursor: pointer; }
372
- .asset-label { display: grid; gap: 2px; min-inline-size: 0; cursor: pointer; }
373
- .asset-title { color: var(--ink); font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
374
- .asset-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
375
- .asset-icon { inline-size: 26px; block-size: 26px; }
376
- .material-suggestion { color: var(--accent); }
377
- .asset-empty { padding: 12px 4px; color: var(--muted); }
378
- .asset-empty.error, .selection-feedback { color: var(--danger); }
379
- .selection-feedback { padding-inline: 4px; font-size: .8rem; }
380
- .asset-view { flex: none; font-size: .78rem; }
381
- .asset-view .icon { inline-size: 13px; block-size: 13px; }
382
-
383
- .draft-actions { display: flex; align-items: flex-start; gap: 7px; }
384
- .handoff { flex: 1; }
385
- .draft-actions .primary { min-block-size: 41px; flex: none; }
386
- .queue-list { display: grid; align-content: start; gap: 3px; max-block-size: min(37dvh, 300px); overflow: auto; scrollbar-width: thin; padding: 3px 7px; }
387
- .queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
388
- .queue-icon { inline-size: 24px; block-size: 24px; background: var(--paper); color: var(--muted); }
389
- .queue-icon .icon { inline-size: 13px; block-size: 13px; }
390
- .queue-icon.icon { padding: 4px; }
391
- .queue-title, .queue-kind { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
392
- .queue-title { color: var(--ink); font-size: .78rem; font-weight: 620; }
393
- .queue-kind, .queue-empty, .history { color: var(--muted); font-size: .75rem; }
394
- .queue-empty { padding: 4px 3px; }
395
- .history { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; }
396
-
397
- .primary, .secondary, .icon-button, .clear-search, .path-copy, .queue-remove, .asset-view {
398
- display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 0; border: 1px solid transparent; border-radius: 8px;
399
- transition: color var(--quick) var(--ease), background var(--quick) var(--ease), border-color var(--quick) var(--ease), transform var(--quick) var(--ease);
400
- }
401
- .primary, .secondary { min-block-size: 34px; padding: 6px 10px; font-size: .84rem; font-weight: 620; text-align: center; text-decoration: none; }
402
- .primary { border-color: var(--primary-line); background: var(--primary); color: var(--primary-ink); }
403
- .primary:hover:not(:disabled) { background: var(--primary-hover); }
404
- .secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
405
- .secondary:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
406
- .primary:active:not(:disabled), .secondary:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
407
- .icon-button, .clear-search, .path-copy, .queue-remove, .asset-view { min-block-size: 29px; min-inline-size: 29px; padding: 4px; background: transparent; color: var(--muted); }
408
- .icon-button:hover:not(:disabled), .clear-search:hover, .path-copy:hover, .asset-view:hover { background: var(--hover); color: var(--ink); }
409
- .secondary.icon-button { min-block-size: 34px; min-inline-size: 34px; border-color: var(--line); background: var(--paper); }
410
- .secondary.icon-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
411
- .clear-search { min-block-size: 25px; min-inline-size: 25px; }
412
- .path-copy { min-block-size: 25px; min-inline-size: 25px; }
413
- .queue-remove { min-block-size: 23px; min-inline-size: 23px; padding: 3px; color: var(--muted); }
414
- .queue-remove:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
415
- .button-icon, .path-copy .icon, .queue-remove .icon { inline-size: 14px; block-size: 14px; }
416
-
417
- dialog {
418
- position: fixed; inset: 0 0 0 auto; margin: 0; width: min(555px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
419
- border: 1px solid var(--line-strong); border-radius: 18px 0 0 18px; background: var(--paper); color: var(--ink); box-shadow: -20px 0 70px var(--shadow); overflow: hidden;
420
- }
421
- dialog[open] { animation: sheet-in 250ms var(--ease) both; }
422
- dialog::backdrop { background: var(--veil); backdrop-filter: blur(2px); }
423
- @keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } }
424
- .dialog-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-width: 0; }
425
- .dialog-heading, .dialog-content, .dialog-actions { min-width: 0; padding: 16px clamp(14px, 3vw, 22px); }
426
- .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-block-end: 1px solid var(--line); }
427
- .dialog-heading > div { flex: 1; min-width: 0; }
428
- .dialog-heading h2 { overflow-wrap: anywhere; }
429
- .dialog-heading p { margin-block-start: 3px; font-size: .84rem; overflow-wrap: anywhere; }
430
- .dialog-content { min-height: 0; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; }
431
- pre {
432
- margin: 0; padding: 11px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
433
- border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); font-size: .82rem; line-height: 1.65;
434
- }
435
- .dialog-text[data-format='plain'] {
436
- padding: 11px; white-space: pre-wrap; overflow-wrap: anywhere;
437
- border: 1px solid var(--line); border-radius: 9px; background: var(--field); font: .82rem/1.65 var(--mono);
438
- }
439
- .dialog-text[data-format='handoff'] { display: grid; gap: 12px; min-width: 0; }
440
- .history-choice { display: grid; gap: 8px; }
441
- .history-choice .conversation-row { border-color: var(--line); }
442
- .history-choice .conversation-row:hover { border-color: var(--selected-line); }
443
- .history-choice #history-more { justify-self: center; }
444
- .history-back { padding-block-end: 10px; }
445
- .history-back .icon { rotate: 180deg; }
446
- .history-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
447
- .history-choice:not([hidden]) { margin-block-end: 14px; }
448
- .dialog-text[data-format='history'] { display: grid; gap: 9px; min-width: 0; }
449
- .history-message { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
450
- .history-message[data-role='user'] { background: var(--field); }
451
- .history-message .preview-body { margin-block-start: 4px; }
452
- .history-message h3 { color: var(--accent); font-size: .78rem; }
453
- .preview-intro, .preview-section { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; }
454
- .preview-intro { background: var(--field); }
455
- .preview-lead { margin-bottom: 8px; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
456
- .preview-meta { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: .76rem; }
457
- .preview-meta > span { flex: none; }
458
- .preview-meta code { min-width: 0; overflow-wrap: anywhere; }
459
- .preview-context { margin-top: 8px; color: var(--muted); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
460
- .preview-section h3 { font-size: .96rem; line-height: 1.4; overflow-wrap: anywhere; }
461
- .preview-source { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
462
- .preview-body { margin-top: 8px; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
463
- .session-choice { display: grid; gap: 7px; margin-block: 12px; }
464
- .session-choice p { overflow-wrap: anywhere; }
465
- .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; border-block-start: 1px solid var(--line); background: var(--paper); }
466
- .dialog-actions:not(:has(> :not([hidden]))) { display: none; }
467
- .export-output { margin-block-start: 10px; }
468
- .export-output summary { color: var(--muted); cursor: pointer; }
469
- .export-output pre { margin-block-start: 7px; max-block-size: 38dvh; }
470
- #dialog-status { margin-block-start: 10px; color: var(--muted); overflow-wrap: anywhere; }
471
-
472
- @media (max-width: 1059px) {
473
- .workspace { grid-template-columns: minmax(214px, 240px) minmax(0, 1fr); }
474
- }
475
- @media (max-width: 700px) {
476
- .app { padding: 12px; }
477
- .topbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-block-end: 12px; padding-block-end: 12px; }
478
- .toolbar { width: 100%; justify-items: start; }
479
- .toolbar-actions, .live-status { justify-content: flex-start; }
480
- .workspace { grid-template-columns: minmax(0, 1fr); gap: 9px; }
481
- .project-list { max-block-size: min(28dvh, 228px); }
482
- .detail { scroll-margin-block-start: 12px; }
483
- .empty { min-block-size: 255px; }
484
- dialog { inset: auto 0 0; width: 100%; height: min(88dvh, 735px); max-height: 88dvh; border-radius: 16px 16px 0 0; }
485
- dialog[open] { animation-name: sheet-up; }
486
- @keyframes sheet-up { from { opacity: 0; transform: translateY(24px); } }
487
- }
488
- @media (max-width: 480px) {
489
- .draft-intro { align-items: stretch; flex-direction: column; }
490
- .draft-intro .field { flex: auto; }
491
- .draft-actions { flex-direction: column; align-items: stretch; }
492
- .draft-actions .primary { align-self: flex-end; }
493
- }
494
- @media (max-width: 385px) {
495
- .asset-row { gap: 5px; padding-inline: 4px; }
496
- .project-identity { gap: 8px; }
497
- .project-detail-actions { flex-direction: column; align-items: stretch; gap: 4px; }
498
- .project-detail-actions .secondary { padding-inline: 6px; }
499
- }
500
- @media (prefers-reduced-motion: reduce) {
501
- *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
502
- }
1
+ @font-face {
2
+ font-family: Geist;
3
+ src: local('Geist Variable'), url('./geist-latin-wght-normal.woff2') format('woff2');
4
+ font-weight: 100 900;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ :root, :root[data-theme='blue'] {
10
+ color-scheme: dark;
11
+ --canvas: #101a2c;
12
+ --paper: #16243a;
13
+ --field: #121f33;
14
+ --hover: #1d2f49;
15
+ --line: #2b3b53;
16
+ --line-strong: #3c5170;
17
+ --ink: #edf3ff;
18
+ --muted: #a4b4cd;
19
+ --accent: #9ec3ff;
20
+ --selected: #223b60;
21
+ --selected-line: #446ca5;
22
+ --focus: #a6caff;
23
+ --amber: #efc67a;
24
+ --danger: #ffb3b9;
25
+ --primary: #3267e4;
26
+ --primary-hover: #295bcd;
27
+ --primary-line: #5580e8;
28
+ --primary-ink: #fff;
29
+ --shadow: #080f2059;
30
+ --veil: #0710209c;
31
+ --mark-surface: #e3eaf5;
32
+ }
33
+ :root[data-theme='white'] {
34
+ color-scheme: light;
35
+ --canvas: #f3f5f8;
36
+ --paper: #fff;
37
+ --field: #f7f8fa;
38
+ --hover: #f1f4f8;
39
+ --line: #e0e5ed;
40
+ --line-strong: #c8d2e1;
41
+ --ink: #192537;
42
+ --muted: #536279;
43
+ --accent: #2558b9;
44
+ --selected: #edf3ff;
45
+ --selected-line: #aec7f4;
46
+ --focus: #2258c4;
47
+ --amber: #805718;
48
+ --danger: #a13e4b;
49
+ --primary: #285fd7;
50
+ --primary-hover: #1f50be;
51
+ --primary-line: #285fd7;
52
+ --shadow: #202c421d;
53
+ --veil: #1c294866;
54
+ --mark-surface: #eef2f7;
55
+ }
56
+ :root[data-theme='black'] {
57
+ color-scheme: dark;
58
+ --canvas: #101114;
59
+ --paper: #191b1f;
60
+ --field: #15171a;
61
+ --hover: #24272c;
62
+ --line: #30343c;
63
+ --line-strong: #464b56;
64
+ --ink: #eef0f4;
65
+ --muted: #abb2be;
66
+ --accent: #b0c6ef;
67
+ --selected: #252e3b;
68
+ --selected-line: #4b5a72;
69
+ --focus: #a5c2fa;
70
+ --amber: #e9c98e;
71
+ --danger: #f3a8af;
72
+ --primary: #345cb1;
73
+ --primary-hover: #2a4e9a;
74
+ --primary-line: #5576bb;
75
+ --shadow: #00000060;
76
+ --veil: #08090bb0;
77
+ --mark-surface: #e6e8ed;
78
+ }
79
+ :root {
80
+ --ease: cubic-bezier(.22, 1, .36, 1);
81
+ --quick: 170ms;
82
+ --radius: 18px;
83
+ --panel-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
84
+ --mono: 'IBM Plex Mono', 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
85
+ font: 14px/1.5 Geist, 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
86
+ }
87
+
88
+ * { box-sizing: border-box; }
89
+ [hidden] { display: none !important; }
90
+ body { margin: 0; min-width: 0; color: var(--ink); background: var(--canvas); }
91
+ body:has(dialog[open]) { overflow: hidden; }
92
+ h1, h2, h3, p { margin: 0; }
93
+ h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 680; }
94
+ h2 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 660; }
95
+ code, pre, .project-path, .project-location { font-family: var(--mono); }
96
+ button, input, select { font: inherit; }
97
+ button { cursor: pointer; }
98
+ button:disabled { opacity: .55; cursor: default; }
99
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
100
+ .icon-defs { position: absolute; inline-size: 0; block-size: 0; }
101
+ .icon { inline-size: 16px; block-size: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
102
+ .muted { color: var(--muted); }
103
+ .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
104
+
105
+ .app { max-width: 1500px; margin-inline: auto; padding: clamp(16px, 2.6vw, 36px); }
106
+ .topbar, .brand, .toolbar-actions, .live-status { display: flex; align-items: center; }
107
+ .topbar { justify-content: space-between; gap: 16px; margin-block-end: 20px; padding-block-end: 18px; border-block-end: 1px solid var(--line-strong); }
108
+ .brand { min-width: 0; gap: 13px; }
109
+ .brand-mark, .project-mark {
110
+ display: grid; place-items: center; flex: none; inline-size: 42px; block-size: 42px;
111
+ border-radius: 13px; border: 1px solid var(--selected-line); color: var(--accent); background: var(--selected);
112
+ }
113
+ .brand-mark { box-shadow: inset 0 1px #ffffff14; }
114
+ .brand-mark .icon { inline-size: 23px; block-size: 23px; }
115
+ .brand p { margin-block-start: 3px; color: var(--muted); font-size: .88rem; }
116
+ .toolbar { min-width: 0; display: grid; justify-items: end; gap: 6px; }
117
+ .toolbar-actions, .live-status { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
118
+ .theme-picker { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
119
+ .theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 25px; min-height: 25px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
120
+ .theme-option:hover { background: var(--hover); color: var(--ink); }
121
+ .theme-option[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
122
+ .theme-swatch { width: 12px; height: 12px; border: 1px solid #95a5bc; border-radius: 50%; background: #3169e8; }
123
+ .theme-option[data-theme-choice='white'] .theme-swatch { background: #f7f8fb; }
124
+ .theme-option[data-theme-choice='black'] .theme-swatch { background: #191b20; }
125
+ .live-status { color: var(--muted); font-size: .78rem; line-height: 1.3; }
126
+ .live-status time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
127
+ .live-status time::before { content: '· '; }
128
+ #live-state { display: inline-flex; align-items: center; gap: 6px; }
129
+ #live-state::before {
130
+ content: ''; inline-size: 6px; block-size: 6px; flex: none; border-radius: 50%; background: currentColor;
131
+ box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
132
+ }
133
+ #live-state[data-state='active'] { color: var(--accent); }
134
+ #live-state[data-state='paused'] { color: var(--amber); }
135
+ #live-state[data-state='error'] { color: var(--danger); }
136
+ .status { margin-block: -5px 13px; padding: 8px 11px; border-radius: 9px; background: var(--paper); color: var(--muted); }
137
+ .status:empty, #dialog-status:empty, .recent-status:empty, .selection-feedback:empty { display: none; }
138
+ .error, #dialog-status.error { color: var(--danger); }
139
+
140
+ .workspace { display: grid; grid-template-columns: minmax(222px, 252px) minmax(0, 1fr); align-items: start; gap: 14px; }
141
+ .projects, .detail {
142
+ min-inline-size: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--panel-shadow);
143
+ }
144
+ .projects { display: flex; flex-direction: column; }
145
+ .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 10px; }
146
+ .project-list-actions { display: flex; align-items: center; gap: 8px; }
147
+ .list-heading .project-manage, .project-bulk .project-bulk-action, .project-feedback .project-undo {
148
+ min-block-size: 28px; padding: 3px 7px; font-size: .76rem; white-space: nowrap;
149
+ }
150
+ .project-manage .icon { inline-size: 14px; block-size: 14px; }
151
+ .project-list-actions .project-manage[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
152
+ #project-count, .disclosure-count {
153
+ color: var(--muted); font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap;
154
+ }
155
+ .project-controls { display: grid; gap: 9px; padding: 0 12px 10px; }
156
+ .field { position: relative; min-inline-size: 0; }
157
+ input[type='search'], select {
158
+ min-inline-size: 0; inline-size: 100%; min-block-size: 36px; padding: 7px 10px;
159
+ border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink);
160
+ transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
161
+ }
162
+ input::placeholder { color: var(--muted); opacity: 1; }
163
+ input[type='search']:focus, select:focus { border-color: var(--focus); }
164
+ .field input[type='search'] { padding-inline: 32px 34px; }
165
+ .field input[type='search']::-webkit-search-cancel-button { appearance: none; }
166
+ .field-icon, .clear-search, .key-hint { position: absolute; inset-block-start: 50%; translate: 0 -50%; }
167
+ .field-icon { inset-inline-start: 10px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
168
+ .field-icon .icon, .field-icon.icon { inline-size: 14px; block-size: 14px; }
169
+ .clear-search, .key-hint { inset-inline-end: 6px; }
170
+ .clear-search { min-block-size: 24px; min-inline-size: 24px; }
171
+ .key-hint { min-inline-size: 20px; padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: .7rem/1.25 var(--mono); text-align: center; pointer-events: none; }
172
+ .field:focus-within .key-hint { visibility: hidden; }
173
+ .agent-picker { position: relative; min-width: 0; }
174
+ .agent-trigger {
175
+ display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px;
176
+ border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); text-align: start;
177
+ transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
178
+ }
179
+ .agent-trigger:hover, .agent-trigger[aria-expanded='true'] { border-color: var(--line-strong); background: var(--hover); }
180
+ .agent-trigger-mark { display: grid; place-items: center; width: 19px; height: 19px; flex: none; color: var(--muted); }
181
+ .agent-trigger-label, .agent-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
182
+ .select-chevron { width: 14px; height: 14px; flex: none; margin-inline-start: auto; color: var(--muted); transition: rotate var(--quick) var(--ease); }
183
+ .agent-trigger[aria-expanded='true'] .select-chevron { rotate: 180deg; }
184
+ .agent-popover {
185
+ position: absolute; z-index: 10; inset: calc(100% + 6px) 0 auto; min-width: 0; padding: 4px;
186
+ border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); box-shadow: 0 10px 26px var(--shadow);
187
+ animation: menu-enter var(--quick) var(--ease) both;
188
+ }
189
+ .agent-popover[data-placement='above'] { inset-block-start: auto; inset-block-end: calc(100% + 6px); }
190
+ @keyframes menu-enter { from { opacity: 0; } }
191
+ .agent-options { display: grid; align-content: start; gap: 1px; max-block-size: min(280px, max(60px, calc(45dvh - 12px))); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; }
192
+ .agent-option {
193
+ display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; min-height: 33px; padding: 5px 6px;
194
+ border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: start; font-size: .87rem; cursor: pointer;
195
+ }
196
+ .agent-option:hover, .agent-option[data-active='true'] { background: var(--hover); }
197
+ .agent-option[aria-selected='true'] { color: var(--accent); background: var(--selected); }
198
+ .agent-option[data-active='true'] { border-color: var(--selected-line); }
199
+ .agent-option-mark { width: 19px; height: 19px; padding: 2px; color: var(--muted); }
200
+ .agent-option-check { display: grid; place-items: center; width: 15px; height: 15px; flex: none; color: var(--accent); }
201
+ .agent-option:not([aria-selected='true']) .agent-option-check { visibility: hidden; }
202
+ .agent-brand-mark {
203
+ display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; overflow: hidden;
204
+ border-radius: 4px; color: var(--accent); background: var(--selected); font-size: 9px; font-weight: 700; line-height: 1;
205
+ }
206
+ .agent-brand-mark.has-image, img.agent-brand-mark { background: var(--mark-surface); }
207
+ .agent-brand-mark img, img.agent-brand-mark { display: block; width: 100%; height: 100%; padding: 2px; object-fit: contain; }
208
+ img.agent-brand-mark { width: 16px; height: 16px; }
209
+ .agent-trigger .agent-brand-mark, .agent-option .agent-brand-mark { width: 19px; height: 19px; }
210
+ .agent-label { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
211
+ .agent-label-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
212
+ .project-filters { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 5px; max-block-size: 92px; overflow: auto; scrollbar-width: thin; }
213
+ .filter-button {
214
+ display: inline-flex; align-items: center; gap: 4px; max-inline-size: 100%; min-block-size: 25px; padding: 2px 7px;
215
+ border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .75rem;
216
+ transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), color var(--quick) var(--ease);
217
+ }
218
+ .filter-button:hover { background: var(--hover); color: var(--ink); }
219
+ .filter-button[aria-pressed='true'], .filter-button[data-active='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); font-weight: 650; }
220
+ .filter-button span:last-child { font-variant-numeric: tabular-nums; }
221
+ .project-bulk, .project-feedback {
222
+ display: flex; align-items: center; justify-content: space-between; gap: 6px; min-inline-size: 0;
223
+ padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); font-size: .76rem;
224
+ }
225
+ .project-bulk { flex-wrap: wrap; }
226
+ .project-bulk-select { display: inline-flex; align-items: center; gap: 6px; min-block-size: 28px; cursor: pointer; white-space: nowrap; }
227
+ .project-bulk-select input, .project-check { inline-size: 15px; block-size: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
228
+ .project-feedback { margin: 0 12px 7px; }
229
+ .project-feedback p { min-inline-size: 0; overflow-wrap: anywhere; }
230
+ .project-feedback.error, .project-feedback .error { color: var(--danger); }
231
+ .project-list {
232
+ display: grid; align-content: start; gap: 3px; min-block-size: 120px; max-block-size: min(60dvh, 590px);
233
+ overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 10px 10px;
234
+ }
235
+ .project-group-heading { padding: 6px 7px 1px; color: var(--muted); font-size: .75rem; font-weight: 650; }
236
+ .project-group-heading:first-child { padding-block-start: 2px; }
237
+ .project-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; min-inline-size: 0; }
238
+ .project-row .project-check { margin-inline-start: 4px; }
239
+ .project-row:has(.project-check:checked) { border-radius: 10px; background: var(--field); }
240
+ .project {
241
+ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px; width: 100%; padding: 8px 7px;
242
+ border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left;
243
+ transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
244
+ }
245
+ .project:hover { background: var(--hover); }
246
+ .project:is([aria-pressed='true'], [aria-current='true'], [data-current='true']) { border-color: var(--selected-line); background: var(--selected); }
247
+ .project-icon, .asset-icon, .queue-icon { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--accent); }
248
+ .project-icon .icon, .asset-icon .icon, .queue-icon .icon { inline-size: 15px; block-size: 15px; }
249
+ .project-main { display: grid; min-width: 0; gap: 2px; }
250
+ .project-title, .project-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
251
+ .project-title { font-size: .9rem; font-weight: 650; }
252
+ .project-path, .project-source { color: var(--muted); font-size: .72rem; }
253
+ .project-source { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
254
+ .project-source .agent-brand-mark { width: 13px; height: 13px; }
255
+ .project-source .agent-brand-mark img, .project-source img.agent-brand-mark { padding: 1px; }
256
+ .project-state { align-self: start; inline-size: 6px; block-size: 6px; margin-block-start: 7px; border-radius: 50%; color: var(--muted); background: currentColor; }
257
+ .project-state[data-state='online'] { color: var(--accent); }
258
+ .project-state[data-state='offline'] { color: var(--amber); }
259
+ .project-state[data-state='archived'] { border-radius: 2px; }
260
+
261
+ .sources { border-block-start: 1px solid var(--line); color: var(--muted); }
262
+ .sources summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px 13px; list-style: none; cursor: pointer; font-size: .83rem; }
263
+ .sources summary::-webkit-details-marker { display: none; }
264
+ .sources summary .icon { inline-size: 14px; block-size: 14px; }
265
+ .source-chevron { transition: rotate var(--quick) var(--ease); }
266
+ .sources[open] .source-chevron { rotate: 90deg; }
267
+ #sources-list { max-block-size: 262px; overflow: auto; scrollbar-width: thin; padding: 0 12px 10px; }
268
+ .source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; align-items: baseline; padding: 7px 0; border-block-start: 1px solid var(--line); color: var(--ink); font-size: .75rem; }
269
+ .source-row > strong { min-width: 0; }
270
+ .source-row > :nth-child(3) { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--muted); }
271
+ .source-state, .source-row > :nth-child(2) { color: var(--muted); font-size: .71rem; white-space: nowrap; }
272
+ .source-row[data-state='ready'] .source-state, .source-row[data-state='ready'] > :nth-child(2), .source-state[data-state='ready'] { color: var(--accent); }
273
+ .source-row[data-state='partial'] .source-state, .source-row[data-state='partial'] > :nth-child(2), .source-state[data-state='partial'] { color: var(--amber); }
274
+ .source-row[data-state='error'] .source-state, .source-row[data-state='error'] > :nth-child(2), .source-state[data-state='error'] { color: var(--danger); }
275
+
276
+ .detail { padding: clamp(14px, 2vw, 24px); }
277
+ .empty {
278
+ display: grid; min-block-size: 330px; place-content: center; justify-items: center; gap: 8px;
279
+ padding-inline: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere;
280
+ }
281
+ .empty p { max-inline-size: 36ch; }
282
+ .project-heading { display: grid; gap: 10px; padding-block-end: 14px; }
283
+ .project-identity { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
284
+ .project-mark .icon { inline-size: 21px; block-size: 21px; }
285
+ .project-title-block { min-width: 0; flex: 1; }
286
+ .project-detail-actions { display: flex; align-items: center; gap: 5px; flex: none; }
287
+ .project-detail-actions .secondary { min-block-size: 30px; padding: 4px 8px; font-size: .77rem; white-space: nowrap; }
288
+ .project-detail-actions .icon { inline-size: 14px; block-size: 14px; }
289
+ .project-detail-actions .project-pin[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
290
+ .project-heading h2 { font-size: clamp(1.28rem, 2.2vw, 1.7rem); line-height: 1.22; overflow-wrap: anywhere; }
291
+ .project-location { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 5px 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); font-size: .76rem; }
292
+ #project-path { display: -webkit-box; flex: 1; min-width: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); }
293
+ .path-copy { flex: none; }
294
+ .chips { display: flex; flex-wrap: wrap; gap: 4px; }
295
+ #project-meta { margin-block-start: 6px; }
296
+ .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .73rem; }
297
+ .chip[data-state='ready'], .chip[data-state='online'], .chip[data-state='used'] { color: var(--accent); }
298
+ .chip[data-state='partial'], .chip[data-state='offline'] { color: var(--amber); }
299
+ .chip[data-state='error'] { color: var(--danger); }
300
+ .chip[data-state='archived'] { border-color: var(--line-strong); }
301
+ .continue-panel {
302
+ display: grid; gap: 10px; padding: clamp(12px, 1.6vw, 17px); border: 1px solid var(--selected-line);
303
+ border-radius: 13px; background: color-mix(in srgb, var(--selected) 35%, var(--paper));
304
+ }
305
+ .continue-heading { display: flex; align-items: center; gap: 10px; }
306
+ .continue-mark, .disclosure-mark {
307
+ display: grid; place-items: center; flex: none; inline-size: 33px; block-size: 33px;
308
+ border: 1px solid var(--selected-line); border-radius: 9px; color: var(--accent); background: var(--selected);
309
+ }
310
+ .continue-heading h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 680; }
311
+ .continue-heading p, .recent-status { color: var(--muted); font-size: .82rem; }
312
+ .continue-heading p { margin-block-start: 3px; }
313
+ .recent-status { padding: 2px 0; }
314
+ .conversation-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
315
+ .conversation-list:empty { display: none; }
316
+ .conversation-item { min-width: 0; }
317
+ .conversation-row {
318
+ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left;
319
+ width: 100%; min-block-size: 47px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
320
+ background: transparent; color: var(--ink); transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
321
+ }
322
+ .conversation-row:hover, .conversation-row:focus-visible { background: var(--selected); border-color: var(--selected-line); }
323
+ .conversation-item + .conversation-item .conversation-row:not(:hover, :focus-visible) { border-block-start-color: var(--line); }
324
+ .conversation-row > .agent-brand-mark { width: 28px; height: 28px; border-radius: 7px; }
325
+ .conversation-info { display: grid; min-inline-size: 0; gap: 1px; }
326
+ .conversation-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 640; }
327
+ .conversation-meta { color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
328
+ .conversation-action { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: .8rem; white-space: nowrap; }
329
+ .conversation-action .icon, .text-action .icon { width: 13px; height: 13px; }
330
+ .text-action {
331
+ display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content;
332
+ min-height: 27px; padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-size: .81rem;
333
+ }
334
+ .text-action:hover { background: var(--hover); }
335
+ #browse-history { justify-self: end; }
336
+
337
+ .draft-workflow, .global-library, .handoff { min-width: 0; border: 1px solid var(--line); border-radius: 11px; }
338
+ .draft-workflow { margin-block-start: 12px; }
339
+ .disclosure {
340
+ display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 9px; list-style: none; cursor: pointer;
341
+ border-radius: 10px; color: var(--muted); font-size: .82rem;
342
+ }
343
+ .disclosure::-webkit-details-marker { display: none; }
344
+ .disclosure:hover { color: var(--ink); background: var(--hover); }
345
+ .draft-summary { min-height: 48px; gap: 9px; padding: 8px 11px; }
346
+ .disclosure-mark { inline-size: 28px; block-size: 28px; border-color: var(--line); background: var(--field); }
347
+ .draft-title, .disclosure-title { flex: 1; min-width: 0; font-weight: 625; }
348
+ .draft-title { color: var(--ink); font-size: .91rem; }
349
+ .disclosure-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
350
+ .disclosure-chevron { inline-size: 13px; block-size: 13px; transition: transform var(--quick) var(--ease); }
351
+ details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
352
+ .draft-body { display: grid; gap: 10px; padding: 10px; border-block-start: 1px solid var(--line); }
353
+ .draft-intro { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: .83rem; }
354
+ .draft-intro .field { flex: 0 1 210px; }
355
+ .asset-list {
356
+ display: grid; align-content: start; gap: 11px; max-block-size: min(43dvh, 430px);
357
+ overflow: auto; scrollbar-width: thin; padding: 4px;
358
+ }
359
+ .asset-group { min-width: 0; display: grid; gap: 2px; }
360
+ .asset-group-heading { display: flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 680; padding-inline: 4px; margin: 0; }
361
+ .asset-group-note, .global-note { color: var(--muted); font-size: .75rem; padding: 0 4px 4px; }
362
+ .global-note { padding: 3px 9px 5px; }
363
+ .global-library .asset-list { margin: 0 5px 5px; max-block-size: min(37dvh, 345px); }
364
+ .asset-row {
365
+ display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 5px; min-block-size: 47px; padding: 5px 7px;
366
+ border: 1px solid transparent; border-block-end-color: var(--line); border-radius: 8px;
367
+ transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
368
+ }
369
+ .asset-row:hover { background: var(--hover); }
370
+ .asset-row[data-selected='true'] { background: var(--selected); border-color: var(--selected-line); }
371
+ .asset-check, .history input { margin: 0; inline-size: 15px; block-size: 15px; accent-color: var(--primary); flex: none; cursor: pointer; }
372
+ .asset-label { display: grid; gap: 2px; min-inline-size: 0; cursor: pointer; }
373
+ .asset-title { color: var(--ink); font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
374
+ .asset-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
375
+ .asset-icon { inline-size: 26px; block-size: 26px; }
376
+ .material-suggestion { color: var(--accent); }
377
+ .asset-empty { padding: 12px 4px; color: var(--muted); }
378
+ .asset-empty.error, .selection-feedback { color: var(--danger); }
379
+ .selection-feedback { padding-inline: 4px; font-size: .8rem; }
380
+ .asset-view { flex: none; font-size: .78rem; }
381
+ .asset-view .icon { inline-size: 13px; block-size: 13px; }
382
+ .asset-open { min-block-size: 25px; min-inline-size: 25px; padding: 3px; background: transparent; color: var(--muted); }
383
+ .asset-open:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
384
+ .asset-open .icon { inline-size: 14px; block-size: 14px; }
385
+ .skill-status { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; }
386
+ .skill-status[data-state='callable'], .skill-status[data-state='native'], .skill-status[data-state='active'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
387
+ .skill-status[data-state='enable'], .skill-status[data-state='available'], .skill-status[data-state='pending'] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
388
+ .skill-status[data-state='handoff'] { color: var(--muted); }
389
+ .skill-status[data-state='unverified'] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
390
+ .skill-status[data-state='disabled'] { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
391
+ .asset-status-note { inline-size: 100%; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
392
+ .skill-choice-panel { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
393
+ .skill-choice-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
394
+ .skill-choice-heading strong { font-size: .84rem; }
395
+ .skill-choice-heading span { color: var(--muted); font-size: .74rem; }
396
+ .skill-choice-list { display: flex; flex-wrap: wrap; gap: 6px; }
397
+ .skill-choice { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
398
+ .skill-choice:has(input:checked) { border-color: var(--selected-line); background: var(--selected); }
399
+ .skill-choice:has(input:disabled) { color: var(--muted); }
400
+ .skill-choice input { margin: 0; inline-size: 14px; block-size: 14px; accent-color: var(--primary); }
401
+ .skill-choice-text { display: grid; gap: 1px; min-width: 0; }
402
+ .skill-choice-name { font-size: .8rem; font-weight: 650; overflow-wrap: anywhere; }
403
+ .skill-choice-note { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
404
+ .skill-manager { display: grid; gap: 10px; }
405
+ .skill-manager-meta { display: grid; gap: 5px; }
406
+ .skill-manager-meta div { display: flex; gap: 8px; font-size: .78rem; }
407
+ .skill-manager-meta span { flex: none; color: var(--muted); }
408
+ .skill-manager-meta code { min-width: 0; overflow-wrap: anywhere; }
409
+
410
+ .draft-actions { display: flex; align-items: flex-start; gap: 7px; }
411
+ .handoff { flex: 1; }
412
+ .draft-actions .primary { min-block-size: 41px; flex: none; }
413
+ .queue-list { display: grid; align-content: start; gap: 3px; max-block-size: min(37dvh, 300px); overflow: auto; scrollbar-width: thin; padding: 3px 7px; }
414
+ .queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
415
+ .queue-icon { inline-size: 24px; block-size: 24px; background: var(--paper); color: var(--muted); }
416
+ .queue-icon .icon { inline-size: 13px; block-size: 13px; }
417
+ .queue-icon.icon { padding: 4px; }
418
+ .queue-title, .queue-kind { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
419
+ .queue-title { color: var(--ink); font-size: .78rem; font-weight: 620; }
420
+ .queue-kind, .queue-empty, .history { color: var(--muted); font-size: .75rem; }
421
+ .queue-empty { padding: 4px 3px; }
422
+ .history { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; }
423
+
424
+ .primary, .secondary, .icon-button, .clear-search, .path-copy, .path-open, .queue-remove, .asset-view, .asset-open {
425
+ display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 0; border: 1px solid transparent; border-radius: 8px;
426
+ transition: color var(--quick) var(--ease), background var(--quick) var(--ease), border-color var(--quick) var(--ease), transform var(--quick) var(--ease);
427
+ }
428
+ .primary, .secondary { min-block-size: 34px; padding: 6px 10px; font-size: .84rem; font-weight: 620; text-align: center; text-decoration: none; }
429
+ .primary { border-color: var(--primary-line); background: var(--primary); color: var(--primary-ink); }
430
+ .primary:hover:not(:disabled) { background: var(--primary-hover); }
431
+ .secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
432
+ .secondary:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
433
+ .primary:active:not(:disabled), .secondary:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
434
+ .icon-button, .clear-search, .path-copy, .path-open, .queue-remove, .asset-view, .asset-open { min-block-size: 29px; min-inline-size: 29px; padding: 4px; background: transparent; color: var(--muted); }
435
+ .icon-button:hover:not(:disabled), .clear-search:hover, .path-copy:hover, .path-open:hover:not(:disabled), .asset-view:hover, .asset-open:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
436
+ .secondary.icon-button { min-block-size: 34px; min-inline-size: 34px; border-color: var(--line); background: var(--paper); }
437
+ .secondary.icon-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
438
+ .clear-search { min-block-size: 25px; min-inline-size: 25px; }
439
+ .path-copy { min-block-size: 25px; min-inline-size: 25px; }
440
+ .path-open { min-block-size: 25px; padding: 3px 7px; font-size: .74rem; color: var(--muted); }
441
+ .path-open .icon { inline-size: 13px; block-size: 13px; }
442
+ .queue-remove { min-block-size: 23px; min-inline-size: 23px; padding: 3px; color: var(--muted); }
443
+ .queue-remove:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
444
+ .button-icon, .path-copy .icon, .path-open .icon, .queue-remove .icon { inline-size: 14px; block-size: 14px; }
445
+
446
+ dialog {
447
+ position: fixed; inset: 0 0 0 auto; margin: 0; width: min(555px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
448
+ border: 1px solid var(--line-strong); border-radius: 18px 0 0 18px; background: var(--paper); color: var(--ink); box-shadow: -20px 0 70px var(--shadow); overflow: hidden;
449
+ }
450
+ dialog[open] { animation: sheet-in 250ms var(--ease) both; }
451
+ dialog::backdrop { background: var(--veil); backdrop-filter: blur(2px); }
452
+ @keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } }
453
+ .dialog-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-width: 0; }
454
+ .dialog-heading, .dialog-content, .dialog-actions { min-width: 0; padding: 16px clamp(14px, 3vw, 22px); }
455
+ .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-block-end: 1px solid var(--line); }
456
+ .dialog-heading > div { flex: 1; min-width: 0; }
457
+ .dialog-heading h2 { overflow-wrap: anywhere; }
458
+ .dialog-heading p { margin-block-start: 3px; font-size: .84rem; overflow-wrap: anywhere; }
459
+ .dialog-content { min-height: 0; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; }
460
+ pre {
461
+ margin: 0; padding: 11px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
462
+ border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); font-size: .82rem; line-height: 1.65;
463
+ }
464
+ .dialog-text[data-format='plain'] {
465
+ padding: 11px; white-space: pre-wrap; overflow-wrap: anywhere;
466
+ border: 1px solid var(--line); border-radius: 9px; background: var(--field); font: .82rem/1.65 var(--mono);
467
+ }
468
+ .dialog-text[data-format='handoff'] { display: grid; gap: 12px; min-width: 0; }
469
+ .dialog-text[data-format='markdown'] {
470
+ padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
471
+ font-size: .9rem; line-height: 1.75; overflow-wrap: anywhere;
472
+ }
473
+ .history-choice { display: grid; gap: 8px; }
474
+ .history-choice .conversation-row { border-color: var(--line); }
475
+ .history-choice .conversation-row:hover { border-color: var(--selected-line); }
476
+ .history-choice #history-more { justify-self: center; }
477
+ .history-back { padding-block-end: 10px; }
478
+ .history-back .icon { rotate: 180deg; }
479
+ .history-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
480
+ .history-choice:not([hidden]) { margin-block-end: 14px; }
481
+ .dialog-text[data-format='history'] { display: grid; gap: 9px; min-width: 0; }
482
+ .history-message { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
483
+ .history-message[data-role='user'] { background: var(--field); }
484
+ .history-message .preview-body { margin-block-start: 4px; }
485
+ .history-message h3 { color: var(--accent); font-size: .78rem; }
486
+ .source-stats { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
487
+ .source-stats h3 { font-size: .86rem; font-weight: 650; }
488
+ .source-stats-grid {
489
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr));
490
+ gap: 8px 12px; margin: 7px 0 0;
491
+ }
492
+ .source-stats-grid dt, .source-stats p { color: var(--muted); font-size: .76rem; }
493
+ .source-stats-grid dd { margin: 0; font-size: 1.06rem; font-weight: 620; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
494
+ .source-stats p { margin-block-start: 6px; }
495
+ .trace-disclosure { margin-block-start: 8px; border-block-start: 1px dashed var(--line); padding-block-start: 7px; }
496
+ .trace-disclosure > summary { color: var(--muted); font-size: .78rem; cursor: pointer; }
497
+ .trace-disclosure > summary:hover { color: var(--ink); }
498
+ .trace-list { display: grid; gap: 6px; margin-block-start: 7px; }
499
+ .trace-turn-list > .trace-disclosure { margin-block-start: 0; border-block-start-style: solid; }
500
+ .trace-turn-list > .trace-disclosure > summary { padding-block-end: 4px; color: var(--ink); }
501
+ .trace-item { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
502
+ .trace-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .76rem; }
503
+ .trace-kind { color: var(--accent); font-weight: 600; }
504
+ .trace-name { font-size: .74rem; overflow-wrap: anywhere; }
505
+ .trace-time { color: var(--muted); }
506
+ .trace-state { padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
507
+ .trace-state[data-state='missing'], .trace-state[data-state='pending'] { color: var(--amber); }
508
+ .trace-state[data-state='error'] { color: var(--danger); }
509
+ .trace-text { margin-block-start: 5px; max-block-size: 34dvh; overflow: auto; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
510
+ .trace-empty { color: var(--muted); font-style: italic; }
511
+ .trace-copy { margin-block-start: 6px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--muted); font-size: .74rem; }
512
+ .trace-copy:hover { background: var(--hover); color: var(--ink); }
513
+ .preview-intro, .preview-section { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; }
514
+ .preview-intro { background: var(--field); }
515
+ .preview-lead { margin-bottom: 8px; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
516
+ .preview-meta { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: .76rem; }
517
+ .preview-meta > span { flex: none; }
518
+ .preview-meta code { min-width: 0; overflow-wrap: anywhere; }
519
+ .preview-meta .path-actions { margin-inline-start: auto; }
520
+ .path-actions { display: inline-flex; align-items: center; gap: 2px; flex: none; }
521
+ .preview-source-row { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 5px; }
522
+ .preview-source-row .preview-source { flex: 1; margin-top: 0; }
523
+ .preview-context { margin-top: 8px; color: var(--muted); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
524
+ .preview-section h3 { font-size: .96rem; line-height: 1.4; overflow-wrap: anywhere; }
525
+ .preview-source { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
526
+ .preview-body { margin-top: 8px; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
527
+ .preview-body[data-format='markdown'] { white-space: normal; }
528
+
529
+ .dialog-text[data-format='markdown'] > :first-child, .preview-body[data-format='markdown'] > :first-child { margin-block-start: 0; }
530
+ .dialog-text[data-format='markdown'] > :last-child, .preview-body[data-format='markdown'] > :last-child { margin-block-end: 0; }
531
+ .md-heading { margin-block: 1.35em .55em; line-height: 1.3; letter-spacing: -.02em; font-weight: 660; overflow-wrap: anywhere; }
532
+ h2.md-heading { font-size: 1.3rem; }
533
+ h3.md-heading { font-size: 1.1rem; }
534
+ h4.md-heading { font-size: 1rem; }
535
+ h5.md-heading, h6.md-heading { font-size: .93rem; color: var(--muted); letter-spacing: 0; }
536
+ .dialog-text[data-format='markdown'] > .md-heading:first-child { margin-block-start: 0; }
537
+ .md-paragraph { margin-block: .7em; }
538
+ .md-list { margin-block: .7em; padding-inline-start: 1.45em; }
539
+ .md-list .md-list { margin-block: .25em; }
540
+ .md-list li { margin-block: .28em; padding-inline-start: .15em; }
541
+ .md-list li::marker { color: var(--muted); }
542
+ .md-task { list-style: none; margin-inline-start: -1.25em; }
543
+ .md-task-box { margin-inline-end: .45em; color: var(--accent); }
544
+ .md-quote { margin-block: .8em; padding: .1em 0 .1em .95em; border-inline-start: 3px solid var(--line-strong); color: var(--muted); }
545
+ .md-quote > .md-paragraph { margin-block: .45em; }
546
+ .md-rule { margin-block: 1.15em; border: 0; border-block-start: 1px solid var(--line); }
547
+ .md-block { margin-block: .8em; padding: 11px 13px; font-size: .82rem; line-height: 1.62; }
548
+ .md-code { padding: .1em .35em; border: 1px solid var(--line); border-radius: 5px; background: var(--field); font-size: .86em; }
549
+ .md-link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 2px; overflow-wrap: anywhere; }
550
+ .md-link:hover { text-decoration-color: currentColor; }
551
+ .md-reference-open { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
552
+ .md-reference .path-copy { vertical-align: middle; margin-inline-start: .2em; }
553
+ .md-image { color: var(--muted); font-size: .84em; }
554
+ .md-table-wrap { margin-block: .85em; max-inline-size: 100%; overflow-x: auto; }
555
+ .md-table { border-collapse: collapse; inline-size: 100%; font-size: .84rem; }
556
+ .md-table th, .md-table td { padding: 6px 9px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
557
+ .md-table th { background: var(--field); font-weight: 620; }
558
+ .md-table .md-align-center { text-align: center; }
559
+ .md-table .md-align-right { text-align: end; }
560
+ .session-choice { display: grid; gap: 7px; margin-block: 12px; }
561
+ .session-choice p { overflow-wrap: anywhere; }
562
+ #session-source-record:empty { display: none; }
563
+ .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; border-block-start: 1px solid var(--line); background: var(--paper); }
564
+ .dialog-actions:not(:has(> :not([hidden]))) { display: none; }
565
+ .export-output { margin-block-start: 10px; }
566
+ .export-output summary { color: var(--muted); cursor: pointer; }
567
+ .export-output pre { margin-block-start: 7px; max-block-size: 38dvh; }
568
+ .export-trace-option { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; color: var(--muted); font-size: .78rem; cursor: pointer; }
569
+ .export-trace-option input { margin: 0; inline-size: 14px; block-size: 14px; accent-color: var(--primary); }
570
+ #dialog-status, #activate-status { margin-block-start: 10px; color: var(--muted); overflow-wrap: anywhere; }
571
+ #dialog-status:empty, #activate-status:empty { display: none; }
572
+
573
+ @media (max-width: 1059px) {
574
+ .workspace { grid-template-columns: minmax(214px, 240px) minmax(0, 1fr); }
575
+ }
576
+ @media (max-width: 700px) {
577
+ .app { padding: 12px; }
578
+ .topbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-block-end: 12px; padding-block-end: 12px; }
579
+ .toolbar { width: 100%; justify-items: start; }
580
+ .toolbar-actions, .live-status { justify-content: flex-start; }
581
+ .workspace { grid-template-columns: minmax(0, 1fr); gap: 9px; }
582
+ .project-list { max-block-size: min(28dvh, 228px); }
583
+ .detail { scroll-margin-block-start: 12px; }
584
+ .empty { min-block-size: 255px; }
585
+ dialog { inset: auto 0 0; width: 100%; height: min(88dvh, 735px); max-height: 88dvh; border-radius: 16px 16px 0 0; }
586
+ dialog[open] { animation-name: sheet-up; }
587
+ @keyframes sheet-up { from { opacity: 0; transform: translateY(24px); } }
588
+ }
589
+ @media (max-width: 480px) {
590
+ .draft-intro { align-items: stretch; flex-direction: column; }
591
+ .draft-intro .field { flex: auto; }
592
+ .draft-actions { flex-direction: column; align-items: stretch; }
593
+ .draft-actions .primary { align-self: flex-end; }
594
+ .preview-meta { flex-wrap: wrap; }
595
+ .preview-meta .path-actions { margin-inline-start: 0; }
596
+ .path-open > span { display: none; }
597
+ .path-open { min-inline-size: 25px; }
598
+ }
599
+ @media (max-width: 385px) {
600
+ .asset-row { gap: 5px; padding-inline: 4px; }
601
+ .project-identity { gap: 8px; }
602
+ .project-detail-actions { flex-direction: column; align-items: stretch; gap: 4px; }
603
+ .project-detail-actions .secondary { padding-inline: 6px; }
604
+ }
605
+ @media (prefers-reduced-motion: reduce) {
606
+ *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
607
+ }