browser-assistant 2.9.1 → 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.
- package/README.md +8 -5
- package/extension/automation-policy.js +8 -4
- package/extension/background.js +1 -1
- package/extension/content.js +36 -23
- package/extension/journal-automation.js +2 -8
- package/extension/manifest.json +1 -1
- package/extension/popup.html +21 -52
- package/extension/question-visuals.js +6 -2
- package/extension/styles.css +473 -554
- package/package.json +1 -1
- package/server/journal.py +6 -3
- package/server/main.py +22 -22
- package/server/practice_quiz.html +79 -6
package/extension/styles.css
CHANGED
|
@@ -1,634 +1,553 @@
|
|
|
1
|
-
/* Browser Assistant
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
min-height:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
border:
|
|
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
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
110
|
-
.assistant-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
127
|
-
font
|
|
128
|
-
|
|
143
|
+
color: var(--ink);
|
|
144
|
+
font: 720 15px/1.2 var(--ui-font);
|
|
145
|
+
letter-spacing: -.02em;
|
|
129
146
|
}
|
|
130
|
-
.assistant-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
160
|
+
flex-direction: column;
|
|
148
161
|
min-height: 0;
|
|
149
162
|
}
|
|
163
|
+
#assistant-root .assistant-content { overflow: hidden; }
|
|
150
164
|
|
|
151
|
-
|
|
152
|
-
.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
169
|
-
|
|
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:
|
|
187
|
-
color:
|
|
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
|
|
190
|
-
background:
|
|
191
|
-
color:
|
|
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
|
-
|
|
195
|
-
.assistant-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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
|
|
218
|
-
.assistant-btn
|
|
219
|
-
.assistant-btn
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
.assistant-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
.assistant-
|
|
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
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
288
|
-
|
|
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
|
-
|
|
291
|
-
|
|
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-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
|
299
|
+
animation: assistant-glass-spin .8s linear infinite;
|
|
305
300
|
}
|
|
306
|
-
@keyframes spin { to { transform: rotate(360deg); } }
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
font-size:
|
|
313
|
-
|
|
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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
.assistant-
|
|
331
|
-
|
|
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
|
-
|
|
334
|
-
|
|
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
|
-
|
|
350
|
-
.assistant-code-
|
|
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
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
color:
|
|
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-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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
|
|
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
|
|
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
|
-
.
|
|
442
|
-
.assistant-
|
|
443
|
-
|
|
444
|
-
.assistant-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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-
|
|
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
|
-
|
|
457
|
-
.assistant-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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
|
-
|
|
503
|
-
.assistant-provider-badge.
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
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
|
-
|
|
510
|
-
|
|
511
|
-
width:
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
.assistant-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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:
|
|
527
|
-
height:
|
|
528
|
-
|
|
529
|
-
|
|
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-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
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
|
-
|
|
539
|
-
.assistant-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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-
|
|
595
|
-
.assistant-
|
|
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
|
-
@
|
|
631
|
-
.assistant-tab
|
|
632
|
-
.
|
|
633
|
-
|
|
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
|
}
|