@hanzo/browser-extension 1.9.46 → 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.
Files changed (42) hide show
  1. package/LICENSE +12 -0
  2. package/package.json +16 -16
  3. package/src/answer/Rail.tsx +40 -14
  4. package/src/newtab.css +811 -243
  5. package/src/popup.html +0 -4
  6. package/src/sidebar.html +0 -8
  7. package/dist/safari/Hanzo AI/Hanzo AI.xcodeproj/project.pbxproj +0 -1059
  8. package/dist/safari/Hanzo AI/Hanzo AI.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  9. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json +0 -11
  10. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
  11. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-128@1x.png +0 -0
  12. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-128@2x.png +0 -0
  13. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-16@1x.png +0 -0
  14. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-16@2x.png +0 -0
  15. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-256@1x.png +0 -0
  16. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-256@2x.png +0 -0
  17. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-32@1x.png +0 -0
  18. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-32@2x.png +0 -0
  19. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@1x.png +0 -0
  20. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@2x.png +0 -0
  21. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/universal-icon-1024@1x.png +0 -0
  22. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/Contents.json +0 -6
  23. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json +0 -21
  24. package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/LargeIcon.imageset/icon128.png +0 -0
  25. package/dist/safari/Hanzo AI/Shared (App)/Resources/Base.lproj/Main.html +0 -20
  26. package/dist/safari/Hanzo AI/Shared (App)/Resources/Icon.png +0 -0
  27. package/dist/safari/Hanzo AI/Shared (App)/Resources/Script.js +0 -24
  28. package/dist/safari/Hanzo AI/Shared (App)/Resources/Style.css +0 -61
  29. package/dist/safari/Hanzo AI/Shared (App)/ViewController.swift +0 -81
  30. package/dist/safari/Hanzo AI/Shared (Extension)/SafariWebExtensionHandler.swift +0 -42
  31. package/dist/safari/Hanzo AI/iOS (App)/AppDelegate.swift +0 -24
  32. package/dist/safari/Hanzo AI/iOS (App)/Base.lproj/LaunchScreen.storyboard +0 -36
  33. package/dist/safari/Hanzo AI/iOS (App)/Base.lproj/Main.storyboard +0 -38
  34. package/dist/safari/Hanzo AI/iOS (App)/Info.plist +0 -27
  35. package/dist/safari/Hanzo AI/iOS (App)/SceneDelegate.swift +0 -18
  36. package/dist/safari/Hanzo AI/iOS (Extension)/Info.plist +0 -13
  37. package/dist/safari/Hanzo AI/macOS (App)/AppDelegate.swift +0 -21
  38. package/dist/safari/Hanzo AI/macOS (App)/Base.lproj/Main.storyboard +0 -124
  39. package/dist/safari/Hanzo AI/macOS (App)/Info.plist +0 -8
  40. package/dist/safari/Hanzo AI/macOS (Extension)/Info.plist +0 -13
  41. package/src/popup.js +0 -196
  42. package/src/sidebar.js +0 -885
package/src/newtab.css CHANGED
@@ -3,16 +3,16 @@
3
3
  :root {
4
4
  /* hanzo.chat dark palette — the exact gray scale from chat/client/src/style.css
5
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 */
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
16
  --glass: rgba(255, 255, 255, 0.03);
17
17
  --glass-2: rgba(255, 255, 255, 0.06);
18
18
  --radius: 12px;
@@ -25,18 +25,30 @@
25
25
  --rail-w: 3rem;
26
26
  }
27
27
 
28
- * { box-sizing: border-box; }
28
+ * {
29
+ box-sizing: border-box;
30
+ }
29
31
 
30
- html, body {
32
+ html,
33
+ body {
31
34
  margin: 0;
32
35
  height: 100%;
33
36
  background: var(--bg);
34
37
  color: var(--text);
35
- font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
38
+ font-family:
39
+ "Geist Sans",
40
+ -apple-system,
41
+ BlinkMacSystemFont,
42
+ "SF Pro Text",
43
+ "Segoe UI",
44
+ sans-serif;
36
45
  -webkit-font-smoothing: antialiased;
37
46
  }
38
47
 
39
- a { color: inherit; text-decoration: none; }
48
+ a {
49
+ color: inherit;
50
+ text-decoration: none;
51
+ }
40
52
 
41
53
  .ae-root {
42
54
  display: grid;
@@ -50,25 +62,21 @@ a { color: inherit; text-decoration: none; }
50
62
  `collapsible="icon"` behaviour of @hanzo/ui primitives/sidebar, and the width is
51
63
  ITS token (SIDEBAR_WIDTH_ICON = 3rem) rather than a number picked here — so
52
64
  swapping this rail for the shared primitive is a substitution, not a redesign. */
53
- .ae-root.collapsed { grid-template-columns: var(--rail-w) 1fr; }
65
+ .ae-root.collapsed {
66
+ grid-template-columns: var(--rail-w) 1fr;
67
+ }
54
68
 
55
- /* Hovering THE RAIL opens it — matched with :has() on the sidebar, never on
56
- .ae-root. .ae-root is the full-viewport grid container, so `.ae-root:hover`
57
- is true anywhere on the page: the sidebar would spring open while the pointer
58
- sat in the answer column. Measured, not guessed.
59
- Pointer-only, so a touch device is not stuck half-open; :focus-within is the
60
- keyboard equivalent. */
61
- @media (hover: hover) and (pointer: fine) {
62
- .ae-root.collapsed:has(.ae-sidebar:hover),
63
- .ae-root.collapsed:has(.ae-sidebar:focus-within) {
64
- grid-template-columns: var(--sidebar-w) 1fr;
65
- }
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;
66
79
  }
67
- /* Labels follow the SIDEBAR's own state, for the same reason. */
68
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-brand span,
69
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-new span,
70
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-nav,
71
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-signin-label { display: none; }
72
80
 
73
81
  /* ── Sidebar ─────────────────────────────────────────────── */
74
82
  .ae-sidebar {
@@ -80,86 +88,201 @@ a { color: inherit; text-decoration: none; }
80
88
  background: var(--surface);
81
89
  min-width: 0;
82
90
  }
83
- .ae-side-top { display: flex; align-items: center; justify-content: space-between; }
91
+ .ae-side-top {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ }
84
96
  .ae-brand {
85
- display: flex; align-items: center; gap: 9px;
86
- background: none; border: none; color: var(--text);
87
- font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
88
- cursor: pointer; padding: 4px; min-width: 0;
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;
89
113
  }
90
- .ae-brand span { white-space: nowrap; overflow: hidden; }
91
- .ae-collapse, .ae-new, .ae-signin {
92
- cursor: pointer; font-family: inherit;
114
+ .ae-collapse,
115
+ .ae-new,
116
+ .ae-signin {
117
+ cursor: pointer;
118
+ font-family: inherit;
93
119
  }
94
120
  .ae-collapse {
95
- background: none; border: none; color: var(--text-3);
96
- padding: 4px; border-radius: var(--radius-xs); display: flex;
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);
97
131
  }
98
- .ae-collapse:hover { color: var(--text); background: var(--glass); }
99
132
  .ae-new {
100
- display: flex; align-items: center; gap: 8px;
101
- margin-top: 8px; padding: 9px 12px;
102
- background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2);
103
- border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
104
- white-space: nowrap; overflow: hidden;
105
- }
106
- .ae-new:hover { background: var(--surface-hover, #212121); border-color: var(--border-2); }
107
- .ae-nav { display: flex; flex-direction: column; margin-top: 12px; gap: 1px; }
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
+ }
108
157
  .ae-nav a {
109
- padding: 8px 10px; border-radius: var(--radius-xs);
110
- color: var(--text-2); font-size: 13px; white-space: nowrap;
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;
111
170
  }
112
- .ae-nav a:hover { background: var(--glass); color: var(--text); }
113
- .ae-side-bottom { margin-top: auto; }
114
171
  .ae-signin {
115
- width: 100%; padding: 9px 12px;
116
- background: var(--glass-2); border: 1px solid var(--border);
117
- color: var(--text); border-radius: var(--radius-sm);
118
- font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden;
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;
119
191
  }
120
- .ae-signin:hover { border-color: var(--border-2); background: var(--surface-2); }
121
- .ae-signin.big { width: auto; padding: 10px 18px; font-size: 14px; }
122
192
  /* Icon-rail geometry. Centre the glyphs and drop the label gaps so a 3rem rail
123
- holds them without clipping; the :not(:hover) rules above own visibility. */
124
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) { padding: 14px 6px; align-items: center; overflow: hidden; }
125
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-side-top { justify-content: center; }
126
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-collapse { display: none; }
127
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-brand,
128
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-new,
129
- .ae-root.collapsed .ae-sidebar:not(:hover):not(:focus-within) .ae-signin {
130
- gap: 0; padding: 8px; justify-content: center; width: auto;
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;
131
212
  }
132
213
 
133
214
  /* ── Main ────────────────────────────────────────────────── */
134
- .ae-main { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
215
+ .ae-main {
216
+ min-width: 0;
217
+ overflow: hidden;
218
+ display: flex;
219
+ flex-direction: column;
220
+ }
135
221
 
136
222
  /* Hero (empty state) */
137
223
  .ae-hero {
138
- flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
139
- gap: 26px; padding: 24px; overflow-y: auto;
140
- }
141
- .ae-hero-card { width: 100%; max-width: 720px; }
142
- .ae-news { width: 100%; max-width: 720px; }
143
- .ae-news-head, .ae-followups-head, .ae-model-group-label {
144
- font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
145
- color: var(--text-3); margin-bottom: 10px;
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;
146
254
  }
147
- .ae-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
148
255
  .ae-news-item {
149
- display: flex; flex-direction: column; gap: 4px;
150
- padding: 11px 13px; border: 1px solid var(--border);
151
- border-radius: var(--radius-sm); background: var(--surface);
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);
152
276
  }
153
- .ae-news-item:hover { border-color: var(--border-2); background: var(--surface-2); }
154
- .ae-news-title { font-size: 13px; color: var(--text); line-height: 1.35; }
155
- .ae-news-meta { font-size: 11px; color: var(--text-3); }
156
277
 
157
278
  /* ── Input card ──────────────────────────────────────────── */
158
279
  .ae-card {
159
280
  background: var(--surface-2);
160
281
  border: 1px solid var(--border-2);
161
282
  border-radius: var(--radius);
162
- box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
283
+ box-shadow:
284
+ 0 8px 40px rgba(0, 0, 0, 0.45),
285
+ 0 0 0 1px rgba(255, 255, 255, 0.02);
163
286
  /* NOT overflow:hidden. The model picker menu is position:absolute inside this
164
287
  card and opens UPWARD, so a clip here truncates it to the card's box: the
165
288
  "Search models…" filter, the Auto row and the whole Enso group get cut off
@@ -171,148 +294,453 @@ a { color: inherit; text-decoration: none; }
171
294
  overflow: visible;
172
295
  }
173
296
  .ae-input {
174
- display: block; width: 100%; resize: none;
175
- padding: 16px 18px 6px; min-height: 30px; max-height: 200px;
176
- background: transparent; border: none; outline: none;
177
- color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.5;
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);
178
313
  }
179
- .ae-input::placeholder { color: var(--text-3); }
180
314
  /* The composer field is @hanzo/ui's Textarea (data-slot is the design system's
181
315
  own marker). It auto-grows by line count, so the browser's manual resize
182
316
  grip is noise inside the card. */
183
- .ae-card textarea[data-slot="textarea"] { resize: none; }
317
+ .ae-card textarea[data-slot="textarea"] {
318
+ resize: none;
319
+ }
184
320
  .ae-card-row {
185
- display: flex; align-items: center; justify-content: space-between;
186
- gap: 8px; padding: 8px 10px 10px; flex-wrap: wrap;
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;
187
332
  }
188
- .ae-chips { display: flex; gap: 4px; flex-wrap: wrap; }
189
333
  .ae-chip {
190
- padding: 4px 9px; border-radius: 999px; cursor: pointer;
191
- background: var(--glass); border: 1px solid var(--border);
192
- color: var(--text-3); font-size: 11px; font-family: inherit;
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);
193
346
  }
194
- .ae-chip:hover { color: var(--text-2); background: var(--surface-2); }
195
347
  /* Selected is a step UP the surface ladder, not a white lozenge (chat ModeChips). */
196
- .ae-chip.on { background: var(--surface-active); color: var(--text); border-color: transparent; font-weight: 500; }
197
- .ae-card-right { display: flex; align-items: center; gap: 6px; }
198
- .ae-modes { display: flex; gap: 2px; background: var(--glass); border-radius: var(--radius-xs); padding: 2px; }
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
+ }
199
366
  .ae-mode {
200
- padding: 4px 9px; border: none; background: none; cursor: pointer;
201
- color: var(--text-3); font-size: 11.5px; font-family: inherit; border-radius: 5px;
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;
202
383
  }
203
- .ae-mode:hover { color: var(--text-2); }
204
- .ae-mode.on { background: var(--surface-active); color: var(--text); font-weight: 500; }
205
384
  .ae-send {
206
- width: 34px; height: 34px; flex-shrink: 0; cursor: pointer;
207
- display: flex; align-items: center; justify-content: center;
208
- background: var(--text); color: #000; border: none; border-radius: 50%;
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;
209
400
  }
210
- .ae-send:disabled { opacity: 0.4; cursor: default; }
211
401
 
212
402
  /* ── Model picker ────────────────────────────────────────── */
213
- .ae-picker { position: relative; }
403
+ .ae-picker {
404
+ position: relative;
405
+ }
214
406
  .ae-picker-btn {
215
- display: flex; align-items: center; gap: 6px; cursor: pointer;
216
- padding: 6px 10px; background: var(--glass); border: 1px solid var(--border);
217
- border-radius: var(--radius-xs); color: var(--text-2); font-size: 12px; font-family: inherit;
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);
218
428
  }
219
- .ae-picker-btn:hover { color: var(--text); border-color: var(--border-2); }
220
- .ae-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }
221
429
  .ae-picker-menu {
222
- position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 40;
223
- width: 320px; max-height: 420px; display: flex; flex-direction: column;
224
- background: var(--surface-2); border: 1px solid var(--border-2);
225
- border-radius: var(--radius-sm); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6); overflow: hidden;
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;
226
443
  }
227
444
  .ae-picker-filter {
228
- margin: 8px; padding: 8px 10px; background: var(--bg);
229
- border: 1px solid var(--border); border-radius: var(--radius-xs);
230
- color: var(--text); font-family: inherit; font-size: 13px; outline: none;
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;
231
462
  }
232
- .ae-picker-list { overflow-y: auto; padding: 0 6px 6px; }
233
- .ae-model-group-label { padding: 8px 8px 4px; margin: 0; }
234
463
  .ae-model-row {
235
- display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
236
- padding: 8px 10px; background: none; border: none; cursor: pointer;
237
- border-radius: var(--radius-xs); color: var(--text); font-family: inherit;
238
- }
239
- .ae-model-row:hover { background: var(--glass); }
240
- .ae-model-row.active { background: var(--glass-2); }
241
- .ae-model-name { font-size: 13px; display: flex; align-items: center; gap: 7px; }
242
- .ae-model-desc { font-size: 11px; color: var(--text-3); line-height: 1.3; }
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
+ }
243
494
  .ae-badge {
244
- font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em;
245
- padding: 1px 5px; border-radius: 4px; background: var(--glass-2); color: var(--text-2);
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);
246
502
  }
247
503
  .ae-plan-banner {
248
- display: flex; align-items: center; justify-content: space-between; gap: 8px;
249
- padding: 10px 12px; border-top: 1px solid var(--border);
250
- font-size: 11.5px; color: var(--text-2); background: var(--surface);
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);
251
520
  }
252
- .ae-plan-tiers { display: flex; gap: 8px; }
253
- .ae-plan-tier b { color: var(--text); }
254
521
 
255
522
  /* ── Answer view ─────────────────────────────────────────── */
256
- .ae-answer-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
257
- .ae-answer-scroll { flex: 1; overflow-y: auto; padding: 32px 28px 20px; }
258
- .ae-answer-scroll > * { max-width: 760px; margin-left: auto; margin-right: auto; }
259
- .ae-question { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; }
260
- .ae-sources { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 8px; }
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
+ }
261
552
  /* Source card — chat AnswerView: 160px, number pill first, favicon, host, 3-line title. */
262
553
  .ae-source {
263
- flex: 0 0 168px; display: flex; flex-direction: column; gap: 6px;
264
- padding: 10px; border: 1px solid var(--border); border-radius: var(--radius);
265
- background: var(--surface); transition: background 0.12s ease;
266
- }
267
- .ae-source:hover { background: var(--surface-2); }
268
- .ae-source-head { display: flex; align-items: center; gap: 6px; }
269
- .ae-source-head img { border-radius: 3px; flex-shrink: 0; }
270
- .ae-source-host { font-size: 11px; color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
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
+ }
271
584
  .ae-source-idx {
272
- flex: 0 0 auto; width: 16px; height: 16px; padding: 0; border: none;
273
- display: inline-flex; align-items: center; justify-content: center;
274
- font-size: 10px; font-weight: 500; color: var(--text-2);
275
- background: var(--surface-3); border-radius: 50%;
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;
276
607
  }
277
- .ae-source-title { font-size: 12px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
278
608
 
279
- .ae-status { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; padding: 8px 0; }
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
+ }
280
617
 
281
- .ae-answer.markdown { font-size: 15px; line-height: 1.65; color: var(--text); }
282
- .markdown h2 { font-size: 20px; margin: 22px 0 10px; font-weight: 600; }
283
- .markdown h3 { font-size: 17px; margin: 18px 0 8px; font-weight: 600; }
284
- .markdown h4, .markdown h5 { font-size: 15px; margin: 14px 0 6px; font-weight: 600; }
285
- .markdown p { margin: 0 0 12px; }
286
- .markdown ul, .markdown ol { margin: 0 0 12px; padding-left: 22px; }
287
- .markdown li { margin: 4px 0; }
288
- .markdown a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 2px; }
289
- .markdown a:hover { text-decoration-color: var(--text); }
290
- .markdown code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; font-family: 'Geist Mono', ui-monospace, monospace; }
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
+ }
291
666
 
292
- .ae-followups { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 16px; }
667
+ .ae-followups {
668
+ margin-top: 26px;
669
+ border-top: 1px solid var(--border);
670
+ padding-top: 16px;
671
+ }
293
672
  .ae-followup {
294
- display: flex; align-items: center; justify-content: space-between; width: 100%;
295
- padding: 12px 4px; background: none; border: none; border-bottom: 1px solid var(--border);
296
- color: var(--text); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer;
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;
297
697
  }
298
- .ae-followup:hover { color: var(--text); }
299
- .ae-followup:hover .ae-followup-arrow { color: var(--text); transform: translateX(2px); }
300
- .ae-followup-arrow { color: var(--text-3); transition: transform 0.12s ease; }
301
698
 
302
- .ae-error { color: var(--text-2); padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
303
- .ae-auth { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
304
- .ae-auth p { margin: 0; color: var(--text-2); font-size: 15px; }
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
+ }
305
718
 
306
- .ae-answer-composer { padding: 12px 28px 20px; border-top: 1px solid var(--border); background: var(--bg); }
307
- .ae-answer-composer > .ae-card { max-width: 760px; margin: 0 auto; }
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
+ }
308
728
 
309
729
  /* ── Spinner ─────────────────────────────────────────────── */
310
730
  .ae-spinner {
311
- width: 14px; height: 14px; border-radius: 50%; display: inline-block;
312
- border: 2px solid var(--border-2); border-top-color: var(--text);
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);
313
737
  animation: ae-spin 0.7s linear infinite;
314
738
  }
315
- @keyframes ae-spin { to { transform: rotate(360deg); } }
739
+ @keyframes ae-spin {
740
+ to {
741
+ transform: rotate(360deg);
742
+ }
743
+ }
316
744
 
317
745
  @media (max-width: 720px) {
318
746
  /* The rail SURVIVES on mobile as icons. `display:none` here used to be safe only
@@ -322,43 +750,74 @@ a { color: inherit; text-decoration: none; }
322
750
  nothing and keeps one layout from phone to desktop.
323
751
  Hover-open does not apply here: the rule above is gated on (hover: hover), so a
324
752
  touch device toggles with the button rather than sticking half-open. */
325
- .ae-root, .ae-root.collapsed { grid-template-columns: var(--rail-w) 1fr; }
326
- /* Hover must NOT widen the rail here. 232px out of a 390px viewport leaves the
327
- answer column unreadable, and a desktop browser at a small window still
328
- reports a fine pointer — so the (hover: hover) guard alone does not cover it.
329
- This block is later in the file at equal specificity, so it wins. */
330
- .ae-root.collapsed:has(.ae-sidebar:hover),
331
- .ae-root.collapsed:has(.ae-sidebar:focus-within) {
753
+ .ae-root,
754
+ .ae-root.collapsed {
332
755
  grid-template-columns: var(--rail-w) 1fr;
333
756
  }
334
757
  /* Explicitly opened, the sidebar OVERLAYS rather than pushing: the grid keeps
335
758
  the rail's width so the content column never shrinks. */
336
- .ae-root:not(.collapsed) { grid-template-columns: var(--rail-w) 1fr; }
759
+ .ae-root:not(.collapsed) {
760
+ grid-template-columns: var(--rail-w) 1fr;
761
+ }
337
762
  .ae-root:not(.collapsed) .ae-sidebar {
338
- position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w);
339
- z-index: 60; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
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;
340
788
  }
341
- .ae-news-grid { grid-template-columns: 1fr; }
342
- .ae-hero { gap: 20px; padding: 20px 16px; justify-content: flex-start; padding-top: 48px; }
343
- .ae-answer-scroll { padding: 20px 16px 16px; }
344
- .ae-answer-composer { padding: 10px 16px 16px; }
345
- .ae-question { font-size: 21px; }
346
789
  /* Input card: let the control row wrap so the model picker + send stay
347
790
  reachable at narrow widths (mobile-first). */
348
- .ae-card-row { flex-direction: column; align-items: stretch; gap: 10px; }
349
- .ae-card-right { justify-content: space-between; }
350
- .ae-modes { flex: 1; justify-content: space-between; }
351
- .ae-source { flex-basis: 150px; }
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
+ }
352
806
  }
353
807
 
354
808
  /* The fallback escape hatch on the expired-session card. Quiet: it is the
355
809
  second choice, offered so the surface is never a dead end. */
356
810
  .ae-fallback-link {
357
- display: inline-block; margin-top: 12px;
358
- color: var(--text-3); font-size: 13px; text-decoration: underline;
811
+ display: inline-block;
812
+ margin-top: 12px;
813
+ color: var(--text-3);
814
+ font-size: 13px;
815
+ text-decoration: underline;
359
816
  text-underline-offset: 3px;
360
817
  }
361
- .ae-fallback-link:hover { color: var(--text); }
818
+ .ae-fallback-link:hover {
819
+ color: var(--text);
820
+ }
362
821
 
363
822
  /* ── Generative result widgets ───────────────────────────── */
364
823
  /* margin-left/right stay AUTO: .ae-answer-scroll > * centres its children at
@@ -366,64 +825,173 @@ a { color: inherit; text-decoration: none; }
366
825
  the widgets then hugged the left edge while the prose beside them stayed
367
826
  centred. Set only the block margins. */
368
827
  .ae-widgets {
369
- display: flex; flex-direction: column; gap: 14px;
370
- margin-top: 4px; margin-bottom: 18px;
828
+ display: flex;
829
+ flex-direction: column;
830
+ gap: 14px;
831
+ margin-top: 4px;
832
+ margin-bottom: 18px;
371
833
  }
372
834
  .ae-widget {
373
- border: 1px solid var(--border); border-radius: var(--radius);
374
- background: var(--surface); padding: 16px 18px;
835
+ border: 1px solid var(--border);
836
+ border-radius: var(--radius);
837
+ background: var(--surface);
838
+ padding: 16px 18px;
375
839
  }
376
840
  .ae-widget-title {
377
- margin: 0 0 10px; font-size: 14px; font-weight: 600;
378
- color: var(--text); letter-spacing: -0.01em;
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);
379
851
  }
380
- .ae-widget-subtitle { margin: -6px 0 12px; font-size: 13px; color: var(--text-3); }
381
852
 
382
853
  /* A wide table scrolls INSIDE its own box; the page never scrolls sideways. */
383
- .ae-widget-scroll { overflow-x: auto; }
384
- .ae-widget-table { border-collapse: collapse; width: 100%; font-size: 13px; }
385
- .ae-widget-table th, .ae-widget-table td {
386
- text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border);
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);
387
867
  vertical-align: top;
388
868
  }
389
- .ae-widget-table thead th { color: var(--text-3); font-weight: 500; white-space: nowrap; }
390
- .ae-widget-table tbody th { color: var(--text); font-weight: 500; }
391
- .ae-widget-table td { color: var(--text-2); }
392
- .ae-widget-table tr:last-child th, .ae-widget-table tr:last-child td { border-bottom: none; }
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
+ }
393
885
 
394
- .ae-widget-steplist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
395
- .ae-widget-steplist li { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
396
- .ae-widget-steplist li::marker { color: var(--text-3); }
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
+ }
397
901
 
398
902
  .ae-widget-statgrid {
399
- display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
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;
400
911
  }
401
- .ae-widget-stat { display: flex; flex-direction: column; gap: 2px; }
402
912
  .ae-widget-statvalue {
403
- font-size: 20px; font-weight: 600; color: var(--text);
404
- font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
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);
405
922
  }
406
- .ae-widget-statlabel { font-size: 12px; color: var(--text-3); }
407
923
 
408
- .ae-widget-events { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
409
- .ae-widget-events li { display: grid; grid-template-columns: minmax(72px, auto) 1fr; gap: 14px; }
410
- .ae-widget-when { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
411
- .ae-widget-what { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
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
+ }
412
947
 
413
- .ae-widget-facts { margin: 0; display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 16px; }
414
- .ae-widget-facts dt { font-size: 12.5px; color: var(--text-3); }
415
- .ae-widget-facts dd { margin: 0; font-size: 13.5px; color: var(--text-2); }
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
+ }
416
963
 
417
- .ae-widget-meaning { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
964
+ .ae-widget-meaning {
965
+ margin: 0;
966
+ font-size: 14px;
967
+ line-height: 1.55;
968
+ color: var(--text-2);
969
+ }
418
970
  .ae-widget-example {
419
- margin: 12px 0 0; padding: 10px 12px; overflow-x: auto;
420
- background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
421
- font-size: 12.5px; color: var(--text-2); white-space: pre-wrap;
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;
422
980
  }
423
981
 
424
982
  @media (max-width: 720px) {
425
- .ae-widget { padding: 14px; }
426
- .ae-widget-events li { grid-template-columns: 1fr; gap: 2px; }
427
- .ae-widget-facts { grid-template-columns: 1fr; gap: 2px 0; }
428
- .ae-widget-facts dd { margin-bottom: 8px; }
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
+ }
429
997
  }