Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1658 lines (1545 loc) · 108 KB
/
Copy pathindex.html
File metadata and controls
1658 lines (1545 loc) · 108 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Athva</title>
<link rel="icon" href="/src/assets/logo.png" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script type="module" src="/src/main.ts" defer></script>
<script type="module" src="/src/welcome-anim.ts" defer></script>
</head>
<body>
<div id="app">
<!-- ========== Welcome Page ========== -->
<div id="welcome-page" class="page">
<!-- Animated background particles -->
<canvas id="welcome-particles" class="welcome-particles"></canvas>
<!-- 3D floating orbs -->
<div class="welcome-orb welcome-orb-1"></div>
<div class="welcome-orb welcome-orb-2"></div>
<div class="welcome-orb welcome-orb-3"></div>
<div class="welcome-container">
<!-- LEFT PANEL -->
<div class="welcome-left">
<!-- Brand -->
<div class="brand" id="brand-block">
<div class="brand-icon-wrap">
<img src="/src/assets/logo.png" alt="Athva" class="brand-logo" />
</div>
<div class="brand-text">
<h1 class="brand-name">Athva</h1>
<p class="brand-tagline">Your AI-powered development environment.</p>
</div>
<span class="brand-version">v0.1.0</span>
</div>
<!-- Start Actions -->
<div class="start-section" id="start-section">
<h2 class="section-title">START</h2>
<button id="btn-open-folder" class="action-btn action-btn-primary">
<span class="action-btn-icon">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5V5.5A1.5 1.5 0 0 0 14.5 4H8.21l-1.6-1.6A1.5 1.5 0 0 0 5.55 2H1.5z"/></svg>
</span>
<span class="action-btn-label">Open Folder...</span>
<span class="action-btn-kbd">⌘O</span>
</button>
<button id="btn-create-project" class="action-btn">
<span class="action-btn-icon">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z"/></svg>
</span>
<span class="action-btn-label">Create New Project...</span>
<span class="action-btn-kbd">⌘N</span>
</button>
<button id="btn-clone-repo" class="action-btn">
<span class="action-btn-icon">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z"/></svg>
</span>
<span class="action-btn-label">Clone Repository...</span>
<span class="action-btn-kbd">⌘⌥G</span>
</button>
<button id="btn-new-window" class="action-btn">
<span class="action-btn-icon">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 1h13A1.5 1.5 0 0 1 16 2.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 13.5v-11A1.5 1.5 0 0 1 1.5 1zM1 2.5v11a.5.5 0 0 0 .5.5H5v-12H1.5a.5.5 0 0 0-.5.5zm5-1v12h8.5a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5H6z"/></svg>
</span>
<span class="action-btn-label">New Window</span>
<span class="action-btn-kbd">⌘⇧N</span>
</button>
</div>
<!-- Quick Access -->
<div class="quick-access-section" id="quick-access-section">
<h2 class="section-title">QUICK ACCESS</h2>
<button class="quick-link" id="btn-command-palette-welcome">
<span class="quick-link-label">Command Palette</span>
<span class="action-btn-kbd">⌘K</span>
</button>
<button class="quick-link" id="btn-search-files-welcome">
<span class="quick-link-label">Search in Files</span>
<span class="action-btn-kbd">⌘⇧F</span>
</button>
<button class="quick-link" id="btn-toggle-terminal-welcome">
<span class="quick-link-label">Toggle Terminal</span>
<span class="action-btn-kbd">⌘`</span>
</button>
</div>
</div>
<!-- RIGHT PANEL: Recent Projects -->
<div class="welcome-right" id="welcome-right-block">
<div class="recent-header">
<h2 class="section-title">RECENT PROJECTS</h2>
<div class="recent-filter-wrap">
<svg width="13" height="13" viewBox="0 0 16 16" fill="currentColor" class="recent-filter-icon"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z"/></svg>
<input id="recent-filter-input" class="recent-filter" type="text" placeholder="Filter..." autocomplete="off" spellcheck="false" />
</div>
</div>
<div id="recent-projects" class="recent-list">
<p class="empty-state">No recent projects</p>
</div>
</div>
</div>
</div>
<!-- ========== Clone Repository Dialog ========== -->
<div id="clone-dialog" class="dialog-overlay hidden">
<div class="dialog dialog-clone">
<div class="clone-dialog-header">
<div class="clone-dialog-icon">
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z"/></svg>
</div>
<div>
<h2>Clone Repository</h2>
<p class="clone-dialog-subtitle">Clone a remote Git repository to your machine</p>
</div>
</div>
<!-- Form (shown initially) -->
<div id="clone-form">
<div class="dialog-field">
<label for="clone-url-input">Repository URL</label>
<input id="clone-url-input" type="text" placeholder="https://github.com/user/repo.git" autocomplete="off" spellcheck="false" />
</div>
<div class="dialog-field">
<label for="clone-dest-input">Destination Path</label>
<div class="path-input-row">
<input id="clone-dest-input" type="text" placeholder="/path/to/clone/into" autocomplete="off" spellcheck="false" />
<button id="btn-browse-clone-dest" class="btn-secondary">Browse</button>
</div>
<p class="hint">The repository folder will be created inside this path.</p>
</div>
<div class="dialog-actions">
<button id="btn-cancel-clone" class="btn-secondary">Cancel</button>
<button id="btn-confirm-clone" class="btn-primary">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z"/></svg>
Clone
</button>
</div>
</div>
<!-- Progress (shown during clone) -->
<div id="clone-progress" class="hidden">
<div class="clone-progress-bar-wrap">
<div id="clone-progress-bar" class="clone-progress-bar"></div>
</div>
<pre id="clone-output" class="clone-output"></pre>
<div class="dialog-actions">
<button id="btn-cancel-clone-progress" class="btn-secondary">Cancel</button>
<button id="btn-open-cloned" class="btn-primary hidden">Open Project</button>
</div>
</div>
</div>
</div>
<!-- ========== Create Project Dialog ========== -->
<div id="create-dialog" class="dialog-overlay hidden">
<div class="dialog">
<h2>Create New Project</h2>
<div class="dialog-field">
<label for="project-path-input">Project Path</label>
<div class="path-input-row">
<input id="project-path-input" type="text" placeholder="/path/to/your/project" />
<button id="btn-browse-path" class="btn-secondary">Browse</button>
</div>
<p class="hint">The folder name will be used as the project name.</p>
</div>
<div class="dialog-actions">
<button id="btn-cancel-create" class="btn-secondary">Cancel</button>
<button id="btn-confirm-create" class="btn-primary">Create</button>
</div>
</div>
</div>
<!-- ========== Project Switcher (Ctrl+R) ========== -->
<div id="project-switcher-overlay" class="project-switcher-overlay hidden" role="dialog" aria-modal="true" aria-label="Switch project">
<div class="project-switcher">
<div class="project-switcher-search">
<svg class="project-switcher-icon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5V5.5A1.5 1.5 0 0 0 14.5 4H8.21l-1.6-1.6A1.5 1.5 0 0 0 5.55 2H1.5z"/></svg>
<input id="project-switcher-input" type="text" placeholder="Search recent projects…" autocomplete="off" spellcheck="false" aria-label="Search projects" />
<span class="project-switcher-esc">ESC</span>
</div>
<div id="project-switcher-list" class="project-switcher-list" role="listbox"></div>
<div class="project-switcher-footer">
<span><kbd>↑↓</kbd> navigate</span>
<span><kbd>↵</kbd> open</span>
<span><kbd>⌘↵</kbd> new window</span>
<span><kbd>Esc</kbd> close</span>
</div>
</div>
</div>
<!-- ========== Input Dialog (reusable prompt/confirm) ========== -->
<div id="input-dialog" class="dialog-overlay hidden">
<div class="dialog dialog-sm">
<h2 id="input-dialog-title">Title</h2>
<textarea id="input-dialog-field" class="input-dialog-field" placeholder="" rows="3" autocomplete="off" spellcheck="false"></textarea>
<div class="dialog-actions">
<button id="input-dialog-cancel" class="btn-secondary">Cancel</button>
<button id="input-dialog-ok" class="btn-primary">OK</button>
</div>
</div>
</div>
<!-- ========== Confirm Dialog ========== -->
<div id="confirm-dialog" class="dialog-overlay hidden">
<div class="dialog dialog-sm">
<h2 id="confirm-dialog-title">Confirm</h2>
<p id="confirm-dialog-message" class="confirm-msg"></p>
<div class="dialog-actions">
<button id="confirm-dialog-cancel" class="btn-secondary">Cancel</button>
<button id="confirm-dialog-ok" class="btn-primary btn-danger">Delete</button>
</div>
</div>
</div>
<!-- ========== App Unlock Dialog ========== -->
<div id="unlock-dialog" class="dialog-overlay hidden">
<div class="dialog unlock-dialog-card">
<div class="unlock-dialog-header">
<div class="unlock-icon-wrap">
<svg class="unlock-lock-icon" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
<path d="M7 11V7a5 5 0 0 1 10 0v4"/>
</svg>
</div>
<div>
<h2 id="unlock-dialog-title" class="unlock-dialog-title">Unlock</h2>
<p id="unlock-dialog-message" class="unlock-dialog-subtitle">Enter your credentials to continue.</p>
</div>
</div>
<div id="unlock-pin-field" class="unlock-pin-wrap">
<label class="unlock-pin-label" for="unlock-dialog-pin">PIN</label>
<input id="unlock-dialog-pin" class="unlock-pin-input" type="password" inputmode="numeric" autocomplete="one-time-code" placeholder="• • • •" />
</div>
<p id="unlock-dialog-error" class="unlock-error hidden"></p>
<div id="unlock-fp-hint" class="unlock-fp-hint hidden">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="unlock-fp-hint-icon">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" stroke-opacity="0.3"/>
<path d="M12 6c-1.1 0-2 .4-2.7 1.1M8 12c0-2.2 1.8-4 4-4s4 1.8 4 4M10 16.5c.6.3 1.3.5 2 .5"/>
<path d="M12 8v.01M8.5 14.5c.3 1 1 1.8 1.8 2.3"/>
</svg>
<span id="unlock-fp-hint-text">Waiting for Touch ID…</span>
</div>
<div class="unlock-dialog-actions">
<button id="unlock-dialog-cancel" class="btn-secondary">Cancel</button>
<button id="unlock-dialog-fingerprint" class="unlock-fp-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" stroke-opacity="0.4"/>
<path d="M12 6c-1.1 0-2 .4-2.7 1.1M8 12c0-2.2 1.8-4 4-4s4 1.8 4 4M10 16.5c.6.3 1.3.5 2 .5"/>
<path d="M12 8v.01M8.5 14.5c.3 1 1 1.8 1.8 2.3"/>
</svg>
Touch ID
</button>
<button id="unlock-dialog-ok" class="btn-primary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="11" width="18" height="11" rx="2"/>
<path d="M7 11V7a5 5 0 0 1 9.9-1"/>
</svg>
Unlock
</button>
</div>
</div>
</div>
<!-- ========== Set PIN Dialog ========== -->
<div id="set-pin-dialog" class="dialog-overlay hidden">
<div class="dialog dialog-sm">
<h2>Set PIN</h2>
<div class="dialog-field">
<label for="set-pin-new">New PIN</label>
<input id="set-pin-new" type="password" inputmode="numeric" autocomplete="new-password" placeholder="••••" />
</div>
<div class="dialog-field">
<label for="set-pin-confirm">Confirm PIN</label>
<input id="set-pin-confirm" type="password" inputmode="numeric" autocomplete="new-password" placeholder="••••" />
<p id="set-pin-error" class="hint hidden"></p>
</div>
<div class="dialog-actions">
<button id="set-pin-cancel" class="btn-secondary">Cancel</button>
<button id="set-pin-ok" class="btn-primary">Save PIN</button>
</div>
</div>
</div>
<!-- ========== Script Runner Palette ========== -->
<div id="script-runner-overlay" class="quick-open-overlay hidden">
<div class="quick-open">
<div class="script-runner-header">Run Script</div>
<div id="script-runner-list" class="quick-open-results"></div>
</div>
</div>
<!-- ========== Quick Open Palette (Ctrl+P / Cmd+P) ========== -->
<div id="quick-open-overlay" class="quick-open-overlay hidden">
<div class="quick-open">
<input id="quick-open-input" class="quick-open-input" type="text" placeholder="Search files by name..." autocomplete="off" spellcheck="false" />
<div id="quick-open-results" class="quick-open-results"></div>
</div>
</div>
<!-- ========== Command Palette (Ctrl+Shift+P / Cmd+Shift+P) ========== -->
<div id="command-palette-overlay" class="quick-open-overlay hidden">
<div class="quick-open">
<input id="command-palette-input" class="quick-open-input" type="text" placeholder="Search extension commands…" autocomplete="off" spellcheck="false" />
<div id="command-palette-results" class="quick-open-results"></div>
</div>
</div>
<!-- ========== Global Toast ========== -->
<div id="global-toast" class="global-toast hidden"></div>
<!-- ========== Workspace Page ========== -->
<div id="workspace-page" class="page hidden">
<!-- Title bar -->
<div class="workspace-titlebar">
<div id="workspace-action-zone-top-left" class="titlebar-actions workspace-action-zone workspace-action-zone-title" data-action-zone="top-left"></div>
<button id="btn-back-home" class="btn-icon" title="Back to Home (Home Screen)" aria-label="Back to Home">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
</button>
<div class="titlebar-brand">
<img src="/src/assets/logo.png" alt="Athva" class="titlebar-logo" />
<div class="titlebar-brand-copy">
<span id="workspace-project-name" class="workspace-title"></span>
<span id="workspace-project-path" class="workspace-subtitle"></span>
</div>
</div>
<div id="workspace-action-zone-top-center" class="titlebar-actions workspace-action-zone workspace-action-zone-title" data-action-zone="top-center"></div>
<div id="workspace-action-zone-top-right" class="titlebar-actions workspace-action-zone" data-action-zone="top-right">
<div class="workspace-action-item" data-action-id="settings">
<button id="btn-settings" class="btn-icon" title="Settings" aria-label="Settings">
<!-- sliders-horizontal / gear -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="run-script">
<button id="btn-run-script" class="btn-icon" title="Run Script" aria-label="Run Script">
<!-- play circle -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="10 8 16 12 10 16 10 8"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="format">
<button id="btn-format" class="btn-icon" title="Format Document (Shift+Alt+F)" aria-label="Format Document">
<!-- wand / magic wand -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z"/><path d="m14 7 3 3"/><path d="M5 6v4"/><path d="M19 14v4"/><path d="M10 2v2"/><path d="M7 8H3"/><path d="M21 16h-4"/><path d="M11 3H9"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="ai-review">
<button id="btn-ai-review" class="btn-icon" title="AI Code Review" aria-label="AI Code Review">
<!-- shield check / sparkle review -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><polyline points="9 12 11 14 15 10"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="quality-panel">
<button id="btn-quality-panel" class="btn-icon" title="Code Quality" aria-label="Code Quality">
<!-- bar chart -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="extensions-panel">
<button id="btn-extensions-panel" class="btn-icon" title="Extensions" aria-label="Extensions">
<!-- 3 boxes + plus -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="7" height="7" rx="1"/>
<rect x="14" y="3" width="7" height="7" rx="1"/>
<rect x="3" y="14" width="7" height="7" rx="1"/>
<line x1="17.5" y1="14" x2="17.5" y2="21"/>
<line x1="14" y1="17.5" x2="21" y2="17.5"/>
</svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="snippets">
<button id="btn-toggle-snippets" class="btn-icon" title="Code Snippets" aria-label="Code Snippets">
<!-- code brackets with lines -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="api-requests">
<button id="btn-toggle-api-requests" class="btn-icon" title="API Requests" aria-label="API Requests">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6h11"/><path d="M8 12h11"/><path d="M8 18h11"/><path d="M3 6h.01"/><path d="M3 12h.01"/><path d="M3 18h.01"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="voice-call">
<button id="btn-toggle-voice-call" class="btn-icon" title="Voice Call" aria-label="Voice Call">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.18 2 2 0 0 1 3.6 1h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.54a16 16 0 0 0 6.07 6.07l.98-.98a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
</button>
</div>
<div class="titlebar-divider"></div>
<div class="workspace-action-item" data-action-id="source-control">
<button id="btn-toggle-scm" class="btn-icon btn-icon-badge" title="Source Control (Ctrl+Shift+G)" aria-label="Source Control">
<!-- git branch -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="3" x2="6" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></svg>
<span id="scm-badge" class="nav-badge hidden">0</span>
</button>
</div>
<div class="workspace-action-item" data-action-id="terminal">
<button id="btn-toggle-terminal" class="btn-icon" title="Toggle Terminal (Ctrl+`)" aria-label="Toggle Terminal">
<!-- terminal prompt -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="explorer">
<button id="btn-toggle-sidebar" class="btn-icon" title="Toggle Explorer (Cmd+B)" aria-label="Toggle Explorer">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16"/></svg>
</button>
</div>
<div class="workspace-action-item" data-action-id="chat">
<button id="btn-toggle-chat" class="btn-icon" title="Toggle AI Chat" aria-label="Toggle AI Chat">
<!-- sparkles / AI -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg>
</button>
</div>
<div class="workspace-action-item zen-toggle-item">
<button id="btn-toggle-zen" class="btn-icon" title="Toggle Zen Mode" aria-label="Toggle Zen Mode">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a9 9 0 1 0 9 9c0-.5-.04-1-.12-1.48A7 7 0 1 1 13.48 3.12 9.08 9.08 0 0 0 12 3z"/></svg>
</button>
</div>
</div>
</div>
<!-- Main workspace area -->
<div id="workspace-main" class="workspace-main">
<div id="workspace-action-zone-left-sidebar-strip" class="workspace-action-rail workspace-action-rail-left" data-action-zone="left-sidebar-strip"></div>
<!-- File Explorer Sidebar -->
<div id="sidebar" class="sidebar">
<div class="sidebar-header">
<span id="sidebar-title" class="sidebar-title">EXPLORER</span>
<div class="sidebar-view-tabs">
<button id="btn-refresh-explorer" class="sidebar-tab-btn" title="Refresh Explorer" aria-label="Refresh">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>
</button>
<button id="sidebar-tab-explorer" class="sidebar-tab-btn active" title="Explorer" aria-label="File Explorer">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
</button>
<button id="sidebar-tab-search" class="sidebar-tab-btn" title="Search in Files (Cmd+Shift+F)" aria-label="Search">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
</button>
</div>
</div>
<div id="file-tree" class="file-tree"></div>
<div id="explorer-info" class="explorer-info"></div>
<!-- Global Search Panel (hidden by default) -->
<div id="global-search-panel" class="global-search-panel hidden">
<div class="gs-inputs">
<div class="gs-input-row">
<input id="gs-query" class="gs-input" type="text" placeholder="Search" autocomplete="off" spellcheck="false" />
<button id="gs-case" class="gs-toggle" title="Match Case">Aa</button>
<button id="gs-regex" class="gs-toggle" title="Use Regular Expression">.*</button>
</div>
<div id="gs-replace-row" class="gs-input-row gs-replace-row hidden">
<input id="gs-replace" class="gs-input" type="text" placeholder="Replace" autocomplete="off" spellcheck="false" />
<button id="gs-replace-all-btn" class="gs-toggle" title="Replace All">All</button>
</div>
</div>
<div class="gs-toolbar">
<span id="gs-result-count" class="gs-result-count"></span>
<button id="gs-toggle-replace-btn" class="btn-icon btn-icon-sm" title="Toggle Replace">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"/></svg>
</button>
</div>
<div id="gs-results" class="gs-results"></div>
</div>
<div id="sidebar-time-widget" class="sidebar-time-widget">
<div class="sidebar-time-modes">
<button class="sidebar-time-mode active" data-mode="clock" type="button">Clock</button>
<button class="sidebar-time-mode" data-mode="stopwatch" type="button">Stopwatch</button>
<button class="sidebar-time-mode" data-mode="timer" type="button">Timer</button>
</div>
<div id="sidebar-time-display" class="sidebar-time-display">00:00:00</div>
<div id="sidebar-time-subtext" class="sidebar-time-subtext">--</div>
<div id="sidebar-timer-controls" class="sidebar-timer-controls hidden">
<input id="sidebar-timer-minutes" type="number" min="0" max="999" value="5" />
<span>min</span>
<input id="sidebar-timer-seconds" type="number" min="0" max="59" value="00" />
<span>sec</span>
</div>
<div class="sidebar-time-actions">
<button id="sidebar-time-start" class="sidebar-time-btn" type="button">Start</button>
<button id="sidebar-time-reset" class="sidebar-time-btn" type="button">Reset</button>
</div>
</div>
</div>
<!-- Sidebar resize handle -->
<div id="sidebar-resize" class="resize-handle-v"></div>
<!-- Left panel stack (panels moved here when their button is on the left sidebar strip) -->
<div id="left-panel-stack" class="left-panel-stack"></div>
<div id="docs-sidebar-panel" class="docs-sidebar-panel hidden">
<div class="docs-sidebar-header">
<div class="docs-sidebar-title-wrap">
<span class="docs-sidebar-title-kicker">DOCS</span>
<span id="docs-sidebar-title" class="docs-sidebar-title">DOCS</span>
</div>
<button id="btn-close-docs-sidebar" class="sidebar-tab-btn" title="Close Docs Sidebar" aria-label="Close Docs Sidebar">
<svg width="13" height="13" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
<div id="docs-pages-empty" class="docs-pages-empty">No pages found in this DOCS folder.</div>
<div id="docs-pages-list" class="docs-pages-list"></div>
</div>
<!-- Editor + Terminal vertical split -->
<div id="editor-area" class="editor-area">
<!-- Editor top section -->
<div id="editor-top" class="editor-top">
<!-- Tabs -->
<div id="editor-tabs" class="editor-tabs"></div>
<!-- Ace editor container -->
<div id="editor-container" class="editor-container">
<div id="editor-empty" class="editor-empty">
<div class="editor-empty-logo">
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><line x1="10" y1="9" x2="8" y2="9"/></svg>
</div>
<p class="editor-empty-title">No file open</p>
<p class="editor-empty-sub">Open a file from the Explorer or use a keyboard shortcut</p>
<div class="editor-empty-shortcuts">
<div class="editor-empty-shortcut">
<kbd>⌘P</kbd>
<span>Quick Open file</span>
</div>
<div class="editor-empty-shortcut">
<kbd>⌘⇧F</kbd>
<span>Search in files</span>
</div>
<div class="editor-empty-shortcut">
<kbd>⌘`</kbd>
<span>Toggle Terminal</span>
</div>
</div>
</div>
<div id="monaco-editor" class="monaco-editor-container"></div>
</div>
</div>
<!-- Terminal resize handle -->
<div id="terminal-resize" class="resize-handle-h hidden"></div>
<!-- Terminal panel -->
<div id="terminal-panel" class="terminal-panel hidden">
<div class="terminal-header">
<span class="terminal-header-title">TERMINAL</span>
<div class="terminal-header-actions">
<button id="btn-terminal-logs" class="btn-icon btn-icon-sm" title="Show IDE Logs">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M2 2.75A.75.75 0 0 1 2.75 2h10.5a.75.75 0 0 1 .75.75v8.5a.75.75 0 0 1-.75.75H8.31l-2.59 2.2a.5.5 0 0 1-.82-.38V12H2.75A.75.75 0 0 1 2 11.25v-8.5zm2.5 2.5h7a.5.5 0 0 0 0-1h-7a.5.5 0 0 0 0 1zm0 2.5h7a.5.5 0 0 0 0-1h-7a.5.5 0 0 0 0 1zm0 2.5h4.5a.5.5 0 0 0 0-1H4.5a.5.5 0 0 0 0 1z"/></svg>
</button>
<button id="btn-stop-terminal" class="btn-icon btn-icon-sm hidden" title="Stop Running Command">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><rect x="3" y="3" width="10" height="10" rx="1"/></svg>
</button>
<button id="btn-new-terminal" class="btn-icon btn-icon-sm" title="New Terminal">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z"/></svg>
</button>
<button id="btn-close-terminal" class="btn-icon btn-icon-sm" title="Close Terminal">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div id="xterm-container" class="xterm-container"></div>
</div>
</div>
<div id="workspace-action-zone-right-sidebar-strip" class="workspace-action-rail workspace-action-rail-right" data-action-zone="right-sidebar-strip"></div>
<!-- Snippets resize handle -->
<div id="snippets-resize" class="resize-handle-v hidden"></div>
<!-- Snippets Panel -->
<div id="snippets-panel" class="snippets-panel hidden">
<div class="snippets-header">
<span class="snippets-header-title">SNIPPETS</span>
<div class="snippets-header-actions">
<button id="btn-add-snippet" class="btn-icon btn-icon-sm" title="Add Snippet">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 3a.5.5 0 0 1 .5.5V7.5h4a.5.5 0 0 1 0 1h-4v4a.5.5 0 0 1-1 0v-4h-4a.5.5 0 0 1 0-1h4v-4A.5.5 0 0 1 8 3z"/></svg>
</button>
<button id="btn-close-snippets" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div class="snippets-tabs"></div>
<input class="snippets-search" type="text" placeholder="Search snippets..." autocomplete="off" spellcheck="false" />
<div class="snippets-compose hidden">
<div class="snippets-compose-grid">
<label class="snippets-compose-field">
<span>Language</span>
<select class="snippets-compose-category"></select>
</label>
<label class="snippets-compose-field">
<span>Scope</span>
<select class="snippets-compose-scope">
<option value="project">Project</option>
<option value="global">Global</option>
</select>
</label>
<label class="snippets-compose-field">
<span>Prefix</span>
<input class="snippets-compose-prefix" type="text" placeholder="apiFn" />
</label>
<label class="snippets-compose-field">
<span>Label</span>
<input class="snippets-compose-label" type="text" placeholder="API Function" />
</label>
</div>
<label class="snippets-compose-field">
<span>Description</span>
<input class="snippets-compose-description" type="text" placeholder="Shown in the snippets tab and autocomplete" />
</label>
<label class="snippets-compose-field">
<span>Body</span>
<textarea class="snippets-compose-body" rows="6" placeholder="function ${1:name}() {\n $0\n}"></textarea>
</label>
<div class="snippets-compose-footer">
<span class="snippets-compose-error"></span>
<div class="snippets-compose-actions">
<button id="btn-cancel-snippet" class="btn-secondary" type="button">Cancel</button>
<button id="btn-save-snippet" class="btn-primary" type="button">Save Snippet</button>
</div>
</div>
</div>
<div class="snippets-list"></div>
</div>
<!-- Voice Call Panel -->
<div id="voice-call-panel" class="voice-call-panel hidden">
<div class="voice-call-header">
<span class="voice-call-header-title">VOICE CALL</span>
<button id="btn-close-voice-call" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
<!-- Active call controls (hidden when idle) -->
<div class="voice-call-view hidden">
<div class="voice-call-status"></div>
<div class="voice-call-timer">00:00</div>
<div class="voice-call-controls">
<button id="btn-voice-mute" class="btn-icon voice-ctrl-btn" title="Mute">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/><line x1="8" y1="23" x2="16" y2="23"/></svg>
</button>
<button id="btn-voice-end" class="btn-icon voice-ctrl-btn voice-end-btn" title="End Call">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.42 19.42 0 0 1 3.07 12a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 2 1.18h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L6.3 8.69a16 16 0 0 0 4.38 4.62z"/></svg>
</button>
</div>
</div>
<!-- Incoming call modal (hidden by default) -->
<div class="voice-incoming-modal hidden">
<div class="voice-incoming-label">Incoming call from</div>
<div class="voice-incoming-name"></div>
<div class="voice-incoming-actions">
<button id="btn-voice-accept" class="btn-primary voice-accept-btn">Accept</button>
<button id="btn-voice-reject" class="btn-secondary voice-reject-btn">Reject</button>
</div>
</div>
<!-- Peers list -->
<div class="voice-peers-list"></div>
</div>
<!-- API Requests resize handle -->
<div id="api-requests-resize" class="resize-handle-v hidden"></div>
<!-- API Requests Panel -->
<div id="api-requests-panel" class="api-requests-panel hidden">
<div class="api-req-header">
<span class="api-req-header-title">API REQUESTS</span>
<div class="api-req-header-actions">
<button id="btn-refresh-api-env" class="btn-icon btn-icon-sm" title="Reload .env variables">↻</button>
<button id="btn-send-api-request" class="btn-primary btn-icon-sm" title="Send Request">Send</button>
<button id="btn-close-api-requests" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div class="api-req-top">
<div class="api-req-input-wrap">
<input class="api-req-name" type="text" placeholder="Request name" />
<button class="api-req-paste-btn" data-paste-target="name" title="Paste from clipboard" type="button"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="2" width="6" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg></button>
</div>
<div class="api-req-row">
<select class="api-req-method">
<option>GET</option><option>POST</option><option>PUT</option><option>PATCH</option><option>DELETE</option><option>HEAD</option><option>OPTIONS</option>
</select>
<div class="api-req-input-wrap">
<input class="api-req-url" type="text" placeholder="https://api.example.com/users/{{USER_ID}}" />
<button class="api-req-paste-btn" data-paste-target="url" title="Paste URL from clipboard" type="button"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="2" width="6" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg></button>
</div>
</div>
<div class="api-req-input-wrap">
<textarea class="api-req-vars" rows="2" placeholder="Project vars: KEY=value"></textarea>
<button class="api-req-paste-btn api-req-paste-btn-area" data-paste-target="vars" title="Paste vars from clipboard" type="button"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="2" width="6" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg></button>
</div>
<div class="api-req-env-preview"></div>
<div class="api-req-status"></div>
</div>
<div class="api-req-tabs" role="tablist">
<button class="api-req-tab active" data-api-tab="body" type="button">Body</button>
<button class="api-req-tab" data-api-tab="headers" type="button">Headers</button>
<button class="api-req-tab" data-api-tab="response" type="button">Response</button>
<button class="api-req-tab" data-api-tab="requests" type="button">Select Request</button>
</div>
<div class="api-req-tab-panels">
<section class="api-req-tab-panel active" data-api-panel="body">
<div class="api-req-editor" id="api-req-body-editor"></div>
</section>
<section class="api-req-tab-panel" data-api-panel="headers">
<div class="api-req-editor" id="api-req-headers-editor"></div>
</section>
<section class="api-req-tab-panel" data-api-panel="response">
<div class="api-req-response-meta"></div>
<div class="api-req-editor api-req-editor-readonly" id="api-req-response-editor"></div>
</section>
<section class="api-req-tab-panel" data-api-panel="requests">
<div class="api-req-history"></div>
</section>
</div>
</div>
<!-- Source Control resize handle -->
<div id="source-control-resize" class="resize-handle-v hidden"></div>
<!-- Source Control Panel -->
<div id="source-control-panel" class="scm-panel hidden">
<div class="scm-header">
<span class="scm-header-title">SOURCE CONTROL</span>
<div class="scm-header-actions">
<button id="btn-scm-graph" class="btn-icon btn-icon-sm" title="Git Graph" aria-label="Git Graph">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="6" r="2"/><circle cx="19" cy="6" r="2"/><circle cx="12" cy="18" r="2"/><path d="M5 8v2a4 4 0 0 0 4 4h2"/><path d="M19 8v2a4 4 0 0 1-4 4h-2"/><line x1="12" y1="14" x2="12" y2="16"/></svg>
</button>
<button id="btn-scm-contrib" class="btn-icon btn-icon-sm" title="GitHub Contribution Graph" aria-label="GitHub Contribution Graph">
<svg width="13" height="13" viewBox="0 0 16 16" fill="currentColor"><path d="M1.75 2A1.75 1.75 0 0 0 0 3.75v8.5C0 13.216.784 14 1.75 14h12.5A1.75 1.75 0 0 0 16 12.25v-8.5A1.75 1.75 0 0 0 14.25 2H1.75zm0 1h12.5c.414 0 .75.336.75.75v8.5a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75v-8.5c0-.414.336-.75.75-.75z"/><path d="M4 10h2V6H4v4zm3 0h2V4H7v6zm3 0h2V7h-2v3z"/></svg>
</button>
<button id="btn-scm-refresh" class="btn-icon btn-icon-sm" title="Refresh" aria-label="Refresh">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>
</button>
<button id="btn-close-scm" class="btn-icon btn-icon-sm" title="Close" aria-label="Close">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</div>
</div>
<!-- Commit input -->
<div class="scm-commit-area">
<div class="scm-commit-input-row">
<textarea id="scm-commit-input" class="scm-commit-input" placeholder="Commit message (Ctrl+Enter to commit)" rows="3" spellcheck="true"></textarea>
<button id="btn-scm-ai-msg" class="btn-icon btn-icon-sm scm-ai-btn" title="Generate commit message with AI" aria-label="AI Commit Message">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/></svg>
</button>
</div>
<button id="btn-scm-commit" class="btn-primary scm-commit-btn">Commit</button>
</div>
<!-- Sections wrapper (scrolls independently so diff view always has space) -->
<div class="scm-sections-body">
<!-- Staged Changes -->
<div class="scm-section">
<div id="scm-staged-header" class="scm-section-header">
<span class="scm-chevron">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>
</span>
<span class="scm-section-title">Staged Changes</span>
<span class="scm-section-count">0</span>
<button id="btn-scm-unstage-all" class="scm-section-action btn-icon btn-icon-sm" title="Unstage All">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"/></svg>
</button>
</div>
<div id="scm-staged-list" class="scm-file-list"></div>
</div>
<!-- Changes (unstaged) -->
<div class="scm-section">
<div id="scm-changes-header" class="scm-section-header">
<span class="scm-chevron">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>
</span>
<span class="scm-section-title">Changes</span>
<span class="scm-section-count">0</span>
<button id="btn-scm-stage-all" class="scm-section-action btn-icon btn-icon-sm" title="Stage All">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z"/></svg>
</button>
</div>
<div id="scm-changes-list" class="scm-file-list"></div>
</div>
</div><!-- end .scm-sections-body -->
<!-- Diff view -->
<div id="scm-diff-view" class="scm-diff-view hidden">
<div class="scm-diff-header">
<span id="scm-diff-title" class="scm-diff-title"></span>
<button class="btn-icon btn-icon-sm" onclick="document.getElementById('scm-diff-view').classList.add('hidden')" title="Close Diff">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
<div id="scm-diff-content" class="scm-diff-content"></div>
</div>
</div>
<!-- Code Review resize handle -->
<div id="review-resize" class="resize-handle-v hidden"></div>
<!-- Code Review Panel -->
<div id="review-panel" class="review-panel hidden">
<div class="review-header">
<div class="review-header-copy">
<span class="review-header-title">CODE REVIEWER</span>
<span id="review-subtitle" class="review-header-subtitle">Review the active file or current changes</span>
</div>
<div class="review-header-actions">
<button id="btn-review-refresh" class="btn-icon btn-icon-sm" title="Run Review">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.418A6 6 0 1 1 8 2v1z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/></svg>
</button>
<button id="btn-close-review" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div class="review-toolbar">
<button id="review-target-file" class="review-target-btn active" type="button">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4 1.75A1.75 1.75 0 0 1 5.75 0h2.379c.464 0 .91.184 1.238.513l2.12 2.12c.329.328.513.774.513 1.238v8.379A1.75 1.75 0 0 1 10.25 14h-4.5A1.75 1.75 0 0 1 4 12.25v-10.5zM8.75 1H5.75a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75V4H9.75A1.75 1.75 0 0 1 8 2.25V1h.75z"/></svg>
Current File
</button>
<button id="review-target-changes" class="review-target-btn" type="button">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M11.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5zm-2.25.75a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25zM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5zM3.5 3.25a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0z"/></svg>
Changes
</button>
</div>
<div id="review-status" class="review-status review-status-idle"></div>
<div class="review-body">
<div class="review-panel-title">
<span id="review-title">Code Review</span>
</div>
<div id="review-content" class="review-content"></div>
</div>
</div>
<!-- Quality Panel resize handle -->
<div id="quality-resize" class="resize-handle-v hidden"></div>
<!-- Quality Panel -->
<div id="quality-panel" class="quality-panel hidden">
<div class="quality-header">
<div class="quality-header-copy">
<span class="quality-header-title">QUALITY PANEL</span>
<span id="quality-subtitle" class="quality-header-subtitle">Static analysis for the current workspace</span>
</div>
<div class="quality-header-actions">
<button id="btn-quality-refresh" class="btn-icon btn-icon-sm" title="Run Quality Scan">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.418A6 6 0 1 1 8 2v1z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/></svg>
</button>
<button id="btn-quality-config" class="btn-icon btn-icon-sm" title="Set Ideal Config">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M9.669.864c.251-.805 1.411-.805 1.662 0l.13.417c.106.339.391.595.738.663l.427.084c.825.163 1.183 1.16.63 1.756l-.286.308a.884.884 0 0 0-.224.806l.066.425c.127.821-.746 1.455-1.489 1.08l-.384-.194a.884.884 0 0 0-.799 0l-.384.194c-.743.375-1.616-.259-1.489-1.08l.066-.425a.884.884 0 0 0-.224-.806l-.286-.308c-.553-.596-.195-1.593.63-1.756l.427-.084a.884.884 0 0 0 .738-.663l.13-.417z"/><path d="M2.5 7A2.5 2.5 0 0 0 0 9.5v4A2.5 2.5 0 0 0 2.5 16h8A2.5 2.5 0 0 0 13 13.5v-4A2.5 2.5 0 0 0 10.5 7h-8zm1.75 2a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 4.25 9zm2.75 0a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 7 9zm3.5.75a.75.75 0 0 0-1.5 0v3.5a.75.75 0 0 0 1.5 0v-3.5z"/></svg>
</button>
<button id="btn-quality-copy" class="btn-icon btn-icon-sm" title="Copy JSON Report" disabled>
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M10 1.75A1.75 1.75 0 0 0 8.25 0h-5.5A1.75 1.75 0 0 0 1 1.75v8.5C1 11.216 1.784 12 2.75 12H4v1.25C4 14.216 4.784 15 5.75 15h5.5A1.75 1.75 0 0 0 13 13.25v-8.5A1.75 1.75 0 0 0 11.25 3H10V1.75zm-1 1.25H5.75A1.75 1.75 0 0 0 4 4.75V11H2.75a.75.75 0 0 1-.75-.75v-8.5A.75.75 0 0 1 2.75 1h5.5a.75.75 0 0 1 .75.75V3zm3 1.75a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-8.5z"/></svg>
</button>
<button id="btn-quality-download" class="btn-icon btn-icon-sm" title="Download JSON Report" disabled>
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M.5 9.9a.5.5 0 0 1 .5.5v2.6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.6a.5.5 0 0 1 1 0v2.6A2 2 0 0 1 14 15H2a2 2 0 0 1-2-2.1v-2.5a.5.5 0 0 1 .5-.5z"/><path d="M7.646 10.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 1 0-.708-.708L8.5 9.293V1.5a.5.5 0 0 0-1 0v7.793L5.354 7.146a.5.5 0 1 0-.708.708l3 3z"/></svg>
</button>
<button id="btn-close-quality" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div id="quality-status" class="quality-status quality-status-idle"></div>
<div class="quality-body">
<div class="quality-panel-title">
<span id="quality-title">Quality Panel</span>
</div>
<div id="quality-content" class="quality-content"></div>
</div>
</div>
<!-- Extensions Panel resize handle -->
<div id="extensions-resize" class="resize-handle-v hidden"></div>
<!-- Extensions Panel -->
<div id="extensions-panel" class="extensions-panel hidden">
<div class="extensions-header">
<div class="extensions-header-copy">
<span class="extensions-header-title">EXTENSIONS</span>
<span id="extensions-subtitle" class="extensions-header-subtitle">Browse VSIX packages for this project</span>
</div>
<div class="extensions-header-actions">
<button id="btn-extensions-refresh" class="btn-icon btn-icon-sm" title="Refresh">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.418A6 6 0 1 1 8 2v1z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/></svg>
</button>
<button id="btn-close-extensions" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div class="extensions-toolbar">
<div class="extensions-tabs" role="tablist" aria-label="Extensions views">
<button id="extensions-tab-installed" class="extensions-tab active" type="button" data-extensions-tab="installed">Installed</button>
<button id="extensions-tab-updates" class="extensions-tab" type="button" data-extensions-tab="updates">Updates</button>
<button id="extensions-tab-recommended" class="extensions-tab" type="button" data-extensions-tab="recommended">Recommended</button>
<button id="extensions-tab-search" class="extensions-tab" type="button" data-extensions-tab="search">Search</button>
</div>
<input
id="extensions-search-input"
class="extensions-search-input"
type="text"
placeholder="Search extensions or leave empty for popular picks"
autocomplete="off"
spellcheck="false"
/>
<button id="btn-extensions-search" class="extensions-run-btn" type="button">Search</button>
</div>
<div id="extensions-status" class="extensions-status extensions-status-idle"></div>
<div class="extensions-body">
<div class="extensions-browser">
<section class="extensions-section">
<div class="extensions-section-header">
<h3 id="extensions-list-title">Installed in Athva</h3>
<span id="extensions-list-subtitle">global app store</span>
</div>
<div id="extensions-installed-list" class="extensions-list hidden"></div>
<div id="extensions-updates-list" class="extensions-list hidden"></div>
<div id="extensions-recommended-list" class="extensions-list hidden"></div>
<div id="extensions-results-list" class="extensions-list hidden"></div>
</section>
</div>
<aside id="extensions-detail" class="extensions-detail">
<div class="extensions-detail-empty">
<div class="extensions-empty-title">Select an extension</div>
<div class="extensions-empty-copy">Open an extension to inspect details, install it, or uninstall it.</div>
</div>
</aside>
</div>
</div>
<!-- Extension View Panel -->
<div id="ext-view-panel-resize" class="resize-handle-v hidden"></div>
<div id="ext-view-panel" class="extensions-panel hidden">
<div class="extensions-header">
<div class="extensions-header-copy">
<span id="ext-view-panel-title" class="extensions-header-title">EXTENSION VIEW</span>
</div>
<div class="extensions-header-actions">
<button id="btn-close-ext-view-panel" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<div id="ext-view-panel-body" class="extensions-body" style="padding:0;overflow:hidden;flex:1;"></div>
</div>
<!-- Chat panel resize handle -->
<div id="chat-resize" class="resize-handle-v hidden"></div>
<!-- AI Chat Panel -->
<div id="chat-panel" class="chat-panel hidden">
<div class="chat-header">
<span class="chat-header-title">AI Chat</span>
<div class="chat-header-actions">
<label class="chat-auto-approve-toggle" title="Auto approve agent tools">
<span>Auto</span>
<input id="chat-auto-approve" type="checkbox" />
</label>
<!-- Mode Toggle -->
<div id="chat-mode-toggle" class="chat-mode-toggle" title="Switch mode (Chat / Agent)">
<button class="mode-btn active" data-mode="chat">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M2.678 11.894a1 1 0 0 1 .287.801 10.97 10.97 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8.06 8.06 0 0 0 8 14c3.996 0 7-2.807 7-6s-3.004-6-7-6-7 2.808-7 6c0 1.468.617 2.83 1.678 3.894z"/></svg>
Chat
</button>
<button class="mode-btn" data-mode="agent">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M6 .5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1H9v1.07a7.001 7.001 0 0 1 3.274 12.474l.601.602a.5.5 0 0 1-.707.708l-.746-.746A6.97 6.97 0 0 1 8 16a6.97 6.97 0 0 1-3.422-.892l-.746.746a.5.5 0 0 1-.707-.708l.602-.602A7.001 7.001 0 0 1 7 2.07V1H6.5A.5.5 0 0 1 6 .5zM8 3a6 6 0 1 0 0 12A6 6 0 0 0 8 3zm0 2a.5.5 0 0 1 .5.5v3.793l2.354 2.353a.5.5 0 0 1-.708.708l-2.5-2.5A.5.5 0 0 1 7.5 8.5v-3A.5.5 0 0 1 8 5z"/></svg>
Agent
</button>
</div>
<button id="btn-edit-context" class="btn-icon btn-icon-sm" title="Open Contexts Workspace">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/></svg>
</button>
<button id="btn-new-chat" class="btn-icon btn-icon-sm" title="New Chat">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z"/></svg>
</button>
<button id="btn-close-chat" class="btn-icon btn-icon-sm" title="Close">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>
</button>
</div>
</div>
<!-- Agent mode banner -->
<div id="chat-agent-banner" class="chat-agent-banner hidden">
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.399l-.451.003.082-.381 1.966-.388h.32L8.93 6.588zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/></svg>