@hanzo/browser-extension 1.9.49 → 1.9.52
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/LICENSE +12 -0
- package/images/icon128.png +0 -0
- package/images/icon16.png +0 -0
- package/images/icon48.png +0 -0
- package/manifest.json +7 -57
- package/package.json +49 -33
- package/src/ai-worker.js +571 -0
- package/src/answer/AnswerEngine.tsx +385 -0
- package/src/answer/Composer.tsx +147 -0
- package/src/answer/Mark.tsx +14 -0
- package/src/answer/Models.tsx +118 -0
- package/src/answer/Rail.tsx +95 -0
- package/src/answer/Source.tsx +26 -0
- package/src/answer/Stories.tsx +27 -0
- package/src/answer/WidgetView.tsx +136 -0
- package/src/callback.html +17 -0
- package/src/icon128.png +0 -0
- package/src/icon16.png +0 -0
- package/src/icon32.png +0 -0
- package/src/icon48.png +0 -0
- package/src/manifest-firefox.json +85 -0
- package/src/manifest.json +84 -0
- package/src/newtab.css +997 -0
- package/src/newtab.html +13 -0
- package/src/onboarding.css +78 -0
- package/src/onboarding.html +45 -0
- package/src/package.json +41 -0
- package/src/popup.css +761 -0
- package/src/popup.html +405 -0
- package/src/sidebar.css +1752 -0
- package/src/sidebar.html +449 -0
- package/src/webgpu.d.ts +131 -0
- package/README.md +0 -43
- package/cli.js +0 -233
- package/content-script.js +0 -550
package/src/newtab.css
ADDED
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
/* Hanzo Answer Engine — strict monochrome (brand primaryColor #FFFFFF).
|
|
2
|
+
Shared tokens mirror popup.css / sidebar.css. */
|
|
3
|
+
:root {
|
|
4
|
+
/* hanzo.chat dark palette — the exact gray scale from chat/client/src/style.css
|
|
5
|
+
(.dark). One brand, one set of tokens; the extension is no longer its own look. */
|
|
6
|
+
--bg: #000000; /* surface-primary / gray-975 */
|
|
7
|
+
--surface: #050505; /* surface-secondary / gray-950 — source & hero cards */
|
|
8
|
+
--surface-2: #0d0d0d; /* surface-primary-contrast / gray-900 — hover fills */
|
|
9
|
+
--surface-3: #171717; /* surface-tertiary / gray-850 — number pills, selected mode */
|
|
10
|
+
--surface-active: #2f2f2f; /* surface-active / gray-700 — selected chip (NOT a white lozenge) */
|
|
11
|
+
--text: #ececec; /* text-primary / gray-100 */
|
|
12
|
+
--text-2: #cdcdcd; /* text-secondary / gray-300 */
|
|
13
|
+
--text-3: #999696; /* text-secondary-alt / gray-400 */
|
|
14
|
+
--border: #171717; /* border-light / gray-850 */
|
|
15
|
+
--border-2: #212121; /* border-medium / gray-800 */
|
|
16
|
+
--glass: rgba(255, 255, 255, 0.03);
|
|
17
|
+
--glass-2: rgba(255, 255, 255, 0.06);
|
|
18
|
+
--radius: 12px;
|
|
19
|
+
--radius-sm: 8px;
|
|
20
|
+
--radius-xs: 6px;
|
|
21
|
+
--sidebar-w: 232px;
|
|
22
|
+
/* The icon-rail width is @hanzo/ui primitives/sidebar's SIDEBAR_WIDTH_ICON
|
|
23
|
+
(3rem). Kept as that value, not a local guess, so the rail here and the
|
|
24
|
+
shared primitive collapse to the same size on every surface. */
|
|
25
|
+
--rail-w: 3rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
html,
|
|
33
|
+
body {
|
|
34
|
+
margin: 0;
|
|
35
|
+
height: 100%;
|
|
36
|
+
background: var(--bg);
|
|
37
|
+
color: var(--text);
|
|
38
|
+
font-family:
|
|
39
|
+
"Geist Sans",
|
|
40
|
+
-apple-system,
|
|
41
|
+
BlinkMacSystemFont,
|
|
42
|
+
"SF Pro Text",
|
|
43
|
+
"Segoe UI",
|
|
44
|
+
sans-serif;
|
|
45
|
+
-webkit-font-smoothing: antialiased;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a {
|
|
49
|
+
color: inherit;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ae-root {
|
|
54
|
+
display: grid;
|
|
55
|
+
grid-template-columns: var(--sidebar-w) 1fr;
|
|
56
|
+
height: 100vh;
|
|
57
|
+
transition: grid-template-columns 0.18s ease;
|
|
58
|
+
}
|
|
59
|
+
/* COLLAPSED IS AN ICON RAIL, NEVER NOTHING.
|
|
60
|
+
`grid-template-columns: 0` + `display:none` erased the sidebar outright, so the
|
|
61
|
+
surface had no brand, no way back, and read as a blank page. This is the
|
|
62
|
+
`collapsible="icon"` behaviour of @hanzo/ui primitives/sidebar, and the width is
|
|
63
|
+
ITS token (SIDEBAR_WIDTH_ICON = 3rem) rather than a number picked here — so
|
|
64
|
+
swapping this rail for the shared primitive is a substitution, not a redesign. */
|
|
65
|
+
.ae-root.collapsed {
|
|
66
|
+
grid-template-columns: var(--rail-w) 1fr;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Collapse is an EXPLICIT, remembered choice — the rail does NOT spring open
|
|
70
|
+
under the pointer. Hover-to-expand is the model console and hanzo.app both
|
|
71
|
+
retired (their pin/hover props are marked deprecated), because a rail that
|
|
72
|
+
opens when the pointer merely crosses it moves the page out from under the
|
|
73
|
+
thing you were reaching for. The mark expands it; the toggle collapses it. */
|
|
74
|
+
.ae-root.collapsed .ae-brand span,
|
|
75
|
+
.ae-root.collapsed .ae-new span,
|
|
76
|
+
.ae-root.collapsed .ae-nav,
|
|
77
|
+
.ae-root.collapsed .ae-signin-label {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ── Sidebar ─────────────────────────────────────────────── */
|
|
82
|
+
.ae-sidebar {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: 6px;
|
|
86
|
+
padding: 14px 12px;
|
|
87
|
+
border-right: 1px solid var(--border);
|
|
88
|
+
background: var(--surface);
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
.ae-side-top {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
}
|
|
96
|
+
.ae-brand {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 9px;
|
|
100
|
+
background: none;
|
|
101
|
+
border: none;
|
|
102
|
+
color: var(--text);
|
|
103
|
+
font-size: 15px;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
letter-spacing: -0.01em;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
padding: 4px;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
}
|
|
110
|
+
.ae-brand span {
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
}
|
|
114
|
+
.ae-collapse,
|
|
115
|
+
.ae-new,
|
|
116
|
+
.ae-signin {
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
font-family: inherit;
|
|
119
|
+
}
|
|
120
|
+
.ae-collapse {
|
|
121
|
+
background: none;
|
|
122
|
+
border: none;
|
|
123
|
+
color: var(--text-3);
|
|
124
|
+
padding: 4px;
|
|
125
|
+
border-radius: var(--radius-xs);
|
|
126
|
+
display: flex;
|
|
127
|
+
}
|
|
128
|
+
.ae-collapse:hover {
|
|
129
|
+
color: var(--text);
|
|
130
|
+
background: var(--glass);
|
|
131
|
+
}
|
|
132
|
+
.ae-new {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 8px;
|
|
136
|
+
margin-top: 8px;
|
|
137
|
+
padding: 9px 12px;
|
|
138
|
+
background: var(--surface-3);
|
|
139
|
+
color: var(--text);
|
|
140
|
+
border: 1px solid var(--border-2);
|
|
141
|
+
border-radius: var(--radius-sm);
|
|
142
|
+
font-size: 13px;
|
|
143
|
+
font-weight: 500;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
}
|
|
147
|
+
.ae-new:hover {
|
|
148
|
+
background: var(--surface-hover, #212121);
|
|
149
|
+
border-color: var(--border-2);
|
|
150
|
+
}
|
|
151
|
+
.ae-nav {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
margin-top: 12px;
|
|
155
|
+
gap: 1px;
|
|
156
|
+
}
|
|
157
|
+
.ae-nav a {
|
|
158
|
+
padding: 8px 10px;
|
|
159
|
+
border-radius: var(--radius-xs);
|
|
160
|
+
color: var(--text-2);
|
|
161
|
+
font-size: 13px;
|
|
162
|
+
white-space: nowrap;
|
|
163
|
+
}
|
|
164
|
+
.ae-nav a:hover {
|
|
165
|
+
background: var(--glass);
|
|
166
|
+
color: var(--text);
|
|
167
|
+
}
|
|
168
|
+
.ae-side-bottom {
|
|
169
|
+
margin-top: auto;
|
|
170
|
+
}
|
|
171
|
+
.ae-signin {
|
|
172
|
+
width: 100%;
|
|
173
|
+
padding: 9px 12px;
|
|
174
|
+
background: var(--glass-2);
|
|
175
|
+
border: 1px solid var(--border);
|
|
176
|
+
color: var(--text);
|
|
177
|
+
border-radius: var(--radius-sm);
|
|
178
|
+
font-size: 12.5px;
|
|
179
|
+
font-weight: 500;
|
|
180
|
+
white-space: nowrap;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
}
|
|
183
|
+
.ae-signin:hover {
|
|
184
|
+
border-color: var(--border-2);
|
|
185
|
+
background: var(--surface-2);
|
|
186
|
+
}
|
|
187
|
+
.ae-signin.big {
|
|
188
|
+
width: auto;
|
|
189
|
+
padding: 10px 18px;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
}
|
|
192
|
+
/* Icon-rail geometry. Centre the glyphs and drop the label gaps so a 3rem rail
|
|
193
|
+
holds them without clipping; the collapse rules above own visibility. */
|
|
194
|
+
.ae-root.collapsed .ae-sidebar {
|
|
195
|
+
padding: 14px 6px;
|
|
196
|
+
align-items: center;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
}
|
|
199
|
+
.ae-root.collapsed .ae-sidebar .ae-side-top {
|
|
200
|
+
justify-content: center;
|
|
201
|
+
}
|
|
202
|
+
.ae-root.collapsed .ae-sidebar .ae-collapse {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
.ae-root.collapsed .ae-sidebar .ae-brand,
|
|
206
|
+
.ae-root.collapsed .ae-sidebar .ae-new,
|
|
207
|
+
.ae-root.collapsed .ae-sidebar .ae-signin {
|
|
208
|
+
gap: 0;
|
|
209
|
+
padding: 8px;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
width: auto;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* ── Main ────────────────────────────────────────────────── */
|
|
215
|
+
.ae-main {
|
|
216
|
+
min-width: 0;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Hero (empty state) */
|
|
223
|
+
.ae-hero {
|
|
224
|
+
flex: 1;
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
align-items: center;
|
|
228
|
+
justify-content: center;
|
|
229
|
+
gap: 26px;
|
|
230
|
+
padding: 24px;
|
|
231
|
+
overflow-y: auto;
|
|
232
|
+
}
|
|
233
|
+
.ae-hero-card {
|
|
234
|
+
width: 100%;
|
|
235
|
+
max-width: 720px;
|
|
236
|
+
}
|
|
237
|
+
.ae-news {
|
|
238
|
+
width: 100%;
|
|
239
|
+
max-width: 720px;
|
|
240
|
+
}
|
|
241
|
+
.ae-news-head,
|
|
242
|
+
.ae-followups-head,
|
|
243
|
+
.ae-model-group-label {
|
|
244
|
+
font-size: 11px;
|
|
245
|
+
text-transform: uppercase;
|
|
246
|
+
letter-spacing: 0.08em;
|
|
247
|
+
color: var(--text-3);
|
|
248
|
+
margin-bottom: 10px;
|
|
249
|
+
}
|
|
250
|
+
.ae-news-grid {
|
|
251
|
+
display: grid;
|
|
252
|
+
grid-template-columns: 1fr 1fr;
|
|
253
|
+
gap: 8px;
|
|
254
|
+
}
|
|
255
|
+
.ae-news-item {
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
gap: 4px;
|
|
259
|
+
padding: 11px 13px;
|
|
260
|
+
border: 1px solid var(--border);
|
|
261
|
+
border-radius: var(--radius-sm);
|
|
262
|
+
background: var(--surface);
|
|
263
|
+
}
|
|
264
|
+
.ae-news-item:hover {
|
|
265
|
+
border-color: var(--border-2);
|
|
266
|
+
background: var(--surface-2);
|
|
267
|
+
}
|
|
268
|
+
.ae-news-title {
|
|
269
|
+
font-size: 13px;
|
|
270
|
+
color: var(--text);
|
|
271
|
+
line-height: 1.35;
|
|
272
|
+
}
|
|
273
|
+
.ae-news-meta {
|
|
274
|
+
font-size: 11px;
|
|
275
|
+
color: var(--text-3);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* ── Input card ──────────────────────────────────────────── */
|
|
279
|
+
.ae-card {
|
|
280
|
+
background: var(--surface-2);
|
|
281
|
+
border: 1px solid var(--border-2);
|
|
282
|
+
border-radius: var(--radius);
|
|
283
|
+
box-shadow:
|
|
284
|
+
0 8px 40px rgba(0, 0, 0, 0.45),
|
|
285
|
+
0 0 0 1px rgba(255, 255, 255, 0.02);
|
|
286
|
+
/* NOT overflow:hidden. The model picker menu is position:absolute inside this
|
|
287
|
+
card and opens UPWARD, so a clip here truncates it to the card's box: the
|
|
288
|
+
"Search models…" filter, the Auto row and the whole Enso group get cut off
|
|
289
|
+
and only the last row plus the plan banner survive — which reads as "the
|
|
290
|
+
picker is broken / Enso is missing" rather than as a clipping bug. Nothing
|
|
291
|
+
here needs clipping: .ae-input is transparent, .ae-card-row has no
|
|
292
|
+
background, and the chips/modes/send button carry their own radii and sit
|
|
293
|
+
inside the padding, so none of them paint into the rounded corners. */
|
|
294
|
+
overflow: visible;
|
|
295
|
+
}
|
|
296
|
+
.ae-input {
|
|
297
|
+
display: block;
|
|
298
|
+
width: 100%;
|
|
299
|
+
resize: none;
|
|
300
|
+
padding: 16px 18px 6px;
|
|
301
|
+
min-height: 30px;
|
|
302
|
+
max-height: 200px;
|
|
303
|
+
background: transparent;
|
|
304
|
+
border: none;
|
|
305
|
+
outline: none;
|
|
306
|
+
color: var(--text);
|
|
307
|
+
font-family: inherit;
|
|
308
|
+
font-size: 15px;
|
|
309
|
+
line-height: 1.5;
|
|
310
|
+
}
|
|
311
|
+
.ae-input::placeholder {
|
|
312
|
+
color: var(--text-3);
|
|
313
|
+
}
|
|
314
|
+
/* The composer field is @hanzo/ui's Textarea (data-slot is the design system's
|
|
315
|
+
own marker). It auto-grows by line count, so the browser's manual resize
|
|
316
|
+
grip is noise inside the card. */
|
|
317
|
+
.ae-card textarea[data-slot="textarea"] {
|
|
318
|
+
resize: none;
|
|
319
|
+
}
|
|
320
|
+
.ae-card-row {
|
|
321
|
+
display: flex;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
gap: 8px;
|
|
325
|
+
padding: 8px 10px 10px;
|
|
326
|
+
flex-wrap: wrap;
|
|
327
|
+
}
|
|
328
|
+
.ae-chips {
|
|
329
|
+
display: flex;
|
|
330
|
+
gap: 4px;
|
|
331
|
+
flex-wrap: wrap;
|
|
332
|
+
}
|
|
333
|
+
.ae-chip {
|
|
334
|
+
padding: 4px 9px;
|
|
335
|
+
border-radius: 999px;
|
|
336
|
+
cursor: pointer;
|
|
337
|
+
background: var(--glass);
|
|
338
|
+
border: 1px solid var(--border);
|
|
339
|
+
color: var(--text-3);
|
|
340
|
+
font-size: 11px;
|
|
341
|
+
font-family: inherit;
|
|
342
|
+
}
|
|
343
|
+
.ae-chip:hover {
|
|
344
|
+
color: var(--text-2);
|
|
345
|
+
background: var(--surface-2);
|
|
346
|
+
}
|
|
347
|
+
/* Selected is a step UP the surface ladder, not a white lozenge (chat ModeChips). */
|
|
348
|
+
.ae-chip.on {
|
|
349
|
+
background: var(--surface-active);
|
|
350
|
+
color: var(--text);
|
|
351
|
+
border-color: transparent;
|
|
352
|
+
font-weight: 500;
|
|
353
|
+
}
|
|
354
|
+
.ae-card-right {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
gap: 6px;
|
|
358
|
+
}
|
|
359
|
+
.ae-modes {
|
|
360
|
+
display: flex;
|
|
361
|
+
gap: 2px;
|
|
362
|
+
background: var(--glass);
|
|
363
|
+
border-radius: var(--radius-xs);
|
|
364
|
+
padding: 2px;
|
|
365
|
+
}
|
|
366
|
+
.ae-mode {
|
|
367
|
+
padding: 4px 9px;
|
|
368
|
+
border: none;
|
|
369
|
+
background: none;
|
|
370
|
+
cursor: pointer;
|
|
371
|
+
color: var(--text-3);
|
|
372
|
+
font-size: 11.5px;
|
|
373
|
+
font-family: inherit;
|
|
374
|
+
border-radius: 5px;
|
|
375
|
+
}
|
|
376
|
+
.ae-mode:hover {
|
|
377
|
+
color: var(--text-2);
|
|
378
|
+
}
|
|
379
|
+
.ae-mode.on {
|
|
380
|
+
background: var(--surface-active);
|
|
381
|
+
color: var(--text);
|
|
382
|
+
font-weight: 500;
|
|
383
|
+
}
|
|
384
|
+
.ae-send {
|
|
385
|
+
width: 34px;
|
|
386
|
+
height: 34px;
|
|
387
|
+
flex-shrink: 0;
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
display: flex;
|
|
390
|
+
align-items: center;
|
|
391
|
+
justify-content: center;
|
|
392
|
+
background: var(--text);
|
|
393
|
+
color: #000;
|
|
394
|
+
border: none;
|
|
395
|
+
border-radius: 50%;
|
|
396
|
+
}
|
|
397
|
+
.ae-send:disabled {
|
|
398
|
+
opacity: 0.4;
|
|
399
|
+
cursor: default;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* ── Model picker ────────────────────────────────────────── */
|
|
403
|
+
.ae-picker {
|
|
404
|
+
position: relative;
|
|
405
|
+
}
|
|
406
|
+
.ae-picker-btn {
|
|
407
|
+
display: flex;
|
|
408
|
+
align-items: center;
|
|
409
|
+
gap: 6px;
|
|
410
|
+
cursor: pointer;
|
|
411
|
+
padding: 6px 10px;
|
|
412
|
+
background: var(--glass);
|
|
413
|
+
border: 1px solid var(--border);
|
|
414
|
+
border-radius: var(--radius-xs);
|
|
415
|
+
color: var(--text-2);
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
font-family: inherit;
|
|
418
|
+
}
|
|
419
|
+
.ae-picker-btn:hover {
|
|
420
|
+
color: var(--text);
|
|
421
|
+
border-color: var(--border-2);
|
|
422
|
+
}
|
|
423
|
+
.ae-dot {
|
|
424
|
+
width: 6px;
|
|
425
|
+
height: 6px;
|
|
426
|
+
border-radius: 50%;
|
|
427
|
+
background: var(--text-2);
|
|
428
|
+
}
|
|
429
|
+
.ae-picker-menu {
|
|
430
|
+
position: absolute;
|
|
431
|
+
bottom: calc(100% + 6px);
|
|
432
|
+
right: 0;
|
|
433
|
+
z-index: 40;
|
|
434
|
+
width: 320px;
|
|
435
|
+
max-height: 420px;
|
|
436
|
+
display: flex;
|
|
437
|
+
flex-direction: column;
|
|
438
|
+
background: var(--surface-2);
|
|
439
|
+
border: 1px solid var(--border-2);
|
|
440
|
+
border-radius: var(--radius-sm);
|
|
441
|
+
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
|
|
442
|
+
overflow: hidden;
|
|
443
|
+
}
|
|
444
|
+
.ae-picker-filter {
|
|
445
|
+
margin: 8px;
|
|
446
|
+
padding: 8px 10px;
|
|
447
|
+
background: var(--bg);
|
|
448
|
+
border: 1px solid var(--border);
|
|
449
|
+
border-radius: var(--radius-xs);
|
|
450
|
+
color: var(--text);
|
|
451
|
+
font-family: inherit;
|
|
452
|
+
font-size: 13px;
|
|
453
|
+
outline: none;
|
|
454
|
+
}
|
|
455
|
+
.ae-picker-list {
|
|
456
|
+
overflow-y: auto;
|
|
457
|
+
padding: 0 6px 6px;
|
|
458
|
+
}
|
|
459
|
+
.ae-model-group-label {
|
|
460
|
+
padding: 8px 8px 4px;
|
|
461
|
+
margin: 0;
|
|
462
|
+
}
|
|
463
|
+
.ae-model-row {
|
|
464
|
+
display: flex;
|
|
465
|
+
flex-direction: column;
|
|
466
|
+
gap: 2px;
|
|
467
|
+
width: 100%;
|
|
468
|
+
text-align: left;
|
|
469
|
+
padding: 8px 10px;
|
|
470
|
+
background: none;
|
|
471
|
+
border: none;
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
border-radius: var(--radius-xs);
|
|
474
|
+
color: var(--text);
|
|
475
|
+
font-family: inherit;
|
|
476
|
+
}
|
|
477
|
+
.ae-model-row:hover {
|
|
478
|
+
background: var(--glass);
|
|
479
|
+
}
|
|
480
|
+
.ae-model-row.active {
|
|
481
|
+
background: var(--glass-2);
|
|
482
|
+
}
|
|
483
|
+
.ae-model-name {
|
|
484
|
+
font-size: 13px;
|
|
485
|
+
display: flex;
|
|
486
|
+
align-items: center;
|
|
487
|
+
gap: 7px;
|
|
488
|
+
}
|
|
489
|
+
.ae-model-desc {
|
|
490
|
+
font-size: 11px;
|
|
491
|
+
color: var(--text-3);
|
|
492
|
+
line-height: 1.3;
|
|
493
|
+
}
|
|
494
|
+
.ae-badge {
|
|
495
|
+
font-size: 9px;
|
|
496
|
+
text-transform: uppercase;
|
|
497
|
+
letter-spacing: 0.04em;
|
|
498
|
+
padding: 1px 5px;
|
|
499
|
+
border-radius: 4px;
|
|
500
|
+
background: var(--glass-2);
|
|
501
|
+
color: var(--text-2);
|
|
502
|
+
}
|
|
503
|
+
.ae-plan-banner {
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: space-between;
|
|
507
|
+
gap: 8px;
|
|
508
|
+
padding: 10px 12px;
|
|
509
|
+
border-top: 1px solid var(--border);
|
|
510
|
+
font-size: 11.5px;
|
|
511
|
+
color: var(--text-2);
|
|
512
|
+
background: var(--surface);
|
|
513
|
+
}
|
|
514
|
+
.ae-plan-tiers {
|
|
515
|
+
display: flex;
|
|
516
|
+
gap: 8px;
|
|
517
|
+
}
|
|
518
|
+
.ae-plan-tier b {
|
|
519
|
+
color: var(--text);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/* ── Answer view ─────────────────────────────────────────── */
|
|
523
|
+
.ae-answer-wrap {
|
|
524
|
+
flex: 1;
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: column;
|
|
527
|
+
min-height: 0;
|
|
528
|
+
}
|
|
529
|
+
.ae-answer-scroll {
|
|
530
|
+
flex: 1;
|
|
531
|
+
overflow-y: auto;
|
|
532
|
+
padding: 32px 28px 20px;
|
|
533
|
+
}
|
|
534
|
+
.ae-answer-scroll > * {
|
|
535
|
+
max-width: 760px;
|
|
536
|
+
margin-left: auto;
|
|
537
|
+
margin-right: auto;
|
|
538
|
+
}
|
|
539
|
+
.ae-question {
|
|
540
|
+
font-size: 26px;
|
|
541
|
+
font-weight: 600;
|
|
542
|
+
letter-spacing: -0.02em;
|
|
543
|
+
margin: 0 0 20px;
|
|
544
|
+
}
|
|
545
|
+
.ae-sources {
|
|
546
|
+
display: flex;
|
|
547
|
+
gap: 8px;
|
|
548
|
+
overflow-x: auto;
|
|
549
|
+
padding-bottom: 16px;
|
|
550
|
+
margin-bottom: 8px;
|
|
551
|
+
}
|
|
552
|
+
/* Source card — chat AnswerView: 160px, number pill first, favicon, host, 3-line title. */
|
|
553
|
+
.ae-source {
|
|
554
|
+
flex: 0 0 168px;
|
|
555
|
+
display: flex;
|
|
556
|
+
flex-direction: column;
|
|
557
|
+
gap: 6px;
|
|
558
|
+
padding: 10px;
|
|
559
|
+
border: 1px solid var(--border);
|
|
560
|
+
border-radius: var(--radius);
|
|
561
|
+
background: var(--surface);
|
|
562
|
+
transition: background 0.12s ease;
|
|
563
|
+
}
|
|
564
|
+
.ae-source:hover {
|
|
565
|
+
background: var(--surface-2);
|
|
566
|
+
}
|
|
567
|
+
.ae-source-head {
|
|
568
|
+
display: flex;
|
|
569
|
+
align-items: center;
|
|
570
|
+
gap: 6px;
|
|
571
|
+
}
|
|
572
|
+
.ae-source-head img {
|
|
573
|
+
border-radius: 3px;
|
|
574
|
+
flex-shrink: 0;
|
|
575
|
+
}
|
|
576
|
+
.ae-source-host {
|
|
577
|
+
font-size: 11px;
|
|
578
|
+
color: var(--text-2);
|
|
579
|
+
flex: 1;
|
|
580
|
+
overflow: hidden;
|
|
581
|
+
text-overflow: ellipsis;
|
|
582
|
+
white-space: nowrap;
|
|
583
|
+
}
|
|
584
|
+
.ae-source-idx {
|
|
585
|
+
flex: 0 0 auto;
|
|
586
|
+
width: 16px;
|
|
587
|
+
height: 16px;
|
|
588
|
+
padding: 0;
|
|
589
|
+
border: none;
|
|
590
|
+
display: inline-flex;
|
|
591
|
+
align-items: center;
|
|
592
|
+
justify-content: center;
|
|
593
|
+
font-size: 10px;
|
|
594
|
+
font-weight: 500;
|
|
595
|
+
color: var(--text-2);
|
|
596
|
+
background: var(--surface-3);
|
|
597
|
+
border-radius: 50%;
|
|
598
|
+
}
|
|
599
|
+
.ae-source-title {
|
|
600
|
+
font-size: 12px;
|
|
601
|
+
line-height: 1.35;
|
|
602
|
+
color: var(--text);
|
|
603
|
+
display: -webkit-box;
|
|
604
|
+
-webkit-line-clamp: 3;
|
|
605
|
+
-webkit-box-orient: vertical;
|
|
606
|
+
overflow: hidden;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.ae-status {
|
|
610
|
+
display: flex;
|
|
611
|
+
align-items: center;
|
|
612
|
+
gap: 10px;
|
|
613
|
+
color: var(--text-2);
|
|
614
|
+
font-size: 14px;
|
|
615
|
+
padding: 8px 0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.ae-answer.markdown {
|
|
619
|
+
font-size: 15px;
|
|
620
|
+
line-height: 1.65;
|
|
621
|
+
color: var(--text);
|
|
622
|
+
}
|
|
623
|
+
.markdown h2 {
|
|
624
|
+
font-size: 20px;
|
|
625
|
+
margin: 22px 0 10px;
|
|
626
|
+
font-weight: 600;
|
|
627
|
+
}
|
|
628
|
+
.markdown h3 {
|
|
629
|
+
font-size: 17px;
|
|
630
|
+
margin: 18px 0 8px;
|
|
631
|
+
font-weight: 600;
|
|
632
|
+
}
|
|
633
|
+
.markdown h4,
|
|
634
|
+
.markdown h5 {
|
|
635
|
+
font-size: 15px;
|
|
636
|
+
margin: 14px 0 6px;
|
|
637
|
+
font-weight: 600;
|
|
638
|
+
}
|
|
639
|
+
.markdown p {
|
|
640
|
+
margin: 0 0 12px;
|
|
641
|
+
}
|
|
642
|
+
.markdown ul,
|
|
643
|
+
.markdown ol {
|
|
644
|
+
margin: 0 0 12px;
|
|
645
|
+
padding-left: 22px;
|
|
646
|
+
}
|
|
647
|
+
.markdown li {
|
|
648
|
+
margin: 4px 0;
|
|
649
|
+
}
|
|
650
|
+
.markdown a {
|
|
651
|
+
color: var(--text);
|
|
652
|
+
text-decoration: underline;
|
|
653
|
+
text-decoration-color: var(--text-3);
|
|
654
|
+
text-underline-offset: 2px;
|
|
655
|
+
}
|
|
656
|
+
.markdown a:hover {
|
|
657
|
+
text-decoration-color: var(--text);
|
|
658
|
+
}
|
|
659
|
+
.markdown code {
|
|
660
|
+
background: var(--surface-2);
|
|
661
|
+
padding: 1px 5px;
|
|
662
|
+
border-radius: 4px;
|
|
663
|
+
font-size: 0.9em;
|
|
664
|
+
font-family: "Geist Mono", ui-monospace, monospace;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.ae-followups {
|
|
668
|
+
margin-top: 26px;
|
|
669
|
+
border-top: 1px solid var(--border);
|
|
670
|
+
padding-top: 16px;
|
|
671
|
+
}
|
|
672
|
+
.ae-followup {
|
|
673
|
+
display: flex;
|
|
674
|
+
align-items: center;
|
|
675
|
+
justify-content: space-between;
|
|
676
|
+
width: 100%;
|
|
677
|
+
padding: 12px 4px;
|
|
678
|
+
background: none;
|
|
679
|
+
border: none;
|
|
680
|
+
border-bottom: 1px solid var(--border);
|
|
681
|
+
color: var(--text);
|
|
682
|
+
font-family: inherit;
|
|
683
|
+
font-size: 14px;
|
|
684
|
+
text-align: left;
|
|
685
|
+
cursor: pointer;
|
|
686
|
+
}
|
|
687
|
+
.ae-followup:hover {
|
|
688
|
+
color: var(--text);
|
|
689
|
+
}
|
|
690
|
+
.ae-followup:hover .ae-followup-arrow {
|
|
691
|
+
color: var(--text);
|
|
692
|
+
transform: translateX(2px);
|
|
693
|
+
}
|
|
694
|
+
.ae-followup-arrow {
|
|
695
|
+
color: var(--text-3);
|
|
696
|
+
transition: transform 0.12s ease;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.ae-error {
|
|
700
|
+
color: var(--text-2);
|
|
701
|
+
padding: 12px 14px;
|
|
702
|
+
border: 1px solid var(--border);
|
|
703
|
+
border-radius: var(--radius-sm);
|
|
704
|
+
background: var(--surface);
|
|
705
|
+
}
|
|
706
|
+
.ae-auth {
|
|
707
|
+
display: flex;
|
|
708
|
+
flex-direction: column;
|
|
709
|
+
align-items: flex-start;
|
|
710
|
+
gap: 12px;
|
|
711
|
+
padding: 8px 0;
|
|
712
|
+
}
|
|
713
|
+
.ae-auth p {
|
|
714
|
+
margin: 0;
|
|
715
|
+
color: var(--text-2);
|
|
716
|
+
font-size: 15px;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.ae-answer-composer {
|
|
720
|
+
padding: 12px 28px 20px;
|
|
721
|
+
border-top: 1px solid var(--border);
|
|
722
|
+
background: var(--bg);
|
|
723
|
+
}
|
|
724
|
+
.ae-answer-composer > .ae-card {
|
|
725
|
+
max-width: 760px;
|
|
726
|
+
margin: 0 auto;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/* ── Spinner ─────────────────────────────────────────────── */
|
|
730
|
+
.ae-spinner {
|
|
731
|
+
width: 14px;
|
|
732
|
+
height: 14px;
|
|
733
|
+
border-radius: 50%;
|
|
734
|
+
display: inline-block;
|
|
735
|
+
border: 2px solid var(--border-2);
|
|
736
|
+
border-top-color: var(--text);
|
|
737
|
+
animation: ae-spin 0.7s linear infinite;
|
|
738
|
+
}
|
|
739
|
+
@keyframes ae-spin {
|
|
740
|
+
to {
|
|
741
|
+
transform: rotate(360deg);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@media (max-width: 720px) {
|
|
746
|
+
/* The rail SURVIVES on mobile as icons. `display:none` here used to be safe only
|
|
747
|
+
because a fixed reveal button floated above it; that button is gone (the rail
|
|
748
|
+
carries its own control now), so hiding the sidebar would leave a phone with no
|
|
749
|
+
brand, no new-thread and no sign-in at all. 3rem is 48px — it costs almost
|
|
750
|
+
nothing and keeps one layout from phone to desktop.
|
|
751
|
+
Hover-open does not apply here: the rule above is gated on (hover: hover), so a
|
|
752
|
+
touch device toggles with the button rather than sticking half-open. */
|
|
753
|
+
.ae-root,
|
|
754
|
+
.ae-root.collapsed {
|
|
755
|
+
grid-template-columns: var(--rail-w) 1fr;
|
|
756
|
+
}
|
|
757
|
+
/* Explicitly opened, the sidebar OVERLAYS rather than pushing: the grid keeps
|
|
758
|
+
the rail's width so the content column never shrinks. */
|
|
759
|
+
.ae-root:not(.collapsed) {
|
|
760
|
+
grid-template-columns: var(--rail-w) 1fr;
|
|
761
|
+
}
|
|
762
|
+
.ae-root:not(.collapsed) .ae-sidebar {
|
|
763
|
+
position: fixed;
|
|
764
|
+
top: 0;
|
|
765
|
+
bottom: 0;
|
|
766
|
+
left: 0;
|
|
767
|
+
width: var(--sidebar-w);
|
|
768
|
+
z-index: 60;
|
|
769
|
+
box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
|
|
770
|
+
}
|
|
771
|
+
.ae-news-grid {
|
|
772
|
+
grid-template-columns: 1fr;
|
|
773
|
+
}
|
|
774
|
+
.ae-hero {
|
|
775
|
+
gap: 20px;
|
|
776
|
+
padding: 20px 16px;
|
|
777
|
+
justify-content: flex-start;
|
|
778
|
+
padding-top: 48px;
|
|
779
|
+
}
|
|
780
|
+
.ae-answer-scroll {
|
|
781
|
+
padding: 20px 16px 16px;
|
|
782
|
+
}
|
|
783
|
+
.ae-answer-composer {
|
|
784
|
+
padding: 10px 16px 16px;
|
|
785
|
+
}
|
|
786
|
+
.ae-question {
|
|
787
|
+
font-size: 21px;
|
|
788
|
+
}
|
|
789
|
+
/* Input card: let the control row wrap so the model picker + send stay
|
|
790
|
+
reachable at narrow widths (mobile-first). */
|
|
791
|
+
.ae-card-row {
|
|
792
|
+
flex-direction: column;
|
|
793
|
+
align-items: stretch;
|
|
794
|
+
gap: 10px;
|
|
795
|
+
}
|
|
796
|
+
.ae-card-right {
|
|
797
|
+
justify-content: space-between;
|
|
798
|
+
}
|
|
799
|
+
.ae-modes {
|
|
800
|
+
flex: 1;
|
|
801
|
+
justify-content: space-between;
|
|
802
|
+
}
|
|
803
|
+
.ae-source {
|
|
804
|
+
flex-basis: 150px;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/* The fallback escape hatch on the expired-session card. Quiet: it is the
|
|
809
|
+
second choice, offered so the surface is never a dead end. */
|
|
810
|
+
.ae-fallback-link {
|
|
811
|
+
display: inline-block;
|
|
812
|
+
margin-top: 12px;
|
|
813
|
+
color: var(--text-3);
|
|
814
|
+
font-size: 13px;
|
|
815
|
+
text-decoration: underline;
|
|
816
|
+
text-underline-offset: 3px;
|
|
817
|
+
}
|
|
818
|
+
.ae-fallback-link:hover {
|
|
819
|
+
color: var(--text);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/* ── Generative result widgets ───────────────────────────── */
|
|
823
|
+
/* margin-left/right stay AUTO: .ae-answer-scroll > * centres its children at
|
|
824
|
+
760px, and a `margin: 4px 0 18px` shorthand here silently resets those to 0 —
|
|
825
|
+
the widgets then hugged the left edge while the prose beside them stayed
|
|
826
|
+
centred. Set only the block margins. */
|
|
827
|
+
.ae-widgets {
|
|
828
|
+
display: flex;
|
|
829
|
+
flex-direction: column;
|
|
830
|
+
gap: 14px;
|
|
831
|
+
margin-top: 4px;
|
|
832
|
+
margin-bottom: 18px;
|
|
833
|
+
}
|
|
834
|
+
.ae-widget {
|
|
835
|
+
border: 1px solid var(--border);
|
|
836
|
+
border-radius: var(--radius);
|
|
837
|
+
background: var(--surface);
|
|
838
|
+
padding: 16px 18px;
|
|
839
|
+
}
|
|
840
|
+
.ae-widget-title {
|
|
841
|
+
margin: 0 0 10px;
|
|
842
|
+
font-size: 14px;
|
|
843
|
+
font-weight: 600;
|
|
844
|
+
color: var(--text);
|
|
845
|
+
letter-spacing: -0.01em;
|
|
846
|
+
}
|
|
847
|
+
.ae-widget-subtitle {
|
|
848
|
+
margin: -6px 0 12px;
|
|
849
|
+
font-size: 13px;
|
|
850
|
+
color: var(--text-3);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/* A wide table scrolls INSIDE its own box; the page never scrolls sideways. */
|
|
854
|
+
.ae-widget-scroll {
|
|
855
|
+
overflow-x: auto;
|
|
856
|
+
}
|
|
857
|
+
.ae-widget-table {
|
|
858
|
+
border-collapse: collapse;
|
|
859
|
+
width: 100%;
|
|
860
|
+
font-size: 13px;
|
|
861
|
+
}
|
|
862
|
+
.ae-widget-table th,
|
|
863
|
+
.ae-widget-table td {
|
|
864
|
+
text-align: left;
|
|
865
|
+
padding: 8px 12px;
|
|
866
|
+
border-bottom: 1px solid var(--border);
|
|
867
|
+
vertical-align: top;
|
|
868
|
+
}
|
|
869
|
+
.ae-widget-table thead th {
|
|
870
|
+
color: var(--text-3);
|
|
871
|
+
font-weight: 500;
|
|
872
|
+
white-space: nowrap;
|
|
873
|
+
}
|
|
874
|
+
.ae-widget-table tbody th {
|
|
875
|
+
color: var(--text);
|
|
876
|
+
font-weight: 500;
|
|
877
|
+
}
|
|
878
|
+
.ae-widget-table td {
|
|
879
|
+
color: var(--text-2);
|
|
880
|
+
}
|
|
881
|
+
.ae-widget-table tr:last-child th,
|
|
882
|
+
.ae-widget-table tr:last-child td {
|
|
883
|
+
border-bottom: none;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.ae-widget-steplist {
|
|
887
|
+
margin: 0;
|
|
888
|
+
padding-left: 20px;
|
|
889
|
+
display: flex;
|
|
890
|
+
flex-direction: column;
|
|
891
|
+
gap: 8px;
|
|
892
|
+
}
|
|
893
|
+
.ae-widget-steplist li {
|
|
894
|
+
font-size: 13.5px;
|
|
895
|
+
line-height: 1.5;
|
|
896
|
+
color: var(--text-2);
|
|
897
|
+
}
|
|
898
|
+
.ae-widget-steplist li::marker {
|
|
899
|
+
color: var(--text-3);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.ae-widget-statgrid {
|
|
903
|
+
display: grid;
|
|
904
|
+
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
905
|
+
gap: 12px;
|
|
906
|
+
}
|
|
907
|
+
.ae-widget-stat {
|
|
908
|
+
display: flex;
|
|
909
|
+
flex-direction: column;
|
|
910
|
+
gap: 2px;
|
|
911
|
+
}
|
|
912
|
+
.ae-widget-statvalue {
|
|
913
|
+
font-size: 20px;
|
|
914
|
+
font-weight: 600;
|
|
915
|
+
color: var(--text);
|
|
916
|
+
font-variant-numeric: tabular-nums;
|
|
917
|
+
letter-spacing: -0.02em;
|
|
918
|
+
}
|
|
919
|
+
.ae-widget-statlabel {
|
|
920
|
+
font-size: 12px;
|
|
921
|
+
color: var(--text-3);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.ae-widget-events {
|
|
925
|
+
margin: 0;
|
|
926
|
+
padding: 0;
|
|
927
|
+
list-style: none;
|
|
928
|
+
display: flex;
|
|
929
|
+
flex-direction: column;
|
|
930
|
+
gap: 10px;
|
|
931
|
+
}
|
|
932
|
+
.ae-widget-events li {
|
|
933
|
+
display: grid;
|
|
934
|
+
grid-template-columns: minmax(72px, auto) 1fr;
|
|
935
|
+
gap: 14px;
|
|
936
|
+
}
|
|
937
|
+
.ae-widget-when {
|
|
938
|
+
font-size: 12.5px;
|
|
939
|
+
color: var(--text-3);
|
|
940
|
+
font-variant-numeric: tabular-nums;
|
|
941
|
+
}
|
|
942
|
+
.ae-widget-what {
|
|
943
|
+
font-size: 13.5px;
|
|
944
|
+
color: var(--text-2);
|
|
945
|
+
line-height: 1.5;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.ae-widget-facts {
|
|
949
|
+
margin: 0;
|
|
950
|
+
display: grid;
|
|
951
|
+
grid-template-columns: minmax(96px, auto) 1fr;
|
|
952
|
+
gap: 8px 16px;
|
|
953
|
+
}
|
|
954
|
+
.ae-widget-facts dt {
|
|
955
|
+
font-size: 12.5px;
|
|
956
|
+
color: var(--text-3);
|
|
957
|
+
}
|
|
958
|
+
.ae-widget-facts dd {
|
|
959
|
+
margin: 0;
|
|
960
|
+
font-size: 13.5px;
|
|
961
|
+
color: var(--text-2);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.ae-widget-meaning {
|
|
965
|
+
margin: 0;
|
|
966
|
+
font-size: 14px;
|
|
967
|
+
line-height: 1.55;
|
|
968
|
+
color: var(--text-2);
|
|
969
|
+
}
|
|
970
|
+
.ae-widget-example {
|
|
971
|
+
margin: 12px 0 0;
|
|
972
|
+
padding: 10px 12px;
|
|
973
|
+
overflow-x: auto;
|
|
974
|
+
background: var(--bg);
|
|
975
|
+
border: 1px solid var(--border);
|
|
976
|
+
border-radius: var(--radius-sm);
|
|
977
|
+
font-size: 12.5px;
|
|
978
|
+
color: var(--text-2);
|
|
979
|
+
white-space: pre-wrap;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
@media (max-width: 720px) {
|
|
983
|
+
.ae-widget {
|
|
984
|
+
padding: 14px;
|
|
985
|
+
}
|
|
986
|
+
.ae-widget-events li {
|
|
987
|
+
grid-template-columns: 1fr;
|
|
988
|
+
gap: 2px;
|
|
989
|
+
}
|
|
990
|
+
.ae-widget-facts {
|
|
991
|
+
grid-template-columns: 1fr;
|
|
992
|
+
gap: 2px 0;
|
|
993
|
+
}
|
|
994
|
+
.ae-widget-facts dd {
|
|
995
|
+
margin-bottom: 8px;
|
|
996
|
+
}
|
|
997
|
+
}
|