micro-models-agent 2.0.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,881 @@
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
+ .metaln {
243
+ color: var(--dim-c); padding-left: 26px; white-space: pre-wrap;
244
+ font-size: 12.5px; overflow-wrap: anywhere;
245
+ }
246
+ .metaln.warn { color: var(--yellow); }
247
+ .act { display: flex; gap: 8px; min-width: 0; }
248
+ .act .lab { white-space: nowrap; }
249
+ .act .args { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
250
+ .act.recon .g, .act.recon .lab { color: var(--cyan); }
251
+ .act.mut .g, .act.mut .lab { color: var(--purple); }
252
+ .act.exe .g, .act.exe .lab { color: var(--accent); }
253
+ .act.meta .g, .act.meta .lab { color: var(--meta); }
254
+ .act .sep, .act .args { color: var(--args); }
255
+ .act .ok { color: var(--green); }
256
+ .act .ok.fail { color: var(--red); }
257
+ .detail { color: var(--dim-a); padding-left: 26px; overflow-wrap: anywhere; }
258
+ .metric { color: var(--dim-a); overflow-wrap: anywhere; }
259
+ .warnline { color: var(--yellow); overflow-wrap: anywhere; }
260
+ .q { color: var(--yellow); margin: 6px 0; }
261
+ .q .qtext { white-space: pre-wrap; overflow-wrap: anywhere; }
262
+ .q .opts { padding-left: 18px; margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
263
+ .q .qopt { color: var(--accent); cursor: pointer; padding: 2px 6px; border-radius: 4px; width: fit-content; }
264
+ .q .qopt:hover { background: var(--hover-bg); }
265
+ .q .qopt.on { color: var(--green); }
266
+ .q .qopt.on::before { content: "✓ "; }
267
+ .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; }
268
+ .q .qsend:disabled { color: var(--dim-b); cursor: default; opacity: .6; }
269
+ .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; }
270
+ .q .qinput:focus { outline: none; border-color: var(--inp-focus); }
271
+ .q .qans { color: var(--green); padding-left: 18px; }
272
+ .q.answered .qtext { color: var(--dim-a); }
273
+ .q.placeholder { color: var(--dim-a); }
274
+ .q.placeholder .opts { color: var(--dim-b); }
275
+ .code {
276
+ background: var(--surface); color: var(--fg); padding: 8px 12px; border-radius: 4px;
277
+ white-space: pre; overflow-x: auto; color-scheme: dark;
278
+ flex-shrink: 0; max-height: 240px; overflow-y: auto;
279
+ font-size: 12.5px; line-height: 1.55;
280
+ }
281
+ body.light .code { border: 1px solid var(--border); }
282
+ .toolout { margin: 2px 0 6px 26px; }
283
+ .toolout .code { max-height: 320px; }
284
+ .toolout.collapsed .code { display: none; }
285
+ .toolout .more { color: var(--dim-b); cursor: pointer; font-size: 12px; }
286
+ .toolout .more:hover { color: var(--dim-a); }
287
+
288
+ /* tool payload cards in chat */
289
+ .imgcard {
290
+ margin-left: 26px; max-width: 360px; border-radius: 4px; overflow: hidden;
291
+ background: var(--surface); border: 1px solid var(--border-2);
292
+ }
293
+ .imgcard .ph {
294
+ height: 150px; display: flex; align-items: center; justify-content: center;
295
+ color: var(--dim-c); font-size: 12px;
296
+ background:
297
+ linear-gradient(45deg, var(--checker-a) 25%, transparent 25%) -8px 0/16px 16px,
298
+ linear-gradient(-45deg, var(--checker-a) 25%, transparent 25%) -8px 0/16px 16px,
299
+ linear-gradient(45deg, transparent 75%, var(--checker-a) 75%) -8px 0/16px 16px,
300
+ linear-gradient(-45deg, transparent 75%, var(--checker-a) 75%) -8px 0/16px 16px,
301
+ var(--checker-base);
302
+ }
303
+ body.light .imgcard .ph { background: var(--ph-light); }
304
+ .imgcard .cap { padding: 6px 10px; color: var(--dim-a); font-size: 12px; }
305
+ .filecard {
306
+ margin-left: 26px; padding: 8px 12px; border-radius: 6px;
307
+ background: var(--surface); border: 1px solid var(--border-2); color: var(--muted);
308
+ display: flex; flex-direction: column; gap: 6px; align-items: stretch;
309
+ font-size: 12.5px; max-width: 480px; min-width: 0;
310
+ }
311
+ .filecard .fc-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
312
+ .filecard .g { color: var(--cyan); flex: 0 0 auto; }
313
+ .filecard .name {
314
+ color: var(--fg); min-width: 0; overflow-wrap: anywhere; word-break: break-word;
315
+ }
316
+ .filecard .fc-bottom {
317
+ display: flex; gap: 10px; align-items: center; justify-content: space-between;
318
+ }
319
+ .filecard .lab { color: var(--dim-a); min-width: 0; overflow-wrap: anywhere; }
320
+ .filecard .fc-open {
321
+ flex: 0 0 auto; font: inherit; font-size: 12px; line-height: 1.4;
322
+ color: var(--accent); background: transparent; border: 1px solid var(--border-2);
323
+ border-radius: 4px; padding: 2px 10px; cursor: pointer; text-decoration: none;
324
+ }
325
+ .filecard .fc-open:hover { border-color: var(--accent); text-decoration: none; }
326
+ .filecard .fc-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
327
+ .linkline { margin-left: 26px; min-width: 0; overflow-wrap: anywhere; }
328
+ .linkline a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
329
+ .linkline a:hover { text-decoration: underline; }
330
+ .linkline .dom { color: var(--dim-b); }
331
+ .planblock {
332
+ margin-left: 26px; padding: 8px 12px; border-radius: 4px;
333
+ background: var(--surface); border: 1px solid var(--border-2); font-size: 12.5px;
334
+ max-width: 480px;
335
+ }
336
+ .planblock .ph2 { color: var(--dim-a); margin-bottom: 5px; }
337
+ .planblock .st { padding: 2px 0 2px 14px; position: relative; color: var(--muted); }
338
+ .planblock .st.done { color: var(--green); }
339
+ .planblock .st.cur { color: var(--accent); }
340
+ .planblock .st.fail { color: var(--err); }
341
+
342
+ /* extra chat patterns */
343
+ .startbanner { color: var(--dim-b); overflow-wrap: anywhere; }
344
+ .startbanner b { font-weight: 400; color: var(--dim-a); }
345
+ .errline { color: var(--err); padding-left: 26px; overflow-wrap: anywhere; }
346
+ .errline .hint { color: var(--dim-a); display: block; }
347
+ .grouped { color: var(--dim-a); padding-left: 8px; overflow-wrap: anywhere; }
348
+ .grouped .pipe { color: var(--pipe); }
349
+ .msgs .busy { color: var(--think); display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
350
+ .busy .spin { display: inline-block; animation: spin 1s linear infinite; }
351
+ .busy .busytime { color: var(--dim-a); }
352
+ @keyframes spin { to { transform: rotate(360deg); } }
353
+ .progline { color: var(--dim-a); display: flex; gap: 8px; align-items: center; }
354
+ .progline .pb { color: var(--green); letter-spacing: -1px; }
355
+ .sec-rule { color: var(--rule); user-select: none; }
356
+ .uimg {
357
+ display: inline-block; width: 72px; height: 52px; border-radius: 3px;
358
+ vertical-align: middle; margin-left: 8px;
359
+ background:
360
+ linear-gradient(45deg, var(--checker-b) 25%, transparent 25%) -4px 0/8px 8px,
361
+ linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%) -4px 0/8px 8px,
362
+ linear-gradient(45deg, transparent 75%, var(--checker-b) 75%) -4px 0/8px 8px,
363
+ linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%) -4px 0/8px 8px,
364
+ var(--checker-base);
365
+ border: 1px solid var(--checker-border);
366
+ }
367
+ .cmdout { color: var(--cmdout); padding-left: 26px; white-space: pre-wrap; overflow-wrap: anywhere; }
368
+ .sysline { color: var(--dim-c); overflow-wrap: anywhere; }
369
+ .empty {
370
+ color: var(--dim-b); text-align: center; margin-top: 18vh; line-height: 2;
371
+ }
372
+ .empty .g { color: var(--green); }
373
+
374
+ /* input */
375
+ .input-area { margin: 14px 22px 16px; position: relative; }
376
+ .selectors { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
377
+ .sel { position: relative; }
378
+ .sel > button {
379
+ font: inherit; font-size: 12.5px; cursor: pointer;
380
+ background: var(--surface); color: var(--muted); border: none; border-radius: 4px;
381
+ padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px;
382
+ }
383
+ body.light .sel > button { border: 1px solid var(--border); }
384
+ .sel > button b { font-weight: 400; color: var(--purple); }
385
+ .sel > button .svg-icon { width: 13px; height: 13px; color: var(--dim-a); }
386
+ .menu {
387
+ display: none; position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 30;
388
+ background: var(--panel); border: 1px solid var(--border-2); border-radius: 6px;
389
+ min-width: 200px; max-width: min(420px, calc(100vw - 48px));
390
+ max-height: 50vh; overflow-y: auto; overflow-x: hidden; padding: 4px;
391
+ box-shadow: var(--shadow-menu);
392
+ }
393
+ .sel.open .menu { display: block; }
394
+ .menu .mi {
395
+ padding: 6px 10px; border-radius: 4px; cursor: pointer; color: var(--muted);
396
+ display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 12.5px;
397
+ width: 100%; min-width: 0;
398
+ }
399
+ /* Long labels (model/provider names) ellipsize instead of widening the menu. */
400
+ .menu .mi > span {
401
+ max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
402
+ }
403
+ .menu .mi.row-mi > span { flex: 1 1 auto; }
404
+ .menu .mi:hover { background: var(--hover-bg-2); color: var(--fg); }
405
+ .menu .mi.on { background: var(--accent-bg); color: var(--accent); }
406
+ .menu .mi .sub { color: var(--dim-b); font-size: 11.5px; }
407
+ .menu .sep { height: 1px; background: var(--border-2); margin: 4px 0; }
408
+ .menu .mi.dim { color: var(--dim-b); }
409
+ .menu .mi.row-mi { flex-direction: row; align-items: center; gap: 8px; }
410
+ .menu .ctx-custom { display: flex; align-items: center; gap: 6px; padding: 4px; }
411
+ .menu .ctx-custom input {
412
+ flex: 1 1 110px; min-width: 0; width: auto;
413
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
414
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 8px;
415
+ }
416
+ .menu .ctx-custom .linkbtn { flex: 0 0 auto; }
417
+
418
+ .inp {
419
+ width: 100%; padding: 12px 14px; resize: none; display: block;
420
+ background: var(--inp-bg); border: 1px solid var(--inp-border); border-radius: 6px;
421
+ color: var(--fg); font: inherit; font-size: 13.5px; outline: none;
422
+ line-height: 1.5; min-height: 46px;
423
+ }
424
+ .inp:focus { border-color: var(--inp-focus); box-shadow: 0 0 0 2px var(--input-shadow); }
425
+ .input-area.busy .composer { opacity: .75; }
426
+ .inp::placeholder { color: var(--dim-a); }
427
+ .inp-meta { display: flex; gap: 14px; margin-top: 4px; padding: 0 6px; color: var(--dim-b); font-size: 11.5px; flex-wrap: wrap; }
428
+
429
+ /* composer: [attach] [textarea] [send/stop] on the top row, hints underneath —
430
+ all inside one bordered surface, so the controls read as part of the field. */
431
+ .composer {
432
+ display: flex; flex-direction: column; gap: 2px;
433
+ background: var(--inp-bg); border: 1px solid var(--inp-border); border-radius: 8px;
434
+ padding: 6px;
435
+ }
436
+ .composer-main { display: flex; align-items: flex-end; gap: 6px; }
437
+ .composer:focus-within { border-color: var(--inp-focus); box-shadow: 0 0 0 2px var(--input-shadow); }
438
+ .composer .inp {
439
+ flex: 1 1 auto; width: auto; min-width: 0; min-height: 32px;
440
+ background: transparent; border: none; border-radius: 0; padding: 6px 8px;
441
+ }
442
+ .composer .inp:focus,
443
+ .composer .inp:focus-visible { box-shadow: none; border: none; outline: none; }
444
+ .composer .attach-btn,
445
+ .composer .send-btn {
446
+ flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
447
+ display: inline-flex; align-items: center; justify-content: center;
448
+ cursor: pointer; background: none; border: none; border-radius: 6px;
449
+ color: var(--muted);
450
+ }
451
+ .composer .attach-btn:hover,
452
+ .composer .send-btn:hover { background: var(--hover-bg); color: var(--fg); }
453
+ .composer .send-btn { color: var(--accent); }
454
+ .composer .send-btn.busy { color: var(--yellow); }
455
+ .composer .send-btn:disabled { opacity: .5; cursor: default; }
456
+ .composer .svg-icon { width: 17px; height: 17px; }
457
+
458
+ /* workspace path under the composer */
459
+ .ws-line { margin-top: 6px; padding: 0 2px; font-size: 11.5px; overflow-wrap: anywhere; }
460
+ .ws-line[hidden] { display: none; }
461
+ .ws-line .ws-k { color: var(--dim-b); margin-right: 6px; }
462
+ .ws-line .ws-v { color: var(--dim-a); }
463
+
464
+ /* slash-command autocomplete popup (above the composer) */
465
+ .cmdk {
466
+ position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 40;
467
+ max-height: 40vh; overflow-y: auto;
468
+ background: var(--panel); border: 1px solid var(--border-2); border-radius: 6px;
469
+ box-shadow: var(--shadow-menu); padding: 4px;
470
+ }
471
+ .cmdk[hidden] { display: none; }
472
+ .cmdk-item {
473
+ display: flex; gap: 10px; align-items: baseline; width: 100%;
474
+ padding: 6px 10px; border-radius: 4px; cursor: pointer; text-align: left;
475
+ font: inherit; font-size: 12.5px; color: var(--muted);
476
+ }
477
+ .cmdk-item .cmd { color: var(--fg); white-space: nowrap; }
478
+ .cmdk-item .desc { color: var(--dim-b); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
479
+ .cmdk-item.on, .cmdk-item:hover { background: var(--hover-bg-2); }
480
+ .cmdk-item.on .cmd { color: var(--accent); }
481
+
482
+ /* image attachments */
483
+ .attach-strip { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
484
+ .attach-strip[hidden] { display: none; }
485
+ .thumb {
486
+ position: relative; width: 64px; height: 48px; border-radius: 4px; overflow: hidden;
487
+ border: 1px solid var(--border-2); background: var(--surface);
488
+ }
489
+ .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
490
+ .thumb .rm {
491
+ position: absolute; top: 0; right: 0; width: 16px; height: 16px; line-height: 16px;
492
+ text-align: center; font-size: 11px; color: var(--fg); background: rgba(0, 0, 0, .55);
493
+ cursor: pointer; border: none; padding: 0;
494
+ display: flex; align-items: center; justify-content: center;
495
+ }
496
+ .thumb .rm .svg-icon { width: 11px; height: 11px; }
497
+ .thumb .rm:hover { background: var(--err); }
498
+ .attach-err { color: var(--yellow); font-size: 11.5px; margin-bottom: 6px; }
499
+ .attach-err[hidden] { display: none; }
500
+ .input-area.dragover .composer { border-color: var(--accent); box-shadow: 0 0 0 2px var(--input-shadow); }
501
+ @keyframes blink { 50% { opacity: 0; } }
502
+
503
+ /* sidebar — sections with independent scroll */
504
+ .sb {
505
+ width: 280px; min-width: 280px; display: flex; flex-direction: column;
506
+ border-left: 1px solid var(--border); background: var(--sb-bg); min-height: 0;
507
+ }
508
+ .sec {
509
+ display: flex; flex-direction: column; min-height: 0;
510
+ border-bottom: 1px solid var(--border);
511
+ }
512
+ .sec:last-child { border-bottom: none; }
513
+ .sec-h {
514
+ color: var(--sec-h); cursor: pointer; user-select: none;
515
+ display: flex; gap: 6px; align-items: center; font-size: 12.5px;
516
+ padding: 10px 16px 8px; flex-shrink: 0;
517
+ }
518
+ .sec-h:hover { color: var(--sec-h-hover); }
519
+ .sec-h .n { margin-left: auto; color: var(--dim-b); }
520
+ .sec-body {
521
+ overflow-y: auto; padding: 0 16px 12px;
522
+ min-height: 0;
523
+ }
524
+ .sec-body.collapsed { display: none; }
525
+ /* plan section takes the lion's share and scrolls */
526
+ .sec.plan-sec { flex: 1 1 auto; }
527
+ .sec.usage-sec { flex: 0 1 auto; max-height: 45%; }
528
+
529
+ ::-webkit-scrollbar { width: 8px; }
530
+ ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }
531
+
532
+ .plan-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--plan-bar-fg); font-size: 12px; }
533
+ .pbar { flex: 1; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
534
+ .pbar i { display: block; height: 100%; background: var(--green-fill); transition: width .2s; }
535
+ .plan-step { padding: 4px 0 4px 16px; position: relative; color: var(--muted); }
536
+ .plan-step.done { color: var(--green); }
537
+ .plan-step.cur { color: var(--accent); }
538
+ .plan-step.fail { color: var(--red); }
539
+ .plan-step::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--plan-line); }
540
+ .plan-step .sub { display: block; color: var(--dim-b); font-size: 11.5px; padding-left: 0; }
541
+
542
+ .kv { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); gap: 10px; }
543
+ .kv b { font-weight: 400; color: var(--fg); text-align: right; }
544
+ body.light .kv b { color: var(--fg); }
545
+ .kv .dim { color: var(--dim-a); }
546
+ .kv .wn { color: var(--yellow); }
547
+ body.light .kv .wn { color: var(--yellow); }
548
+ /* Environment section: stacked items (name on top, dim value below). */
549
+ #env .env-item { padding: 3px 0; }
550
+ #env .env-k { color: var(--muted); font-size: 12px; }
551
+ #env .env-v { color: var(--dim-b); font-size: 11.5px; overflow-wrap: anywhere; }
552
+ .bar { height: 4px; background: var(--track); border-radius: 2px; margin-top: 6px; overflow: hidden; }
553
+ .bar i { display: block; height: 100%; width: 0; background: var(--green-fill); transition: width .2s; }
554
+
555
+ /* settings modal */
556
+ .overlay {
557
+ display: none; position: fixed; inset: 0; z-index: 50;
558
+ background: var(--overlay); align-items: center; justify-content: center;
559
+ }
560
+ .overlay.open { display: flex; }
561
+ .modal {
562
+ width: min(880px, 92vw); height: min(640px, 88vh);
563
+ background: var(--panel); border-radius: 8px; overflow: hidden;
564
+ display: flex; flex-direction: column;
565
+ box-shadow: var(--shadow-modal);
566
+ }
567
+ .modal-top {
568
+ display: flex; align-items: center; padding: 10px 16px;
569
+ border-bottom: 1px solid var(--border); color: var(--fg); font-size: 13.5px;
570
+ }
571
+ .modal-top .modal-top-icon { display: inline-flex; align-items: center; color: var(--dim-a); margin-right: 8px; }
572
+ .modal-top .x { margin-left: auto; cursor: pointer; color: var(--dim-a); }
573
+ .modal-top .x:hover { color: var(--fg); }
574
+ .modal-top .saved { margin-left: 12px; font-size: 12px; color: var(--green); opacity: 0; transition: opacity .2s; }
575
+ .modal-top .saved.show { opacity: 1; }
576
+ .modal-top .saved.fail { color: var(--red-strong); }
577
+ .modal-body { flex: 1; display: flex; min-height: 0; min-width: 0; }
578
+
579
+ /* small confirmation dialog (reuses the modal overlay) */
580
+ .modal.modal-sm {
581
+ width: min(380px, 92vw); height: auto; max-height: 88vh; border-radius: 8px;
582
+ }
583
+ .confirm-body { flex-direction: column; padding: 16px 18px; gap: 16px; }
584
+ .confirm-msg { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
585
+ .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
586
+ .confirm-actions .linkbtn {
587
+ padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px;
588
+ color: var(--fg); justify-content: center;
589
+ }
590
+ .confirm-actions .linkbtn:hover { text-decoration: none; background: var(--hover-bg-2); }
591
+ .confirm-actions .linkbtn.danger { border-color: var(--red-strong); color: var(--red-strong); }
592
+ .confirm-actions .linkbtn.danger:hover { background: var(--x-hover-bg); }
593
+ .menu-col {
594
+ width: 200px; min-width: 200px; padding: 12px 8px;
595
+ border-right: 1px solid var(--border); overflow-y: auto;
596
+ min-height: 0; flex: 0 0 auto;
597
+ }
598
+ .menu-col .mi {
599
+ padding: 7px 12px; border-radius: 4px; cursor: pointer;
600
+ color: var(--muted); margin-bottom: 2px; font-size: 13px;
601
+ width: 100%; text-align: left; background: none; border: none; font-family: inherit;
602
+ }
603
+ .menu-col .mi:hover { background: var(--hover-bg-2); color: var(--fg); }
604
+ .menu-col .mi.on { background: var(--accent-bg); color: var(--accent); }
605
+ .content-col { flex: 1; padding: 18px 22px; overflow-y: auto; min-width: 0; min-height: 0; }
606
+ .panel { display: none; }
607
+ .panel.on { display: block; }
608
+ .panel h3 { font-size: 14px; font-weight: 400; color: var(--fg); margin-bottom: 14px; }
609
+ .row {
610
+ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
611
+ padding: 9px 0; border-bottom: 1px solid var(--border-3); font-size: 13px; color: var(--muted);
612
+ gap: 6px 14px; min-width: 0;
613
+ }
614
+ .row:last-child { border-bottom: none; }
615
+ .row > .row-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
616
+ .row-label .row-name { overflow-wrap: anywhere; }
617
+ .row-label .row-desc { color: var(--dim-a); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; max-width: 60ch; }
618
+ .row > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
619
+ .row .val {
620
+ color: var(--fg); min-width: 0; max-width: 100%;
621
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
622
+ }
623
+ body.light .row .val { color: var(--fg); }
624
+ .row .val.accent { color: var(--purple); }
625
+ body.light .row .val.accent { color: var(--purple); }
626
+ .row .val.dim { color: var(--dim-a); }
627
+ .row input {
628
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
629
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 8px;
630
+ width: 120px; text-align: right;
631
+ }
632
+ .toggle {
633
+ width: 34px; height: 18px; border-radius: 9px; background: var(--toggle-off);
634
+ position: relative; cursor: pointer; flex: 0 0 auto;
635
+ }
636
+ body.light .toggle { background: var(--toggle-off); }
637
+ .toggle::after {
638
+ content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
639
+ border-radius: 50%; background: var(--toggle-knob); transition: .15s;
640
+ }
641
+ .toggle.on { background: var(--green-fill); }
642
+ .toggle.on::after { left: 18px; background: var(--toggle-knob-on); }
643
+ .seg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
644
+ .seg button {
645
+ font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer;
646
+ background: var(--surface); color: var(--muted); border: none; border-radius: 4px;
647
+ }
648
+ .seg button.on { background: var(--accent-bg); color: var(--accent); }
649
+ .list-line {
650
+ display: flex; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 12.5px;
651
+ border-bottom: 1px solid var(--border-3);
652
+ }
653
+ .list-line .g { color: var(--green); }
654
+ .searchbox {
655
+ width: 100%; padding: 7px 10px; margin-bottom: 10px;
656
+ background: var(--surface); border: 1px solid var(--border-2); border-radius: 4px;
657
+ color: var(--fg); font: inherit; font-size: 12.5px;
658
+ }
659
+ .placeholder { color: var(--dim-b); font-size: 12.5px; padding: 6px 0; line-height: 1.7; }
660
+ .placeholder .tag { color: var(--yellow); }
661
+
662
+ /* settings data lists (memory / skills / plugins) */
663
+ .settings-list .list-line { align-items: center; gap: 6px 10px; flex-wrap: wrap; }
664
+ .settings-list .list-line .name {
665
+ flex: 1 1 auto; min-width: 0; color: var(--fg);
666
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
667
+ }
668
+ .settings-list .list-line .src {
669
+ color: var(--dim-a); font-size: 11.5px; white-space: nowrap;
670
+ overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
671
+ }
672
+ .settings-list .list-line .st { color: var(--dim-a); white-space: nowrap; flex: 0 0 auto; }
673
+ .settings-list .list-line .dim { color: var(--dim-a); }
674
+ .settings-list .list-line .linkbtn { flex: 0 0 auto; }
675
+ .settings-list .list-line .linkbtn:first-of-type { margin-left: auto; }
676
+
677
+ /* skills: name on top, source path beneath */
678
+ .skill-item { padding: 8px 0; border-bottom: 1px solid var(--border-3); }
679
+ .skill-item:last-child { border-bottom: none; }
680
+ .skill-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
681
+ .skill-head .g { color: var(--green); flex: 0 0 auto; }
682
+ .skill-head .dim { color: var(--dim-a); flex: 0 0 auto; }
683
+ .skill-head .name {
684
+ color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
685
+ }
686
+ .skill-head .st { margin-left: auto; color: var(--dim-a); white-space: nowrap; flex: 0 0 auto; }
687
+ .skill-src {
688
+ color: var(--dim-a); font-size: 11.5px; margin-top: 2px; padding-left: 18px;
689
+ overflow-wrap: anywhere; word-break: break-word;
690
+ }
691
+ .row select {
692
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
693
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 4px 6px;
694
+ }
695
+ .row input.grow { width: 220px; text-align: left; }
696
+
697
+ /* memory page — readable entry blocks */
698
+ .mem-cat {
699
+ display: flex; align-items: baseline; gap: 8px;
700
+ padding: 12px 0 6px; font-size: 11.5px; text-transform: uppercase;
701
+ letter-spacing: .05em; color: var(--dim-a);
702
+ border-bottom: 1px solid var(--border-3);
703
+ }
704
+ .mem-cat .n { margin-left: auto; color: var(--dim-b); }
705
+ .mem-entry {
706
+ display: flex; align-items: flex-start; gap: 10px;
707
+ padding: 8px 0; border-bottom: 1px solid var(--border-3);
708
+ font-size: 12.5px; color: var(--muted);
709
+ }
710
+ .mem-entry .mem-text {
711
+ flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.6;
712
+ }
713
+ .mem-entry .mem-text b { font-weight: 600; color: var(--fg); }
714
+ .mem-entry .mem-del {
715
+ flex: 0 0 auto; color: var(--accent); cursor: pointer; white-space: nowrap;
716
+ }
717
+ .mem-entry .mem-del:hover { text-decoration: underline; }
718
+ .mem-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 14px; }
719
+ .mem-add select,
720
+ .mem-add input {
721
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
722
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 5px 8px;
723
+ }
724
+ .mem-add select { flex: 0 0 auto; }
725
+ .mem-add input { flex: 1 1 180px; min-width: 0; }
726
+ .mem-add .linkbtn { flex: 0 0 auto; }
727
+
728
+ /* provider add/edit form */
729
+ .add-provider { display: inline-block; padding: 8px 0; }
730
+ .pform {
731
+ margin-top: 10px; padding: 12px; border: 1px solid var(--border-2); border-radius: 6px;
732
+ background: var(--surface);
733
+ }
734
+ .pform-grid {
735
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
736
+ gap: 8px 12px;
737
+ }
738
+ .pform-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
739
+ .pform-field label { font-size: 11px; color: var(--dim-a); text-transform: uppercase; letter-spacing: .04em; }
740
+ .pform-field input {
741
+ background: var(--input-surface); border: 1px solid var(--border-2); border-radius: 4px;
742
+ color: var(--fg); font: inherit; font-size: 12.5px; padding: 5px 8px; width: 100%; min-width: 0;
743
+ }
744
+ .pform-actions { display: flex; gap: 14px; align-items: center; padding-top: 10px; }
745
+ .pform-actions .linkbtn.dim { color: var(--dim-a); }
746
+ .settings-note { color: var(--dim-b); font-size: 11.5px; line-height: 1.7; padding: 8px 0 4px; }
747
+
748
+ /* ---- icons, focus & button normalization ---- */
749
+
750
+ /* Inline Lucide SVGs (chrome only; chat status glyphs stay textual per STYLE.md). */
751
+ .icon-btn,
752
+ .stab-x,
753
+ .dd-menu .del-btn,
754
+ .del,
755
+ .linkbtn { display: inline-flex; align-items: center; gap: 5px; }
756
+ .svg-icon { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
757
+ .icon-btn .svg-icon { width: 16px; height: 16px; }
758
+
759
+ /* Elements converted to real <button>s must not inherit UA chrome. */
760
+ button.mi,
761
+ button.act,
762
+ button.think-h,
763
+ button.qopt,
764
+ button.stab-x,
765
+ button.dd-row-main,
766
+ button.del-btn,
767
+ button.linkbtn {
768
+ font: inherit; color: inherit; background: none; border: none;
769
+ text-align: left; cursor: pointer; width: auto; padding: 0;
770
+ }
771
+ /* Headers keep their own padding/width from the base rules. */
772
+ button.sec-h { font: inherit; color: inherit; background: none; border: none; cursor: pointer; width: 100%; padding: 10px 16px 8px; text-align: left; }
773
+ button.think-h { width: 100%; }
774
+ /* Switch keeps its fixed track size. */
775
+ button.toggle { font: inherit; border: none; padding: 0; }
776
+ button.stab-x {
777
+ padding: 4px 8px 4px 4px; border-radius: 3px; color: var(--dim-b);
778
+ display: inline-flex; align-items: center;
779
+ }
780
+ button.stab-x:hover { color: var(--red-strong); }
781
+ .dd-menu .si-row { padding: 0; gap: 0; }
782
+ .dd-menu .dd-row-main {
783
+ flex: 1 1 auto; display: flex; gap: 10px; align-items: baseline; min-width: 0;
784
+ padding: 7px 8px; color: var(--muted); font-size: 12.5px;
785
+ }
786
+ .dd-menu .dd-row-main:hover { color: var(--fg); }
787
+ .dd-menu .si.on .dd-row-main { color: var(--accent); }
788
+ .dd-menu .del-btn {
789
+ flex: 0 0 auto; width: 28px; height: 28px; padding: 0; margin: 0 4px;
790
+ color: var(--dim-b); cursor: pointer; justify-content: center;
791
+ border-radius: 4px; align-items: center;
792
+ }
793
+ .dd-menu .del-btn:hover { color: var(--red-strong); background: var(--x-hover-bg); }
794
+ .dd-menu .del-btn .svg-icon { width: 15px; height: 15px; }
795
+ .dd-menu .dd-err { color: var(--yellow); font-size: 11.5px; padding: 6px 8px; }
796
+
797
+ /* Text actions (`use`/`edit`/`forget`/`add`, session delete) as focusable buttons. */
798
+ .linkbtn {
799
+ color: var(--accent); cursor: pointer; white-space: nowrap;
800
+ align-items: center;
801
+ }
802
+ .linkbtn:hover { text-decoration: underline; }
803
+ .linkbtn.dim { color: var(--dim-a); }
804
+ .linkbtn.danger { color: var(--red-strong); }
805
+
806
+ /* Interactive spans upgraded with `activate()` get the same affordance. */
807
+ [role="button"]:not(button) { cursor: pointer; }
808
+
809
+ /* Visible keyboard focus everywhere. */
810
+ :focus-visible {
811
+ outline: 2px solid var(--accent);
812
+ outline-offset: 2px;
813
+ border-radius: 3px;
814
+ }
815
+ .inp:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--input-shadow); }
816
+ .qopt:focus-visible,
817
+ .toggle:focus-visible { outline-offset: 1px; }
818
+
819
+ /* Question options are buttons now. */
820
+ .q .qopt { background: none; border: none; font: inherit; text-align: left; }
821
+ .q .qopt[aria-checked="true"] { color: var(--green); }
822
+ .q .qmulti-hint { color: var(--dim-a); padding-left: 18px; font-size: 11.5px; }
823
+ .q .qcustom { margin: 6px 0 0 18px; display: flex; gap: 8px; align-items: center; }
824
+ .q .qcustom input { flex: 1 1 auto; max-width: 420px; }
825
+ .q .qcustom .linkbtn { flex: 0 0 auto; }
826
+
827
+ /* Toggle is a real switch button. */
828
+ button.toggle { padding: 0; }
829
+ button.toggle:disabled { opacity: .5; cursor: default; }
830
+
831
+ /* Empty-state hint (was an inline color in JS). */
832
+ .empty .hint { color: var(--dim-a); }
833
+
834
+ /* Screen-reader-only status region (turn end, warnings/errors). */
835
+ .visually-hidden {
836
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
837
+ overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
838
+ }
839
+
840
+ @media (prefers-reduced-motion: reduce) {
841
+ *, *::before, *::after {
842
+ animation-duration: .001ms !important;
843
+ animation-iteration-count: 1 !important;
844
+ transition-duration: .001ms !important;
845
+ }
846
+ }
847
+
848
+ /* ---- responsive layout ---- */
849
+ @media (max-width: 760px) {
850
+ .bar-top { gap: 8px; padding: 8px 10px; }
851
+ .conn { display: none; }
852
+ .layout { flex-direction: column; }
853
+ .chat { min-height: 0; }
854
+ .sb {
855
+ width: 100%; min-width: 0; max-height: 42vh;
856
+ border-left: none; border-top: 1px solid var(--border);
857
+ }
858
+ .sec.usage-sec { max-height: 50%; }
859
+ .msgs { padding: 14px; }
860
+ .input-area { margin: 10px 14px 12px; }
861
+ .inp-meta { flex-wrap: wrap; gap: 8px; }
862
+ }
863
+
864
+ @media (max-width: 640px) {
865
+ .modal {
866
+ width: 100vw; height: 100vh; max-width: none; max-height: none;
867
+ border-radius: 0;
868
+ }
869
+ .modal-body { flex-direction: column; min-width: 0; }
870
+ .menu-col {
871
+ width: 100%; min-width: 0; display: flex; flex-direction: row;
872
+ gap: 6px; overflow-x: auto; overflow-y: hidden;
873
+ border-right: none; border-bottom: 1px solid var(--border);
874
+ padding: 8px 10px; flex: 0 0 auto;
875
+ }
876
+ .menu-col .mi { white-space: nowrap; margin-bottom: 0; flex: 0 0 auto; width: auto; }
877
+ .content-col { padding: 14px; }
878
+ .row { font-size: 12.5px; }
879
+ .input-area { margin: 8px 10px 10px; }
880
+ .msgs { padding: 12px 10px; }
881
+ }