browser-assistant 2.9.2 → 2.9.3

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.
@@ -1,634 +1,553 @@
1
- /* Browser Assistant – Styles v2.0 */
1
+ /* Browser Assistant glass surfaces. Scope the theme to extension-owned UI. */
2
+ #assistant-root,
3
+ #assistant-journal,
4
+ #assistant-journal-countdown-badge,
5
+ .assistant-popup {
6
+ --ink: #f7fbff;
7
+ --muted: #c7d4eb;
8
+ --blue: #acd6ff;
9
+ --mint: #a5f6da;
10
+ --danger: #ffc3ce;
11
+ --amber: #ffe0a1;
12
+ --edge: rgb(191 215 255 / 30%);
13
+ --control-edge: rgb(191 215 255 / 60%);
14
+ --surface: rgb(19 31 54 / 57%);
15
+ --card: rgb(26 40 66 / 58%);
16
+ --well: rgb(4 11 27 / 65%);
17
+ --shell: radial-gradient(ellipse at 100% 0%, rgb(84 137 254 / 22%), transparent 58%),
18
+ radial-gradient(ellipse at 0% 100%, rgb(23 181 157 / 18%), transparent 54%),
19
+ rgb(8 15 33 / 87%);
20
+ --primary: linear-gradient(125deg, #a5e8ff, #c2bbff);
21
+ --primary-hover: linear-gradient(125deg, #c0f1ff, #d3ccff);
22
+ --primary-ink: #111b33;
23
+ --shadow: 0 18px 48px rgb(4 10 26 / 40%), inset 0 1px rgb(224 238 255 / 13%);
24
+ --card-shadow: 0 5px 15px rgb(2 7 19 / 20%), inset 0 1px rgb(224 238 255 / 7%);
25
+ --ui-font: Inter, system-ui, -apple-system, sans-serif;
26
+ }
2
27
 
28
+ #assistant-root,
3
29
  #assistant-journal-countdown-badge {
4
- all: initial;
30
+ display: block;
5
31
  position: fixed;
32
+ z-index: 2147483647;
33
+ color: var(--ink);
34
+ pointer-events: none;
35
+ }
36
+ #assistant-root {
37
+ top: clamp(10px, 2vw, 20px);
38
+ right: clamp(10px, 2vw, 20px);
39
+ font: 14px/1.5 var(--ui-font);
40
+ user-select: none;
41
+ }
42
+ #assistant-journal-countdown-badge {
6
43
  bottom: 16px;
7
44
  left: 16px;
8
- z-index: 2147483647;
45
+ max-inline-size: calc(100vw - 32px);
46
+ box-sizing: border-box;
9
47
  padding: 8px 12px;
10
- border: 1px solid #a78bfa;
11
48
  border-radius: 999px;
12
- background: #20163b;
13
- color: #fff;
14
- font: 600 13px/1.3 system-ui, sans-serif;
49
+ font: 650 13px/1.4 var(--ui-font);
15
50
  font-variant-numeric: tabular-nums;
16
- pointer-events: none;
17
- user-select: none;
18
51
  }
52
+ #assistant-root [hidden],
53
+ #assistant-journal [hidden],
54
+ .assistant-popup [hidden] { display: none !important; }
19
55
 
20
- #assistant-root {
21
- position: fixed;
22
- top: 20px;
23
- right: 20px;
24
- z-index: 2147483647;
25
- font-family: 'Inter', system-ui, -apple-system, sans-serif;
26
- color: #fff;
27
- pointer-events: none;
28
- user-select: none;
29
- -webkit-user-select: none;
56
+ #assistant-root .assistant-tab,
57
+ #assistant-journal,
58
+ #assistant-journal-countdown-badge,
59
+ .assistant-popup .popup-shell {
60
+ background: var(--shell);
61
+ -webkit-backdrop-filter: blur(24px) saturate(135%);
62
+ backdrop-filter: blur(24px) saturate(135%);
63
+ border: 1px solid var(--edge);
64
+ box-shadow: var(--shadow);
65
+ color-scheme: dark;
66
+ }
67
+ #assistant-root .assistant-tab {
68
+ box-sizing: border-box;
69
+ display: flex;
70
+ flex-direction: column;
71
+ width: min(368px, calc(100vw - 24px));
72
+ min-height: 190px;
73
+ max-height: min(85dvh, 740px);
74
+ padding: 14px;
75
+ border-radius: 20px;
76
+ overflow: hidden;
77
+ resize: vertical;
78
+ pointer-events: auto;
30
79
  }
31
-
32
- /* ── Collapsed badge ──────────────────────────────────────────────────── */
33
- .assistant-tab.collapsed {
34
- width: 40px !important;
35
- height: 40px !important;
36
- min-width: 40px !important;
37
- min-height: 40px !important;
38
- max-width: 40px !important;
39
- max-height: 40px !important;
40
- border-radius: 50% !important;
41
- padding: 0 !important;
42
- display: flex !important;
43
- align-items: center;
44
- justify-content: center;
80
+ #assistant-root .assistant-tab.collapsed {
81
+ position: relative;
82
+ display: grid;
83
+ place-items: center;
84
+ width: 46px;
85
+ height: 46px;
86
+ min-height: 0;
87
+ padding: 0;
88
+ border-radius: 50%;
89
+ resize: none;
90
+ touch-action: none;
91
+ color: var(--ink);
45
92
  cursor: grab;
46
- pointer-events: auto;
47
- background: #ffffff !important;
48
- border: 2px solid #333 !important;
49
- box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
50
- overflow: hidden !important;
51
- resize: none !important;
52
- flex-shrink: 0;
53
- font-size: 16px !important;
54
- color: #333 !important;
55
- }
56
- .assistant-dragging .assistant-tab.collapsed { cursor: grabbing; }
57
-
58
-
59
- .assistant-tab.collapsed:hover {
60
- transform: scale(1.15);
61
- box-shadow: 0 6px 25px rgba(110,142,251,0.8);
93
+ overflow: visible;
94
+ font: 750 16px/1 var(--ui-font);
95
+ border-color: var(--control-edge);
62
96
  }
63
- .assistant-tab.collapsed::before {
64
- content: attr(data-content);
65
- display: flex;
66
- align-items: center;
67
- justify-content: center;
68
- width: 100%;
69
- height: 100%;
70
- }
71
- .assistant-tab.collapsed.has-answer {
72
- background: linear-gradient(135deg, #10b981, #059669) !important;
73
- color: #fff !important;
74
- font-weight: 900 !important;
75
- font-size: 16px !important;
76
- border: 2px solid rgba(255,255,255,0.4) !important;
77
- box-shadow: 0 4px 15px rgba(16,185,129,0.5) !important;
78
- text-transform: uppercase;
97
+ #assistant-root .assistant-tab.collapsed:hover { border-color: var(--blue); }
98
+ #assistant-root .assistant-tab.collapsed.has-answer {
99
+ background: var(--primary);
100
+ color: var(--primary-ink);
79
101
  }
80
- .assistant-tab.collapsed.has-answer[data-content="A"],
81
- .assistant-tab.collapsed.has-answer[data-content="B"],
82
- .assistant-tab.collapsed.has-answer[data-content="C"],
83
- .assistant-tab.collapsed.has-answer[data-content="D"],
84
- .assistant-tab.collapsed.has-answer[data-content="E"],
85
- .assistant-tab.collapsed.has-answer[data-content="OK"] {
86
- font-size: 18px !important;
102
+ #assistant-root .assistant-tab.collapsed.has-answer::before { content: attr(data-content); }
103
+ #assistant-root .assistant-mark {
104
+ display: grid;
105
+ place-items: center;
106
+ width: 29px;
107
+ height: 29px;
108
+ flex: 0 0 auto;
109
+ border: 1px solid var(--control-edge);
110
+ border-radius: 9px;
111
+ background: var(--well);
112
+ color: var(--blue);
113
+ font: 750 12px/1 var(--ui-font);
114
+ letter-spacing: -.04em;
87
115
  }
88
-
89
- /* ── Expanded panel ───────────────────────────────────────────────────── */
90
- .assistant-tab {
91
- background: rgba(15, 15, 20, 0.88);
92
- backdrop-filter: blur(20px);
93
- -webkit-backdrop-filter: blur(20px);
94
- border: 1px solid rgba(255, 255, 255, 0.12);
95
- border-radius: 14px;
96
- padding: 10px;
97
- width: 272px;
98
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
99
- pointer-events: auto;
100
- transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
101
- overflow: hidden;
102
- max-height: 85vh;
103
- display: flex;
104
- flex-direction: column;
105
- resize: vertical;
106
- min-height: 180px;
116
+ #assistant-root .has-answer .assistant-mark { display: none; }
117
+ #assistant-root .assistant-mode-indicator {
118
+ position: absolute;
119
+ inset: auto -4px -3px auto;
120
+ border-radius: 6px;
121
+ padding: 2px 4px;
122
+ background: #b7dfff;
123
+ color: var(--primary-ink);
124
+ font-size: 9px;
107
125
  }
108
126
 
109
- /* ── Header ───────────────────────────────────────────────────────────── */
110
- .assistant-header {
127
+ #assistant-root .assistant-header,
128
+ #assistant-root .assistant-title-row,
129
+ #assistant-root .assistant-header-actions {
111
130
  display: flex;
112
- justify-content: space-between;
113
131
  align-items: center;
114
- margin-bottom: 8px;
132
+ gap: 8px;
133
+ }
134
+ #assistant-root .assistant-header {
135
+ justify-content: space-between;
136
+ padding-bottom: 12px;
115
137
  cursor: grab;
116
138
  touch-action: none;
117
139
  }
118
- .assistant-dragging .assistant-header { cursor: grabbing; }
119
- .assistant-title-row {
120
- display: flex;
121
- align-items: center;
122
- gap: 6px;
123
- }
124
- .assistant-title {
140
+ #assistant-root.assistant-dragging :is(.assistant-header, .collapsed) { cursor: grabbing; }
141
+ #assistant-root .assistant-title {
125
142
  margin: 0;
126
- font-size: 13px;
127
- font-weight: 600;
128
- color: #f0f0f0;
143
+ color: var(--ink);
144
+ font: 720 15px/1.2 var(--ui-font);
145
+ letter-spacing: -.02em;
129
146
  }
130
- .assistant-close {
131
- background: none;
132
- border: none;
133
- color: #666;
134
- cursor: pointer;
135
- font-size: 18px;
136
- line-height: 1;
137
- padding: 0 2px;
138
- transition: color 0.15s;
147
+ #assistant-root .assistant-title-row .status-dot {
148
+ width: 8px;
149
+ height: 8px;
150
+ border-radius: 50%;
151
+ flex: 0 0 auto;
139
152
  }
140
- .assistant-close:hover { color: #fff; }
153
+ #assistant-root .status-dot.online { background: var(--mint); box-shadow: 0 0 8px rgb(165 246 218 / 56%); }
154
+ #assistant-root .status-dot.offline { background: var(--danger); }
155
+ #assistant-root .status-dot.unknown { background: var(--amber); }
141
156
 
142
- /* ── Container for internal flexing ─────────────────────────────────────── */
143
- .assistant-content {
157
+ #assistant-root :is(.assistant-content, .assistant-scan-panel) {
144
158
  display: flex;
145
- flex-direction: column;
146
159
  flex: 1;
147
- overflow: hidden;
160
+ flex-direction: column;
148
161
  min-height: 0;
149
162
  }
163
+ #assistant-root .assistant-content { overflow: hidden; }
150
164
 
151
- /* ── Server status dot ────────────────────────────────────────────────── */
152
- .status-dot {
153
- width: 7px;
154
- height: 7px;
155
- border-radius: 50%;
156
- display: inline-block;
157
- flex-shrink: 0;
165
+ #assistant-root :is(.assistant-mode-switcher, .assistant-qa-panel),
166
+ .assistant-popup .popup-card {
167
+ background: var(--surface);
168
+ -webkit-backdrop-filter: blur(18px);
169
+ backdrop-filter: blur(18px);
170
+ border: 1px solid var(--edge);
171
+ border-radius: 13px;
172
+ box-shadow: var(--card-shadow);
173
+ }
174
+ #assistant-root .assistant-mode-switcher {
175
+ display: grid;
176
+ grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(70px, 1.55fr);
177
+ gap: 3px;
178
+ padding: 4px;
179
+ margin: 0 0 12px;
158
180
  }
159
- .status-dot.online { background: #10b981; box-shadow: 0 0 5px #10b981; }
160
- .status-dot.offline { background: #ef4444; box-shadow: 0 0 5px #ef4444; }
161
- .status-dot.unknown { background: #f59e0b; }
162
-
163
- /* ── Mode switcher ────────────────────────────────────────────────────── */
164
- .assistant-mode-switcher {
165
- display: flex;
166
- background: rgba(255,255,255,0.05);
181
+ #assistant-root .mode-btn {
182
+ min-width: 0;
183
+ min-height: 32px;
184
+ padding: 4px 2px;
185
+ background: transparent;
186
+ border: 1px solid transparent;
167
187
  border-radius: 8px;
168
- padding: 2px;
169
- margin-bottom: 8px;
170
- border: 1px solid rgba(255,255,255,0.08);
171
- }
172
- .mode-btn {
173
- flex: 1;
174
- background: none;
175
- border: none;
176
- color: #777;
177
- font-size: 10px;
178
- padding: 4px 0;
188
+ color: var(--muted);
189
+ font: 720 10px/1.2 var(--ui-font);
179
190
  cursor: pointer;
180
- border-radius: 6px;
181
- transition: all 0.18s;
182
- font-weight: 600;
183
- letter-spacing: 0.4px;
184
191
  }
185
- .mode-btn.active {
186
- background: rgba(110,142,251,0.85);
187
- color: #fff;
192
+ #assistant-root .mode-btn:hover:not(.active) {
193
+ background: var(--card);
194
+ border-color: var(--edge);
195
+ color: var(--ink);
188
196
  }
189
- .mode-btn:hover:not(.active) {
190
- background: rgba(255,255,255,0.08);
191
- color: #bbb;
197
+ #assistant-root .mode-btn.active {
198
+ background: var(--primary);
199
+ color: var(--primary-ink);
192
200
  }
201
+ #assistant-root .mode-btn.qa-tab.active { background: #a5f6da; }
193
202
 
194
- /* ── Scan buttons ─────────────────────────────────────────────────────── */
195
- .assistant-btn-row {
196
- display: flex;
197
- gap: 6px;
198
- margin-bottom: 8px;
199
- }
200
- .assistant-btn {
201
- flex: 1;
202
- background: linear-gradient(135deg, #6e8efb, #a777e3);
203
- border: none;
204
- border-radius: 6px;
205
- color: #fff;
206
- padding: 6px 8px;
207
- font-weight: 600;
208
- font-size: 11px;
203
+ #assistant-root .assistant-btn-row,
204
+ #assistant-root .assistant-automation-actions { display: flex; gap: 8px; }
205
+ #assistant-root .assistant-btn-row { margin-bottom: 12px; }
206
+ #assistant-root :is(.assistant-btn, .assistant-auto-btn, .assistant-history-btn, .assistant-history-action,
207
+ .assistant-history-item, .assistant-copy-btn, .assistant-icon-btn, .assistant-close),
208
+ #assistant-journal button {
209
+ box-sizing: border-box;
210
+ border: 1px solid var(--control-edge);
211
+ border-radius: 9px;
212
+ background: var(--well);
213
+ color: var(--ink);
214
+ font: 650 12px/1.25 var(--ui-font);
209
215
  cursor: pointer;
210
- transition: opacity 0.18s, transform 0.1s;
211
- }
212
- .assistant-btn.secondary {
213
- background: rgba(255,255,255,0.08);
214
- border: 1px solid rgba(255,255,255,0.12);
215
- color: #bbb;
216
216
  }
217
- .assistant-btn:hover { opacity: 0.88; transform: translateY(-1px); }
218
- .assistant-btn:active { transform: translateY(0); }
219
- .assistant-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
220
-
221
- /* ── Persistent scan history ─────────────────────────────────────────── */
222
- .assistant-history-row { margin: -2px 0 8px; }
223
- .assistant-history-btn,
224
- .assistant-history-action {
225
- border: 1px solid rgba(110,142,251,0.35);
226
- border-radius: 6px;
227
- background: rgba(110,142,251,0.10);
228
- color: #b9c7ff;
229
- cursor: pointer;
230
- font: inherit;
231
- font-size: 10px;
232
- padding: 5px 8px;
233
- }
234
- .assistant-history-btn { width: 100%; }
235
- .assistant-history-btn:hover,
236
- .assistant-history-action:hover { background: rgba(110,142,251,0.20); }
237
- .assistant-history-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #e5e7eb; font-size: 12px; margin: 2px 0 8px; }
238
- .assistant-history-header > div { display: flex; gap: 5px; }
239
- .assistant-history-action { padding: 3px 7px; }
240
- .assistant-history-action.danger { border-color: rgba(248,113,113,0.4); color: #fca5a5; background: rgba(248,113,113,0.08); }
241
- .assistant-history-item { display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; width: 100%; text-align: left; margin-bottom: 6px; padding: 8px; border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; background: rgba(255,255,255,0.035); color: #e5e7eb; cursor: pointer; }
242
- .assistant-history-item:hover { border-color: rgba(110,142,251,0.55); background: rgba(110,142,251,0.08); }
243
- .assistant-history-type { color: #a5b4fc; font-size: 9px; font-weight: 700; text-transform: uppercase; }
244
- .assistant-history-answer { min-width: 0; color: #34d399; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
245
- .assistant-history-time { grid-column: 1 / -1; color: #94a3b8; font-size: 9px; }
246
-
247
- /* ── Authorized QA automation ────────────────────────────────────────── */
248
- .assistant-automation { margin: 0 0 8px; padding: 7px; border: 1px solid rgba(16,185,129,0.24); border-radius: 7px; background: rgba(16,185,129,0.055); }
249
- .assistant-automation-status { color: #a7f3d0; font-size: 9.5px; line-height: 1.4; margin-bottom: 6px; }
250
- .assistant-automation-actions { display: flex; gap: 5px; }
251
- .assistant-auto-btn { flex: 1; padding: 5px 4px; border: 1px solid rgba(16,185,129,0.35); border-radius: 5px; color: #d1fae5; background: rgba(16,185,129,0.12); cursor: pointer; font-size: 9px; font-weight: 700; }
252
- .assistant-auto-btn.stop { color: #fecaca; border-color: rgba(248,113,113,0.38); background: rgba(248,113,113,0.08); }
253
- .assistant-auto-btn:disabled { opacity: .42; cursor: not-allowed; }
217
+ #assistant-root :is(.assistant-btn, .assistant-auto-btn) { min-height: 36px; padding: 7px 10px; }
218
+ #assistant-root .assistant-btn { flex: 1; }
219
+ #assistant-root .assistant-auto-btn { flex: 1; }
220
+ #assistant-root .assistant-auto-btn.start { flex: 1.5; }
221
+ #assistant-root :is(.assistant-btn:not(.secondary), .assistant-auto-btn.start),
222
+ #assistant-journal button {
223
+ background: var(--primary);
224
+ border-color: transparent;
225
+ color: var(--primary-ink);
226
+ }
227
+ #assistant-root :is(.assistant-btn:not(.secondary), .assistant-auto-btn.start):hover:not(:disabled),
228
+ #assistant-journal button:hover:not(:disabled) { background: var(--primary-hover); }
229
+ #assistant-root :is(.assistant-btn.secondary, .assistant-auto-btn:not(.start), .assistant-history-btn,
230
+ .assistant-history-action, .assistant-history-item, .assistant-copy-btn, .assistant-icon-btn, .assistant-close):hover:not(:disabled) {
231
+ background: var(--card);
232
+ border-color: var(--blue);
233
+ }
234
+ #assistant-root :is(.assistant-auto-btn.stop, .assistant-history-action.danger) {
235
+ color: var(--danger);
236
+ border-color: rgb(255 182 198 / 64%);
237
+ }
238
+ #assistant-root button:disabled,
239
+ #assistant-journal button:disabled {
240
+ background: var(--well);
241
+ border: 1px dashed var(--control-edge);
242
+ color: var(--muted);
243
+ cursor: not-allowed;
244
+ }
245
+ #assistant-root :is(.assistant-icon-btn, .assistant-close) {
246
+ display: grid;
247
+ place-items: center;
248
+ width: 32px;
249
+ height: 32px;
250
+ padding: 0;
251
+ color: var(--blue);
252
+ }
253
+ #assistant-root .assistant-icon-btn svg {
254
+ width: 16px;
255
+ height: 16px;
256
+ fill: none;
257
+ stroke: currentColor;
258
+ stroke-width: 1.8;
259
+ stroke-linecap: round;
260
+ stroke-linejoin: round;
261
+ }
262
+ #assistant-root .assistant-close { font-size: 21px; line-height: 1; }
254
263
 
255
- /* ── Results body ─────────────────────────────────────────────────────── */
256
- .assistant-body {
264
+ #assistant-root :is(.assistant-body, .assistant-qa-panel) {
257
265
  flex: 1;
258
- overflow-y: auto;
259
- overflow-x: hidden;
260
266
  min-height: 0;
261
- font-size: 12.5px;
262
- line-height: 1.55;
263
- padding-right: 3px;
264
- user-select: text;
265
- -webkit-user-select: text;
266
- }
267
- .assistant-body::-webkit-scrollbar { width: 3px; }
268
- .assistant-body::-webkit-scrollbar-track { background: transparent; }
269
- .assistant-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 10px; }
270
-
271
- .assistant-placeholder {
272
- text-align: center;
273
- color: #555;
274
- padding: 20px 0;
275
- font-size: 12px;
276
- line-height: 1.8;
267
+ overflow: auto;
268
+ scrollbar-width: thin;
269
+ scrollbar-color: #8297ba transparent;
277
270
  }
278
- .assistant-placeholder kbd {
279
- background: #222;
280
- border: 1px solid #444;
281
- border-radius: 3px;
282
- padding: 1px 4px;
283
- font-size: 10px;
284
- color: #bbb;
271
+ #assistant-root .assistant-body {
272
+ padding: 3px;
273
+ user-select: text;
285
274
  }
286
-
287
- /* ── Loading spinner ──────────────────────────────────────────────────── */
288
- .assistant-loading {
275
+ #assistant-root :is(.assistant-placeholder, .assistant-loading, .assistant-error, .assistant-answer,
276
+ .assistant-code-container, .assistant-history-item, .assistant-qa-details > div, .assistant-qa-latest) {
277
+ box-sizing: border-box;
278
+ border: 1px solid var(--edge);
279
+ border-radius: 11px;
280
+ background: var(--card);
281
+ -webkit-backdrop-filter: blur(14px);
282
+ backdrop-filter: blur(14px);
283
+ box-shadow: var(--card-shadow);
284
+ }
285
+ #assistant-root :is(.assistant-placeholder, .assistant-loading) {
286
+ padding: 22px 12px;
289
287
  text-align: center;
290
- padding: 18px;
291
- color: #888;
292
- font-size: 12px;
293
- display: flex;
294
- flex-direction: column;
295
- align-items: center;
296
- gap: 10px;
288
+ color: var(--muted);
289
+ font-size: 13px;
297
290
  }
298
- .assistant-spinner {
299
- width: 20px;
300
- height: 20px;
301
- border: 2px solid rgba(110,142,251,0.25);
302
- border-top-color: #6e8efb;
291
+ #assistant-root .assistant-placeholder small { font-size: 12px; }
292
+ #assistant-root .assistant-loading { display: grid; justify-items: center; gap: 10px; }
293
+ #assistant-root .assistant-spinner {
294
+ width: 18px;
295
+ height: 18px;
296
+ border: 2px solid var(--edge);
297
+ border-top-color: var(--blue);
303
298
  border-radius: 50%;
304
- animation: spin 0.75s linear infinite;
299
+ animation: assistant-glass-spin .8s linear infinite;
305
300
  }
306
- @keyframes spin { to { transform: rotate(360deg); } }
307
-
308
- /* ── Error state ──────────────────────────────────────────────────────── */
309
- .assistant-error {
310
- color: #f87171;
311
- padding: 10px;
312
- font-size: 11.5px;
313
- line-height: 1.5;
314
- background: rgba(239,68,68,0.08);
315
- border-radius: 7px;
316
- border-left: 3px solid #ef4444;
301
+ @keyframes assistant-glass-spin { to { transform: rotate(360deg); } }
302
+ #assistant-root .assistant-error {
303
+ padding: 10px 12px;
304
+ border-left: 3px solid var(--danger);
305
+ background: rgb(74 21 42 / 63%);
306
+ color: var(--danger);
307
+ font-size: 13px;
308
+ overflow-wrap: anywhere;
317
309
  }
318
310
 
319
- /* ── Provider badge ───────────────────────────────────────────────────── */
320
- .assistant-provider-badge {
321
- font-size: 9.5px;
311
+ #assistant-root .assistant-provider-badge {
312
+ display: inline-block;
313
+ margin: 0 0 8px;
314
+ padding: 4px 8px;
315
+ border: 1px solid var(--edge);
316
+ border-radius: 999px;
317
+ background: var(--well);
318
+ color: var(--blue);
319
+ font: 700 10px/1.3 var(--ui-font);
320
+ letter-spacing: .04em;
322
321
  text-transform: uppercase;
323
- letter-spacing: 0.6px;
324
- color: #6e8efb;
325
- margin-bottom: 6px;
326
- opacity: 0.75;
327
- }
328
-
329
- /* ── MCQ answer card ──────────────────────────────────────────────────── */
330
- .assistant-answer {
331
- background: rgba(255,255,255,0.04);
322
+ overflow-wrap: anywhere;
323
+ }
324
+ #assistant-root .assistant-provider-badge.verified { color: var(--mint); }
325
+ #assistant-root .assistant-answer { margin-bottom: 8px; padding: 12px; overflow-wrap: anywhere; }
326
+ #assistant-root .assistant-question-text { margin-bottom: 6px; color: var(--ink); font-weight: 620; }
327
+ #assistant-root .assistant-answer-text { color: var(--mint); font-weight: 750; }
328
+ #assistant-root .assistant-reasoning { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--edge); }
329
+ #assistant-root .assistant-reasoning summary { color: var(--blue); font-size: 12px; cursor: pointer; }
330
+ #assistant-root .assistant-reasoning-text {
331
+ margin-top: 6px;
332
+ padding: 9px;
333
+ max-height: 200px;
334
+ overflow: auto;
335
+ white-space: pre-wrap;
332
336
  border-radius: 8px;
333
- padding: 10px;
334
- margin-bottom: 7px;
335
- border-left: 3px solid #6e8efb;
336
- }
337
- .assistant-question-text {
338
- font-weight: 500;
339
- margin-bottom: 4px;
340
- color: #e0e0e0;
337
+ background: var(--well);
338
+ color: var(--muted);
341
339
  font-size: 12px;
342
340
  }
343
- .assistant-answer-text {
344
- color: #10b981;
345
- font-weight: 700;
346
- font-size: 12.5px;
347
- }
348
341
 
349
- /* ── Code block ───────────────────────────────────────────────────────── */
350
- .assistant-code-container {
351
- position: relative;
352
- background: #111;
353
- border-radius: 8px;
354
- margin-bottom: 10px;
355
- border: 1px solid rgba(255,255,255,0.08);
356
- }
357
- .assistant-code-header {
342
+ #assistant-root .assistant-code-container { margin-bottom: 8px; }
343
+ #assistant-root .assistant-code-header {
358
344
  display: flex;
359
- justify-content: space-between;
360
345
  align-items: center;
361
- background: rgba(255,255,255,0.04);
362
- padding: 4px 10px;
363
- border-radius: 8px 8px 0 0;
364
- font-size: 10px;
365
- color: #666;
366
- }
367
- .assistant-code-approach,
368
- .assistant-code-complexity {
369
- padding: 5px 10px 0;
370
- color: #9aa0aa;
371
- font-size: 10px;
372
- line-height: 1.45;
373
- user-select: text;
374
- -webkit-user-select: text;
375
- }
376
- .assistant-code-complexity {
377
- padding-top: 3px;
378
- padding-bottom: 2px;
379
- color: #6f7782;
380
- font-family: 'Fira Code', 'Consolas', monospace;
381
- font-size: 9px;
346
+ justify-content: space-between;
347
+ gap: 8px;
348
+ padding: 9px;
349
+ border-bottom: 1px solid var(--edge);
350
+ color: var(--ink);
351
+ font-size: 12px;
382
352
  }
383
- .assistant-code-block {
384
- box-sizing: border-box;
385
- margin: 0;
386
- padding: 10px 12px;
387
- max-width: 100%;
353
+ #assistant-root .assistant-code-header span { overflow-wrap: anywhere; }
354
+ #assistant-root .assistant-copy-btn { padding: 5px 8px; }
355
+ #assistant-root .assistant-copy-btn.copied { color: var(--mint); }
356
+ #assistant-root :is(.assistant-code-approach, .assistant-code-complexity) { padding: 6px 10px 0; color: var(--muted); font-size: 12px; }
357
+ #assistant-root .assistant-code-block {
358
+ margin: 8px 5px 5px;
359
+ padding: 10px;
388
360
  max-height: 240px;
389
- overflow-x: auto;
390
- overflow-y: auto;
391
- font-family: 'Fira Code', 'Consolas', monospace;
392
- font-size: 11.5px;
393
- color: #c9d1d9;
394
- background: transparent;
361
+ overflow: auto;
395
362
  white-space: pre;
396
- word-break: normal;
397
- overflow-wrap: normal;
398
- min-height: 36px;
399
- scrollbar-width: thin;
400
- scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.04);
401
- }
402
- .assistant-code-block::-webkit-scrollbar {
403
- width: 8px;
404
- height: 8px;
405
- }
406
- .assistant-code-block::-webkit-scrollbar-track {
407
- background: rgba(255,255,255,0.04);
408
- border-radius: 8px;
409
- }
410
- .assistant-code-block::-webkit-scrollbar-thumb {
411
- background: rgba(255,255,255,0.28);
412
- border: 2px solid #111;
413
363
  border-radius: 8px;
364
+ background: var(--well);
365
+ color: var(--ink);
366
+ font: 12px/1.55 "Cascadia Code", Consolas, monospace;
367
+ scrollbar-width: thin;
414
368
  }
415
- .assistant-code-block::-webkit-scrollbar-thumb:hover {
416
- background: rgba(255,255,255,0.45);
417
- }
418
- .assistant-code-block::-webkit-scrollbar-corner {
419
- background: #111;
420
- }
421
- .assistant-code-block code {
422
- color: inherit;
423
- font: inherit;
424
- white-space: inherit;
425
- word-break: inherit;
426
- overflow-wrap: inherit;
427
- }
428
- .assistant-copy-btn {
429
- background: rgba(255,255,255,0.08);
430
- border: 1px solid rgba(255,255,255,0.15);
431
- border-radius: 4px;
432
- color: #aaa;
433
- cursor: pointer;
434
- font-size: 9.5px;
435
- padding: 2px 7px;
436
- transition: all 0.15s;
437
- }
438
- .assistant-copy-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
439
- .assistant-copy-btn.copied { border-color: #10b981; color: #10b981; }
369
+ #assistant-root .assistant-code-block code { color: inherit; font: inherit; white-space: inherit; }
440
370
 
441
- .mode-btn:focus-visible,
442
- .assistant-btn:focus-visible,
443
- .assistant-close:focus-visible,
444
- .assistant-copy-btn:focus-visible {
445
- outline: 2px solid #6e8efb;
446
- outline-offset: 2px;
447
- }
448
- .assistant-history-btn:focus-visible,
449
- .assistant-history-action:focus-visible,
450
- .assistant-history-item:focus-visible {
451
- outline: 2px solid #6e8efb;
452
- outline-offset: 2px;
371
+ #assistant-root .assistant-history-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
372
+ #assistant-root .assistant-history-header > div { display: flex; gap: 5px; }
373
+ #assistant-root :is(.assistant-history-btn, .assistant-history-action) { padding: 6px 9px; }
374
+ #assistant-root .assistant-history-item {
375
+ display: grid;
376
+ grid-template-columns: auto minmax(0, 1fr);
377
+ gap: 4px 8px;
378
+ width: 100%;
379
+ margin-bottom: 7px;
380
+ padding: 10px;
381
+ border-color: var(--control-edge);
382
+ text-align: left;
453
383
  }
454
- .assistant-auto-btn:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }
384
+ #assistant-root .assistant-history-type { color: var(--blue); text-transform: uppercase; }
385
+ #assistant-root .assistant-history-answer { color: var(--mint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
386
+ #assistant-root .assistant-history-time { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
455
387
 
456
- /* ── Minimal-mode indicator dot ───────────────────────────────────────── */
457
- .assistant-mode-indicator {
458
- position: absolute;
459
- top: -5px;
460
- right: -5px;
461
- background: #ef4444;
462
- color: #fff;
463
- font-size: 7px;
464
- padding: 2px 4px;
465
- border-radius: 10px;
466
- font-weight: bold;
467
- border: 1px solid #fff;
388
+ #assistant-root .assistant-qa-panel { padding: 12px; }
389
+ #assistant-root .assistant-qa-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
390
+ #assistant-root .assistant-eyebrow { margin: 0 0 3px; color: var(--blue); font: 700 10px/1.3 var(--ui-font); letter-spacing: .07em; }
391
+ #assistant-root .assistant-qa-heading h4 { margin: 0; color: var(--ink); font: 720 17px/1.2 var(--ui-font); }
392
+ #assistant-root .assistant-qa-state {
393
+ max-width: 50%;
394
+ padding: 4px 8px;
395
+ border: 1px solid var(--edge);
396
+ border-radius: 999px;
397
+ background: var(--well);
398
+ color: var(--mint);
399
+ font: 750 10px/1.2 var(--ui-font);
400
+ overflow: hidden;
401
+ text-overflow: ellipsis;
402
+ white-space: nowrap;
468
403
  }
404
+ #assistant-root .assistant-qa-state::before { content: '● '; }
405
+ #assistant-root .assistant-qa-state[data-state="error"],
406
+ #assistant-root .assistant-qa-state[data-state="unauthorized"] { color: var(--danger); }
407
+ #assistant-root .assistant-qa-state[data-state="paused"] { color: var(--amber); }
408
+ #assistant-root .assistant-automation-status { margin: 7px 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
409
+ #assistant-root .assistant-qa-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 9px; }
410
+ #assistant-root .assistant-qa-details > div { padding: 8px 9px; }
411
+ #assistant-root .assistant-qa-details .assistant-qa-wide { grid-column: 1 / -1; }
412
+ #assistant-root .assistant-qa-details dt { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
413
+ #assistant-root .assistant-qa-details dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 680; overflow-wrap: anywhere; }
414
+ #assistant-root .assistant-qa-latest { margin: 0 0 9px; padding: 8px 9px; border-left: 2px solid var(--blue); color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
415
+ #assistant-root .assistant-qa-latest.has-error { border-left-color: var(--danger); color: var(--danger); background: rgb(74 21 42 / 63%); }
416
+ #assistant-root .assistant-qa-latest:empty { display: none; }
469
417
 
470
- /* ── Reasoning display (collapsible) ──────────────────────────────────── */
471
- .assistant-reasoning {
472
- margin-top: 6px;
473
- border-top: 1px solid rgba(255,255,255,0.1);
474
- padding-top: 4px;
475
- }
476
- .assistant-reasoning summary {
477
- cursor: pointer;
478
- font-size: 10px;
479
- color: #94a3b8;
480
- opacity: 0.7;
481
- transition: opacity 0.2s;
482
- user-select: none;
483
- }
484
- .assistant-reasoning summary:hover {
485
- opacity: 1;
486
- color: #a5b4fc;
487
- }
488
- .assistant-reasoning-text {
489
- margin-top: 4px;
490
- font-size: 10px;
491
- color: #94a3b8;
492
- line-height: 1.5;
493
- white-space: pre-wrap;
494
- word-break: break-word;
495
- max-height: 200px;
496
- overflow-y: auto;
497
- padding: 6px;
498
- background: rgba(0,0,0,0.2);
499
- border-radius: 4px;
418
+ #assistant-journal {
419
+ position: fixed;
420
+ right: 12px;
421
+ top: min(160px, 22vh);
422
+ width: min(312px, calc(100vw - 24px));
423
+ max-height: 75dvh;
424
+ z-index: 2147483646;
425
+ box-sizing: border-box;
426
+ overflow: auto;
427
+ padding: 14px;
428
+ border-radius: 15px;
429
+ color: var(--ink);
430
+ font: 13px/1.5 var(--ui-font);
431
+ }
432
+ #assistant-journal-slot #assistant-journal {
433
+ position: static;
434
+ width: 100%;
435
+ max-height: none;
436
+ margin: 0 0 10px;
437
+ padding: 11px;
438
+ border-radius: 11px;
439
+ background: var(--surface);
440
+ backdrop-filter: blur(18px);
441
+ box-shadow: var(--card-shadow);
442
+ }
443
+ #assistant-journal strong { color: var(--ink); font-size: 15px; }
444
+ #assistant-journal p { margin: 5px 0 8px; color: var(--muted); }
445
+ #assistant-journal [data-countdown] { color: var(--mint); font-weight: 750; font-variant-numeric: tabular-nums; }
446
+ #assistant-journal [role="status"] { color: var(--ink); overflow-wrap: anywhere; }
447
+ #assistant-journal p:empty { display: none; }
448
+ #assistant-journal label { display: block; margin-bottom: 8px; color: var(--ink); }
449
+ #assistant-journal :is(select, textarea) {
450
+ display: block;
451
+ box-sizing: border-box;
452
+ width: 100%;
453
+ padding: 8px;
454
+ border: 1px solid var(--control-edge);
455
+ border-radius: 8px;
456
+ background: var(--well);
457
+ color: var(--ink);
458
+ font: inherit;
500
459
  }
460
+ #assistant-journal select { margin-top: 4px; }
461
+ #assistant-journal textarea { resize: vertical; user-select: text; }
462
+ #assistant-journal textarea::placeholder { color: var(--muted); }
463
+ #assistant-journal button { margin-top: 8px; min-height: 36px; padding: 8px 11px; }
501
464
 
502
- /* ── Verified badge ───────────────────────────────────────────────────── */
503
- .assistant-provider-badge.verified {
504
- background: rgba(34, 197, 94, 0.15);
505
- color: #4ade80;
506
- border: 1px solid rgba(34, 197, 94, 0.3);
465
+ #assistant-root :is(.assistant-btn.secondary, .assistant-auto-btn:not(.start), .assistant-reasoning-text,
466
+ .assistant-code-block, .assistant-provider-badge, .assistant-qa-state),
467
+ #assistant-journal :is(select, textarea) {
468
+ -webkit-backdrop-filter: blur(12px);
469
+ backdrop-filter: blur(12px);
507
470
  }
508
471
 
509
- /* ── Navigation and QA Control refresh ───────────────────────────────── */
510
- .assistant-tab {
511
- width: 332px;
512
- padding: 12px;
513
- background:
514
- radial-gradient(circle at 100% 0%, rgba(110, 142, 251, 0.13), transparent 34%),
515
- rgba(15, 16, 25, 0.94);
516
- border-color: rgba(182, 195, 255, 0.16);
517
- box-shadow: 0 18px 52px rgba(0, 0, 0, 0.58), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
518
- }
519
- .assistant-header { margin-bottom: 10px; }
520
- .assistant-title { font-size: 13px; font-weight: 700; letter-spacing: -0.1px; }
521
- .assistant-header-actions { display: flex; align-items: center; gap: 5px; }
522
- .assistant-icon-btn,
523
- .assistant-close {
524
- display: inline-grid;
472
+ body.assistant-popup {
473
+ box-sizing: border-box;
474
+ width: 290px;
475
+ margin: 0;
476
+ padding: 10px;
477
+ background: radial-gradient(ellipse at 100% 0%, #294d8c, transparent 65%),
478
+ radial-gradient(ellipse at 0% 100%, #146166, transparent 58%), #0a1326;
479
+ color: var(--ink);
480
+ font: 13px/1.45 var(--ui-font);
481
+ }
482
+ .assistant-popup .popup-shell {
483
+ background: rgb(10 20 40 / 62%);
484
+ padding: 13px;
485
+ border-radius: 15px;
486
+ }
487
+ .assistant-popup .popup-title { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
488
+ .assistant-popup .popup-mark {
489
+ display: grid;
525
490
  place-items: center;
526
- width: 25px;
527
- height: 25px;
528
- padding: 0;
529
- border-radius: 7px;
491
+ width: 33px;
492
+ height: 33px;
493
+ border-radius: 10px;
494
+ background: var(--primary);
495
+ color: var(--primary-ink);
496
+ font-weight: 800;
530
497
  }
531
- .assistant-icon-btn {
532
- border: 1px solid transparent;
533
- background: transparent;
534
- color: #aeb8d8;
535
- cursor: pointer;
536
- transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
498
+ .assistant-popup h1 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
499
+ .assistant-popup h2 { margin: 0 0 5px; font-size: 12px; color: var(--blue); }
500
+ .assistant-popup .popup-card { padding: 9px; margin-top: 8px; }
501
+ .assistant-popup #server-status { color: var(--amber); font-weight: 700; }
502
+ .assistant-popup #server-status.online,
503
+ .assistant-popup #journal-countdown { color: var(--mint); }
504
+ .assistant-popup #server-status.offline { color: var(--danger); }
505
+ .assistant-popup #journal-countdown { margin: 7px 0 0; font-variant-numeric: tabular-nums; }
506
+ .assistant-popup .shortcut-row {
507
+ display: flex;
508
+ justify-content: space-between;
509
+ align-items: center;
510
+ gap: 7px;
511
+ padding: 4px 0;
512
+ font-size: 12px;
513
+ color: var(--muted);
537
514
  }
538
- .assistant-icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
539
- .assistant-icon-btn:hover { color: #e6eaff; background: rgba(130, 149, 236, .13); border-color: rgba(150, 168, 255, .16); transform: translateY(-1px); }
540
- .assistant-close { color: #8e96ad; }
541
- .assistant-close:hover { color: #fff; background: rgba(255,255,255,.08); }
542
-
543
- .assistant-mode-switcher {
544
- display: grid;
545
- grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(72px, 1.45fr);
546
- gap: 2px;
547
- padding: 3px;
548
- margin-bottom: 10px;
549
- background: rgba(255,255,255,0.045);
550
- border-color: rgba(184, 196, 255, 0.12);
551
- border-radius: 9px;
515
+ #assistant-root kbd,
516
+ .assistant-popup kbd {
517
+ display: inline-block;
518
+ padding: 1px 5px;
519
+ border: 1px solid var(--edge);
520
+ border-radius: 5px;
521
+ background: var(--well);
522
+ color: var(--ink);
523
+ white-space: nowrap;
524
+ font: 600 11px/1.5 var(--ui-font);
552
525
  }
553
- .mode-btn {
554
- min-width: 0;
555
- min-height: 28px;
556
- padding: 4px 2px;
557
- color: #8790aa;
558
- font-size: 8.5px;
559
- font-weight: 750;
560
- line-height: 1.05;
561
- letter-spacing: .25px;
562
- }
563
- .mode-btn.active {
564
- background: linear-gradient(135deg, #708dff, #9067e4);
565
- color: white;
566
- box-shadow: 0 3px 10px rgba(99, 122, 255, .25);
567
- }
568
- .mode-btn.qa-tab { color: #8baaa8; font-size: 8px; }
569
- .mode-btn.qa-tab.active {
570
- background: linear-gradient(135deg, #0f9f8c, #16b889);
571
- box-shadow: 0 3px 10px rgba(16, 185, 145, .23);
572
- color: #f1fffb;
573
- }
574
- .mode-btn:hover:not(.active) { color: #d7ddf2; background: rgba(255,255,255,.075); }
575
- .mode-btn:focus-visible,
576
- .assistant-icon-btn:focus-visible,
577
- .assistant-close:focus-visible,
578
- .assistant-auto-btn:focus-visible { outline: 2px solid #8fa5ff; outline-offset: 2px; }
579
526
 
580
- .assistant-scan-panel { display: flex; min-height: 0; flex: 1; flex-direction: column; }
581
- .assistant-btn-row { gap: 7px; margin-bottom: 10px; }
582
- .assistant-btn { min-height: 32px; border-radius: 8px; font-size: 10.5px; box-shadow: 0 5px 14px rgba(100, 116, 255, .18); }
583
- .assistant-btn.secondary { color: #d2d7e7; background: rgba(255,255,255,.065); }
584
-
585
- .assistant-qa-panel {
586
- flex: 1;
587
- min-height: 0;
588
- overflow-y: auto;
589
- padding: 10px;
590
- border: 1px solid rgba(45, 211, 168, .22);
591
- border-radius: 10px;
592
- background: linear-gradient(145deg, rgba(16,185,129,.095), rgba(15,23,42,.22) 54%);
527
+ #assistant-root :is(button, summary):focus-visible,
528
+ #assistant-journal :is(button, select, textarea):focus-visible {
529
+ outline: 2px solid var(--blue);
530
+ outline-offset: 2px;
593
531
  }
594
- .assistant-qa-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
595
- .assistant-eyebrow { margin: 0 0 2px; color: #61d9ba; font-size: 8px; font-weight: 800; letter-spacing: .75px; }
596
- .assistant-qa-heading h4 { margin: 0; color: #f0fffa; font-size: 13px; line-height: 1.2; }
597
- .assistant-qa-state {
598
- max-width: 128px;
599
- overflow: hidden;
600
- text-overflow: ellipsis;
601
- white-space: nowrap;
602
- padding: 4px 6px;
603
- border: 1px solid rgba(111, 231, 192, .26);
604
- border-radius: 999px;
605
- background: rgba(16,185,129,.12);
606
- color: #a7f3d0;
607
- font-size: 8px;
608
- font-weight: 800;
609
- letter-spacing: .35px;
610
- }
611
- .assistant-qa-state::before { content: '●'; margin-right: 4px; color: #52e0b6; }
612
- .assistant-qa-state[data-state="error"]::before,
613
- .assistant-qa-state[data-state="unauthorized"]::before { color: #fb7185; }
614
- .assistant-qa-state[data-state="paused"]::before { color: #fbbf24; }
615
- .assistant-automation-status { margin: 0 0 9px; color: #bad8cf; font-size: 9px; line-height: 1.4; }
616
- .assistant-qa-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
617
- .assistant-qa-details > div { min-width: 0; padding: 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(2, 12, 16, .25); }
618
- .assistant-qa-details .assistant-qa-wide { grid-column: 1 / -1; }
619
- .assistant-qa-details dt { margin-bottom: 2px; color: #7d98a1; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
620
- .assistant-qa-details dd { margin: 0; overflow: hidden; color: #e0f3eb; font-size: 10px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
621
- .assistant-qa-latest { margin: 0 0 8px; padding: 7px; border-left: 2px solid #35c99b; border-radius: 0 6px 6px 0; background: rgba(16,185,129,.08); color: #b7d8cb; font-size: 9.5px; line-height: 1.4; }
622
- .assistant-qa-latest.has-error { border-left-color: #fb7185; background: rgba(251,113,133,.09); color: #fecdd3; }
623
- .assistant-qa-actions { margin: 0; gap: 5px; }
624
- .assistant-auto-btn { min-height: 29px; padding: 5px 6px; border-radius: 7px; font-size: 8.5px; transition: transform .12s ease, background .12s ease, opacity .12s ease; }
625
- .assistant-auto-btn.start { flex: 1.55; background: linear-gradient(135deg, #0e9f7e, #16b889); border-color: rgba(135,255,215,.32); color: #f1fffb; }
626
- .assistant-auto-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(41, 211, 163, .24); }
627
- .assistant-auto-btn.start:hover:not(:disabled) { background: linear-gradient(135deg, #0fb68e, #21c899); }
628
- .assistant-auto-btn.stop:hover:not(:disabled) { background: rgba(248,113,113,.18); }
532
+ #assistant-root .assistant-history-item:focus-visible { outline-offset: -3px; }
533
+ #assistant-root .assistant-tab.collapsed:focus-visible { box-shadow: 0 0 0 4px #111b33; }
629
534
 
630
- @media (max-width: 390px) {
631
- .assistant-tab { width: min(332px, calc(100vw - 20px)); }
632
- .mode-btn { font-size: 8px; }
633
- .mode-btn.qa-tab { font-size: 7.5px; }
535
+ @supports not (backdrop-filter: blur(12px)) {
536
+ #assistant-root .assistant-tab:not(.has-answer), #assistant-journal,
537
+ #assistant-journal-countdown-badge, .assistant-popup .popup-shell { background: #13213a; }
538
+ }
539
+ @media (max-width: 360px) {
540
+ #assistant-root .assistant-tab:not(.collapsed) { padding: 10px; }
541
+ #assistant-root .assistant-qa-panel { padding: 9px; }
542
+ #assistant-root .assistant-automation-actions { flex-wrap: wrap; }
543
+ }
544
+ @media (prefers-reduced-motion: reduce) {
545
+ #assistant-root .assistant-spinner { animation: none; }
546
+ }
547
+ @media (forced-colors: active) {
548
+ #assistant-root :is(.assistant-tab, button, .assistant-answer, .assistant-qa-panel, .assistant-code-container),
549
+ #assistant-journal, #assistant-journal-countdown-badge, .assistant-popup .popup-shell { border-color: CanvasText; }
550
+ #assistant-root .mode-btn.active { border: 2px solid Highlight; }
551
+ #assistant-root :is(button, summary):focus-visible,
552
+ #assistant-journal :is(button, select, textarea):focus-visible { outline-color: Highlight; }
634
553
  }