micro-models-agent 1.7.0 → 2.4.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.
@@ -0,0 +1,863 @@
1
+ :root {
2
+ --bg: #12161d;
3
+ --fg: #e6edf3;
4
+ --panel: #171b22;
5
+ --sb-bg: #14181f;
6
+ --stab-bg: #14181f;
7
+ --stab-on-bg: #12161d;
8
+ --surface: #1a1f27;
9
+ --input-surface: #1a1f27;
10
+ --inp-bg: #1b212a;
11
+ --inp-border: #2ea04355;
12
+ --inp-focus: #2ea043;
13
+ --input-shadow: #2ea04333;
14
+ --border: #252b34;
15
+ --border-2: #2a313c;
16
+ --border-3: #232a33;
17
+ --muted: #b1bac4;
18
+ --dim-a: #9198a1;
19
+ --dim-b: #6e7681;
20
+ --dim-c: #6e7681;
21
+ --accent: #58a6ff;
22
+ --accent-bg: #12233a;
23
+ --green: #3fb950;
24
+ --green-fill: #238636;
25
+ --red: #ff7b72;
26
+ --err: #ff7b72;
27
+ --red-strong: #f85149;
28
+ --yellow: #d29922;
29
+ --purple: #d2a8ff;
30
+ --cyan: #39c5cf;
31
+ --think: #8b7bb8;
32
+ --cmdout: #b1bac4;
33
+ --meta: #9198a1;
34
+ --args: #9198a1;
35
+ --hover-bg: #252b34;
36
+ --hover-bg-2: #252b34;
37
+ --x-hover-bg: #2a313c;
38
+ --u-fg: #79c0ff;
39
+ --u-bg: #1a2633;
40
+ --u-border: #388bfd;
41
+ --ans: #a5adb6;
42
+ --toggle-off: #30363d;
43
+ --toggle-knob: #b1bac4;
44
+ --toggle-knob-on: #fff;
45
+ --scroll-thumb: #2a313c;
46
+ --scroll-thumb-hover: #6e7681;
47
+ --stab-thumb: #3d444d;
48
+ --stab-thumb-hover: #6e7681;
49
+ --pipe: #3d444d;
50
+ --rule: #3d444d;
51
+ --checker-a: #232a33;
52
+ --checker-b: #2a313c;
53
+ --checker-base: #171b22;
54
+ --checker-border: #3d444d;
55
+ --ph-light: #eaeef2;
56
+ --track: #252b34;
57
+ --plan-line: #2a313c;
58
+ --plan-bar-fg: #b1bac4;
59
+ --sec-h: #9198a1;
60
+ --sec-h-hover: #b1bac4;
61
+ --stab-fg: #9198a1;
62
+ --overlay: rgba(0,0,0,.55);
63
+ --shadow-menu: 0 8px 24px rgba(0,0,0,.5);
64
+ --shadow-dd: 0 12px 32px rgba(0,0,0,.55);
65
+ --shadow-modal: 0 20px 60px rgba(0,0,0,.6);
66
+ }
67
+ /* Light theme. Contract: every token declared in `:root` is overridden here
68
+ (minus the one or two that are intentionally theme-agnostic), so a token can
69
+ never silently fall back to its dark value on a white background. No `-const`
70
+ duplicates: a semantic role has exactly one token. Text/semantic tokens keep
71
+ >=4.5:1 (text) / >=3:1 (glyphs) contrast against `--bg`/`--panel`. */
72
+ body.light {
73
+ --bg: #f6f8fa;
74
+ --fg: #1f2328;
75
+ --panel: #ffffff;
76
+ --sb-bg: #ffffff;
77
+ --stab-bg: #f6f8fa;
78
+ --stab-on-bg: #ffffff;
79
+ --surface: #f6f8fa;
80
+ --input-surface: #ffffff;
81
+ --inp-bg: #ffffff;
82
+ --inp-border: #1a7f3740;
83
+ --inp-focus: #1a7f37;
84
+ --input-shadow: #1a7f3733;
85
+ --border: #d0d7de;
86
+ --border-2: #d0d7de;
87
+ --border-3: #d8dee4;
88
+ --muted: #57606a;
89
+ --dim-a: #57606a;
90
+ --dim-b: #6e7781;
91
+ --dim-c: #6e7781;
92
+ --accent: #0969da;
93
+ --accent-bg: #ddf4ff;
94
+ --green: #1a7f37;
95
+ --green-fill: #1a7f37;
96
+ --red: #cf222e;
97
+ --err: #cf222e;
98
+ --red-strong: #cf222e;
99
+ --yellow: #9a6700;
100
+ --purple: #8250df;
101
+ --cyan: #116329;
102
+ --think: #6e7781;
103
+ --cmdout: #57606a;
104
+ --meta: #57606a;
105
+ --args: #656d76;
106
+ --hover-bg: #eaeef2;
107
+ --hover-bg-2: #f6f8fa;
108
+ --x-hover-bg: #eaeef2;
109
+ --u-fg: #0550ae;
110
+ --u-bg: #ddf4ff;
111
+ --u-border: #0969da;
112
+ --ans: #424a53;
113
+ --toggle-off: #d0d7de;
114
+ --toggle-knob: #6e7781;
115
+ --toggle-knob-on: #ffffff;
116
+ --scroll-thumb: #d0d7de;
117
+ --scroll-thumb-hover: #afb8c1;
118
+ --stab-thumb: #d0d7de;
119
+ --stab-thumb-hover: #afb8c1;
120
+ --pipe: #d0d7de;
121
+ --rule: #d0d7de;
122
+ --checker-a: #eaeef2;
123
+ --checker-b: #d0d7de;
124
+ --checker-base: #ffffff;
125
+ --checker-border: #d0d7de;
126
+ --ph-light: #eaeef2;
127
+ --track: #eaeef2;
128
+ --plan-line: #d0d7de;
129
+ --plan-bar-fg: #57606a;
130
+ --sec-h: #57606a;
131
+ --sec-h-hover: #1f2328;
132
+ --stab-fg: #57606a;
133
+ --overlay: rgba(31,35,40,.35);
134
+ --shadow-menu: 0 8px 24px rgba(140,149,159,.25);
135
+ --shadow-dd: 0 12px 32px rgba(140,149,159,.25);
136
+ --shadow-modal: 0 20px 60px rgba(140,149,159,.35);
137
+ }
138
+
139
+ * { box-sizing: border-box; margin: 0; padding: 0; }
140
+ html, body { height: 100%; }
141
+ body {
142
+ background: var(--bg); color: var(--fg);
143
+ font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
144
+ font-size: 13px; display: flex; flex-direction: column; overflow: hidden;
145
+ }
146
+
147
+ .bar-top {
148
+ display: flex; gap: 14px; align-items: center;
149
+ padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--border);
150
+ color: var(--muted); font-size: 12.5px; position: relative; z-index: 40;
151
+ }
152
+ .icon-btn {
153
+ cursor: pointer; color: var(--muted); height: 24px; padding: 0 8px; border: none; background: none;
154
+ font: inherit; font-size: 14px; border-radius: 4px; line-height: 1;
155
+ }
156
+ .icon-btn:hover { background: var(--hover-bg); color: var(--fg); }
157
+ .icon-btn.primary { color: var(--accent); }
158
+ #openSettings { margin-left: auto; margin-right: 6px; }
159
+ .conn { color: var(--dim-a); font-size: 11.5px; white-space: nowrap; }
160
+ .tabstrip {
161
+ display: flex; gap: 4px; align-items: center; overflow-x: auto;
162
+ flex: 1; min-width: 0;
163
+ }
164
+ .tabstrip::-webkit-scrollbar { height: 5px; }
165
+ .tabstrip::-webkit-scrollbar-track { background: transparent; }
166
+ .tabstrip::-webkit-scrollbar-thumb {
167
+ background: var(--stab-thumb); border-radius: 3px;
168
+ }
169
+ .tabstrip::-webkit-scrollbar-thumb:hover { background: var(--stab-thumb-hover); }
170
+ .stab {
171
+ display: flex; gap: 7px; align-items: center; white-space: nowrap;
172
+ height: 24px; padding: 0 6px 0 10px; border-radius: 5px 5px 0 0; cursor: pointer;
173
+ color: var(--stab-fg); font-size: 12.5px; background: var(--stab-bg);
174
+ border: 1px solid transparent; border-bottom: none; max-width: 220px;
175
+ }
176
+ .stab:hover { color: var(--fg); }
177
+ .stab.on { background: var(--stab-on-bg); color: var(--fg); border-color: var(--border); }
178
+ .stab .name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
179
+ .stab .sid { flex: 0 0 auto; color: var(--dim-b); font-size: 11px; }
180
+ .stab .stab-x {
181
+ flex: 0 0 auto; width: 18px; height: 18px; padding: 0; justify-content: center;
182
+ color: var(--dim-b); border-radius: 3px; cursor: pointer;
183
+ }
184
+ .stab .stab-x .svg-icon { width: 12px; height: 12px; }
185
+ .stab .stab-x:hover { color: var(--red-strong); background: var(--x-hover-bg); }
186
+ .stab.dirty .stab-x { color: var(--yellow); }
187
+ .btn {
188
+ cursor: pointer; color: var(--muted); padding: 3px 9px;
189
+ border-radius: 4px; border: none; background: none; font: inherit;
190
+ }
191
+ .btn:hover { background: var(--hover-bg); color: var(--fg); }
192
+ .btn.primary { color: var(--accent); }
193
+ .model-name { color: var(--purple); }
194
+
195
+ /* sessions dropdown */
196
+ .dd { position: relative; }
197
+ .dd-menu {
198
+ display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
199
+ background: var(--panel); border: 1px solid var(--border-2); border-radius: 6px;
200
+ min-width: 300px; max-width: min(460px, calc(100vw - 48px));
201
+ max-height: 62vh; overflow-y: auto; overflow-x: hidden; padding: 6px;
202
+ box-shadow: var(--shadow-dd);
203
+ }
204
+ .dd.open .dd-menu { display: block; }
205
+ .dd-menu .h { color: var(--dim-c); font-size: 11.5px; padding: 4px 8px; text-transform: uppercase; letter-spacing: .04em; }
206
+ .dd-menu .si {
207
+ display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 4px;
208
+ cursor: pointer; color: var(--muted); font-size: 12.5px;
209
+ }
210
+ .dd-menu .si:hover { background: var(--hover-bg-2); color: var(--fg); }
211
+ .dd-menu .si.on { background: var(--accent-bg); color: var(--accent); }
212
+ .dd-menu .si .id { color: var(--dim-b); white-space: nowrap; flex: 0 0 auto; }
213
+ .dd-menu .si .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
214
+ .dd-menu .si .meta { margin-left: auto; color: var(--dim-b); font-size: 11.5px; white-space: nowrap; }
215
+ .dd-menu .sep { height: 1px; background: var(--border-2); margin: 5px 0; }
216
+ .dd-menu .act { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 4px; cursor: pointer; color: var(--accent); font-size: 12.5px; }
217
+ .dd-menu .act:hover { background: var(--accent-bg); }
218
+
219
+ .layout { flex: 1; display: flex; min-height: 0; }
220
+
221
+ /* chat */
222
+ .chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
223
+ .msgs { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px 22px; display: flex; flex-direction: column; gap: 11px; }
224
+ .msgs > * { flex-shrink: 0; min-height: fit-content; }
225
+ /* messages live inside a per-tab `.feed` wrapper; it must mirror the `.msgs`
226
+ column gap so turns are separated instead of running together */
227
+ .feed { display: flex; flex-direction: column; gap: 11px; }
228
+ .feed > * { flex-shrink: 0; min-height: fit-content; }
229
+ .u {
230
+ color: var(--u-fg); background: var(--u-bg); border-left: 2px solid var(--u-border);
231
+ padding: 7px 12px; border-radius: 0 4px 4px 0; margin-top: 6px;
232
+ user-select: text; overflow-wrap: anywhere;
233
+ }
234
+ .u::before { content: "> "; color: var(--u-border); }
235
+ /* agent text = calmer, dimmer than user block */
236
+ .ans { color: var(--ans); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
237
+ .think-h { color: var(--think); cursor: pointer; user-select: none; display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
238
+ .think-h .dur, .think-h .tog { color: var(--dim-b); }
239
+ .think-h .tog:hover { color: var(--dim-a); }
240
+ .think-body { color: var(--dim-c); padding-left: 18px; white-space: pre-wrap; font-size: 12.5px; overflow-wrap: anywhere; }
241
+ .think-body.hidden { display: none; }
242
+ .act { display: flex; gap: 8px; min-width: 0; }
243
+ .act .lab { white-space: nowrap; }
244
+ .act .args { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
245
+ .act.recon .g, .act.recon .lab { color: var(--cyan); }
246
+ .act.mut .g, .act.mut .lab { color: var(--purple); }
247
+ .act.exe .g, .act.exe .lab { color: var(--accent); }
248
+ .act.meta .g, .act.meta .lab { color: var(--meta); }
249
+ .act .sep, .act .args { color: var(--args); }
250
+ .act .ok { color: var(--green); }
251
+ .act .ok.fail { color: var(--red); }
252
+ .detail { color: var(--dim-a); padding-left: 26px; overflow-wrap: anywhere; }
253
+ .metric { color: var(--dim-a); overflow-wrap: anywhere; }
254
+ .warnline { color: var(--yellow); overflow-wrap: anywhere; }
255
+ .q { color: var(--yellow); margin: 6px 0; }
256
+ .q .qtext { white-space: pre-wrap; overflow-wrap: anywhere; }
257
+ .q .opts { padding-left: 18px; margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
258
+ .q .qopt { color: var(--accent); cursor: pointer; padding: 2px 6px; border-radius: 4px; width: fit-content; }
259
+ .q .qopt:hover { background: var(--hover-bg); }
260
+ .q .qopt.on { color: var(--green); }
261
+ .q .qopt.on::before { content: "✓ "; }
262
+ .q .qsend { margin: 6px 0 0 18px; color: var(--accent); background: var(--surface); border: 1px solid var(--border-2); border-radius: 4px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: 12.5px; }
263
+ .q .qsend:disabled { color: var(--dim-b); cursor: default; opacity: .6; }
264
+ .q .qinput { margin: 6px 0 0 18px; width: calc(100% - 18px); max-width: 520px; background: var(--inp-bg); color: var(--fg); border: 1px solid var(--border-2); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: 13px; }
265
+ .q .qinput:focus { outline: none; border-color: var(--inp-focus); }
266
+ .q .qans { color: var(--green); padding-left: 18px; }
267
+ .q.answered .qtext { color: var(--dim-a); }
268
+ .q.placeholder { color: var(--dim-a); }
269
+ .q.placeholder .opts { color: var(--dim-b); }
270
+ .code {
271
+ background: var(--surface); color: var(--fg); padding: 8px 12px; border-radius: 4px;
272
+ white-space: pre; overflow-x: auto; color-scheme: dark;
273
+ flex-shrink: 0; max-height: 240px; overflow-y: auto;
274
+ font-size: 12.5px; line-height: 1.55;
275
+ }
276
+ body.light .code { border: 1px solid var(--border); }
277
+ .toolout { margin: 2px 0 6px 26px; }
278
+ .toolout .code { max-height: 320px; }
279
+ .toolout.collapsed .code { display: none; }
280
+ .toolout .more { color: var(--dim-b); cursor: pointer; font-size: 12px; }
281
+ .toolout .more:hover { color: var(--dim-a); }
282
+
283
+ /* tool payload cards in chat */
284
+ .imgcard {
285
+ margin-left: 26px; max-width: 360px; border-radius: 4px; overflow: hidden;
286
+ background: var(--surface); border: 1px solid var(--border-2);
287
+ }
288
+ .imgcard .ph {
289
+ height: 150px; display: flex; align-items: center; justify-content: center;
290
+ color: var(--dim-c); font-size: 12px;
291
+ background:
292
+ linear-gradient(45deg, var(--checker-a) 25%, transparent 25%) -8px 0/16px 16px,
293
+ linear-gradient(-45deg, var(--checker-a) 25%, transparent 25%) -8px 0/16px 16px,
294
+ linear-gradient(45deg, transparent 75%, var(--checker-a) 75%) -8px 0/16px 16px,
295
+ linear-gradient(-45deg, transparent 75%, var(--checker-a) 75%) -8px 0/16px 16px,
296
+ var(--checker-base);
297
+ }
298
+ body.light .imgcard .ph { background: var(--ph-light); }
299
+ .imgcard .cap { padding: 6px 10px; color: var(--dim-a); font-size: 12px; }
300
+ .filecard {
301
+ margin-left: 26px; padding: 7px 12px; border-radius: 4px;
302
+ background: var(--surface); border: 1px solid var(--border-2); color: var(--muted);
303
+ display: flex; gap: 10px; align-items: baseline; font-size: 12.5px;
304
+ max-width: 480px; min-width: 0;
305
+ }
306
+ .filecard .g { color: var(--cyan); flex: 0 0 auto; }
307
+ .filecard .name { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
308
+ .filecard .meta { color: var(--dim-b); margin-left: auto; flex: 0 0 auto; }
309
+ .linkline { margin-left: 26px; min-width: 0; overflow-wrap: anywhere; }
310
+ .linkline a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
311
+ .linkline a:hover { text-decoration: underline; }
312
+ .linkline .dom { color: var(--dim-b); }
313
+ .planblock {
314
+ margin-left: 26px; padding: 8px 12px; border-radius: 4px;
315
+ background: var(--surface); border: 1px solid var(--border-2); font-size: 12.5px;
316
+ max-width: 480px;
317
+ }
318
+ .planblock .ph2 { color: var(--dim-a); margin-bottom: 5px; }
319
+ .planblock .st { padding: 2px 0 2px 14px; position: relative; color: var(--muted); }
320
+ .planblock .st.done { color: var(--green); }
321
+ .planblock .st.cur { color: var(--accent); }
322
+ .planblock .st.fail { color: var(--err); }
323
+
324
+ /* extra chat patterns */
325
+ .startbanner { color: var(--dim-b); overflow-wrap: anywhere; }
326
+ .startbanner b { font-weight: 400; color: var(--dim-a); }
327
+ .errline { color: var(--err); padding-left: 26px; overflow-wrap: anywhere; }
328
+ .errline .hint { color: var(--dim-a); display: block; }
329
+ .grouped { color: var(--dim-a); padding-left: 8px; overflow-wrap: anywhere; }
330
+ .grouped .pipe { color: var(--pipe); }
331
+ .msgs .busy { color: var(--think); display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
332
+ .busy .spin { display: inline-block; animation: spin 1s linear infinite; }
333
+ .busy .busytime { color: var(--dim-a); }
334
+ @keyframes spin { to { transform: rotate(360deg); } }
335
+ .progline { color: var(--dim-a); display: flex; gap: 8px; align-items: center; }
336
+ .progline .pb { color: var(--green); letter-spacing: -1px; }
337
+ .sec-rule { color: var(--rule); user-select: none; }
338
+ .uimg {
339
+ display: inline-block; width: 72px; height: 52px; border-radius: 3px;
340
+ vertical-align: middle; margin-left: 8px;
341
+ background:
342
+ linear-gradient(45deg, var(--checker-b) 25%, transparent 25%) -4px 0/8px 8px,
343
+ linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%) -4px 0/8px 8px,
344
+ linear-gradient(45deg, transparent 75%, var(--checker-b) 75%) -4px 0/8px 8px,
345
+ linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%) -4px 0/8px 8px,
346
+ var(--checker-base);
347
+ border: 1px solid var(--checker-border);
348
+ }
349
+ .cmdout { color: var(--cmdout); padding-left: 26px; white-space: pre-wrap; overflow-wrap: anywhere; }
350
+ .sysline { color: var(--dim-c); overflow-wrap: anywhere; }
351
+ .empty {
352
+ color: var(--dim-b); text-align: center; margin-top: 18vh; line-height: 2;
353
+ }
354
+ .empty .g { color: var(--green); }
355
+
356
+ /* input */
357
+ .input-area { margin: 14px 22px 16px; position: relative; }
358
+ .selectors { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
359
+ .sel { position: relative; }
360
+ .sel > button {
361
+ font: inherit; font-size: 12.5px; cursor: pointer;
362
+ background: var(--surface); color: var(--muted); border: none; border-radius: 4px;
363
+ padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px;
364
+ }
365
+ body.light .sel > button { border: 1px solid var(--border); }
366
+ .sel > button b { font-weight: 400; color: var(--purple); }
367
+ .sel > button .svg-icon { width: 13px; height: 13px; color: var(--dim-a); }
368
+ .menu {
369
+ display: none; position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 30;
370
+ background: var(--panel); border: 1px solid var(--border-2); border-radius: 6px;
371
+ min-width: 200px; max-width: min(420px, calc(100vw - 48px));
372
+ max-height: 50vh; overflow-y: auto; overflow-x: hidden; padding: 4px;
373
+ box-shadow: var(--shadow-menu);
374
+ }
375
+ .sel.open .menu { display: block; }
376
+ .menu .mi {
377
+ padding: 6px 10px; border-radius: 4px; cursor: pointer; color: var(--muted);
378
+ display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 12.5px;
379
+ width: 100%; min-width: 0;
380
+ }
381
+ /* Long labels (model/provider names) ellipsize instead of widening the menu. */
382
+ .menu .mi > span {
383
+ max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
384
+ }
385
+ .menu .mi.row-mi > span { flex: 1 1 auto; }
386
+ .menu .mi:hover { background: var(--hover-bg-2); color: var(--fg); }
387
+ .menu .mi.on { background: var(--accent-bg); color: var(--accent); }
388
+ .menu .mi .sub { color: var(--dim-b); font-size: 11.5px; }
389
+ .menu .sep { height: 1px; background: var(--border-2); margin: 4px 0; }
390
+ .menu .mi.dim { color: var(--dim-b); }
391
+ .menu .mi.row-mi { flex-direction: row; align-items: center; gap: 8px; }
392
+ .menu .ctx-custom { display: flex; align-items: center; gap: 6px; padding: 4px; }
393
+ .menu .ctx-custom input {
394
+ flex: 1 1 110px; min-width: 0; width: auto;
395
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
396
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 8px;
397
+ }
398
+ .menu .ctx-custom .linkbtn { flex: 0 0 auto; }
399
+
400
+ .inp {
401
+ width: 100%; padding: 12px 14px; resize: none; display: block;
402
+ background: var(--inp-bg); border: 1px solid var(--inp-border); border-radius: 6px;
403
+ color: var(--fg); font: inherit; font-size: 13.5px; outline: none;
404
+ line-height: 1.5; min-height: 46px;
405
+ }
406
+ .inp:focus { border-color: var(--inp-focus); box-shadow: 0 0 0 2px var(--input-shadow); }
407
+ .input-area.busy .composer { opacity: .75; }
408
+ .inp::placeholder { color: var(--dim-a); }
409
+ .inp-meta { display: flex; gap: 14px; margin-top: 4px; padding: 0 6px; color: var(--dim-b); font-size: 11.5px; flex-wrap: wrap; }
410
+
411
+ /* composer: [attach] [textarea] [send/stop] on the top row, hints underneath —
412
+ all inside one bordered surface, so the controls read as part of the field. */
413
+ .composer {
414
+ display: flex; flex-direction: column; gap: 2px;
415
+ background: var(--inp-bg); border: 1px solid var(--inp-border); border-radius: 8px;
416
+ padding: 6px;
417
+ }
418
+ .composer-main { display: flex; align-items: flex-end; gap: 6px; }
419
+ .composer:focus-within { border-color: var(--inp-focus); box-shadow: 0 0 0 2px var(--input-shadow); }
420
+ .composer .inp {
421
+ flex: 1 1 auto; width: auto; min-width: 0; min-height: 32px;
422
+ background: transparent; border: none; border-radius: 0; padding: 6px 8px;
423
+ }
424
+ .composer .inp:focus,
425
+ .composer .inp:focus-visible { box-shadow: none; border: none; outline: none; }
426
+ .composer .attach-btn,
427
+ .composer .send-btn {
428
+ flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
429
+ display: inline-flex; align-items: center; justify-content: center;
430
+ cursor: pointer; background: none; border: none; border-radius: 6px;
431
+ color: var(--muted);
432
+ }
433
+ .composer .attach-btn:hover,
434
+ .composer .send-btn:hover { background: var(--hover-bg); color: var(--fg); }
435
+ .composer .send-btn { color: var(--accent); }
436
+ .composer .send-btn.busy { color: var(--yellow); }
437
+ .composer .send-btn:disabled { opacity: .5; cursor: default; }
438
+ .composer .svg-icon { width: 17px; height: 17px; }
439
+
440
+ /* workspace path under the composer */
441
+ .ws-line { margin-top: 6px; padding: 0 2px; font-size: 11.5px; overflow-wrap: anywhere; }
442
+ .ws-line[hidden] { display: none; }
443
+ .ws-line .ws-k { color: var(--dim-b); margin-right: 6px; }
444
+ .ws-line .ws-v { color: var(--dim-a); }
445
+
446
+ /* slash-command autocomplete popup (above the composer) */
447
+ .cmdk {
448
+ position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 40;
449
+ max-height: 40vh; overflow-y: auto;
450
+ background: var(--panel); border: 1px solid var(--border-2); border-radius: 6px;
451
+ box-shadow: var(--shadow-menu); padding: 4px;
452
+ }
453
+ .cmdk[hidden] { display: none; }
454
+ .cmdk-item {
455
+ display: flex; gap: 10px; align-items: baseline; width: 100%;
456
+ padding: 6px 10px; border-radius: 4px; cursor: pointer; text-align: left;
457
+ font: inherit; font-size: 12.5px; color: var(--muted);
458
+ }
459
+ .cmdk-item .cmd { color: var(--fg); white-space: nowrap; }
460
+ .cmdk-item .desc { color: var(--dim-b); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
461
+ .cmdk-item.on, .cmdk-item:hover { background: var(--hover-bg-2); }
462
+ .cmdk-item.on .cmd { color: var(--accent); }
463
+
464
+ /* image attachments */
465
+ .attach-strip { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
466
+ .attach-strip[hidden] { display: none; }
467
+ .thumb {
468
+ position: relative; width: 64px; height: 48px; border-radius: 4px; overflow: hidden;
469
+ border: 1px solid var(--border-2); background: var(--surface);
470
+ }
471
+ .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
472
+ .thumb .rm {
473
+ position: absolute; top: 0; right: 0; width: 16px; height: 16px; line-height: 16px;
474
+ text-align: center; font-size: 11px; color: var(--fg); background: rgba(0, 0, 0, .55);
475
+ cursor: pointer; border: none; padding: 0;
476
+ display: flex; align-items: center; justify-content: center;
477
+ }
478
+ .thumb .rm .svg-icon { width: 11px; height: 11px; }
479
+ .thumb .rm:hover { background: var(--err); }
480
+ .attach-err { color: var(--yellow); font-size: 11.5px; margin-bottom: 6px; }
481
+ .attach-err[hidden] { display: none; }
482
+ .input-area.dragover .composer { border-color: var(--accent); box-shadow: 0 0 0 2px var(--input-shadow); }
483
+ @keyframes blink { 50% { opacity: 0; } }
484
+
485
+ /* sidebar — sections with independent scroll */
486
+ .sb {
487
+ width: 280px; min-width: 280px; display: flex; flex-direction: column;
488
+ border-left: 1px solid var(--border); background: var(--sb-bg); min-height: 0;
489
+ }
490
+ .sec {
491
+ display: flex; flex-direction: column; min-height: 0;
492
+ border-bottom: 1px solid var(--border);
493
+ }
494
+ .sec:last-child { border-bottom: none; }
495
+ .sec-h {
496
+ color: var(--sec-h); cursor: pointer; user-select: none;
497
+ display: flex; gap: 6px; align-items: center; font-size: 12.5px;
498
+ padding: 10px 16px 8px; flex-shrink: 0;
499
+ }
500
+ .sec-h:hover { color: var(--sec-h-hover); }
501
+ .sec-h .n { margin-left: auto; color: var(--dim-b); }
502
+ .sec-body {
503
+ overflow-y: auto; padding: 0 16px 12px;
504
+ min-height: 0;
505
+ }
506
+ .sec-body.collapsed { display: none; }
507
+ /* plan section takes the lion's share and scrolls */
508
+ .sec.plan-sec { flex: 1 1 auto; }
509
+ .sec.usage-sec { flex: 0 1 auto; max-height: 45%; }
510
+
511
+ ::-webkit-scrollbar { width: 8px; }
512
+ ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }
513
+
514
+ .plan-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--plan-bar-fg); font-size: 12px; }
515
+ .pbar { flex: 1; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
516
+ .pbar i { display: block; height: 100%; background: var(--green-fill); transition: width .2s; }
517
+ .plan-step { padding: 4px 0 4px 16px; position: relative; color: var(--muted); }
518
+ .plan-step.done { color: var(--green); }
519
+ .plan-step.cur { color: var(--accent); }
520
+ .plan-step.fail { color: var(--red); }
521
+ .plan-step::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--plan-line); }
522
+ .plan-step .sub { display: block; color: var(--dim-b); font-size: 11.5px; padding-left: 0; }
523
+
524
+ .kv { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); gap: 10px; }
525
+ .kv b { font-weight: 400; color: var(--fg); text-align: right; }
526
+ body.light .kv b { color: var(--fg); }
527
+ .kv .dim { color: var(--dim-a); }
528
+ .kv .wn { color: var(--yellow); }
529
+ body.light .kv .wn { color: var(--yellow); }
530
+ /* Environment section: stacked items (name on top, dim value below). */
531
+ #env .env-item { padding: 3px 0; }
532
+ #env .env-k { color: var(--muted); font-size: 12px; }
533
+ #env .env-v { color: var(--dim-b); font-size: 11.5px; overflow-wrap: anywhere; }
534
+ .bar { height: 4px; background: var(--track); border-radius: 2px; margin-top: 6px; overflow: hidden; }
535
+ .bar i { display: block; height: 100%; width: 0; background: var(--green-fill); transition: width .2s; }
536
+
537
+ /* settings modal */
538
+ .overlay {
539
+ display: none; position: fixed; inset: 0; z-index: 50;
540
+ background: var(--overlay); align-items: center; justify-content: center;
541
+ }
542
+ .overlay.open { display: flex; }
543
+ .modal {
544
+ width: min(880px, 92vw); height: min(640px, 88vh);
545
+ background: var(--panel); border-radius: 8px; overflow: hidden;
546
+ display: flex; flex-direction: column;
547
+ box-shadow: var(--shadow-modal);
548
+ }
549
+ .modal-top {
550
+ display: flex; align-items: center; padding: 10px 16px;
551
+ border-bottom: 1px solid var(--border); color: var(--fg); font-size: 13.5px;
552
+ }
553
+ .modal-top .modal-top-icon { display: inline-flex; align-items: center; color: var(--dim-a); margin-right: 8px; }
554
+ .modal-top .x { margin-left: auto; cursor: pointer; color: var(--dim-a); }
555
+ .modal-top .x:hover { color: var(--fg); }
556
+ .modal-top .saved { margin-left: 12px; font-size: 12px; color: var(--green); opacity: 0; transition: opacity .2s; }
557
+ .modal-top .saved.show { opacity: 1; }
558
+ .modal-top .saved.fail { color: var(--red-strong); }
559
+ .modal-body { flex: 1; display: flex; min-height: 0; min-width: 0; }
560
+
561
+ /* small confirmation dialog (reuses the modal overlay) */
562
+ .modal.modal-sm {
563
+ width: min(380px, 92vw); height: auto; max-height: 88vh; border-radius: 8px;
564
+ }
565
+ .confirm-body { flex-direction: column; padding: 16px 18px; gap: 16px; }
566
+ .confirm-msg { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
567
+ .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
568
+ .confirm-actions .linkbtn {
569
+ padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px;
570
+ color: var(--fg); justify-content: center;
571
+ }
572
+ .confirm-actions .linkbtn:hover { text-decoration: none; background: var(--hover-bg-2); }
573
+ .confirm-actions .linkbtn.danger { border-color: var(--red-strong); color: var(--red-strong); }
574
+ .confirm-actions .linkbtn.danger:hover { background: var(--x-hover-bg); }
575
+ .menu-col {
576
+ width: 200px; min-width: 200px; padding: 12px 8px;
577
+ border-right: 1px solid var(--border); overflow-y: auto;
578
+ min-height: 0; flex: 0 0 auto;
579
+ }
580
+ .menu-col .mi {
581
+ padding: 7px 12px; border-radius: 4px; cursor: pointer;
582
+ color: var(--muted); margin-bottom: 2px; font-size: 13px;
583
+ width: 100%; text-align: left; background: none; border: none; font-family: inherit;
584
+ }
585
+ .menu-col .mi:hover { background: var(--hover-bg-2); color: var(--fg); }
586
+ .menu-col .mi.on { background: var(--accent-bg); color: var(--accent); }
587
+ .content-col { flex: 1; padding: 18px 22px; overflow-y: auto; min-width: 0; min-height: 0; }
588
+ .panel { display: none; }
589
+ .panel.on { display: block; }
590
+ .panel h3 { font-size: 14px; font-weight: 400; color: var(--fg); margin-bottom: 14px; }
591
+ .row {
592
+ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
593
+ padding: 9px 0; border-bottom: 1px solid var(--border-3); font-size: 13px; color: var(--muted);
594
+ gap: 6px 14px; min-width: 0;
595
+ }
596
+ .row:last-child { border-bottom: none; }
597
+ .row > .row-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
598
+ .row-label .row-name { overflow-wrap: anywhere; }
599
+ .row-label .row-desc { color: var(--dim-a); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; max-width: 60ch; }
600
+ .row > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
601
+ .row .val {
602
+ color: var(--fg); min-width: 0; max-width: 100%;
603
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
604
+ }
605
+ body.light .row .val { color: var(--fg); }
606
+ .row .val.accent { color: var(--purple); }
607
+ body.light .row .val.accent { color: var(--purple); }
608
+ .row .val.dim { color: var(--dim-a); }
609
+ .row input {
610
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
611
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 8px;
612
+ width: 120px; text-align: right;
613
+ }
614
+ .toggle {
615
+ width: 34px; height: 18px; border-radius: 9px; background: var(--toggle-off);
616
+ position: relative; cursor: pointer; flex: 0 0 auto;
617
+ }
618
+ body.light .toggle { background: var(--toggle-off); }
619
+ .toggle::after {
620
+ content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
621
+ border-radius: 50%; background: var(--toggle-knob); transition: .15s;
622
+ }
623
+ .toggle.on { background: var(--green-fill); }
624
+ .toggle.on::after { left: 18px; background: var(--toggle-knob-on); }
625
+ .seg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
626
+ .seg button {
627
+ font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer;
628
+ background: var(--surface); color: var(--muted); border: none; border-radius: 4px;
629
+ }
630
+ .seg button.on { background: var(--accent-bg); color: var(--accent); }
631
+ .list-line {
632
+ display: flex; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 12.5px;
633
+ border-bottom: 1px solid var(--border-3);
634
+ }
635
+ .list-line .g { color: var(--green); }
636
+ .searchbox {
637
+ width: 100%; padding: 7px 10px; margin-bottom: 10px;
638
+ background: var(--surface); border: 1px solid var(--border-2); border-radius: 4px;
639
+ color: var(--fg); font: inherit; font-size: 12.5px;
640
+ }
641
+ .placeholder { color: var(--dim-b); font-size: 12.5px; padding: 6px 0; line-height: 1.7; }
642
+ .placeholder .tag { color: var(--yellow); }
643
+
644
+ /* settings data lists (memory / skills / plugins) */
645
+ .settings-list .list-line { align-items: center; gap: 6px 10px; flex-wrap: wrap; }
646
+ .settings-list .list-line .name {
647
+ flex: 1 1 auto; min-width: 0; color: var(--fg);
648
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
649
+ }
650
+ .settings-list .list-line .src {
651
+ color: var(--dim-a); font-size: 11.5px; white-space: nowrap;
652
+ overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
653
+ }
654
+ .settings-list .list-line .st { color: var(--dim-a); white-space: nowrap; flex: 0 0 auto; }
655
+ .settings-list .list-line .dim { color: var(--dim-a); }
656
+ .settings-list .list-line .linkbtn { flex: 0 0 auto; }
657
+ .settings-list .list-line .linkbtn:first-of-type { margin-left: auto; }
658
+
659
+ /* skills: name on top, source path beneath */
660
+ .skill-item { padding: 8px 0; border-bottom: 1px solid var(--border-3); }
661
+ .skill-item:last-child { border-bottom: none; }
662
+ .skill-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
663
+ .skill-head .g { color: var(--green); flex: 0 0 auto; }
664
+ .skill-head .dim { color: var(--dim-a); flex: 0 0 auto; }
665
+ .skill-head .name {
666
+ color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
667
+ }
668
+ .skill-head .st { margin-left: auto; color: var(--dim-a); white-space: nowrap; flex: 0 0 auto; }
669
+ .skill-src {
670
+ color: var(--dim-a); font-size: 11.5px; margin-top: 2px; padding-left: 18px;
671
+ overflow-wrap: anywhere; word-break: break-word;
672
+ }
673
+ .row select {
674
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
675
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 6px;
676
+ }
677
+ .row input.grow { width: 220px; text-align: left; }
678
+
679
+ /* memory page — readable entry blocks */
680
+ .mem-cat {
681
+ display: flex; align-items: baseline; gap: 8px;
682
+ padding: 12px 0 6px; font-size: 11.5px; text-transform: uppercase;
683
+ letter-spacing: .05em; color: var(--dim-a);
684
+ border-bottom: 1px solid var(--border-3);
685
+ }
686
+ .mem-cat .n { margin-left: auto; color: var(--dim-b); }
687
+ .mem-entry {
688
+ display: flex; align-items: flex-start; gap: 10px;
689
+ padding: 8px 0; border-bottom: 1px solid var(--border-3);
690
+ font-size: 12.5px; color: var(--muted);
691
+ }
692
+ .mem-entry .mem-text {
693
+ flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.6;
694
+ }
695
+ .mem-entry .mem-text b { font-weight: 600; color: var(--fg); }
696
+ .mem-entry .mem-del {
697
+ flex: 0 0 auto; color: var(--accent); cursor: pointer; white-space: nowrap;
698
+ }
699
+ .mem-entry .mem-del:hover { text-decoration: underline; }
700
+ .mem-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 14px; }
701
+ .mem-add select,
702
+ .mem-add input {
703
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
704
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 5px 8px;
705
+ }
706
+ .mem-add select { flex: 0 0 auto; }
707
+ .mem-add input { flex: 1 1 180px; min-width: 0; }
708
+ .mem-add .linkbtn { flex: 0 0 auto; }
709
+
710
+ /* provider add/edit form */
711
+ .add-provider { display: inline-block; padding: 8px 0; }
712
+ .pform {
713
+ margin-top: 10px; padding: 12px; border: 1px solid var(--border-2); border-radius: 6px;
714
+ background: var(--surface);
715
+ }
716
+ .pform-grid {
717
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
718
+ gap: 8px 12px;
719
+ }
720
+ .pform-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
721
+ .pform-field label { font-size: 11px; color: var(--dim-a); text-transform: uppercase; letter-spacing: .04em; }
722
+ .pform-field input {
723
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
724
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 5px 8px; width: 100%; min-width: 0;
725
+ }
726
+ .pform-actions { display: flex; gap: 14px; align-items: center; padding-top: 10px; }
727
+ .pform-actions .linkbtn.dim { color: var(--dim-a); }
728
+ .settings-note { color: var(--dim-b); font-size: 11.5px; line-height: 1.7; padding: 8px 0 4px; }
729
+
730
+ /* ---- icons, focus & button normalization ---- */
731
+
732
+ /* Inline Lucide SVGs (chrome only; chat status glyphs stay textual per STYLE.md). */
733
+ .icon-btn,
734
+ .stab-x,
735
+ .dd-menu .del-btn,
736
+ .del,
737
+ .linkbtn { display: inline-flex; align-items: center; gap: 5px; }
738
+ .svg-icon { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
739
+ .icon-btn .svg-icon { width: 16px; height: 16px; }
740
+
741
+ /* Elements converted to real <button>s must not inherit UA chrome. */
742
+ button.mi,
743
+ button.act,
744
+ button.think-h,
745
+ button.qopt,
746
+ button.stab-x,
747
+ button.dd-row-main,
748
+ button.del-btn,
749
+ button.linkbtn {
750
+ font: inherit; color: inherit; background: none; border: none;
751
+ text-align: left; cursor: pointer; width: auto; padding: 0;
752
+ }
753
+ /* Headers keep their own padding/width from the base rules. */
754
+ button.sec-h { font: inherit; color: inherit; background: none; border: none; cursor: pointer; width: 100%; padding: 10px 16px 8px; text-align: left; }
755
+ button.think-h { width: 100%; }
756
+ /* Switch keeps its fixed track size. */
757
+ button.toggle { font: inherit; border: none; padding: 0; }
758
+ button.stab-x {
759
+ padding: 4px 8px 4px 4px; border-radius: 3px; color: var(--dim-b);
760
+ display: inline-flex; align-items: center;
761
+ }
762
+ button.stab-x:hover { color: var(--red-strong); }
763
+ .dd-menu .si-row { padding: 0; gap: 0; }
764
+ .dd-menu .dd-row-main {
765
+ flex: 1 1 auto; display: flex; gap: 10px; align-items: baseline; min-width: 0;
766
+ padding: 7px 8px; color: var(--muted); font-size: 12.5px;
767
+ }
768
+ .dd-menu .dd-row-main:hover { color: var(--fg); }
769
+ .dd-menu .si.on .dd-row-main { color: var(--accent); }
770
+ .dd-menu .del-btn {
771
+ flex: 0 0 auto; width: 28px; height: 28px; padding: 0; margin: 0 4px;
772
+ color: var(--dim-b); cursor: pointer; justify-content: center;
773
+ border-radius: 4px; align-items: center;
774
+ }
775
+ .dd-menu .del-btn:hover { color: var(--red-strong); background: var(--x-hover-bg); }
776
+ .dd-menu .del-btn .svg-icon { width: 15px; height: 15px; }
777
+ .dd-menu .dd-err { color: var(--yellow); font-size: 11.5px; padding: 6px 8px; }
778
+
779
+ /* Text actions (`use`/`edit`/`forget`/`add`, session delete) as focusable buttons. */
780
+ .linkbtn {
781
+ color: var(--accent); cursor: pointer; white-space: nowrap;
782
+ align-items: center;
783
+ }
784
+ .linkbtn:hover { text-decoration: underline; }
785
+ .linkbtn.dim { color: var(--dim-a); }
786
+ .linkbtn.danger { color: var(--red-strong); }
787
+
788
+ /* Interactive spans upgraded with `activate()` get the same affordance. */
789
+ [role="button"]:not(button) { cursor: pointer; }
790
+
791
+ /* Visible keyboard focus everywhere. */
792
+ :focus-visible {
793
+ outline: 2px solid var(--accent);
794
+ outline-offset: 2px;
795
+ border-radius: 3px;
796
+ }
797
+ .inp:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--input-shadow); }
798
+ .qopt:focus-visible,
799
+ .toggle:focus-visible { outline-offset: 1px; }
800
+
801
+ /* Question options are buttons now. */
802
+ .q .qopt { background: none; border: none; font: inherit; text-align: left; }
803
+ .q .qopt[aria-checked="true"] { color: var(--green); }
804
+ .q .qmulti-hint { color: var(--dim-a); padding-left: 18px; font-size: 11.5px; }
805
+ .q .qcustom { margin: 6px 0 0 18px; display: flex; gap: 8px; align-items: center; }
806
+ .q .qcustom input { flex: 1 1 auto; max-width: 420px; }
807
+ .q .qcustom .linkbtn { flex: 0 0 auto; }
808
+
809
+ /* Toggle is a real switch button. */
810
+ button.toggle { padding: 0; }
811
+ button.toggle:disabled { opacity: .5; cursor: default; }
812
+
813
+ /* Empty-state hint (was an inline color in JS). */
814
+ .empty .hint { color: var(--dim-a); }
815
+
816
+ /* Screen-reader-only status region (turn end, warnings/errors). */
817
+ .visually-hidden {
818
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
819
+ overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
820
+ }
821
+
822
+ @media (prefers-reduced-motion: reduce) {
823
+ *, *::before, *::after {
824
+ animation-duration: .001ms !important;
825
+ animation-iteration-count: 1 !important;
826
+ transition-duration: .001ms !important;
827
+ }
828
+ }
829
+
830
+ /* ---- responsive layout ---- */
831
+ @media (max-width: 760px) {
832
+ .bar-top { gap: 8px; padding: 8px 10px; }
833
+ .conn { display: none; }
834
+ .layout { flex-direction: column; }
835
+ .chat { min-height: 0; }
836
+ .sb {
837
+ width: 100%; min-width: 0; max-height: 42vh;
838
+ border-left: none; border-top: 1px solid var(--border);
839
+ }
840
+ .sec.usage-sec { max-height: 50%; }
841
+ .msgs { padding: 14px; }
842
+ .input-area { margin: 10px 14px 12px; }
843
+ .inp-meta { flex-wrap: wrap; gap: 8px; }
844
+ }
845
+
846
+ @media (max-width: 640px) {
847
+ .modal {
848
+ width: 100vw; height: 100vh; max-width: none; max-height: none;
849
+ border-radius: 0;
850
+ }
851
+ .modal-body { flex-direction: column; min-width: 0; }
852
+ .menu-col {
853
+ width: 100%; min-width: 0; display: flex; flex-direction: row;
854
+ gap: 6px; overflow-x: auto; overflow-y: hidden;
855
+ border-right: none; border-bottom: 1px solid var(--border);
856
+ padding: 8px 10px; flex: 0 0 auto;
857
+ }
858
+ .menu-col .mi { white-space: nowrap; margin-bottom: 0; flex: 0 0 auto; width: auto; }
859
+ .content-col { padding: 14px; }
860
+ .row { font-size: 12.5px; }
861
+ .input-area { margin: 8px 10px 10px; }
862
+ .msgs { padding: 12px 10px; }
863
+ }