-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1502 lines (1391 loc) · 79.6 KB
/
Copy pathindex.html
File metadata and controls
1502 lines (1391 loc) · 79.6 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" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BioNeMo Lab by ZRT219</title>
<meta name="description" content="Real-time NVIDIA BioNeMo NIM pipeline dashboard. MSA Search → OpenFold2 protein structure prediction with live telemetry and audit trail." />
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<script src="/outputs/js/jquery.min.js"></script>
<script src="/outputs/js/3Dmol-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<style>
:root {
color-scheme: dark;
--bg: #050810;
--surface: rgba(10, 15, 28, 0.98);
--surface2: rgba(14, 20, 36, 0.97);
--border: rgba(80, 120, 160, 0.14);
--border-hl: rgba(0, 242, 254, 0.28);
--accent: #00f2fe;
--accent2: #b8ff2a;
--accent3: #a78bfa;
--accent4: #ff6ec7;
--text: #e8f0f8;
--muted: #7a90aa;
--muted2: #a8bdd0;
--danger: #ff4d6a;
--warn: #ffb703;
--success: #3dffa0;
--font: 'Inter', -apple-system, sans-serif;
--mono: 'JetBrains Mono', 'Fira Code', monospace;
--radius: 18px;
--shadow: 0 24px 64px rgba(0,0,0,0.6);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
line-height: 1.55;
}
/* ─── BACKGROUND ─── */
body::before {
content: "";
position: fixed; inset: 0; pointer-events: none; z-index: 0;
background:
radial-gradient(ellipse 90% 60% at 15% -5%, rgba(0,242,254,0.07), transparent),
radial-gradient(ellipse 60% 40% at 85% 5%, rgba(184,255,42,0.05), transparent),
radial-gradient(ellipse 50% 30% at 50% 105%, rgba(167,139,250,0.05), transparent);
}
/* ─── LAYOUT ─── */
.lab-shell {
position: relative; z-index: 1;
display: grid;
grid-template-columns: 240px minmax(0, 1fr);
grid-template-rows: auto 1fr;
min-height: 100vh;
}
/* ─── NAV RAIL ─── */
.nav-rail {
grid-row: 1 / 3;
position: sticky; top: 0;
height: 100vh; overflow-y: auto;
padding: 20px 14px;
border-right: 1px solid var(--border);
background: rgba(7, 10, 20, 0.96);
backdrop-filter: blur(24px);
display: flex; flex-direction: column; gap: 6px;
}
.nav-brand {
display: flex; align-items: center; gap: 12px;
padding: 4px 8px 20px;
border-bottom: 1px solid var(--border);
margin-bottom: 8px;
}
.logo-icon {
width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
background: linear-gradient(135deg, #00f2fe 0%, #b8ff2a 100%);
display: grid; place-items: center;
font-weight: 900; font-size: 15px; color: #040810;
box-shadow: 0 0 20px rgba(0,242,254,0.3);
}
.nav-brand h1 { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--text); }
.nav-brand p { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-link {
display: flex; align-items: center; gap: 10px;
padding: 10px 12px; border-radius: 12px;
text-decoration: none; color: var(--muted2);
border: 1px solid transparent;
font-size: 12.5px; font-weight: 500;
transition: all 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.active { background: rgba(0,242,254,0.08); border-color: rgba(0,242,254,0.22); color: var(--accent); }
.nav-num { width: 20px; font-size: 10px; font-weight: 800; color: var(--accent); text-align: center; }
.nav-link-text strong { display: block; font-size: 12px; color: inherit; }
.nav-link-text small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
/* Nvidia Badge */
.nvidia-badge {
margin-top: auto; padding: 12px;
border-radius: 12px;
border: 1px solid rgba(0,242,254,0.18);
background: rgba(0,242,254,0.06);
}
.nvidia-badge p { font-size: 10px; color: var(--muted2); line-height: 1.4; }
.nvidia-badge strong { display: block; color: var(--accent); font-size: 11px; margin-bottom: 4px; }
.nim-pill {
display: inline-flex; align-items: center; gap: 6px;
margin-top: 8px; padding: 5px 10px; border-radius: 999px;
background: rgba(0,242,254,0.1); border: 1px solid rgba(0,242,254,0.25);
font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em;
}
.nim-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.85)} }
/* ─── TOPBAR ─── */
.topbar {
grid-column: 2; padding: 14px 24px;
border-bottom: 1px solid var(--border);
background: rgba(5, 8, 16, 0.92);
backdrop-filter: blur(20px);
display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.status-pill {
display: inline-flex; align-items: center; gap: 7px;
padding: 5px 13px; border-radius: 999px;
font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
}
.status-pill.running { border-color: rgba(0,242,254,0.4); background: rgba(0,242,254,0.1); color: var(--accent); }
.status-pill.ready { border-color: rgba(61,255,160,0.4); background: rgba(61,255,160,0.1); color: var(--success); }
.status-pill.error { border-color: rgba(255,77,106,0.4); background: rgba(255,77,106,0.1); color: var(--danger); }
.s-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.running .s-dot { animation: pulse-dot 1.2s infinite; }
.topbar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.t-badge {
padding: 5px 12px; border-radius: 999px;
font-size: 11px; font-weight: 600;
border: 1px solid var(--border);
background: rgba(255,255,255,0.04);
color: var(--muted2); text-decoration: none;
transition: all 0.15s;
}
.t-badge:hover { border-color: var(--border-hl); color: var(--accent); }
.t-badge.glow { border-color: rgba(0,242,254,0.3); color: var(--accent); background: rgba(0,242,254,0.08); }
/* ─── MAIN CONTENT ─── */
.main-content {
grid-column: 2;
padding: 20px 24px 48px;
display: grid;
gap: 16px;
grid-template-columns: minmax(0, 1fr) 340px;
grid-template-rows: auto;
align-items: start;
}
/* ─── CARDS ─── */
.card {
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--surface);
padding: 20px;
box-shadow: var(--shadow);
}
.card.accent-border { border-color: var(--border-hl); }
.card-title {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 16px;
}
.card-title h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card-title strong { display: block; font-size: 18px; letter-spacing: -0.03em; color: var(--text); margin-top: 3px; }
/* ─── RUN PANEL ─── */
.run-panel {
grid-column: 2; grid-row: 1 / 4;
position: sticky; top: 80px;
}
.run-form { display: grid; gap: 12px; }
.form-group label {
display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
color: var(--muted2); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
width: 100%; padding: 10px 13px;
background: rgba(255,255,255,0.04); border: 1px solid var(--border);
border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 13px;
transition: border-color 0.15s;
outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
border-color: var(--border-hl);
}
.form-group textarea { resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 11.5px; }
.form-group select option { background: #0e1624; }
.run-btn {
width: 100%; padding: 14px 20px;
background: linear-gradient(135deg, #00d4e8 0%, #00f2fe 50%, #b8ff2a 100%);
background-size: 200% 200%;
border: none; border-radius: 12px;
color: #030609; font-family: var(--font);
font-size: 14px; font-weight: 800; letter-spacing: 0.04em;
cursor: pointer; position: relative; overflow: hidden;
transition: transform 0.15s, box-shadow 0.15s;
animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.run-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,242,254,0.35); }
.run-btn:active { transform: translateY(0); }
.run-btn:disabled {
background: rgba(255,255,255,0.08); color: var(--muted);
cursor: not-allowed; transform: none; box-shadow: none; animation: none;
}
.run-btn .btn-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset-btn {
padding: 8px; border-radius: 10px; border: 1px solid var(--border);
background: rgba(255,255,255,0.03); cursor: pointer; color: var(--muted2);
font-size: 11px; font-family: var(--font); transition: all 0.15s; text-align: left;
}
.preset-btn:hover { border-color: var(--border-hl); color: var(--text); background: rgba(0,242,254,0.06); }
.preset-btn strong { display: block; font-size: 11px; color: var(--text); margin-bottom: 2px; }
/* ─── HERO / STATUS CARD ─── */
.hero-card {
padding: 24px;
}
.hero-verdict { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.hero-title { font-size: clamp(22px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.hero-title .highlight { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { margin-top: 10px; font-size: 14px; color: var(--muted2); line-height: 1.5; max-width: 56ch; }
.metric-row {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
margin-top: 18px;
}
.metric-tile {
padding: 14px 12px; border-radius: 14px;
border: 1px solid var(--border); background: rgba(255,255,255,0.03);
}
.metric-tile .m-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.metric-tile .m-val { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.metric-tile .m-unit { font-size: 11px; color: var(--muted2); margin-top: 3px; }
.metric-tile.live { border-color: rgba(0,242,254,0.22); background: rgba(0,242,254,0.05); }
.metric-tile.live .m-val { color: var(--accent); }
/* ─── PIPELINE STAGES ─── */
.pipeline-track {
display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0;
padding: 16px 0;
}
.stage-node {
padding: 16px; border-radius: 14px; border: 1px solid var(--border);
background: rgba(255,255,255,0.03); position: relative;
transition: border-color 0.3s;
}
.stage-node.active { border-color: var(--border-hl); background: rgba(0,242,254,0.06); }
.stage-node.ready { border-color: rgba(61,255,160,0.3); background: rgba(61,255,160,0.04); }
.stage-arrow { text-align: center; color: var(--border-hl); font-size: 18px; padding: 0 6px; }
.stage-icon { font-size: 22px; margin-bottom: 8px; }
.stage-name { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted2); }
.stage-model { font-size: 12px; font-weight: 600; color: var(--text); margin-top: 3px; }
.stage-status {
display: inline-flex; align-items: center; gap: 5px;
margin-top: 8px; padding: 3px 9px; border-radius: 999px;
font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
border: 1px solid var(--border); color: var(--muted);
}
.stage-status.s-active { border-color: rgba(0,242,254,0.4); color: var(--accent); background: rgba(0,242,254,0.1); }
.stage-status.s-ready { border-color: rgba(61,255,160,0.4); color: var(--success); background: rgba(61,255,160,0.1); }
.stage-endpoint { font-size: 9px; color: var(--muted); margin-top: 5px; font-family: var(--mono); word-break: break-all; }
/* ─── LIVE TERMINAL ─── */
.terminal-wrap {
border-radius: 14px; overflow: hidden;
border: 1px solid rgba(0,242,254,0.18);
}
.terminal-header {
padding: 10px 14px;
background: rgba(0,242,254,0.07);
border-bottom: 1px solid rgba(0,242,254,0.15);
display: flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.terminal-dots { display: flex; gap: 5px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
#terminalLog {
font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
padding: 14px; height: 280px; overflow-y: auto;
background: rgba(2, 4, 10, 0.7);
color: var(--muted2);
}
#terminalLog::-webkit-scrollbar { width: 4px; }
#terminalLog::-webkit-scrollbar-track { background: transparent; }
#terminalLog::-webkit-scrollbar-thumb { background: rgba(0,242,254,0.2); border-radius: 2px; }
/* ─── TRUST SIGNALS ─── */
.trust-signal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.trust-sig {
padding: 12px 14px; border-radius: 12px;
border: 1px solid var(--border); background: rgba(255,255,255,0.03);
}
.trust-sig .ts-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.trust-sig .ts-val { font-size: 13px; font-weight: 700; color: var(--text); word-break: break-all; }
.trust-sig .ts-src { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.trust-sig.verified { border-color: rgba(61,255,160,0.25); background: rgba(61,255,160,0.04); }
.trust-sig.verified .ts-val { color: var(--success); }
/* ─── STRUCTURE VIEWER ─── */
.viewer-container { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
#viewerContainer { height: 380px; width: 100%; background: #040810; }
.viewer-toolbar {
padding: 10px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
border-top: 1px solid var(--border);
background: rgba(255,255,255,0.025);
}
.vbtn {
padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
background: rgba(255,255,255,0.04); color: var(--muted2); font-size: 11px;
font-family: var(--font); cursor: pointer; transition: all 0.15s;
}
.vbtn:hover { border-color: var(--border-hl); color: var(--accent); }
.vbtn.active { border-color: rgba(0,242,254,0.4); color: var(--accent); background: rgba(0,242,254,0.1); }
.viewer-info { font-size: 11px; color: var(--muted); margin-left: auto; }
/* ─── ARTIFACTS ─── */
.artifact-list { display: grid; gap: 6px; margin-top: 10px; }
.artifact-item {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 10px 12px; border-radius: 10px;
border: 1px solid var(--border); background: rgba(255,255,255,0.025);
font-size: 12px;
}
.artifact-item code { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.artifact-link {
padding: 3px 10px; border-radius: 6px;
font-size: 10px; font-weight: 700; color: var(--muted2);
border: 1px solid var(--border); text-decoration: none;
transition: all 0.15s;
}
.artifact-link:hover { color: var(--accent); border-color: var(--border-hl); }
/* ─── BADGES ─── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-hosted { background: rgba(0,242,254,0.12); border: 1px solid rgba(0,242,254,0.35); color: var(--accent); }
.badge-relay { background: rgba(255,183,3,0.12); border: 1px solid rgba(255,183,3,0.35); color: var(--warn); }
.badge-real { background: rgba(61,255,160,0.12); border: 1px solid rgba(61,255,160,0.35); color: var(--success); }
.badge-demo { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: var(--muted2); }
/* ─── LAYOUT HELPERS ─── */
.col-main { grid-column: 1; display: grid; gap: 16px; }
.span-full { grid-column: 1 / -1; }
/* ─── SCORE BAR ─── */
.score-bar-wrap { margin-top: 10px; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted2); margin-bottom: 6px; }
.score-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.6s ease; }
/* ─── TRUST PANEL TABLE ─── */
.trust-verdict-banner {
display: flex; align-items: center; justify-content: center; gap: 8px;
padding: 12px; border-radius: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.05em; margin-bottom: 16px;
text-transform: uppercase;
}
.trust-verdict-banner.verified { background: rgba(61,255,160,0.1); border: 1px solid rgba(61,255,160,0.4); color: var(--success); }
.trust-verdict-banner.relay { background: rgba(255,183,3,0.1); border: 1px solid rgba(255,183,3,0.4); color: var(--warn); }
.trust-table {
width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px;
}
.trust-table th, .trust-table td {
padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left;
vertical-align: top;
}
.trust-table th { width: 140px; color: var(--muted2); font-weight: 600; }
.trust-table td { color: var(--text); }
.trust-table td.code-font { font-family: var(--mono); font-size: 11px; word-break: break-all; }
.trust-table tr:last-child th, .trust-table tr:last-child td { border-bottom: none; }
/* ─── HIDDEN FORM (keeps JS working) ─── */
.hidden-form { position: absolute; opacity: 0; pointer-events: none; }
/* ─── ANIM ─── */
.anim-in { opacity: 0; transform: translateY(12px); }
/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
.lab-shell { grid-template-columns: 1fr; }
.nav-rail { display: none; }
.main-content { grid-column: 1; grid-template-columns: 1fr; }
.run-panel { position: static; grid-column: 1; }
.metric-row { grid-template-columns: repeat(2, 1fr); }
.pipeline-track { grid-template-columns: 1fr; }
.stage-arrow { display: none; }
}
</style>
</head>
<body>
<div class="lab-shell">
<!-- ─── NAV RAIL ─── -->
<aside class="nav-rail" aria-label="Primary navigation">
<div class="nav-brand">
<div class="logo-icon">N</div>
<div>
<h1>BioNeMo Lab</h1>
<p>by ZRT219</p>
</div>
</div>
<a class="nav-link active" href="#overview">
<span class="nav-num">01</span>
<div class="nav-link-text"><strong>Overview</strong><small>Status & metrics</small></div>
</a>
<a class="nav-link" href="#pipeline">
<span class="nav-num">02</span>
<div class="nav-link-text"><strong>Pipeline</strong><small>NIM stages</small></div>
</a>
<a class="nav-link" href="#terminal">
<span class="nav-num">03</span>
<div class="nav-link-text"><strong>Live Output</strong><small>Subprocess stream</small></div>
</a>
<a class="nav-link" href="#viewer-section">
<span class="nav-num">04</span>
<div class="nav-link-text"><strong>Structure</strong><small>3D viewer</small></div>
</a>
<a class="nav-link" href="#trust-section">
<span class="nav-num">05</span>
<div class="nav-link-text"><strong>Audit Trail</strong><small>Evidence & trust</small></div>
</a>
<a class="nav-link" href="#artifacts-section">
<span class="nav-num">06</span>
<div class="nav-link-text"><strong>Artifacts</strong><small>Output files</small></div>
</a>
<div class="nvidia-badge" style="margin-top: auto;">
<strong>NVIDIA BioNeMo NIMs</strong>
<p>This dashboard routes real API calls to hosted NVIDIA NIM endpoints when credentials are set.</p>
<span class="nim-pill"><span class="nim-dot"></span>LIVE READY</span>
</div>
</aside>
<!-- ─── TOPBAR ─── -->
<header class="topbar anim-in">
<div class="topbar-left">
<span class="status-pill" id="statusPill">
<span class="s-dot"></span>
<span id="hdrStatus">IDLE</span>
</span>
<span id="hdrWorkflowBadge" style="font-size:12px; color:var(--muted2); font-weight:600;">protein-fold</span>
</div>
<div class="topbar-right">
<a class="t-badge glow" href="/learning_pack.html">Learning Pack</a>
<a class="t-badge" href="/viewer/">3D Viewer</a>
<a class="t-badge" href="https://github.com/zrt219" target="_blank" rel="noopener">GitHub</a>
<a class="t-badge" href="https://www.linkedin.com/in/zhane-umattr" target="_blank" rel="noopener">LinkedIn</a>
</div>
</header>
<!-- ─── MAIN CONTENT ─── -->
<main class="main-content">
<!-- ─── COL 1: MAIN ─── -->
<div class="col-main">
<!-- OVERVIEW HERO -->
<section class="card hero-card anim-in" id="overview">
<div class="hero-verdict">NVIDIA BioNeMo Agent — <span id="runtimeBadgeText">Detecting runtime...</span></div>
<h2 class="hero-title">
<span class="highlight" id="heroTitleMain">Protein Structure</span><br>
<span id="heroTitleSub">Prediction Pipeline</span>
</h2>
<p class="hero-sub" id="heroDesc">
This lab routes your protein sequence through NVIDIA's hosted NIM microservices: ColabFold MSA Search → OpenFold2 structure prediction. Real API calls are made when NGC_API_KEY is configured. In relay mode, it uses local artifacts as a scaffold.
</p>
<div class="metric-row">
<div class="metric-tile live">
<div class="m-label">Confidence (pLDDT)</div>
<div class="m-val" id="metricConfidence">—</div>
<div class="m-unit" id="metricConfidenceSrc">Awaiting run</div>
</div>
<div class="metric-tile">
<div class="m-label">Sequence Length</div>
<div class="m-val" id="metricLength">—</div>
<div class="m-unit">residues</div>
</div>
<div class="metric-tile">
<div class="m-label">Est. MW</div>
<div class="m-val" id="metricMW">—</div>
<div class="m-unit" id="metricMWSrc">kDa</div>
</div>
<div class="metric-tile">
<div class="m-label">Hydrophobic %</div>
<div class="m-val" id="metricHydrophobic">—</div>
<div class="m-unit">residue fraction</div>
</div>
</div>
</section>
<!-- PIPELINE STAGES -->
<section class="card anim-in" id="pipeline">
<div class="card-title">
<div>
<h2>NIM Pipeline Stages</h2>
<strong>Real NVIDIA API Calls</strong>
</div>
<span id="pipelineRunBadge" class="badge badge-demo">IDLE</span>
</div>
<div class="pipeline-track">
<div class="stage-node" id="stageMSA">
<div class="stage-icon">🔍</div>
<div class="stage-name">MSA Search</div>
<div class="stage-model">ColabFold NIM</div>
<span class="stage-status" id="stageMSAStatus">IDLE</span>
<div class="stage-endpoint">health.api.nvidia.com/.../msa-search</div>
</div>
<div class="stage-arrow">→</div>
<div class="stage-node" id="stageFold">
<div class="stage-icon">🧬</div>
<div class="stage-name">Structure Prediction</div>
<div class="stage-model">OpenFold2 NIM</div>
<span class="stage-status" id="stageFoldStatus">IDLE</span>
<div class="stage-endpoint">health.api.nvidia.com/.../openfold2</div>
</div>
<div class="stage-arrow">→</div>
<div class="stage-node" id="stageArtifact">
<div class="stage-icon">📁</div>
<div class="stage-name">Artifacts</div>
<div class="stage-model">Local Save + Hash</div>
<span class="stage-status" id="stageArtifactStatus">IDLE</span>
<div class="stage-endpoint">SHA-256 provenance hash</div>
</div>
</div>
<!-- Design workflow row (shown for protein-design) -->
<div id="designPipelineRow" style="display:none; margin-top: 14px;">
<div style="font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); margin-bottom:10px;">Design Workflow Stages</div>
<div class="pipeline-track">
<div class="stage-node" id="stageRFD">
<div class="stage-icon">⚙️</div>
<div class="stage-name">Backbone Design</div>
<div class="stage-model">RFDiffusion NIM</div>
<span class="stage-status" id="stageRFDStatus">IDLE</span>
<div class="stage-endpoint">health.api.nvidia.com/.../rfdiffusion</div>
</div>
<div class="stage-arrow">→</div>
<div class="stage-node" id="stageMPNN">
<div class="stage-icon">🧠</div>
<div class="stage-name">Sequence Design</div>
<div class="stage-model">ProteinMPNN NIM</div>
<span class="stage-status" id="stageMPNNStatus">IDLE</span>
<div class="stage-endpoint">health.api.nvidia.com/.../proteinmpnn</div>
</div>
<div class="stage-arrow">→</div>
<div class="stage-node" id="stageMSA2">
<div class="stage-icon">🔬</div>
<div class="stage-name">Fold + Validate</div>
<div class="stage-model">MSA → OpenFold2</div>
<span class="stage-status" id="stageMSA2Status">IDLE</span>
<div class="stage-endpoint">ColabFold + OpenFold2 NIMs</div>
</div>
</div>
</div>
</section>
<!-- LIVE TERMINAL -->
<section class="card anim-in" id="terminal">
<div class="card-title">
<div>
<h2>Live Pipeline Output</h2>
<strong>Subprocess Stream</strong>
</div>
</div>
<p style="font-size:12.5px; color:var(--muted2); margin-bottom:12px;" id="telDetailedExplanation">
The lab is standing by. Submit a run to see live subprocess output from the NVIDIA BioNeMo scientist agent.
</p>
<div class="terminal-wrap">
<div class="terminal-header">
<div class="terminal-dots">
<div class="t-dot" style="background:#ff5f57;"></div>
<div class="t-dot" style="background:#ffbd2e;"></div>
<div class="t-dot" style="background:#28c840;"></div>
</div>
bionemo_scientist.py — stdout
</div>
<div id="terminalLog">
<span style="color:var(--muted);">Standing by. Launch a run to stream live subprocess output here...</span>
</div>
</div>
</section>
<!-- 3D STRUCTURE VIEWER -->
<section class="card anim-in" id="viewer-section">
<div class="card-title">
<div>
<h2>Structure Viewer</h2>
<strong id="viewerStructureName">No structure loaded</strong>
</div>
</div>
<div class="viewer-container">
<div id="viewerContainer"></div>
<div class="viewer-toolbar">
<button class="vbtn active" id="btnCartoon" onclick="setStyle('cartoon')" aria-pressed="true">Cartoon</button>
<button class="vbtn" id="btnStick" onclick="setStyle('stick')" aria-pressed="false">Stick</button>
<button class="vbtn" id="btnSphere" onclick="setStyle('sphere')" aria-pressed="false">Sphere</button>
<button class="vbtn" id="btnLine" onclick="setStyle('line')" aria-pressed="false">Lines</button>
<button class="vbtn" id="btnColor" onclick="toggleColor()">Color: Spectrum</button>
<button class="vbtn" id="btnSpin" onclick="toggleSpin()" aria-pressed="false">Spin: Off</button>
<button class="vbtn" onclick="resetView()">Reset</button>
<span class="viewer-info" id="viewerInfo">—</span>
</div>
</div>
<!-- Gallery -->
<div style="margin-top:14px;">
<div style="font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); margin-bottom:10px;">Load Structure</div>
<div id="galleryGrid" style="display:grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap:8px;">
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Helical Bundle (Folded) into the viewer" data-pdb="/outputs/helical_bundle_folded.pdb" data-name="Helical Bundle (Folded)"><img src="/viewer/helical_bundle_viewer.png" alt="Helical Bundle (Folded)" /><span class="gallery-label">Helical Bundle (Folded)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Mixed Fold (Folded) into the viewer" data-pdb="/outputs/mixed_fold_folded.pdb" data-name="Mixed Fold (Folded)"><img src="/viewer/mixed_fold_viewer.png" alt="Mixed Fold (Folded)" /><span class="gallery-label">Mixed Fold (Folded)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Default 100aa (Folded) into the viewer" data-pdb="/outputs/default_folded.pdb" data-name="Default 100aa (Folded)"><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">Default 100aa (Folded)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Helical Bundle (Backbone) into the viewer" data-pdb="/outputs/helical_bundle_backbone.pdb" data-name="Helical Bundle (Backbone)"><img src="/viewer/helical_bundle_viewer.png" alt="Helical Bundle (Backbone)" /><span class="gallery-label">Helical Bundle (Backbone)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Mixed Fold (Backbone) into the viewer" data-pdb="/outputs/mixed_fold_backbone.pdb" data-name="Mixed Fold (Backbone)"><img src="/viewer/mixed_fold_viewer.png" alt="Mixed Fold (Backbone)" /><span class="gallery-label">Mixed Fold (Backbone)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Default 100aa (Backbone) into the viewer" data-pdb="/outputs/default_backbone.pdb" data-name="Default 100aa (Backbone)"><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">Default 100aa (Backbone)</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card newest-card" role="button" tabindex="0" aria-label="Load structure OpenFold2 Prediction into the viewer" data-pdb="/outputs/bionemo_openfold2_structure.pdb" data-name="OpenFold2 Prediction"><span class="latest-badge">LATEST</span><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">OpenFold2 Prediction</span><span class="gallery-time">🕒 Jul 22, 02:16:27</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure RFDiffusion Backbone into the viewer" data-pdb="/outputs/bionemo_rfdiffusion_backbone.pdb" data-name="RFDiffusion Backbone"><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">RFDiffusion Backbone</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Backbone into the viewer" data-pdb="/outputs/backbone.pdb" data-name="Backbone"><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">Backbone</span><span class="gallery-time">🕒 Jul 18, 05:00:01</span></div>
<div class="gallery-card" role="button" tabindex="0" aria-label="Load structure Folded into the viewer" data-pdb="/outputs/folded.pdb" data-name="Folded"><div style="height:80px;display:grid;place-items:center;font-size:32px;opacity:0.3;margin-bottom:6px;">🧬</div><span class="gallery-label">Folded</span><span class="gallery-time">🕒 Jul 18, 05:00:02</span></div>
</div>
</div>
</section>
<!-- AUDIT TRAIL -->
<section class="card anim-in" id="trust-section">
<div id="trustVerdictBanner" class="trust-verdict-banner relay">
<span id="trustVerdictBannerText">LOCAL FALLBACK ⚠ Relay Mode</span>
</div>
<div style="display:flex; justify-content:space-between; margin-bottom:12px;">
<div>
<div style="font-size:12px; color:var(--muted2); font-weight:700; text-transform:uppercase;">Trust Score</div>
<div style="font-size:24px; font-weight:800; color:var(--text);" id="trustScoreText">0 / 100</div>
</div>
<div style="text-align:right;">
<div style="font-size:12px; font-weight:700; color:var(--accent); text-transform:uppercase; margin-bottom:2px;" id="trustScoreStatus">✓ Cryptographically Verified</div>
<div style="font-size:11px; color:var(--muted2);" id="trustScoreSub">Scientific Workflow Complete</div>
</div>
</div>
<!-- Why Trusted Block -->
<div style="background:rgba(255,255,255,0.03); border-radius:8px; padding:12px; margin-bottom:16px;">
<div style="font-size:11px; font-weight:700; color:var(--muted2); margin-bottom:6px; text-transform:uppercase;">Verified Because:</div>
<ul id="trustReasonsList" style="margin:0; padding-left:16px; font-size:12px; color:var(--text); line-height:1.6;">
<li>Awaiting run...</li>
</ul>
</div>
<!-- Grid of Trust Signals -->
<div style="display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px;">
<!-- Provider -->
<div style="border:1px solid var(--border); border-radius:8px; padding:12px;">
<div style="font-size:10px; font-weight:700; color:var(--muted2); text-transform:uppercase; margin-bottom:8px;">Provider Identity</div>
<div style="font-size:12px; font-weight:700; color:var(--text);" id="trustProvider">—</div>
<div style="font-size:11px; color:var(--muted2); margin-top:2px;">Runtime: <span id="trustRuntime">—</span></div>
<div style="font-size:11px; color:var(--muted2); margin-top:2px;">Model: <span id="trustModel">—</span></div>
</div>
<!-- Execution -->
<div style="border:1px solid var(--border); border-radius:8px; padding:12px;">
<div style="font-size:10px; font-weight:700; color:var(--muted2); text-transform:uppercase; margin-bottom:8px;">Live Execution</div>
<div style="font-size:12px; font-weight:700; color:var(--text);" id="trustLiveExec">—</div>
<div style="font-size:11px; color:var(--muted2); margin-top:2px;">Duration: <span id="trustDuration">—</span></div>
<div style="font-size:11px; color:var(--muted2); margin-top:2px;">Generated: <span id="trustGeneratedAgo">—</span></div>
</div>
<!-- Identifiers -->
<div style="border:1px solid var(--border); border-radius:8px; padding:12px; grid-column:1/-1;">
<div style="font-size:10px; font-weight:700; color:var(--muted2); text-transform:uppercase; margin-bottom:8px;">Traceability</div>
<div style="display:flex; justify-content:space-between; font-size:11px; margin-bottom:4px;">
<span style="color:var(--muted2);">Run ID:</span> <span id="trustRunId" class="code-font" style="color:var(--text);">—</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:11px; margin-bottom:4px;">
<span style="color:var(--muted2);">Request ID:</span> <span id="trustRequestId" class="code-font" style="color:var(--text);">—</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:11px;">
<span style="color:var(--muted2);">Artifact Hash:</span> <span id="trustArtifactHash" class="code-font" style="color:var(--text);">—</span>
</div>
</div>
<!-- Input Provenance -->
<div style="border:1px solid var(--border); border-radius:8px; padding:12px; grid-column:1/-1;">
<div style="font-size:10px; font-weight:700; color:var(--muted2); text-transform:uppercase; margin-bottom:8px;">Input Provenance</div>
<div style="display:flex; justify-content:space-between; font-size:11px; margin-bottom:4px;">
<span style="color:var(--muted2);">Sequence Length:</span> <span id="trustInputLen" style="color:var(--text);">—</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:11px;">
<span style="color:var(--muted2);">Input SHA-256:</span> <span id="trustInputHash" class="code-font" style="color:var(--text);">—</span>
</div>
</div>
<!-- Evidence Check -->
<div id="trustEvidenceBox" style="border:1px solid var(--border); border-radius:8px; padding:12px; grid-column:1/-1; background:rgba(255,255,255,0.03);">
<div style="display:flex; justify-content:space-between; align-items:center;">
<div style="font-size:12px; font-weight:700; color:var(--text);" id="trustEvidenceCountLabel">0 / 0 Verified</div>
<div style="font-size:11px; font-weight:700; color:var(--text);" id="trustReproducibleBadge">—</div>
</div>
<div id="trustEvidenceChecklist" style="margin-top:8px; display:grid; grid-template-columns:1fr 1fr; gap:4px; font-size:11px; color:var(--muted2);">
<!-- items go here -->
</div>
</div>
</div>
<!-- Execution trace -->
<details>
<summary style="cursor:pointer; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted2); padding:10px; border-radius:10px; border: 1px solid var(--border); list-style:none;">
▸ Audit Ready (Click to inspect)
</summary>
<pre id="executionTracePane" style="margin-top:8px; background: rgba(0,0,0,0.4); border-radius:10px; padding:12px; font-size:11px; font-family:var(--mono); color:var(--muted2); max-height:220px; overflow-y:auto; white-space:pre-wrap; word-break:break-all;">[]</pre>
</details>
</section>
<!-- ARTIFACTS -->
<section class="card anim-in" id="artifacts-section">
<div class="card-title">
<div>
<h2>Output Artifacts</h2>
<strong id="artifactCountLabel">No artifacts yet</strong>
</div>
</div>
<div class="artifact-list" id="artifactListEl">
<div class="artifact-item"><span><code>msa_json</code> <span style="font-size:10px;color:var(--muted2);">fold-kras</span> <span class="trust-badge trust-just_ran">JUST_RAN</span><span class="trust-badge trust-runtime">REAL</span><span class="trust-badge trust-latest">LATEST</span><span class="trust-badge trust-just-ran">JUST RAN</span></span> <a class="artifact-link" href="/artifact/msa_json" target="_blank">open</a></div>
<div class="artifact-item"><span><code>msa_a3m</code> <span style="font-size:10px;color:var(--muted2);">fold-kras</span> <span class="trust-badge trust-just_ran">JUST_RAN</span><span class="trust-badge trust-runtime">REAL</span><span class="trust-badge trust-latest">LATEST</span><span class="trust-badge trust-just-ran">JUST RAN</span></span> <a class="artifact-link" href="/artifact/msa_a3m" target="_blank">open</a></div>
<div class="artifact-item"><span><code>fold_json</code> <span style="font-size:10px;color:var(--muted2);">fold-kras</span> <span class="trust-badge trust-just_ran">JUST_RAN</span><span class="trust-badge trust-runtime">REAL</span><span class="trust-badge trust-latest">LATEST</span><span class="trust-badge trust-just-ran">JUST RAN</span></span> <a class="artifact-link" href="/artifact/fold_json" target="_blank">open</a></div>
<div class="artifact-item"><span><code>fold_pdb</code> <span style="font-size:10px;color:var(--muted2);">fold-kras</span> <span class="trust-badge trust-just_ran">JUST_RAN</span><span class="trust-badge trust-runtime">REAL</span><span class="trust-badge trust-latest">LATEST</span><span class="trust-badge trust-just-ran">JUST RAN</span></span> <a class="artifact-link" href="/artifact/fold_pdb" target="_blank">open</a></div>
<div class="artifact-item"><span><code>fold_scores</code> <span style="font-size:10px;color:var(--muted2);">fold-kras</span> <span class="trust-badge trust-just_ran">JUST_RAN</span><span class="trust-badge trust-runtime">REAL</span><span class="trust-badge trust-latest">LATEST</span><span class="trust-badge trust-just-ran">JUST RAN</span></span> <a class="artifact-link" href="/artifact/fold_scores" target="_blank">open</a></div>
</div>
</section>
</div> <!-- /col-main -->
<!-- ─── COL 2: RUN PANEL ─── -->
<aside class="run-panel anim-in" id="run-panel">
<!-- THE RUN FORM — ALWAYS VISIBLE -->
<div class="card accent-border" style="margin-bottom:12px;">
<div class="card-title">
<div>
<h2>Launch Run</h2>
<strong>Configure & Execute</strong>
</div>
<span id="runRuntimeBadge" class="badge badge-hosted">HOSTED</span>
</div>
<p style="font-size:12px; color:var(--muted2); margin-bottom:14px; line-height:1.5;">
Hit <strong style="color:var(--accent);">⚡ Run Pipeline</strong> to fire real NVIDIA NIM API calls: MSA Search → OpenFold2. Credentials are loaded from <code style="font-size:10px;font-family:var(--mono);color:var(--accent2);">.env</code>.
</p>
<form class="run-form" id="runFormVisible" onsubmit="handleRunSubmit(event)">
<div class="form-group">
<label for="vis-goal">Goal / Prompt</label>
<input type="text" id="vis-goal" name="goal" placeholder="Fold a protein sequence and explain confidence metrics." value="Fold KRAS G12D oncoprotein and analyze." />
</div>
<div class="form-group">
<label for="vis-sequence">Protein Sequence (FASTA or plain AA)</label>
<textarea id="vis-sequence" name="sequence" placeholder="MALWMRLLPLLALLALWGPDPAAAFVNQHLCGS...">MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSY</textarea>
</div>
<div class="form-group">
<label for="vis-runtime">Runtime</label>
<select id="vis-runtime" name="runtime">
<option value="hosted" >hosted — real NVIDIA NIM calls</option>
<option value="relay" >relay — local artifact scaffold</option>
<option value="auto" selected>auto — detect from credentials</option>
</select>
</div>
<div class="form-group">
<label for="vis-display-name">Run Name</label>
<input type="text" id="vis-display-name" name="display_name" placeholder="openfold2-prediction" value="fold-kras" />
</div>
<button class="run-btn" type="submit" id="visLaunchBtn">
<div class="btn-inner">
<span>⚡</span>
<span id="visLaunchBtnText">Run Pipeline</span>
</div>
</button>
</form>
<!-- Presets -->
<div style="margin-top:14px;">
<div style="font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); margin-bottom:8px;">Quick Presets</div>
<div class="preset-row">
<button class="preset-btn" onclick="setPreset('fold-insulin', 'Fold human insulin and explain confidence.', 'MALWMRLLPLLALLALWGPDPAAAFVNQHLCGSHLVEALYLVCGERGFFYTPKTRREAEDLQVGQVELGGGPGAGSLQPLALEGSLQKRGIVEQCCTSICSLYQLENYCN')">
<strong>Insulin Fold</strong>
Fold human insulin (110aa)
</button>
<button class="preset-btn" onclick="setPreset('design-helical', 'Design a de novo helical bundle protein.', '')">
<strong>De Novo Design</strong>
RFDiffusion + ProteinMPNN
</button>
<button class="preset-btn" onclick="setPreset('fold-kras', 'Fold KRAS G12D oncoprotein and analyze.', 'MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSY')">
<strong>KRAS G12D</strong>
Fold KRAS oncoprotein
</button>
<button class="preset-btn" onclick="setPreset('fold-ubiquitin', 'Fold ubiquitin and explain structural features.', 'MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG')">
<strong>Ubiquitin</strong>
Fold ubiquitin (76aa)
</button>
</div>
</div>
</div>
<!-- RUN STATUS CARD -->
<div class="card anim-in" style="margin-bottom:12px;">
<div class="card-title">
<h2>Run Status</h2>
</div>
<div style="display:grid; gap:8px;">
<div style="display:flex; justify-content:space-between; font-size:13px; padding:8px 0; border-bottom:1px solid var(--border);">
<span style="color:var(--muted2);">Status</span>
<span id="runStatusText" style="font-weight:700;">IDLE</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:13px; padding:8px 0; border-bottom:1px solid var(--border);">
<span style="color:var(--muted2);">Step</span>
<span id="runStepText" style="font-family:var(--mono); font-size:12px;">—</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:13px; padding:8px 0; border-bottom:1px solid var(--border);">
<span style="color:var(--muted2);">Runtime</span>
<span id="runRuntimeText" style="font-weight:700; color:var(--accent);">—</span>
</div>
<div style="display:flex; justify-content:space-between; font-size:13px; padding:8px 0; border-bottom:1px solid var(--border);">
<span style="color:var(--muted2);">Latest Run</span>
<span id="runLatestLabel" style="font-size:11px; font-family:var(--mono); text-align:right; max-width:140px; word-break:break-all;">—</span>
</div>
<div style="font-size:12px; padding:8px 0; color:var(--muted2);">
<span id="runLatestMessage">Standing by.</span>
</div>
</div>
</div>
<!-- LINKS -->
<div class="card anim-in" style="font-size:12.5px;">
<div class="card-title"><h2>Quick Links</h2></div>
<div style="display:grid; gap:6px;">
<a class="artifact-link" href="/handoff.html" style="display:block; padding:10px 14px; font-size:12px;">📦 Download Artifacts</a>
<a class="artifact-link" href="/report" style="display:block; padding:10px 14px; font-size:12px;">📋 Run Report (MD)</a>
<a class="artifact-link" href="/viewer/" style="display:block; padding:10px 14px; font-size:12px;">🔬 3D Structure Viewer</a>
<a class="artifact-link" href="/learning_pack.html" style="display:block; padding:10px 14px; font-size:12px;">📚 Learning Pack</a>
</div>
</div>
</aside>
</main>
</div>
<!-- ─── HIDDEN FORM (keeps JS wiring intact) ─── -->
<div class="hidden-form" aria-hidden="true">
<form id="runForm">
<input id="goal" name="goal" />
<textarea id="sequence" name="sequence"></textarea>
<select id="runtime" name="runtime"><option value="auto" selected>auto</option><option value="relay">relay</option><option value="hosted">hosted</option></select>
<input id="displayName" name="display_name" value="openfold2-prediction" />
<button id="launchBtn" type="submit">Launch</button>
</form>
<div id="stageGrid"></div>
<div id="terminalLogHidden"></div>
<div id="telStep"></div>
<div id="telArtifact"></div>
<div id="telWorkflow"></div>
<div id="telRuntime"></div>
<div id="telTruth"></div>
<div id="telTruthSource"></div>
<div id="telCommand"></div>
<div id="telMessage"></div>
<div id="telDetailedExplanationHidden"></div>
<pre id="runStatePane"></pre>
<pre id="eventLogPane"></pre>
<pre id="summaryPane"></pre>
<pre id="reportPane"></pre>
<div id="trustScoreFillHidden"></div>
<div id="trustScoreNote"></div>
<div id="trustVerdictSummarySource"></div>
<div id="trustRunTruthSource"></div>
<div id="trustEvidenceSource"></div>
<div id="galleryGridHidden"></div>
<textarea id="notes"></textarea>
<div id="hdrArtifact"></div>
<div id="hdrTruthInline"></div>
<div id="overviewRunId"></div>
<div id="overviewRequestId"></div>
<div id="overviewTrustScoreValue"></div>
<div id="overviewVerdict"></div>
<div id="overviewVerdictText"></div>
<div id="overviewRuntimeBadge"></div>
<div id="overviewCompletedBadge"></div>
<div id="overviewEvidenceBadge"></div>
<div id="trustVerdict"></div>
<div id="trustVerdictIcon"></div>
<div id="trustVerdictText"></div>
<div id="trustVerdictSummary"></div>
<div id="trustReproducibility"></div>
<div id="trustReproducibilitySource"></div>
<div id="trustProviderSource"></div>
<div id="trustLiveExecution"></div>
<div id="trustLiveExecutionSource"></div>
<div id="trustEvidenceCount"></div>
<div id="trustEvidenceCountSource"></div>
<div id="trustAuditReady"></div>
<div id="trustAuditReadySource"></div>
<div id="trustSignature"></div>
<div id="trustSignatureSource"></div>
<div id="trustInputProvenance"></div>
<div id="trustInputProvenanceSource"></div>
<div id="trustModelVersion"></div>
<div id="trustModelVersionSource"></div>
<div id="trustWorkflowIntegrity"></div>
<div id="trustWorkflowIntegritySource"></div>
<div id="trustRunIdSource"></div>
<div id="trustRequestIdSource"></div>
<div id="trustEndpointSource"></div>
<div id="trustArtifactHashSource"></div>
<div id="trustRunTruth"></div>
<div id="trustEvidence"></div>
<div id="nvidiaTelemetryGrid"></div>
<div id="metricRMSD"></div>
<div id="metricRMSDSource"></div>
<div id="metricConfidenceSource"></div>
<div id="metricLengthSource"></div>
<div id="metricMWSource"></div>
<div id="metricHydrophobicSource"></div>
<div id="metricPolarSource"></div>
<div id="metricPolar"></div>
<div id="metricResidues"></div>
<div id="metricWeight"></div>
<div id="metricConfidenceHidden"></div>
</div>
<style>
.gallery-card {
padding: 10px; border-radius: 10px; border: 1px solid var(--border);
background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.15s;
text-align: center; font-size: 11px; color: var(--muted2);
}
.gallery-card:hover { border-color: var(--border-hl); background: rgba(0,242,254,0.06); color: var(--text); }
.gallery-card img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
</style>
<script>
(function () {
/* ─── VIEWER STATE ─── */
var viewer3d = null;
var viewerModel = null;
var isSpinning = false;
var currentStyle = 'cartoon';
var currentColor = 'spectrum';
function initViewer() {
if (viewer3d) return;
var el = document.getElementById('viewerContainer');
var ph = document.getElementById('viewerPlaceholder');
if (ph) ph.remove();
viewer3d = $3Dmol.createViewer(el, { backgroundColor: '#040810' });
}
function loadPDBInViewer(url, name) {
initViewer();
fetch(url)
.then(function(r) { return r.text(); })
.then(function(pdbData) {
viewer3d.clear();
viewerModel = viewer3d.addModel(pdbData, 'pdb');
applyStyle();
viewer3d.zoomTo();
viewer3d.render();
if (isSpinning) viewer3d.spin(true);
document.getElementById('viewerStructureName').textContent = name || url.split('/').pop();
document.getElementById('viewerInfo').innerHTML =
'<span>Loaded: <strong>' + (name || url.split('/').pop()) + '</strong> · Atoms: <strong>' + viewerModel.selectedAtoms({}).length + '</strong></span>';
})
.catch(function(err) { console.warn('Failed to load PDB:', err); });
}
window.loadPDBInViewer = loadPDBInViewer;
function applyStyle() {
if (!viewer3d || !viewerModel) return;
var scheme = currentColor === 'spectrum'
? { prop: 'resi', gradient: new $3Dmol.Gradient.Sinebow() }
: (currentColor === 'chain' ? { prop: 'chain', map: $3Dmol.elementColors.rasmol } : { prop: 'b', gradient: new $3Dmol.Gradient.RWB(40, 90) });
var styleObj = {};