-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
831 lines (761 loc) · 44.3 KB
/
Copy pathindex.html
File metadata and controls
831 lines (761 loc) · 44.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://accounts.google.com/gsi/client; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src https://fonts.gstatic.com; frame-src https://accounts.google.com; connect-src 'self' https://accounts.google.com https://www.googleapis.com https://generativelanguage.googleapis.com; img-src 'self' data: https://lh3.googleusercontent.com; object-src 'none'; base-uri 'self'; form-action 'self';">
<title>ethos.init — LLM Math Mastery Tracker</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='4' fill='%23000000'/%3E%3Cpath d='M18 12C17.2 10.8 14.8 10.4 13.2 10.4C9.6 10.4 6.8 13.2 6.8 16.8C6.8 20.4 9.6 23.2 13.2 23.2C14.8 23.2 17.2 22.8 18 21.6M6.8 16.8H16.4' fill='none' stroke='%2300ff88' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M10 7.2C10.8 7.2 11.6 6.4 11.6 5.6' fill='none' stroke='%2300ff88' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M13.2 7.2L14.8 5.6' fill='none' stroke='%2300ff88' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='20' y1='23.2' x2='26' y2='23.2' stroke='%2300ff88' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E">
<meta name="description" content="A terminal-style tracker for mastering the mathematics behind large language models.">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap" rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css?v=2.3.1">
<link rel="manifest" href="manifest.json">
<!-- Google Identity Services (OAuth 2.0) -->
<script src="https://accounts.google.com/gsi/client" async></script>
</head>
<body>
<!-- CRT SCREEN EFFECT (opt-in via crt command or Ctrl+Alt+C) -->
<div id="crt-screen-effect" class="crt-overlay"></div>
<!-- BOOT SEQUENCE -->
<div id="boot">
<div class="boot-title">ethos<span>.</span>init</div>
<div class="boot-line info" style="animation-delay:0.15s">loading ἤθη module</div>
<div class="boot-line ok" style="animation-delay:0.4s">loading streaks engine</div>
<div class="boot-line ok" style="animation-delay:0.65s">loading xp system</div>
<div class="boot-line ok" style="animation-delay:0.9s">loading progress tracker</div>
<div class="boot-line ok" style="animation-delay:1.15s">loading paper log</div>
<div class="boot-line info" style="animation-delay:1.4s">loading user profile</div>
<div class="boot-line ok" style="animation-delay:1.7s">system ready</div>
<!-- PREMIUM CYBERPUNK AUTH GATE -->
<div id="auth-gate" style="display:none; margin-top:2rem; width:100%; max-width:320px; text-align:left; animation:fadein 0.5s forwards;">
<div style="color:var(--accent); font-weight:bold; font-size:12px; margin-bottom:1rem; text-shadow:0 0 5px var(--accent); letter-spacing:1px; border-bottom:1px dashed var(--border); padding-bottom:8px;">
:: SECURITY AUTHORIZATION REQUIRED ::
</div>
<div id="auth-toggle-desc" style="color:var(--text-dim); margin-bottom:1.5rem; font-size:11px; line-height:1.4;">
// Authorize with Google Account to synchronize mathematical mastery records.
</div>
<div style="margin-bottom:16px;">
<button class="btn" id="auth-google-btn" style="width:100%; display:flex; align-items:center; justify-content:center; gap:8px; text-transform:uppercase;">
<svg style="width:14px; height:14px; fill:currentColor;" viewBox="0 0 24 24">
<path d="M12.24 10.285V13.4h6.887c-.275 1.565-1.88 4.604-6.887 4.604-4.33 0-7.866-3.577-7.866-8s3.536-8 7.866-8c2.46 0 4.105 1.025 5.047 1.926l2.427-2.334C17.955 2.192 15.34 1 12.24 1 6.12 1 1.12 6 1.12 12s5 11 11.12 11c6.38 0 10.62-4.474 10.62-10.796 0-.727-.08-1.282-.178-1.919H12.24z"/>
</svg>
Sign in with Google
</button>
</div>
<div style="display:flex; justify-content:center; align-items:center; margin-bottom:16px;">
<button class="btn btn-ghost" id="auth-demo-btn" style="font-size:10px; padding:0 8px;">[launch demo_session]</button>
</div>
<div id="auth-error-display" style="color:var(--red); font-size:11px; font-family:var(--font); line-height:1.4; border-top:1px dashed var(--red); padding-top:8px; display:none; white-space:pre-wrap;">
// ERROR: SEC_AUTH_FAILURE
</div>
</div>
</div>
<div class="shell" id="main-app">
<!-- HEADER -->
<header class="site-header">
<div class="site-title-group">
<div class="site-title">ethos<span>.</span>init</div>
<div class="site-desc">llm math mastery tracker — terminal edition</div>
</div>
</header>
<!-- NAV -->
<nav class="nav" id="tab-nav">
<button class="nav-tab active" data-tab="dashboard">dashboard</button>
<button class="nav-tab" data-tab="ethe">ἤθη</button>
<button class="nav-tab" data-tab="swim">swimming</button>
<button class="nav-tab" data-tab="progress">progress</button>
<button class="nav-tab" data-tab="papers">papers</button>
<button class="nav-tab" data-tab="focus">focus</button>
<button class="nav-tab" data-tab="log">log</button>
</nav>
<!-- DASHBOARD -->
<div id="tab-dashboard" class="panel active">
<div class="section-cmd">$ <span>cat stats.json</span></div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-label">current streak</div>
<div class="stat-value" id="stat-streak">0</div>
<div class="stat-unit">days</div>
<div class="stat-delta up" id="stat-streak-delta">— start today</div>
</div>
<div class="stat-card">
<div class="stat-label">total XP</div>
<div class="stat-value" id="stat-xp">0</div>
<div class="stat-unit">points</div>
<div class="stat-delta up">▲ today: +<span id="stat-xp-today">0</span></div>
</div>
<div class="stat-card">
<div class="stat-label">study hours</div>
<div class="stat-value" id="stat-hours">0</div>
<div class="stat-unit">total hrs</div>
<div class="stat-delta up" id="stat-hours-delta">▲ this week: 0h</div>
</div>
<div class="stat-card">
<div class="stat-label">ἤθη done</div>
<div class="stat-value" id="stat-done">0</div>
<div class="stat-unit">today</div>
<div class="stat-delta" id="stat-done-delta">— 0 / 0 today</div>
</div>
</div>
<!-- Training expectations -->
<div class="section-cmd">$ <span>cat training_expectations.json</span></div>
<div class="expectations-card" id="expectations-card-container" style="margin-bottom:1.5rem"></div>
<!-- Group Summary -->
<div class="section-cmd">$ <span>cat groups.json</span></div>
<div class="group-summary-grid" id="group-summary"></div>
<!-- XP Bar -->
<div class="xp-section">
<div class="xp-header">
<span class="xp-label">level <span id="xp-level">1</span> — <span id="xp-title">Calculus Initiate</span></span>
<span class="xp-value"><span id="xp-current">0</span> / <span id="xp-next">500</span> XP</span>
</div>
<div class="xp-bar-bg"><div class="xp-bar-fill" id="xp-bar" style="width:0%"></div></div>
<div class="xp-sublabel">// next: <span id="xp-next-title">Linear Algebra Apprentice</span></div>
</div>
<!-- ECRE NEURAL MEMORY MONITOR -->
<div class="section-cmd" style="margin-top:1.5rem">$ <span>cat ecre_memory.db | jq .</span></div>
<div class="ecre-memory-card" id="ecre-memory-dashboard" style="margin-bottom:1.5rem">
<div class="ecre-mem-header">
<span class="ecre-mem-title">// ECRE NEURAL MEMORY PROFILE</span>
<span class="ecre-mem-status blinking" id="ecre-mem-pulse">SYNC_OK</span>
</div>
<div class="ecre-mem-grid">
<div class="ecre-mem-col">
<div class="ecre-col-title">🟢 ACTIVE COMMITMENTS (PROMISES)</div>
<div class="ecre-col-list" id="ecre-promises-list">
<div class="ecre-empty-msg">// No active commitments.</div>
</div>
</div>
<div class="ecre-mem-col">
<div class="ecre-col-title">🔴 OPEN QUESTIONS (XP_LOCK)</div>
<div class="ecre-col-list" id="ecre-questions-list">
<div class="ecre-empty-msg">// No open questions.</div>
</div>
</div>
<div class="ecre-mem-col">
<div class="ecre-col-title">🟡 DETECTED PATTERNS</div>
<div class="ecre-col-list" id="ecre-patterns-list">
<div class="ecre-empty-msg">// Listening for behavioral anomalies...</div>
</div>
</div>
</div>
</div>
<!-- Visual Heatmap and Radar telemetry -->
<div class="dashboard-visuals">
<!-- Contribution Graph -->
<div class="contrib-section">
<div class="contrib-label">// activity graph — last 30 weeks</div>
<div class="contrib-grid" id="contrib-grid"></div>
</div>
<!-- ECRE Radar Graph Card -->
<div class="radar-section">
<div class="radar-label">// ethos cognitive reflection engine (ecre)</div>
<div class="radar-card" id="dashboard-radar-card" style="cursor:pointer; display:flex; flex-direction:column; align-items:stretch;">
<div style="display:flex; align-items:center; gap:16px;">
<canvas id="coherence-radar" width="110" height="110" style="width:110px;height:110px;"></canvas>
<div class="radar-telemetry">
<div class="radar-tel-row"><span class="tel-lbl">CNS:</span> <span class="tel-val" id="hud-val-cns">0%</span></div>
<div class="radar-tel-row"><span class="tel-lbl">RIG:</span> <span class="tel-val" id="hud-val-rig">0%</span></div>
<div class="radar-tel-row"><span class="tel-lbl">FOC:</span> <span class="tel-val" id="hud-val-foc">0%</span></div>
<div class="radar-tel-row"><span class="tel-lbl">RUT:</span> <span class="tel-val" id="hud-val-rut">0%</span></div>
<div class="radar-tel-row"><span class="tel-lbl">STM:</span> <span class="tel-val" id="hud-val-stm">0%</span></div>
<div class="radar-tel-row" style="margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 4px;">
<span class="tel-lbl">STATE:</span> <span class="tel-val" id="hud-status-val" style="font-weight:bold;">DEEP_SYNC</span>
</div>
<div class="radar-tel-row">
<span class="tel-lbl">BUFF:</span> <span class="tel-val" id="hud-buff-val" style="color:var(--accent);">x1.2 Flow</span>
</div>
</div>
</div>
<div id="radar-living-comment" style="font-size:10px; color:var(--text-dim); margin-top:8px; border-top:1px dashed var(--border); padding-top:6px; font-family:var(--font); font-style:italic;">
// ECRE: Standby...
</div>
</div>
</div>
</div>
<!-- Today Quick View -->
<div class="section-cmd" style="margin-top:1.5rem">$ <span>tail -f today.log</span></div>
<div id="today-ethe-quick"></div>
</div>
<!-- ETHE TAB -->
<div id="tab-ethe" class="panel">
<!-- Terminal prompt -->
<div class="ethos-prompt">
<span class="hp-user" id="hp-user">user</span><span class="hp-at">@</span><span class="hp-host">ethos.init</span> <span class="hp-dollar">$</span> <span class="hp-cmd">ethe --list --today</span>
</div>
<div class="ethos-comment" id="ethos-comment">// day 1. the journey begins.</div>
<!-- Date + streak -->
<div class="ethos-date-row">
<span>📅 <span id="ethos-date"></span> <span class="ethos-today-badge" id="ethos-today-badge">[today]</span></span>
<label class="today-toggle-label">
<input type="checkbox" id="today-only-checkbox">
<span class="checkbox-box">[ ] today only</span>
</label>
</div>
<div class="ethos-streak-row">
<span>🔥 <span id="ethos-streak-val">0</span> days</span>
<span> * </span>
<span>🛡️ <span id="ethos-shield-val">0</span></span>
</div>
<!-- View mode toggle: groups vs protocol -->
<div class="protocol-toggle-row">
<button class="protocol-toggle-btn active" id="view-groups-btn">[groups]</button>
<button class="protocol-toggle-btn" id="view-protocol-btn">[protocol]</button>
</div>
<!-- Group filter tabs -->
<div class="group-filter-bar" id="group-filter-bar">
<button class="group-filter-tab active" data-group="all">all</button>
<button class="group-filter-tab" data-group="math" style="--gc:#00ff88">[math]</button>
<button class="group-filter-tab" data-group="body" style="--gc:#ffb700">[body]</button>
<button class="group-filter-tab" data-group="mind" style="--gc:#4488ff">[mind]</button>
<button class="group-filter-tab" data-group="build" style="--gc:#aa77ff">[build]</button>
<button class="group-filter-tab" data-group="hair" style="--gc:#22d3ee">[hair]</button>
<button class="group-filter-tab" data-group="skin" style="--gc:#f472b6">[skin]</button>
<button class="group-filter-tab" data-group="nutrition" style="--gc:#ff8c00">[nutrition]</button>
</div>
<!-- Week calendar -->
<div class="week-cal">
<button class="week-cal-nav" id="week-prev"><</button>
<div class="week-cal-days" id="week-cal-days"></div>
<button class="week-cal-nav" id="week-next">></button>
</div>
<!-- Ethos routines — groups view (rendered by JS) -->
<div id="ethos-routines"></div>
<!-- Protocol view — sequential (rendered by JS, hidden by default) -->
<div id="protocol-view" style="display:none"></div>
<!-- Daily progress -->
<div class="daily-progress">
<div class="dp-bar-bg"><div class="dp-bar-fill" id="dp-bar-fill"></div></div>
<div class="dp-label"><span id="dp-pct">0%</span></div>
<div class="dp-goal">// goal: 80%</div>
</div>
<!-- Notes -->
<div class="divider"></div>
<div class="section-cmd">$ <span>ethe --today-note</span></div>
<textarea class="note-area" id="today-note" placeholder="// what did you learn today? what clicked? what broke your brain? // e.g. 'finally understood why QK^T needs √d_k scaling'"></textarea>
<div style="margin-top:8px;display:flex;gap:8px;align-items:center">
<button class="btn" id="save-note-btn">save note</button>
<span id="note-saved" class="save-flash">✓ saved</span>
</div>
<!-- Sticky bottom bar -->
<div class="ethos-bottom-bar" id="ethos-bottom-bar">
<button class="hbb-btn hbb-accent" id="hbb-add-ethos">+ ethos</button>
<button class="hbb-btn hbb-accent" id="hbb-add-routine">+ routine</button>
</div>
</div>
<!-- SWIMMING -->
<div id="tab-swim" class="panel">
<div class="section-cmd">$ <span>swim --stats</span></div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-label">total sessions</div>
<div class="stat-value" id="swim-stat-total">0</div>
<div class="stat-unit">sessions</div>
</div>
<div class="stat-card">
<div class="stat-label">total swam days</div>
<div class="stat-value" id="swim-stat-days">0</div>
<div class="stat-unit">days</div>
</div>
<div class="stat-card">
<div class="stat-label">missed days</div>
<div class="stat-value" id="swim-stat-missed" style="color: var(--red);">0</div>
<div class="stat-unit">days</div>
</div>
<div class="stat-card">
<div class="stat-label">double-sessions</div>
<div class="stat-value" id="swim-stat-double" style="color: var(--amber);">0</div>
<div class="stat-unit">days</div>
</div>
<div class="stat-card">
<div class="stat-label">completion rate</div>
<div class="stat-value" id="swim-stat-rate">0%</div>
<div class="stat-unit">rate</div>
</div>
<div class="stat-card">
<div class="stat-label">total duration</div>
<div class="stat-value" id="swim-stat-duration">0</div>
<div class="stat-unit">minutes</div>
</div>
<div class="stat-card">
<div class="stat-label">total distance</div>
<div class="stat-value" id="swim-stat-distance" style="color: var(--accent);">0</div>
<div class="stat-unit">km</div>
</div>
<div class="stat-card">
<div class="stat-label">total calories</div>
<div class="stat-value" id="swim-stat-calories" style="color: var(--amber);">0</div>
<div class="stat-unit">kcal</div>
</div>
<div class="stat-card">
<div class="stat-label">current streak</div>
<div class="stat-value" id="swim-stat-streak" style="color: var(--accent);">0</div>
<div class="stat-unit">days 🔥</div>
</div>
<div class="stat-card">
<div class="stat-label">longest streak</div>
<div class="stat-value" id="swim-stat-streak-max" style="color: var(--amber);">0</div>
<div class="stat-unit">days 👑</div>
</div>
</div>
<!-- Swim logger form -->
<div class="section-cmd">$ <span>swim --log-session</span></div>
<div class="add-ethos-form swim-log-form" style="margin-bottom:1rem">
<input type="date" class="terminal-input" id="swim-input-date" style="width:130px;flex:none">
<input type="text" class="terminal-input" id="swim-input-time" placeholder="time (e.g. 8:00 pm – 9:30 pm)" style="width:200px;flex:none">
<input type="number" class="terminal-input" id="swim-input-duration" min="0" placeholder="duration (mins)" style="width:130px;flex:none">
<input type="number" class="terminal-input" id="swim-input-laps" min="0" placeholder="laps (optional)" style="width:110px;flex:none">
<input type="text" class="terminal-input" id="swim-input-comment" placeholder="comments (e.g. Machaxi Centre, Olympia)">
<button class="btn" id="swim-log-btn" style="flex:none">+ log swim</button>
</div>
<!-- Scrollable timeline -->
<div class="section-cmd">$ <span>swim --timeline</span></div>
<input type="text" class="terminal-input" id="swim-search-input" placeholder="filter by date, time, or comments..." style="margin-bottom: 1rem; width:100%">
<div class="group-filter-bar" style="margin-bottom: 1rem">
<button class="swim-filter-tab active" data-filter="all">all days</button>
<button class="swim-filter-tab" data-filter="swam" style="--gc:var(--accent)">swam days</button>
<button class="swim-filter-tab" data-filter="missed" style="--gc:var(--red)">missed days</button>
</div>
<div class="swim-timeline-box">
<div id="swim-timeline-container"></div>
</div>
</div>
<!-- PROGRESS -->
<div id="tab-progress" class="panel">
<div class="section-cmd">$ <span>cat progress.json | jq .</span></div>
<div class="phase-list">
<div class="phase-item"><div class="phase-dot active"></div><div class="phase-name">Phase 1 — Foundation (Linear Algebra, Calculus, Probability)</div><div class="phase-weeks">wks 1–6</div><div class="phase-progress-mini" id="phase1-pct">0%</div></div>
<div class="phase-item"><div class="phase-dot pending"></div><div class="phase-name">Phase 2 — Core ML (Optimization, Backprop, Matrix Calc)</div><div class="phase-weeks">wks 7–14</div><div class="phase-progress-mini" id="phase2-pct">—</div></div>
<div class="phase-item"><div class="phase-dot pending"></div><div class="phase-name">Phase 3 — LLM Math (Attention, Embeddings, RLHF, LoRA)</div><div class="phase-weeks">wks 15–24</div><div class="phase-progress-mini" id="phase3-pct">—</div></div>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>cat skill_matrix.json</span></div>
<div class="skill-matrix-grid">
<!-- Foundations -->
<div class="sm-column">
<div class="sm-col-header">// level_0_foundations</div>
<div class="skill-node" id="sn-linear_algebra" data-skill="linear_algebra">
<div class="sn-title">Linear Algebra</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-linear_algebra" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-linear_algebra">0%</span>
</div>
</div>
<div class="sm-connector">│</div>
<div class="skill-node" id="sn-mv_calc" data-skill="mv_calc">
<div class="sn-title">Multivariable Calc</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-mv_calc" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-mv_calc">0%</span>
</div>
</div>
<div class="sm-connector">│</div>
<div class="skill-node" id="sn-probability" data-skill="probability">
<div class="sn-title">Probability / Stats</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-probability" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-probability">0%</span>
</div>
</div>
</div>
<!-- Connecting Wire Col 1 -->
<div class="sm-divider-col">
<div class="sm-wire" style="margin-top:50px">┌─────</div>
<div class="sm-wire" style="margin-top:72px">├─────</div>
<div class="sm-wire" style="margin-top:72px">└─┬───</div>
</div>
<!-- Core Propagation -->
<div class="sm-column">
<div class="sm-col-header">// level_1_core_science</div>
<div class="skill-node" id="sn-optimization" data-skill="optimization" style="margin-top:15px">
<div class="sn-title">Optimization Theory</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-optimization" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-optimization">0%</span>
</div>
</div>
<div class="sm-connector">│</div>
<div class="skill-node" id="sn-backprop" data-skill="backprop">
<div class="sn-title">Backpropagation</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-backprop" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-backprop">0%</span>
</div>
</div>
</div>
<!-- Connecting Wire Col 2 -->
<div class="sm-divider-col">
<div class="sm-wire" style="margin-top:90px">┌─────</div>
<div class="sm-wire" style="margin-top:106px">└─┬───</div>
</div>
<!-- Advanced Mastery -->
<div class="sm-column">
<div class="sm-col-header">// level_2_mastery</div>
<div class="skill-node" id="sn-attention" data-skill="attention">
<div class="sn-title">Attention Mechanism</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-attention" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-attention">0%</span>
</div>
</div>
<div class="sm-connector">│</div>
<div class="skill-node" id="sn-transformer" data-skill="transformer">
<div class="sn-title">Transformer Arch</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-transformer" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-transformer">0%</span>
</div>
</div>
<div class="sm-connector">│</div>
<div class="skill-node" id="sn-lora" data-skill="lora">
<div class="sn-title">Fine-Tuning / LoRA</div>
<div class="sn-progress">
<div class="sn-bar-bg"><div class="sn-bar-fill" id="sn-fill-lora" style="width:0%"></div></div>
<span class="sn-val" id="sn-val-lora">0%</span>
</div>
</div>
</div>
</div>
<!-- Mini HUD Popup Box for hovered/selected skills -->
<div class="skill-hud-card" id="skill-hud" style="margin-top: 1rem">
<div class="sh-header">
<span class="sh-title" id="sh-title">Select a skill node above</span>
<span class="sh-pct" id="sh-pct">--</span>
</div>
<div class="sh-body" id="sh-desc">Inspecting diagnostic node parameters... Click on any skill block above to inspect/level up.</div>
<div class="sh-action-row" id="sh-action-row" style="display:none; margin-top:8px; gap:8px">
<input type="number" class="terminal-input" id="sh-input-val" min="0" max="100" placeholder="Set level 0-100" style="width:120px; flex:none">
<button class="btn" id="sh-update-btn">update --level</button>
</div>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>cat achievements.db</span></div>
<div class="achievement-shelf" id="achievement-shelf">
<!-- Unlocked and locked achievements rendered here by JS -->
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>cat biometrics.db</span></div>
<div class="add-ethos-form biometrics-form" style="margin-bottom:1rem">
<input type="date" class="terminal-input" id="bio-date" style="width:130px;flex:none">
<input type="number" class="terminal-input" id="bio-weight" step="0.1" placeholder="weight (kg)" style="width:120px;flex:none">
<input type="number" class="terminal-input" id="bio-uric" step="0.1" placeholder="uric acid" style="width:110px;flex:none">
<input type="number" class="terminal-input" id="bio-hdl" step="1" placeholder="hdl" style="width:90px;flex:none">
<input type="number" class="terminal-input" id="bio-eosin" step="0.1" placeholder="eosinophils" style="width:120px;flex:none">
<button class="btn" id="bio-log-btn" style="flex:none">+ log metrics</button>
</div>
<div class="biometrics-history-container" style="background:var(--bg2); border:1px solid var(--border); border-radius:4px; padding:12px; margin-bottom:1.5rem; max-height:220px; overflow-y:auto;">
<table class="bio-table" style="width:100%; border-collapse:collapse; font-size:12px; text-align:left; font-family:var(--font);">
<thead>
<tr style="border-bottom:1px dashed var(--border2); color:var(--text-dim);">
<th style="padding:6px 4px;">DATE</th>
<th style="padding:6px 4px;">WEIGHT</th>
<th style="padding:6px 4px;">URIC ACID</th>
<th style="padding:6px 4px;">HDL</th>
<th style="padding:6px 4px;">EOSINOPHILS</th>
<th style="padding:6px 4px; text-align:right;">ACTION</th>
</tr>
</thead>
<tbody id="bio-history-body">
<!-- RENDERED BY JS -->
</tbody>
</table>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>log --hours</span></div>
<div class="add-ethos-form">
<input type="number" class="terminal-input" id="hours-input" min="0" max="12" step="0.5" placeholder="hours studied today">
<button class="btn" id="log-hours-btn">log</button>
</div>
<div class="log-msg" id="hours-log-msg"></div>
</div>
<!-- PAPERS -->
<div id="tab-papers" class="panel">
<div class="section-cmd">$ <span>cat papers.log</span></div>
<div class="add-ethos-form">
<input type="text" class="terminal-input" id="new-paper-input" placeholder="paper title (e.g. 'Attention Is All You Need')">
<select class="terminal-input" id="new-paper-status" style="width:100px;flex:none">
<option value="queued">queued</option>
<option value="reading">reading</option>
<option value="done">done</option>
</select>
<button class="btn" id="add-paper-btn">+ add</button>
</div>
<div id="paper-list"></div>
<div class="divider"></div>
<div class="section-cmd">$ <span>papers --insight</span></div>
<textarea class="note-area" id="paper-note" placeholder="// key equation from today's paper reading... // e.g. Attention(Q,K,V) = softmax(QKᵀ/√dₖ)·V"></textarea>
<div style="margin-top:8px;display:flex;gap:8px;align-items:center">
<button class="btn" id="save-paper-note-btn">save insight</button>
<span id="paper-note-saved" class="save-flash">✓ saved</span>
</div>
</div>
<!-- FOCUS (POMODORO) -->
<div id="tab-focus" class="panel">
<div class="section-cmd">$ <span>sysctl --focus --enable</span></div>
<div class="focus-hud-box">
<div class="fhud-header">
<span class="fhud-status-tag blinking" id="focus-status-tag">IDLE</span>
<span class="fhud-time-utc" id="focus-utc">00:00:00 UTC</span>
</div>
<div class="fhud-clock-face">
<span id="focus-clock-time">25:00</span>
</div>
<div class="fhud-progress-wrap">
<div class="fhud-progress-bar" id="focus-progress-bar" style="width: 0%"></div>
</div>
<div class="fhud-progress-sub">
<span id="focus-progress-pct">0% ACTIVE</span>
<span id="focus-session-type">// TASK_IDLE</span>
</div>
<div class="fhud-controls">
<button class="btn" id="focus-start-btn">start --session</button>
<button class="btn btn-ghost" id="focus-pause-btn" style="display:none">pause</button>
<button class="btn btn-danger" id="focus-abort-btn" style="display:none">abort --kill</button>
</div>
<div class="fhud-durations">
<button class="btn btn-ghost active" id="fd-25">25m_focus</button>
<button class="btn btn-ghost" id="fd-50">50m_focus</button>
<button class="btn btn-ghost" id="fd-5">5m_break</button>
<button class="btn btn-ghost" id="fd-15">15m_break</button>
</div>
<div class="fhud-log" id="focus-log-terminal">
<div class="fl-line"><span class="fl-ts">[00:00]</span> focus.init online. ready to engage.</div>
</div>
</div>
</div>
<!-- LOG -->
<div id="tab-log" class="panel">
<div class="section-cmd">$ <span>tail -f system.log</span></div>
<div class="log-terminal" id="main-log"></div>
<div class="divider"></div>
<div class="section-cmd">$ <span>log --manual</span></div>
<div class="add-ethos-form" style="margin-bottom:1.5rem">
<input type="text" class="terminal-input" id="manual-log-input" placeholder="write a log entry...">
<select class="terminal-input" id="manual-log-type" style="width:80px;flex:none">
<option value="ok">ok</option>
<option value="info">info</option>
<option value="warn">warn</option>
</select>
<button class="btn" id="add-log-btn">write</button>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>term --interactive</span></div>
<button class="btn" id="open-term-btn" style="margin-bottom:1.5rem">launch interactive terminal</button>
<div class="divider"></div>
<div class="section-cmd">$ <span>reminders --config</span></div>
<div class="add-ethos-form reminders-config-box" style="margin-bottom:1rem; flex-wrap: wrap;">
<div style="width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;">
<span style="font-family: var(--font); font-size: 12px;">Alert Engine: <span id="pwa-notif-status" style="color:var(--red); font-weight:bold;">BLOCKED</span></span>
<button class="btn btn-ghost" id="pwa-request-btn" style="font-size: 10px; padding: 4px 8px;">[enable notifications]</button>
</div>
<div style="display: flex; gap: 8px; width: 100%; align-items: center; flex-wrap: wrap;">
<select class="terminal-input" id="notif-sound-preset" style="width:140px; flex:none;">
<option value="cyber_chime">Preset: Chime</option>
<option value="cyber_pulse">Preset: Pulse</option>
<option value="cyber_radar">Preset: Radar</option>
<option value="none">Sound: Off</option>
</select>
<label style="font-size:11px; color:var(--text-dim); display:flex; align-items:center; gap:6px; flex:1; min-width: 120px;">
Volume:
<input type="range" id="notif-vol-slider" min="0" max="1" step="0.1" value="0.5" style="accent-color:var(--accent); flex:1; height: 4px;">
</label>
<button class="btn btn-ghost" id="notif-test-btn" style="font-size:10px; padding:6px 10px; flex:none;">[test]</button>
</div>
</div>
<div class="add-ethos-form reminders-add-form" style="margin-bottom:1rem;">
<input type="time" class="terminal-input" id="rem-time-input" style="width:120px; flex:none;">
<input type="text" class="terminal-input" id="rem-msg-input" placeholder="Alert label (e.g. Morning Study routine)" style="flex:1;">
<button class="btn" id="rem-save-btn" style="flex:none;">+ add alarm</button>
</div>
<div class="biometrics-history-container" style="background:var(--bg2); border:1px solid var(--border); border-radius:4px; padding:12px; margin-bottom:1.5rem; max-height:200px; overflow-y:auto;">
<table class="bio-table" style="width:100%; border-collapse:collapse; font-size:12px; text-align:left; font-family:var(--font);">
<thead>
<tr style="border-bottom:1px dashed var(--border2); color:var(--text-dim);">
<th style="padding:6px 4px;">TIME</th>
<th style="padding:6px 4px;">MESSAGE</th>
<th style="padding:6px 4px;">STATUS</th>
<th style="padding:6px 4px; text-align:right;">ACTION</th>
</tr>
</thead>
<tbody id="reminders-table-body">
<!-- Rendered dynamically -->
</tbody>
</table>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>oracle --status</span></div>
<div class="add-ethos-form oracle-config-box" style="margin-bottom:1.5rem; flex-wrap: wrap;">
<div style="width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;">
<span style="font-family: var(--font); font-size: 12px;">AI Core Status: <span id="oracle-key-status" style="color:var(--red); font-weight:bold;">OFFLINE</span></span>
<a href="https://aistudio.google.com/" target="_blank" style="font-size: 10px; color: var(--accent); text-decoration: underline; font-family: var(--font);">[Get free Gemini Key]</a>
</div>
<div style="display: flex; gap: 8px; width: 100%; align-items: center;">
<input type="password" class="terminal-input" id="oracle-key-input" placeholder="Paste your Gemini API key here..." style="flex:1;">
<button class="btn" id="oracle-save-btn" style="flex:none;">save key</button>
</div>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>config --theme</span></div>
<div class="theme-picker-wrap" id="theme-picker-wrap">
<button class="theme-picker-btn" id="theme-picker-btn">
<span class="picker-dot"></span>
<span id="theme-picker-label">nephrite</span>
<span class="picker-arrow">▾</span>
</button>
<div class="theme-dropdown hidden" id="theme-dropdown"></div>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>auth --status</span></div>
<div class="sync-panel" style="background:var(--bg2); border:1px solid var(--border); border-radius:4px; padding:16px; margin-bottom:1.5rem;">
<div style="font-family:var(--font); font-size:12px; color:var(--text-dim); margin-bottom:12px;">
// Automatic high-security session synchronization is active on your profile.
</div>
<div style="display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;">
<div>
<div style="font-family:var(--font); font-size:12px; color:var(--text);">Identity: <span id="auth-profile-username" style="color:var(--accent); font-weight:bold;">loading...</span> <span id="auth-profile-email" style="color:var(--text-dim); font-size:11px; margin-left:6px;">(loading...)</span></div>
<div id="auth-sync-status" style="font-family:var(--font); font-size:11px; color:var(--text-dim); margin-top:4px;">Status: sync engine online</div>
</div>
<button class="btn btn-danger" id="auth-logout-btn" style="flex:none;">deauthorize --logout</button>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>backup --diode</span></div>
<div style="display:flex; gap:10px; margin-bottom:1.5rem; flex-wrap: wrap;">
<button class="btn" id="backup-btn">export --backup</button>
<button class="btn btn-ghost" id="restore-import-btn" style="border: 1px solid var(--accent);">[import --restore]</button>
</div>
<div class="divider"></div>
<div class="section-cmd">$ <span>reset --hard</span></div>
<button class="btn btn-danger" id="reset-btn">erase all data</button>
<div class="log-msg">// this will delete everything. no undo.</div>
</div>
<!-- FOOTER -->
<footer class="site-footer">
<span>ethos.init v2.4.0 — built for llm mastery</span>
<span id="footer-time"></span>
</footer>
<!-- MODALS -->
<div class="modal-overlay" id="ethos-modal">
<div class="modal">
<div class="modal-title" id="hm-title">add ethos (ἔθος)</div>
<div class="modal-row">
<label class="modal-label">ethos name</label>
<input type="text" class="terminal-input" id="hm-name" placeholder="e.g. derive attention by hand">
</div>
<div class="modal-row">
<label class="modal-label">routine</label>
<select class="terminal-input" id="hm-routine"></select>
</div>
<div class="modal-row">
<label class="modal-label">group</label>
<select class="terminal-input" id="hm-group-select">
<option value="math">[math]</option>
<option value="body">[body]</option>
<option value="mind">[mind]</option>
<option value="build">[build]</option>
<option value="hair">[hair]</option>
<option value="skin">[skin]</option>
<option value="nutrition">[nutrition]</option>
</select>
</div>
<div class="modal-row">
<label class="modal-label">xp reward</label>
<select class="terminal-input" id="hm-xp">
<option value="10">10 xp</option>
<option value="20">20 xp</option>
<option value="30" selected>30 xp</option>
<option value="50">50 xp</option>
</select>
</div>
<div class="modal-actions">
<button class="btn btn-ghost" id="ethos-modal-cancel-btn">cancel</button>
<button class="btn" id="hm-save">save</button>
</div>
</div>
</div>
<div class="modal-overlay" id="routine-modal">
<div class="modal">
<div class="modal-title">add routine</div>
<div class="modal-row">
<label class="modal-label">routine name</label>
<input type="text" class="terminal-input" id="rm-name" placeholder="e.g. Morning Study">
</div>
<div class="modal-actions">
<button class="btn btn-ghost" id="routine-modal-cancel-btn">cancel</button>
<button class="btn" id="rm-save">save</button>
</div>
</div>
</div>
<!-- ECRE RADAR DIAGNOSTIC OVERLAY -->
<div class="modal-overlay" id="radar-modal-overlay">
<div class="modal" id="radar-modal" style="width: 480px; max-width: 100%;">
<div class="modal-title">ECRE_REFLECTIVE_COHERENCE_DIAGNOSTIC</div>
<div class="radar-modal-body" style="display:flex; gap:20px; align-items:center; margin-bottom:1.5rem; flex-wrap: wrap;">
<canvas id="modal-coherence-radar" width="160" height="160" style="width:160px;height:160px;"></canvas>
<div class="radar-modal-stats" style="flex:1; display:flex; flex-direction:column; gap:8px; font-size:11px; font-family: var(--font);">
<div style="display:flex; justify-content:space-between;"><strong style="color:var(--text-dim)">CNS (Consistency):</strong> <span id="modal-val-cns" style="font-weight:bold;">0%</span></div>
<div style="display:flex; justify-content:space-between;"><strong style="color:var(--text-dim)">RIG (Rigor):</strong> <span id="modal-val-rig" style="font-weight:bold;">0%</span></div>
<div style="display:flex; justify-content:space-between;"><strong style="color:var(--text-dim)">FOC (Focus):</strong> <span id="modal-val-foc" style="font-weight:bold;">0%</span></div>
<div style="display:flex; justify-content:space-between;"><strong style="color:var(--text-dim)">RUT (Routines):</strong> <span id="modal-val-rut" style="font-weight:bold;">0%</span></div>
<div style="display:flex; justify-content:space-between;"><strong style="color:var(--text-dim)">STM (Stamina):</strong> <span id="modal-val-stm" style="font-weight:bold;">0%</span></div>
<div style="border-top:1px dashed var(--border); padding-top:6px; margin-top:4px; display:flex; justify-content:space-between;">
<strong style="color:var(--text-dim)">STATE:</strong> <span id="modal-val-state" style="font-weight:bold;">DEEP_SYNC</span>
</div>
<div style="display:flex; justify-content:space-between;">
<strong style="color:var(--text-dim)">BUFF:</strong> <span id="modal-val-buff" style="color:var(--accent);">x1.2 Flow Buff</span>
</div>
</div>
</div>
<div id="modal-val-critique" style="font-size:11px; color:var(--text-dim); border-top:1px dashed var(--border); padding-top:8px; line-height:1.5; margin-bottom:1.5rem; font-family: var(--font);">
// Critique
</div>
<div class="modal-actions">
<button class="btn btn-ghost" id="radar-modal-close-btn">dismiss --session</button>
</div>
</div>
</div>
<!-- IMPORT/RESTORE MODAL -->
<div class="modal-overlay" id="import-modal" style="display:none; align-items:center; justify-content:center;">
<div class="modal" style="max-width: 480px; width: 90%;">
<div class="modal-title" style="color:var(--accent);">restore --backup</div>
<div style="font-family:var(--font); font-size:11px; color:var(--text-dim); margin-bottom:16px; line-height:1.4;">
// Upload an ethos backup JSON file or paste the raw JSON text below.
</div>
<div class="modal-row">
<label class="modal-label">Upload Backup File</label>
<div id="import-drag-zone" style="border: 1px dashed var(--border); border-radius: 4px; padding: 20px; text-align: center; font-family: var(--font); font-size: 12px; color: var(--text-dim); background: var(--bg2); cursor: pointer; transition: all 0.2s;">
<span style="color:var(--accent);">Choose file</span> or drag & drop here
<input type="file" id="import-file-input" style="display:none;" accept=".json">
</div>
</div>
<div class="modal-row" style="margin-top:16px;">
<label class="modal-label">Or Paste Raw JSON Data</label>
<textarea id="import-text-area" class="terminal-input" placeholder='Paste {"routines": [...], "history": {...}, ...}' style="width: 100%; height: 120px; font-family: var(--font); font-size: 11px; resize: vertical; box-sizing: border-box; background: var(--bg); color: var(--text); padding: 8px;"></textarea>
</div>
<div id="import-error-display" style="display:none; color:var(--red); font-family:var(--font); font-size:11px; margin-top:12px; border-left: 2px solid var(--red); padding-left: 8px; line-height: 1.4;"></div>
<div style="display:flex; justify-content:flex-end; gap:8px; margin-top:20px;">
<button class="btn btn-ghost" id="import-cancel-btn">cancel</button>
<button class="btn" id="import-confirm-btn">authorize --restore</button>
</div>
</div>
</div>
<!-- INTERACTIVE TERMINAL OVERLAY -->
<div class="terminal-view-overlay" id="interactive-terminal">
<div class="tv-header">
<div class="tv-title">ethos.init // interactive mode</div>
<button class="tv-close" id="close-term-btn">[x] exit</button>
</div>
<div class="tv-output" id="tv-output">
<div class="tv-output-inner" id="tv-output-inner"></div>
</div>
<div class="tv-input-row">
<span class="tv-prompt"><span style="color:#22d3ee">user</span><span style="color:var(--text-dim)">@</span><span style="color:var(--accent)">ethos.init</span> <span style="font-weight:bold;color:var(--text)">$</span></span>
<input type="text" class="tv-input" id="tv-input" autocomplete="off" spellcheck="false" autofocus>
</div>
<div class="tv-hint">// ↑↓ history · Tab autocomplete · Ctrl+Alt+C crt toggle</div>
</div>
</div>
<canvas id="ascii-flower" class="ascii-flower"></canvas>
<script src="data.js?v=2.4.0"></script>
<script src="app.js?v=2.4.0"></script>
</body>
</html>