@hanzo/browser-extension 1.9.56 → 1.9.59

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 (60) hide show
  1. package/README.md +11 -0
  2. package/chrome/background.js +527 -0
  3. package/chrome/content-script.js +550 -0
  4. package/{src → chrome}/manifest.json +2 -12
  5. package/chrome/newtab.js +230 -0
  6. package/chrome/onboarding.js +31 -0
  7. package/chrome/page.js +35 -0
  8. package/{src → chrome}/popup.html +8 -0
  9. package/chrome/popup.js +48 -0
  10. package/chrome/sidebar.js +291 -0
  11. package/firefox/ai-worker.js +571 -0
  12. package/firefox/background.js +235 -0
  13. package/firefox/callback.html +17 -0
  14. package/firefox/content-script.js +550 -0
  15. package/firefox/icon128.png +0 -0
  16. package/firefox/icon16.png +0 -0
  17. package/firefox/icon48.png +0 -0
  18. package/{src/manifest-firefox.json → firefox/manifest.json} +2 -3
  19. package/firefox/newtab.css +543 -0
  20. package/firefox/newtab.html +13 -0
  21. package/firefox/newtab.js +230 -0
  22. package/firefox/onboarding.css +78 -0
  23. package/firefox/onboarding.html +45 -0
  24. package/firefox/onboarding.js +31 -0
  25. package/firefox/page.js +35 -0
  26. package/firefox/popup.css +761 -0
  27. package/firefox/popup.html +413 -0
  28. package/firefox/popup.js +48 -0
  29. package/firefox/sidebar.css +1350 -0
  30. package/firefox/sidebar.html +388 -0
  31. package/firefox/sidebar.js +291 -0
  32. package/package.json +4 -53
  33. package/manifest.json +0 -34
  34. package/src/Chat.tsx +0 -164
  35. package/src/answer/AnswerEngine.tsx +0 -410
  36. package/src/answer/Mark.tsx +0 -14
  37. package/src/answer/Rail.tsx +0 -95
  38. package/src/answer/Stories.tsx +0 -27
  39. package/src/answer/Toolbar.tsx +0 -93
  40. package/src/answer/WidgetView.tsx +0 -136
  41. package/src/icon128.png +0 -0
  42. package/src/icon16.png +0 -0
  43. package/src/icon32.png +0 -0
  44. package/src/icon48.png +0 -0
  45. package/src/package.json +0 -41
  46. package/src/safari/SafariWebExtensionHandler.swift +0 -153
  47. package/src/shared/Prose.tsx +0 -29
  48. package/src/webgpu.d.ts +0 -131
  49. /package/{src → chrome}/ai-worker.js +0 -0
  50. /package/{src → chrome}/callback.html +0 -0
  51. /package/{images → chrome}/icon128.png +0 -0
  52. /package/{images → chrome}/icon16.png +0 -0
  53. /package/{images → chrome}/icon48.png +0 -0
  54. /package/{src → chrome}/newtab.css +0 -0
  55. /package/{src → chrome}/newtab.html +0 -0
  56. /package/{src → chrome}/onboarding.css +0 -0
  57. /package/{src → chrome}/onboarding.html +0 -0
  58. /package/{src → chrome}/popup.css +0 -0
  59. /package/{src → chrome}/sidebar.css +0 -0
  60. /package/{src → chrome}/sidebar.html +0 -0
@@ -0,0 +1,1350 @@
1
+ /* Hanzo AI Browser Extension Sidebar — Hanzo brand: strictly monochrome.
2
+ See ~/work/hanzo/brand/brand.json — primaryColor #FFFFFF, no chromatic
3
+ accents. Status states are conveyed by intensity, not hue. */
4
+
5
+ :root {
6
+ --bg-primary: #0a0a0a;
7
+ --bg-secondary: #0f0f0f;
8
+ --bg-tertiary: #171717;
9
+ --bg-hover: #262626;
10
+
11
+ --text-primary: #fafafa;
12
+ --text-secondary: #a3a3a3;
13
+ --text-tertiary: #666666;
14
+
15
+ --accent: #fafafa;
16
+ --accent-hover: #d4d4d4;
17
+ --accent-dim: rgba(255,255,255,0.06);
18
+ --accent-glow: rgba(255,255,255,0.03);
19
+
20
+ /* Status: monochrome by hue, distinguished by opacity / weight.
21
+ Brand is strict monochrome, so success/warn/error use luminance. */
22
+ --success: #fafafa;
23
+ --warning: #d4d4d4;
24
+ --error: rgba(255,255,255,0.55);
25
+
26
+ --border: rgba(255,255,255,0.10);
27
+ --border-strong: rgba(255,255,255,0.16);
28
+ --input-border: rgba(255,255,255,0.15);
29
+ --glass: rgba(255,255,255,0.04);
30
+ --glass-strong: rgba(255,255,255,0.07);
31
+ --shadow: 0 4px 12px rgba(0,0,0,0.6);
32
+ --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
33
+ --radius: 10px;
34
+ --radius-md: 8px;
35
+ --radius-sm: 6px;
36
+ }
37
+
38
+ * {
39
+ margin: 0;
40
+ padding: 0;
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ body {
45
+ font-family: 'Zen', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
46
+ background: var(--bg-primary);
47
+ color: var(--text-primary);
48
+ font-size: 13px;
49
+ line-height: 1.6;
50
+ overflow: hidden;
51
+ width: 100%;
52
+ height: 100vh;
53
+ -webkit-font-smoothing: antialiased;
54
+ -moz-osx-font-smoothing: grayscale;
55
+ }
56
+
57
+ html {
58
+ overflow: hidden;
59
+ height: 100vh;
60
+ }
61
+
62
+ .hidden { display: none !important; }
63
+
64
+ /* ==================== Shimmer Keyframes ==================== */
65
+
66
+ @keyframes shimmer {
67
+ 0% { background-position: -200% 0; }
68
+ 100% { background-position: 200% 0; }
69
+ }
70
+
71
+ @keyframes breathe {
72
+ 0%, 100% { opacity: 0.5; }
73
+ 50% { opacity: 1; }
74
+ }
75
+
76
+ @keyframes fadeIn {
77
+ from { opacity: 0; transform: translateY(4px); }
78
+ to { opacity: 1; transform: translateY(0); }
79
+ }
80
+
81
+ @keyframes slideUp {
82
+ from { transform: translateY(20px); opacity: 0; }
83
+ to { transform: translateY(0); opacity: 1; }
84
+ }
85
+
86
+ @keyframes typingBounce {
87
+ 0%, 60%, 100% { transform: translateY(0); }
88
+ 30% { transform: translateY(-4px); }
89
+ }
90
+
91
+ @keyframes glowPulse {
92
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
93
+ 50% { box-shadow: 0 0 12px 2px rgba(255,255,255,0.06); }
94
+ }
95
+
96
+ @keyframes pulse {
97
+ 0%, 100% { opacity: 1; }
98
+ 50% { opacity: 0.5; }
99
+ }
100
+
101
+ /* ==================== Layout ==================== */
102
+
103
+ .sidebar-container {
104
+ width: 100%;
105
+ min-width: 0;
106
+ height: 100vh;
107
+ display: flex;
108
+ flex-direction: column;
109
+ background: var(--bg-secondary);
110
+ border-left: 1px solid var(--border);
111
+ position: relative;
112
+ overflow: hidden;
113
+ }
114
+
115
+ /* Ambient glow behind sidebar */
116
+ .sidebar-container::before {
117
+ content: '';
118
+ position: absolute;
119
+ top: 0;
120
+ left: 0;
121
+ right: 0;
122
+ height: 200px;
123
+ background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%);
124
+ pointer-events: none;
125
+ z-index: 0;
126
+ }
127
+
128
+ /* ==================== Header ==================== */
129
+
130
+ .sidebar-header {
131
+ display: flex;
132
+ align-items: center;
133
+ justify-content: space-between;
134
+ padding: 12px 16px;
135
+ border-bottom: 1px solid var(--border);
136
+ background: rgba(0,0,0,0.6);
137
+ backdrop-filter: blur(20px) saturate(180%);
138
+ -webkit-backdrop-filter: blur(20px) saturate(180%);
139
+ flex-shrink: 0;
140
+ position: relative;
141
+ z-index: 10;
142
+ }
143
+
144
+ .brand {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 10px;
148
+ font-weight: 600;
149
+ font-size: 15px;
150
+ letter-spacing: -0.01em;
151
+ }
152
+
153
+ .logo {
154
+ width: 22px;
155
+ height: 22px;
156
+ color: var(--accent);
157
+ filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
158
+ transition: filter 0.3s ease;
159
+ }
160
+
161
+ .logo:hover {
162
+ filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
163
+ }
164
+
165
+ .header-right {
166
+ display: flex;
167
+ align-items: center;
168
+ gap: 8px;
169
+ }
170
+
171
+ .user-badge {
172
+ width: 28px;
173
+ height: 28px;
174
+ border-radius: 50%;
175
+ overflow: hidden;
176
+ cursor: pointer;
177
+ border: 1px solid var(--border);
178
+ transition: border-color 0.2s, box-shadow 0.2s;
179
+ }
180
+
181
+ .user-badge:hover {
182
+ border-color: var(--border-strong);
183
+ box-shadow: 0 0 8px rgba(255,255,255,0.08);
184
+ }
185
+
186
+ .header-avatar {
187
+ width: 100%;
188
+ height: 100%;
189
+ object-fit: cover;
190
+ }
191
+
192
+
193
+ /* ==================== Tab Bar ==================== */
194
+
195
+ .tab-bar {
196
+ display: flex;
197
+ border-bottom: 1px solid var(--border);
198
+ background: rgba(0,0,0,0.5);
199
+ backdrop-filter: blur(16px) saturate(180%);
200
+ -webkit-backdrop-filter: blur(16px) saturate(180%);
201
+ flex-shrink: 0;
202
+ position: relative;
203
+ z-index: 10;
204
+ }
205
+
206
+ .tab {
207
+ flex: 1;
208
+ padding: 10px 8px;
209
+ background: none;
210
+ border: none;
211
+ border-bottom: 2px solid transparent;
212
+ color: var(--text-secondary);
213
+ font-size: 13px;
214
+ font-weight: 500;
215
+ cursor: pointer;
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ gap: 4px;
220
+ transition: all 0.25s ease;
221
+ position: relative;
222
+ }
223
+
224
+ .tab:hover {
225
+ color: var(--text-primary);
226
+ background: var(--glass);
227
+ }
228
+
229
+ .tab.active {
230
+ color: var(--accent);
231
+ border-bottom-color: var(--accent);
232
+ }
233
+
234
+ /* Shimmer on active tab */
235
+ .tab.active::after {
236
+ content: '';
237
+ position: absolute;
238
+ bottom: -1px;
239
+ left: 20%;
240
+ right: 20%;
241
+ height: 1px;
242
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
243
+ animation: shimmer 3s infinite linear;
244
+ background-size: 200% 100%;
245
+ }
246
+
247
+ /* ==================== Tab Content ==================== */
248
+
249
+ .tab-content {
250
+ flex: 1;
251
+ min-height: 0;
252
+ display: flex;
253
+ flex-direction: column;
254
+ overflow: hidden;
255
+ animation: fadeIn 0.2s ease;
256
+ }
257
+
258
+ .tools-scroll,
259
+ .settings-scroll {
260
+ flex: 1;
261
+ min-height: 0;
262
+ overflow-y: auto;
263
+ padding-bottom: 8px;
264
+ overflow-x: hidden;
265
+ padding: 16px;
266
+ display: flex;
267
+ flex-direction: column;
268
+ gap: 16px;
269
+ scrollbar-width: thin;
270
+ scrollbar-color: rgba(255,255,255,0.08) transparent;
271
+ }
272
+
273
+
274
+ /* ==================== Chat ==================== */
275
+
276
+ /* The chat tab is one mount node; the shell fills it. */
277
+ #chat {
278
+ flex: 1;
279
+ min-height: 0;
280
+ display: flex;
281
+ flex-direction: column;
282
+ }
283
+
284
+ /* Prose inside an assistant turn. The shell renders the turn; markdown is the
285
+ surface's own pipeline, so this is its stylesheet — the same rules the new
286
+ tab uses, at the sidebar's size. */
287
+ .markdown { font-size: 13px; line-height: 1.55; color: var(--text-primary); }
288
+ .markdown > *:last-child { margin-bottom: 0; }
289
+ .markdown h2 { font-size: 15px; margin: 14px 0 6px; font-weight: 600; }
290
+ .markdown h3 { font-size: 14px; margin: 12px 0 6px; font-weight: 600; }
291
+ .markdown h4, .markdown h5 { font-size: 13px; margin: 10px 0 4px; font-weight: 600; }
292
+ .markdown p { margin: 0 0 8px; }
293
+ .markdown ul, .markdown ol { margin: 0 0 8px; padding-left: 20px; }
294
+ .markdown li { margin: 3px 0; }
295
+ .markdown a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
296
+ .markdown code {
297
+ font-family: 'Zen Mono', 'Monaco', 'Consolas', monospace;
298
+ font-size: 12px;
299
+ background: rgba(255,255,255,0.06);
300
+ padding: 2px 5px;
301
+ border-radius: 3px;
302
+ }
303
+
304
+ /* ==================== Buttons ==================== */
305
+
306
+ .icon-btn {
307
+ width: 32px;
308
+ height: 32px;
309
+ display: flex;
310
+ align-items: center;
311
+ justify-content: center;
312
+ background: transparent;
313
+ border: none;
314
+ border-radius: var(--radius-sm);
315
+ color: var(--text-secondary);
316
+ cursor: pointer;
317
+ transition: all 0.2s;
318
+ }
319
+
320
+ .icon-btn:hover {
321
+ background: var(--glass-strong);
322
+ color: var(--text-primary);
323
+ }
324
+
325
+ .icon-btn.small {
326
+ width: 24px;
327
+ height: 24px;
328
+ }
329
+
330
+ .icon-btn svg {
331
+ width: 18px;
332
+ height: 18px;
333
+ }
334
+
335
+ .settings-scroll > .primary-btn {
336
+ margin-top: 4px;
337
+ margin-bottom: 12px;
338
+ flex-shrink: 0;
339
+ }
340
+
341
+ .primary-btn {
342
+ width: 100%;
343
+ padding: 10px 16px;
344
+ background: var(--accent);
345
+ color: #000000;
346
+ border: none;
347
+ border-radius: var(--radius-md);
348
+ font-weight: 600;
349
+ font-size: 13px;
350
+ cursor: pointer;
351
+ transition: all 0.25s ease;
352
+ position: relative;
353
+ overflow: hidden;
354
+ }
355
+
356
+ /* Shimmer sweep on primary buttons */
357
+ .primary-btn::after {
358
+ content: '';
359
+ position: absolute;
360
+ top: 0;
361
+ left: -100%;
362
+ width: 100%;
363
+ height: 100%;
364
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
365
+ transition: left 0.5s ease;
366
+ }
367
+
368
+ .primary-btn:hover {
369
+ background: var(--accent-hover);
370
+ box-shadow: 0 0 16px rgba(255,255,255,0.12);
371
+ }
372
+
373
+ .primary-btn:hover::after {
374
+ left: 100%;
375
+ }
376
+
377
+ .primary-btn:disabled {
378
+ opacity: 0.4;
379
+ cursor: not-allowed;
380
+ }
381
+
382
+ .secondary-btn {
383
+ width: 100%;
384
+ padding: 8px 16px;
385
+ background: var(--bg-tertiary);
386
+ color: var(--text-primary);
387
+ border: 1px solid var(--border);
388
+ border-radius: var(--radius-md);
389
+ font-size: 12px;
390
+ font-family: inherit;
391
+ cursor: pointer;
392
+ transition: all 0.2s;
393
+ }
394
+
395
+ .secondary-btn:hover {
396
+ background: var(--bg-hover);
397
+ border-color: var(--border-strong);
398
+ }
399
+
400
+ .action-btn {
401
+ flex: 1;
402
+ display: flex;
403
+ align-items: center;
404
+ justify-content: center;
405
+ gap: 8px;
406
+ padding: 10px;
407
+ background: var(--bg-tertiary);
408
+ border: 1px solid var(--border);
409
+ border-radius: var(--radius-md);
410
+ color: var(--text-primary);
411
+ font-size: 12px;
412
+ font-weight: 500;
413
+ font-family: inherit;
414
+ cursor: pointer;
415
+ transition: all 0.25s ease;
416
+ }
417
+
418
+ .action-btn:hover {
419
+ background: var(--bg-hover);
420
+ border-color: var(--border-strong);
421
+ }
422
+
423
+ .action-btn svg {
424
+ width: 16px;
425
+ height: 16px;
426
+ }
427
+
428
+ /* ==================== Glass Panels ==================== */
429
+
430
+ .panel {
431
+ background: var(--bg-tertiary);
432
+ border: 1px solid var(--border);
433
+ border-radius: var(--radius);
434
+ padding: 16px;
435
+ transition: border-color 0.3s;
436
+ position: relative;
437
+ overflow: visible;
438
+ }
439
+
440
+ /* Subtle top highlight on glass panels */
441
+ .panel::before {
442
+ content: '';
443
+ position: absolute;
444
+ top: 0;
445
+ left: 0;
446
+ right: 0;
447
+ height: 1px;
448
+ background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.08) 50%, transparent 90%);
449
+ }
450
+
451
+ .panel:hover {
452
+ border-color: var(--border-strong);
453
+ }
454
+
455
+ .panel h3 {
456
+ font-size: 11px;
457
+ font-weight: 600;
458
+ color: var(--text-secondary);
459
+ margin-bottom: 12px;
460
+ text-transform: uppercase;
461
+ letter-spacing: 0.5px;
462
+ }
463
+
464
+ .panel-header {
465
+ display: flex;
466
+ align-items: center;
467
+ justify-content: space-between;
468
+ margin-bottom: 12px;
469
+ }
470
+
471
+ .badge {
472
+ background: var(--accent-dim);
473
+ color: var(--accent);
474
+ padding: 2px 8px;
475
+ border-radius: var(--radius);
476
+ font-size: 11px;
477
+ font-weight: 600;
478
+ }
479
+
480
+ /* Status Rows */
481
+ .status-row {
482
+ display: flex;
483
+ justify-content: space-between;
484
+ align-items: center;
485
+ padding: 8px 0;
486
+ border-bottom: 1px solid var(--border);
487
+ }
488
+
489
+ .status-row:last-child { border-bottom: none; }
490
+
491
+ .status-row span:first-child {
492
+ color: var(--text-secondary);
493
+ font-size: 12px;
494
+ }
495
+
496
+ .status-value {
497
+ display: flex;
498
+ align-items: center;
499
+ gap: 6px;
500
+ font-size: 12px;
501
+ font-weight: 500;
502
+ }
503
+
504
+ .status-indicator {
505
+ width: 8px;
506
+ height: 8px;
507
+ border-radius: 50%;
508
+ background: var(--text-tertiary);
509
+ transition: all 0.3s;
510
+ }
511
+
512
+ .status-indicator.connected {
513
+ background: var(--success);
514
+ box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
515
+ animation: glowPulse 3s infinite;
516
+ }
517
+
518
+ .status-indicator.warning {
519
+ background: var(--warning);
520
+ box-shadow: 0 0 8px rgba(255, 193, 7, 0.2);
521
+ }
522
+
523
+ .status-indicator.disconnected {
524
+ background: var(--error);
525
+ box-shadow: 0 0 8px rgba(244, 67, 54, 0.2);
526
+ }
527
+
528
+ .mono {
529
+ font-family: 'Zen Mono', 'Monaco', 'Consolas', monospace;
530
+ font-size: 11px;
531
+ }
532
+
533
+ .service-actions {
534
+ display: flex;
535
+ gap: 8px;
536
+ margin-top: 12px;
537
+ }
538
+
539
+ .action-btn.small {
540
+ padding: 6px 10px;
541
+ font-size: 11px;
542
+ gap: 4px;
543
+ }
544
+
545
+ .action-btn.small svg {
546
+ width: 10px;
547
+ height: 10px;
548
+ }
549
+
550
+ /* Element Inspector Panel */
551
+ .inspector-panel {
552
+ background: var(--bg-secondary);
553
+ border-color: var(--border-strong);
554
+ }
555
+
556
+ .inspector-actions {
557
+ display: flex;
558
+ gap: 6px;
559
+ }
560
+
561
+ .inspector-btn {
562
+ flex: 1;
563
+ padding: 8px 6px;
564
+ font-size: 11px;
565
+ gap: 4px;
566
+ justify-content: center;
567
+ border-radius: var(--radius-sm);
568
+ background: var(--glass-strong);
569
+ border: 1px solid var(--border);
570
+ color: var(--text-primary);
571
+ cursor: pointer;
572
+ display: flex;
573
+ align-items: center;
574
+ transition: all 0.2s;
575
+ }
576
+
577
+ .inspector-btn:hover {
578
+ background: var(--bg-hover);
579
+ border-color: var(--border-strong);
580
+ }
581
+
582
+ .inspector-btn.active {
583
+ background: rgba(255,255,255,0.12);
584
+ border-color: var(--accent);
585
+ box-shadow: 0 0 8px rgba(255,255,255,0.1);
586
+ }
587
+
588
+ .inspector-btn svg {
589
+ width: 14px;
590
+ height: 14px;
591
+ flex-shrink: 0;
592
+ }
593
+
594
+ .inspector-result {
595
+ margin-top: 8px;
596
+ padding: 8px;
597
+ background: var(--bg-primary);
598
+ border: 1px solid var(--border);
599
+ border-radius: var(--radius-sm);
600
+ font-size: 11px;
601
+ font-family: 'Zen Mono', 'Monaco', 'Consolas', monospace;
602
+ color: var(--text-secondary);
603
+ max-height: 200px;
604
+ overflow-y: auto;
605
+ scrollbar-width: thin;
606
+ scrollbar-color: rgba(255,255,255,0.08) transparent;
607
+ white-space: pre-wrap;
608
+ word-break: break-all;
609
+ }
610
+
611
+ /* Element-syntax tinting — kept monochrome via opacity, not hue. */
612
+ .inspector-result .element-tag {
613
+ color: #fafafa;
614
+ font-weight: 600;
615
+ }
616
+
617
+ .inspector-result .element-id {
618
+ color: rgba(255,255,255,0.78);
619
+ }
620
+
621
+ .inspector-result .element-class {
622
+ color: rgba(255,255,255,0.62);
623
+ }
624
+
625
+ .inspector-result .element-size {
626
+ color: var(--text-tertiary);
627
+ }
628
+
629
+ .inspector-result .copy-line {
630
+ display: block;
631
+ cursor: pointer;
632
+ padding: 1px 4px;
633
+ border-radius: 3px;
634
+ transition: background 0.15s;
635
+ }
636
+
637
+ .inspector-result .copy-line:hover {
638
+ background: rgba(255, 255, 255, 0.08);
639
+ }
640
+
641
+ .inspector-result .copy-line.copied {
642
+ background: rgba(76, 175, 80, 0.15);
643
+ }
644
+
645
+ .inspector-result .info-label {
646
+ color: var(--text-tertiary);
647
+ user-select: none;
648
+ }
649
+
650
+ .inspector-result img {
651
+ max-width: 100%;
652
+ border-radius: 4px;
653
+ margin-top: 4px;
654
+ }
655
+
656
+ /* Build Info */
657
+ .build-info-panel .status-value.mono {
658
+ font-size: 11px;
659
+ }
660
+
661
+ .tool-list {
662
+ max-height: 200px;
663
+ overflow-y: auto;
664
+ font-size: 11px;
665
+ line-height: 1.4;
666
+ color: var(--text-tertiary);
667
+ font-family: 'Zen Mono', 'Monaco', 'Consolas', monospace;
668
+ white-space: pre-wrap;
669
+ word-break: break-all;
670
+ scrollbar-width: thin;
671
+ scrollbar-color: rgba(255,255,255,0.08) transparent;
672
+ }
673
+
674
+ .tool-category {
675
+ padding: 4px 0;
676
+ border-bottom: 1px solid var(--border);
677
+ }
678
+
679
+ .tool-category:last-child {
680
+ border-bottom: none;
681
+ }
682
+
683
+ .tool-category-name {
684
+ color: var(--text-secondary);
685
+ font-weight: 600;
686
+ font-family: inherit;
687
+ font-size: 10px;
688
+ text-transform: uppercase;
689
+ letter-spacing: 0.3px;
690
+ }
691
+
692
+ .tool-category-tools {
693
+ color: var(--text-tertiary);
694
+ font-size: 10px;
695
+ }
696
+
697
+ /* MCP Server List */
698
+ .mcp-server-list {
699
+ display: flex;
700
+ flex-direction: column;
701
+ gap: 6px;
702
+ }
703
+
704
+ .mcp-server-item {
705
+ display: flex;
706
+ align-items: center;
707
+ justify-content: space-between;
708
+ padding: 8px 10px;
709
+ background: var(--glass);
710
+ border: 1px solid var(--border);
711
+ border-radius: var(--radius-sm);
712
+ font-size: 12px;
713
+ transition: border-color 0.2s;
714
+ }
715
+
716
+ .mcp-server-item:hover {
717
+ border-color: var(--border-strong);
718
+ }
719
+
720
+ .mcp-server-info {
721
+ display: flex;
722
+ align-items: center;
723
+ gap: 8px;
724
+ min-width: 0;
725
+ }
726
+
727
+ .mcp-server-name {
728
+ font-weight: 500;
729
+ color: var(--text-primary);
730
+ white-space: nowrap;
731
+ overflow: hidden;
732
+ text-overflow: ellipsis;
733
+ }
734
+
735
+ .mcp-server-tools {
736
+ color: var(--text-tertiary);
737
+ font-size: 11px;
738
+ white-space: nowrap;
739
+ flex-shrink: 0;
740
+ }
741
+
742
+ /* ==================== User Profile ==================== */
743
+
744
+ .user-profile {
745
+ display: flex;
746
+ align-items: center;
747
+ gap: 12px;
748
+ }
749
+
750
+ .user-avatar {
751
+ width: 36px;
752
+ height: 36px;
753
+ border-radius: 50%;
754
+ background: var(--accent-dim);
755
+ border: 1px solid var(--border);
756
+ }
757
+
758
+ .user-details { flex: 1; }
759
+
760
+ .user-name {
761
+ font-weight: 600;
762
+ font-size: 13px;
763
+ }
764
+
765
+ .user-email {
766
+ color: var(--text-secondary);
767
+ font-size: 11px;
768
+ }
769
+
770
+ /* ==================== Agent List ==================== */
771
+
772
+ .agent-list {
773
+ display: flex;
774
+ flex-direction: column;
775
+ gap: 8px;
776
+ }
777
+
778
+ .agent-item {
779
+ display: flex;
780
+ align-items: center;
781
+ gap: 10px;
782
+ padding: 10px;
783
+ background: var(--glass);
784
+ border: 1px solid var(--border);
785
+ border-radius: var(--radius-sm);
786
+ transition: all 0.2s;
787
+ }
788
+
789
+ .agent-item:hover {
790
+ background: var(--glass-strong);
791
+ border-color: var(--border-strong);
792
+ }
793
+
794
+ .agent-icon {
795
+ width: 32px;
796
+ height: 32px;
797
+ background: var(--accent-dim);
798
+ border-radius: var(--radius-sm);
799
+ display: flex;
800
+ align-items: center;
801
+ justify-content: center;
802
+ color: var(--accent);
803
+ }
804
+
805
+ .agent-info { flex: 1; }
806
+ .agent-name { font-weight: 500; font-size: 13px; }
807
+ .agent-status { color: var(--text-secondary); font-size: 11px; }
808
+ .agent-actions { display: flex; gap: 4px; }
809
+
810
+ /* ==================== Tab Filesystem ==================== */
811
+
812
+ .tab-filesystem {
813
+ max-height: 240px;
814
+ overflow-y: auto;
815
+ font-family: 'Zen Mono', 'Monaco', 'Consolas', monospace;
816
+ font-size: 12px;
817
+ scrollbar-width: thin;
818
+ scrollbar-color: rgba(255,255,255,0.08) transparent;
819
+ }
820
+
821
+ .tab-item {
822
+ display: flex;
823
+ align-items: center;
824
+ gap: 6px;
825
+ padding: 6px 8px;
826
+ border-radius: 4px;
827
+ cursor: pointer;
828
+ transition: all 0.2s;
829
+ }
830
+
831
+ .tab-item:hover { background: var(--glass-strong); }
832
+
833
+ .tab-item.active {
834
+ background: var(--accent-dim);
835
+ color: var(--accent);
836
+ }
837
+
838
+ /* ==================== Settings ==================== */
839
+
840
+ .setting-item {
841
+ display: flex;
842
+ align-items: center;
843
+ justify-content: space-between;
844
+ gap: 8px;
845
+ padding: 8px 0;
846
+ }
847
+
848
+ .setting-item > span {
849
+ font-size: 12px;
850
+ color: var(--text-secondary);
851
+ white-space: nowrap;
852
+ flex-shrink: 0;
853
+ }
854
+
855
+ .setting-item input[type="text"],
856
+ .setting-item input[type="password"],
857
+ .setting-item select {
858
+ width: 140px;
859
+ padding: 6px 10px;
860
+ background: var(--bg-tertiary);
861
+ border: 1px solid var(--border);
862
+ border-radius: var(--radius-sm);
863
+ color: var(--text-primary);
864
+ font-size: 12px;
865
+ font-family: inherit;
866
+ transition: border-color 0.2s;
867
+ }
868
+
869
+ .setting-item select {
870
+ -webkit-appearance: none;
871
+ -moz-appearance: none;
872
+ appearance: none;
873
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23A0A0A0' stroke-width='1.5'/%3E%3C/svg%3E");
874
+ background-repeat: no-repeat;
875
+ background-position: right 8px center;
876
+ padding-right: 28px;
877
+ cursor: pointer;
878
+ }
879
+
880
+ .setting-item input:focus,
881
+ .setting-item select:focus {
882
+ border-color: var(--border-strong);
883
+ outline: none;
884
+ }
885
+
886
+ .setting-item-column {
887
+ flex-direction: column;
888
+ align-items: flex-start;
889
+ gap: 6px;
890
+ }
891
+
892
+ .setting-item-column input[type="text"],
893
+ .setting-item-column input[type="password"] {
894
+ width: 100%;
895
+ }
896
+
897
+ .setting-item input[type="number"] {
898
+ width: 70px;
899
+ padding: 6px 10px;
900
+ background: var(--bg-tertiary);
901
+ border: 1px solid var(--border);
902
+ border-radius: var(--radius-sm);
903
+ color: var(--text-primary);
904
+ font-size: 12px;
905
+ font-family: inherit;
906
+ -moz-appearance: textfield;
907
+ transition: border-color 0.2s;
908
+ }
909
+
910
+ .setting-item input[type="number"]::-webkit-inner-spin-button,
911
+ .setting-item input[type="number"]::-webkit-outer-spin-button {
912
+ opacity: 0.5;
913
+ }
914
+
915
+ .setting-item input[type="number"]:focus {
916
+ border-color: var(--border-strong);
917
+ outline: none;
918
+ }
919
+
920
+ .setting-item input[type="checkbox"] {
921
+ width: 16px;
922
+ height: 16px;
923
+ min-width: 16px;
924
+ cursor: pointer;
925
+ accent-color: var(--accent);
926
+ flex-shrink: 0;
927
+ }
928
+
929
+ /* Firefox: style option elements in dropdowns */
930
+ select option {
931
+ background: var(--bg-tertiary);
932
+ color: var(--text-primary);
933
+ padding: 4px 8px;
934
+ }
935
+
936
+ /* Color scheme hint for native widgets */
937
+ :root { color-scheme: dark; }
938
+
939
+ .settings-links {
940
+ display: flex;
941
+ justify-content: center;
942
+ gap: 16px;
943
+ padding: 8px 0;
944
+ }
945
+
946
+ .settings-links a {
947
+ color: var(--text-secondary);
948
+ font-size: 12px;
949
+ text-decoration: none;
950
+ transition: color 0.2s;
951
+ }
952
+
953
+ .settings-links a:hover {
954
+ color: var(--accent);
955
+ }
956
+
957
+ /* ==================== Actions ==================== */
958
+
959
+ .actions {
960
+ display: flex;
961
+ gap: 8px;
962
+ }
963
+
964
+ /* ==================== Empty State ==================== */
965
+
966
+ .empty-state {
967
+ text-align: center;
968
+ padding: 20px;
969
+ color: var(--text-tertiary);
970
+ font-size: 12px;
971
+ }
972
+
973
+ /* ==================== Notification ==================== */
974
+
975
+ .notification {
976
+ position: fixed;
977
+ bottom: 16px;
978
+ left: 16px;
979
+ right: 16px;
980
+ padding: 10px 16px;
981
+ background: var(--glass-strong);
982
+ backdrop-filter: blur(20px);
983
+ -webkit-backdrop-filter: blur(20px);
984
+ border: 1px solid var(--border);
985
+ border-radius: var(--radius-md);
986
+ color: var(--text-primary);
987
+ font-size: 12px;
988
+ text-align: center;
989
+ z-index: 200;
990
+ animation: slideUp 0.3s ease;
991
+ }
992
+
993
+ .notification.error {
994
+ background: var(--error);
995
+ border-color: var(--error);
996
+ }
997
+
998
+ /* ==================== Scrollbar ==================== */
999
+
1000
+ /* Firefox */
1001
+ * {
1002
+ scrollbar-width: thin;
1003
+ scrollbar-color: rgba(255,255,255,0.08) transparent;
1004
+ }
1005
+
1006
+ /* Chrome / Safari */
1007
+ ::-webkit-scrollbar { width: 5px; height: 5px; }
1008
+ ::-webkit-scrollbar-track { background: transparent; }
1009
+ ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
1010
+ ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
1011
+
1012
+ /* ==================== Loading ==================== */
1013
+
1014
+ .loading { animation: pulse 1.5s infinite; }
1015
+
1016
+ /* ==================== Footer ==================== */
1017
+
1018
+ .sidebar-footer {
1019
+ display: flex;
1020
+ align-items: center;
1021
+ justify-content: center;
1022
+ padding: 8px 16px;
1023
+ border-top: 1px solid var(--border);
1024
+ background: rgba(0,0,0,0.4);
1025
+ flex-shrink: 0;
1026
+ position: relative;
1027
+ z-index: 10;
1028
+ }
1029
+
1030
+ .footer-brand {
1031
+ display: flex;
1032
+ align-items: center;
1033
+ gap: 6px;
1034
+ color: var(--text-tertiary);
1035
+ text-decoration: none;
1036
+ font-size: 11px;
1037
+ transition: color 0.2s;
1038
+ }
1039
+
1040
+ .footer-brand:hover {
1041
+ color: var(--text-secondary);
1042
+ }
1043
+
1044
+ .footer-brand svg {
1045
+ opacity: 0.5;
1046
+ transition: opacity 0.2s;
1047
+ }
1048
+
1049
+ .footer-brand:hover svg {
1050
+ opacity: 0.8;
1051
+ }
1052
+
1053
+ /* ==================== Agent Launcher Modal ==================== */
1054
+
1055
+ .modal-overlay {
1056
+ position: fixed;
1057
+ top: 0;
1058
+ left: 0;
1059
+ right: 0;
1060
+ bottom: 0;
1061
+ background: rgba(0, 0, 0, 0.7);
1062
+ backdrop-filter: blur(8px);
1063
+ -webkit-backdrop-filter: blur(8px);
1064
+ display: flex;
1065
+ align-items: center;
1066
+ justify-content: center;
1067
+ z-index: 1000;
1068
+ animation: fadeIn 0.15s ease;
1069
+ }
1070
+
1071
+ .modal-content {
1072
+ background: var(--bg-secondary);
1073
+ border: 1px solid var(--border-strong);
1074
+ border-radius: var(--radius);
1075
+ width: calc(100% - 32px);
1076
+ max-width: 320px;
1077
+ overflow: hidden;
1078
+ box-shadow: var(--shadow-lg);
1079
+ backdrop-filter: blur(24px);
1080
+ -webkit-backdrop-filter: blur(24px);
1081
+ }
1082
+
1083
+ .modal-header {
1084
+ display: flex;
1085
+ align-items: center;
1086
+ justify-content: space-between;
1087
+ padding: 12px 16px;
1088
+ border-bottom: 1px solid var(--border);
1089
+ }
1090
+
1091
+ .modal-header h3 {
1092
+ margin: 0;
1093
+ font-size: 14px;
1094
+ font-weight: 600;
1095
+ color: var(--text-primary);
1096
+ }
1097
+
1098
+ .close-modal {
1099
+ background: none;
1100
+ border: none;
1101
+ color: var(--text-secondary);
1102
+ font-size: 20px;
1103
+ cursor: pointer;
1104
+ padding: 0 4px;
1105
+ line-height: 1;
1106
+ }
1107
+
1108
+ .close-modal:hover {
1109
+ color: var(--text-primary);
1110
+ }
1111
+
1112
+ .modal-body {
1113
+ padding: 16px;
1114
+ }
1115
+
1116
+ .modal-body textarea {
1117
+ width: 100%;
1118
+ background: var(--bg-tertiary);
1119
+ border: 1px solid var(--border);
1120
+ border-radius: var(--radius-sm);
1121
+ color: var(--text-primary);
1122
+ padding: 8px;
1123
+ font-family: inherit;
1124
+ font-size: 12px;
1125
+ resize: vertical;
1126
+ outline: none;
1127
+ }
1128
+
1129
+ .modal-body textarea:focus {
1130
+ border-color: var(--border-strong);
1131
+ }
1132
+
1133
+ .modal-footer {
1134
+ display: flex;
1135
+ gap: 8px;
1136
+ padding: 12px 16px;
1137
+ border-top: 1px solid var(--border);
1138
+ justify-content: flex-end;
1139
+ }
1140
+
1141
+ .cancel-modal {
1142
+ padding: 6px 16px;
1143
+ font-size: 12px;
1144
+ }
1145
+
1146
+ .launch-modal {
1147
+ padding: 6px 16px;
1148
+ font-size: 12px;
1149
+ }
1150
+
1151
+ /* ================================================================
1152
+ Usage & Billing
1153
+ ================================================================ */
1154
+
1155
+ .balance-card {
1156
+ background: var(--glass-strong);
1157
+ border: 1px solid var(--border);
1158
+ border-radius: var(--radius);
1159
+ padding: 10px 12px;
1160
+ margin-bottom: 10px;
1161
+ }
1162
+
1163
+ .balance-row {
1164
+ display: flex;
1165
+ justify-content: space-between;
1166
+ align-items: center;
1167
+ }
1168
+
1169
+ .balance-label {
1170
+ font-size: 10px;
1171
+ font-weight: 600;
1172
+ text-transform: uppercase;
1173
+ letter-spacing: 0.12em;
1174
+ color: var(--text-secondary);
1175
+ }
1176
+
1177
+ .balance-amount {
1178
+ font-size: 20px;
1179
+ font-weight: 700;
1180
+ color: var(--text-primary);
1181
+ font-variant-numeric: tabular-nums;
1182
+ }
1183
+
1184
+ .balance-tier {
1185
+ margin-top: 4px;
1186
+ }
1187
+
1188
+ .tier-badge {
1189
+ display: inline-flex;
1190
+ align-items: center;
1191
+ padding: 2px 8px;
1192
+ border-radius: 999px;
1193
+ font-size: 10px;
1194
+ font-weight: 700;
1195
+ text-transform: uppercase;
1196
+ letter-spacing: 0.08em;
1197
+ background: rgba(255,255,255,0.06);
1198
+ color: var(--text-secondary);
1199
+ border: 1px solid var(--border);
1200
+ }
1201
+
1202
+ .badge-link {
1203
+ text-decoration: none;
1204
+ cursor: pointer;
1205
+ transition: background 0.15s;
1206
+ }
1207
+ .badge-link:hover {
1208
+ background: var(--glass-strong);
1209
+ }
1210
+
1211
+ /* Usage bar system */
1212
+ .usage-meters {
1213
+ display: flex;
1214
+ flex-direction: column;
1215
+ gap: 8px;
1216
+ }
1217
+
1218
+ .usage-meter-header {
1219
+ display: flex;
1220
+ justify-content: space-between;
1221
+ align-items: center;
1222
+ font-size: 11px;
1223
+ color: var(--text-secondary);
1224
+ margin-bottom: 3px;
1225
+ }
1226
+
1227
+ .usage-meter-header .mono {
1228
+ font-family: 'Zen Mono', monospace;
1229
+ font-size: 11px;
1230
+ color: var(--text-primary);
1231
+ }
1232
+
1233
+ .usage-bar-track {
1234
+ width: 100%;
1235
+ height: 6px;
1236
+ border-radius: 3px;
1237
+ background: rgba(255,255,255,0.06);
1238
+ overflow: hidden;
1239
+ }
1240
+
1241
+ .usage-bar-fill {
1242
+ height: 100%;
1243
+ border-radius: 3px;
1244
+ transition: width 0.5s ease-out;
1245
+ min-width: 0;
1246
+ }
1247
+
1248
+ /* Usage bars: monochrome scale (brightest → dimmest) per @hanzo/brand.
1249
+ Class names kept for compatibility with existing markup. */
1250
+ .bar-blue { background: rgba(255,255,255,0.95); }
1251
+ .bar-violet { background: rgba(255,255,255,0.75); }
1252
+ .bar-emerald { background: rgba(255,255,255,0.55); }
1253
+ .bar-amber { background: rgba(255,255,255,0.40); }
1254
+ .bar-red { background: rgba(255,255,255,0.25); }
1255
+
1256
+ .usage-bar-group {
1257
+ margin-top: 8px;
1258
+ }
1259
+
1260
+ .usage-bar-labels {
1261
+ display: flex;
1262
+ justify-content: space-between;
1263
+ font-size: 10px;
1264
+ color: var(--text-tertiary);
1265
+ margin-top: 2px;
1266
+ }
1267
+
1268
+ .usage-meta {
1269
+ display: flex;
1270
+ gap: 6px;
1271
+ align-items: center;
1272
+ font-size: 10px;
1273
+ color: var(--text-tertiary);
1274
+ margin-top: 8px;
1275
+ padding-top: 6px;
1276
+ border-top: 1px solid var(--border);
1277
+ }
1278
+
1279
+ /* Model Hub */
1280
+ .model-hub-list {
1281
+ max-height: 200px;
1282
+ overflow-y: auto;
1283
+ margin-bottom: 8px;
1284
+ }
1285
+
1286
+ .model-hub-item {
1287
+ display: flex;
1288
+ justify-content: space-between;
1289
+ align-items: center;
1290
+ padding: 6px 8px;
1291
+ border-radius: var(--radius-sm);
1292
+ cursor: pointer;
1293
+ transition: background 0.15s;
1294
+ gap: 8px;
1295
+ }
1296
+ .model-hub-item:hover {
1297
+ background: var(--glass-strong);
1298
+ }
1299
+
1300
+ .model-hub-item-info {
1301
+ flex: 1;
1302
+ min-width: 0;
1303
+ }
1304
+
1305
+ .model-hub-item-name {
1306
+ font-size: 12px;
1307
+ font-weight: 500;
1308
+ color: var(--text-primary);
1309
+ white-space: nowrap;
1310
+ overflow: hidden;
1311
+ text-overflow: ellipsis;
1312
+ }
1313
+
1314
+ .model-hub-item-meta {
1315
+ font-size: 10px;
1316
+ color: var(--text-tertiary);
1317
+ display: flex;
1318
+ gap: 6px;
1319
+ }
1320
+
1321
+ .model-hub-item-badge {
1322
+ font-size: 9px;
1323
+ padding: 1px 5px;
1324
+ border-radius: 4px;
1325
+ font-weight: 600;
1326
+ text-transform: uppercase;
1327
+ letter-spacing: 0.05em;
1328
+ white-space: nowrap;
1329
+ }
1330
+ .badge-cloud { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.92); }
1331
+ .badge-local { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78); }
1332
+ .badge-hub { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.65); }
1333
+
1334
+ .model-hub-actions {
1335
+ display: flex;
1336
+ gap: 6px;
1337
+ }
1338
+
1339
+ .model-search {
1340
+ flex: 1;
1341
+ background: var(--bg-tertiary);
1342
+ border: 1px solid var(--border);
1343
+ border-radius: var(--radius-sm);
1344
+ padding: 5px 8px;
1345
+ font-size: 11px;
1346
+ color: var(--text-primary);
1347
+ outline: none;
1348
+ }
1349
+ .model-search::placeholder { color: var(--text-tertiary); }
1350
+ .model-search:focus { border-color: var(--border-strong); }