@wwwfz/dsh-agent-bridge 0.0.0-stage → 0.8.2

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.
package/web/panel.css ADDED
@@ -0,0 +1,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; 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
+ }