File size: 33,296 Bytes
6ab0441
6e2328e
fbec820
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b4eccb8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
edb4038
ab15c91
 
 
 
 
edb4038
 
ab15c91
edb4038
 
ab15c91
 
 
 
edb4038
 
 
 
 
ab15c91
 
 
edb4038
 
 
 
 
 
ab15c91
 
 
 
 
 
 
 
 
 
 
 
 
 
edb4038
778145c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
edb4038
 
 
 
 
 
 
 
 
 
 
 
 
 
778145c
d61ea0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f09cd1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fbec820
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81fc8a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fbec820
81fc8a0
 
 
 
fbec820
 
81fc8a0
fbec820
 
 
 
 
 
 
 
 
 
 
 
 
81fc8a0
fbec820
 
 
81fc8a0
fbec820
81fc8a0
fbec820
81fc8a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6e2328e
 
 
 
 
 
 
 
 
 
 
 
 
 
6ab0441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137cb0a
6ab0441
 
137cb0a
ed3d534
137cb0a
 
 
ed3d534
137cb0a
 
 
 
ed3d534
137cb0a
ed3d534
 
 
 
 
 
137cb0a
 
 
ed3d534
 
 
 
 
 
137cb0a
 
 
 
ed3d534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137cb0a
ed3d534
137cb0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ab0441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ed3d534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ab0441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d0a945b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81fc8a0
 
 
 
d0a945b
 
 
 
81fc8a0
 
 
 
 
 
 
 
 
 
 
 
d0a945b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ab0441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0386760
6ab0441
 
0386760
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449213a
 
 
 
 
 
 
 
 
 
 
 
c11b76c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ab0441
 
 
 
 
 
 
 
 
 
b4f7029
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28ac122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
/* TAF Agent — minimal clean styling */

/* v0.7.0 — main panels foldable (every section under <main>) */
.main-panel { margin: 0; }
.main-panel > .main-panel-title {
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 0 0 0.5em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.main-panel > .main-panel-title::-webkit-details-marker { display: none; }
.main-panel > .main-panel-title::marker { content: ""; }
.main-panel > .main-panel-title::before {
  content: "▼";
  display: inline-block;
  font-size: 0.65em;
  color: #58a6ff;
  margin-right: 0.3em;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.main-panel:not([open]) > .main-panel-title::before { transform: rotate(-90deg); }
.main-panel > .main-panel-title:hover { background: rgba(255, 255, 255, 0.02); }
.main-panel > .main-panel-title h2 {
  display: inline;
  margin: 0;
  vertical-align: baseline;
  flex: 1;
}

/* v0.7.7 — Task tiles: groups 14 modes by user intent, primary entry point */
#task-tiles { margin-bottom: 1em; }
#task-tiles h2 { margin-bottom: 0.3em; }
#task-tiles .recipe-desc { margin-bottom: 0.8em; opacity: 0.85; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8em;
}
.task-tile {
  padding: 0.9em 1em;
  background: #12181f;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.task-tile:hover {
  border-color: rgba(88, 166, 255, 0.5);
}
.task-tile h3 {
  margin: 0 0 0.3em;
  font-size: 1.05em;
  color: #58a6ff;
}
.task-tile .tile-desc {
  font-size: 0.88em;
  opacity: 0.8;
  margin: 0 0 0.6em;
  line-height: 1.4;
}
.task-tile .tile-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}
.task-tile .tile-modes button {
  font-size: 0.85em;
  padding: 0.35em 0.7em;
  background: rgba(88, 166, 255, 0.10);
  border: 1px solid rgba(88, 166, 255, 0.25);
  color: #c9d1d9;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.task-tile .tile-modes button:hover {
  background: rgba(88, 166, 255, 0.22);
  border-color: rgba(88, 166, 255, 0.55);
}

/* v0.7.5 — Cross-framework drift bound */
/* Drift section overrides the default 980px main width so the two-column form
   has room without overlapping. Mobile (<800px) collapses to single column. */
#drift-section {
  max-width: 1100px;
}
.drift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin: 0.6em 0 0.8em;
  align-items: start;
}
@media (max-width: 800px) {
  .drift-grid { grid-template-columns: 1fr; }
}
.drift-setup {
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 8px;
  padding: 0.6em 1em 0.4em;
  min-width: 0;          /* fix: lets grid item shrink instead of overflowing */
  box-sizing: border-box;
  overflow: hidden;      /* clip any overlong content cleanly */
}
.drift-setup legend {
  padding: 0 0.5em;
  font-weight: 600;
  color: #58a6ff;
}
.drift-setup .form-row {
  flex-wrap: wrap;
  gap: 0.4em 0.6em;
  margin: 0.35em 0;
}
.drift-setup .form-row label {
  flex: 0 0 110px;
  font-size: 0.92em;
}
.drift-setup .form-row input,
.drift-setup .form-row select {
  flex: 1 1 120px;
  min-width: 0;
}

/* v0.7.4 — HF Hub autocomplete dropdown (attached to body) */
.hf-autocomplete-dropdown {
  background: #12181f;
  border: 1px solid rgba(88, 166, 255, 0.4);
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  font-size: 0.92em;
}
.hf-autocomplete-dropdown .hf-result {
  display: flex;
  flex-direction: column;
  padding: 0.5em 0.7em;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hf-autocomplete-dropdown .hf-result:last-child { border-bottom: none; }
.hf-autocomplete-dropdown .hf-result:hover,
.hf-autocomplete-dropdown .hf-result.active {
  background: rgba(88, 166, 255, 0.15);
}
.hf-autocomplete-dropdown .hf-result-id {
  font-family: monospace;
  color: #c9d1d9;
}
.hf-autocomplete-dropdown .hf-result-meta {
  font-size: 0.8em;
  opacity: 0.65;
  margin-top: 0.15em;
}
.hf-autocomplete-dropdown .hf-notice {
  padding: 0.5em 0.7em;
  font-size: 0.82em;
  color: #f1c40f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hf-autocomplete-dropdown .hf-privacy {
  padding: 0.4em 0.7em;
  font-size: 0.72em;
  opacity: 0.55;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

/* v0.7.2 — Arena-Elo CI reconstructor */
.arena-result { margin-top: 0.6em; }
.arena-table, .arena-ties-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}
.arena-table th, .arena-ties-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #58a6ff;
  padding: 0.45em 0.6em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.arena-table td, .arena-ties-table td {
  padding: 0.45em 0.6em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.arena-table tr:hover, .arena-ties-table tr:hover { background: rgba(88, 166, 255, 0.04); }
.arena-rank { color: #8b949e; font-family: monospace; }
.arena-elo { font-family: monospace; }
.arena-ci, .arena-spread, .arena-matches, .arena-wlt { font-family: monospace; font-size: 0.9em; opacity: 0.85; }
.arena-tie-count { font-size: 0.85em; opacity: 0.7; font-weight: normal; }

/* v0.7.1 — Chat-template Sniffer mode */
.template-cmd-block {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.template-cmd-label {
  font-size: 0.78em;
  font-weight: 600;
  color: #58a6ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.4em;
}
.template-cmd {
  margin: 0;
  padding: 0.6em 0.8em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85em;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* v0.7.0 — Unmask mode (SWA + RoPE-scaling detector) */
.unmask-result {
  margin-top: 0.8em;
}
.unmask-hero {
  padding: 1em 1.2em;
  border: 2px solid #58a6ff;
  border-radius: 10px;
  background: #12181f;
  margin-bottom: 0.8em;
}
.unmask-verdict {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 0.2em;
}
.unmask-model {
  font-size: 0.92em;
  opacity: 0.85;
  margin-bottom: 0.6em;
}
.unmask-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6em;
  margin-top: 0.5em;
}
.unmask-numbers > div {
  display: flex;
  flex-direction: column;
  padding: 0.5em 0.7em;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}
.unmask-num-label {
  font-size: 0.78em;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.unmask-num-val {
  font-size: 1.3em;
  font-weight: 600;
  font-family: monospace;
  margin-top: 0.15em;
}
.unmask-details {
  padding: 0.8em 1em;
  background: #12181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.unmask-details h4,
.unmask-panel-title {
  margin: 0.4em 0 0.3em;
  color: #58a6ff;
  font-size: 0.95em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 600;
}
.unmask-panel-title::-webkit-details-marker { display: none; }
.unmask-panel-title::marker { content: ""; }
.unmask-panel-title::before {
  content: "▼";
  display: inline-block;
  font-size: 0.75em;
  margin-right: 0.4em;
  color: #58a6ff;
  transition: transform 0.15s ease;
  width: 0.9em;
  text-align: center;
}
.unmask-panel:not([open]) > .unmask-panel-title::before { transform: rotate(-90deg); }
.unmask-panel { margin: 0.5em 0; }
.unmask-details ul {
  margin: 0.2em 0 0.6em;
  padding-left: 1.2em;
  font-size: 0.92em;
  line-height: 1.5;
}
.unmask-reco {
  margin: 0.2em 0 0.4em;
  padding: 0.6em 0.8em;
  background: rgba(88, 166, 255, 0.08);
  border-left: 3px solid #58a6ff;
  border-radius: 0 6px 6px 0;
  font-size: 0.92em;
  line-height: 1.5;
}

/* v0.6.2 — landing rework: quick-start strip + inventory grid + arch-supported */
#quickstart-strip {
  margin: 1.5em auto 1em;
  padding: 1em 1.2em;
  max-width: 980px;
  background: #12181f;
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 8px;
}
#quickstart-strip h2 {
  margin: 0 0 0.6em;
  font-size: 1.25em;
  color: #58a6ff;
}
.qs-steps {
  margin: 0 0 0.8em;
  padding: 0;
  list-style: none;
  counter-reset: qs;
}
.qs-steps li {
  counter-increment: qs;
  margin: 0.5em 0;
  padding-left: 2.4em;
  position: relative;
  line-height: 1.5;
}
.qs-steps li::before {
  content: counter(qs);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: #58a6ff;
  color: #0a0e14;
  text-align: center;
  font-weight: 700;
  line-height: 1.7em;
  font-size: 0.9em;
}
.qs-cta {
  margin: 0.6em 0 0;
}
.btn-primary {
  display: inline-block;
  padding: 0.55em 1.1em;
  background: #58a6ff;
  color: #0a0e14;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  border: none;
}
.btn-primary:hover { background: #1f6feb; color: #fff; }

#inventory-strip {
  margin: 1em auto 1.5em;
  max-width: 980px;
}
#inventory-strip h2 {
  margin: 0 0 0.8em;
  font-size: 1.2em;
  color: #58a6ff;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8em;
}
.inv-card {
  padding: 0.7em 1em;
  background: #12181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.inv-card-title {
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: #58a6ff;
  padding: 0.2em 0;
  list-style: none;       /* hide native marker (Chrome, Safari) */
  user-select: none;
}
.inv-card-title::-webkit-details-marker { display: none; } /* Safari */
.inv-card-title::marker { content: ""; }                   /* Firefox */
.inv-card-title::before {
  content: "▼";
  display: inline-block;
  font-size: 0.75em;
  margin-right: 0.4em;
  color: #58a6ff;
  transition: transform 0.15s ease;
  width: 0.9em;
  text-align: center;
}
.inv-card:not([open]) > .inv-card-title::before { transform: rotate(-90deg); }
.inv-card ul {
  margin: 0.4em 0 0;
  padding-left: 1em;
  font-size: 0.92em;
  line-height: 1.5;
}
.inv-card li { margin: 0.3em 0; }

.arch-supported {
  margin: 1em auto 0;
  max-width: 980px;
  font-size: 0.92em;
}
.arch-supported summary {
  cursor: pointer;
  padding: 0.4em 0;
  opacity: 0.8;
}
.arch-supported summary:hover { opacity: 1; }
.arch-supported .arch-badges {
  margin-top: 0.4em;
}

/* a11y: skip-to-main link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 0; top: -40px;
  background: #58a6ff;
  color: #0a0e14;
  padding: 0.5em 1em;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; }

:root {
  --bg: #0a0e14;
  --bg-card: #12181f;
  --bg-input: #1a2028;
  --fg: #c9d1d9;
  --fg-dim: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --border: #30363d;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
header h1 { margin: 0 0 0.5rem 0; font-size: 2rem; }

/* Language switcher (top-right) — round flags */
.lang-switcher {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex; gap: 0.4rem;
  z-index: 50;
}
.lang-btn {
  background: var(--bg-input);
  border: 2px solid var(--border);
  color: var(--fg);
  border-radius: 50%;
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  position: relative;
}
.lang-btn:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}
.lang-btn.lang-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
}
.lang-btn::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-size: 0.65rem;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  pointer-events: none;
}
.lang-btn:hover::after { opacity: 1; }

/* Quickstart banner */
.quickstart-banner {
  background: rgba(63, 185, 80, 0.08);
  border-left: 3px solid var(--success);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.quickstart-banner a {
  color: var(--accent);
  text-decoration: none;
}
.quickstart-banner a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .lang-switcher { position: static; justify-content: center; margin-bottom: 0.5rem; }
  header { padding: 1rem 0.5rem; }
}
.tagline { font-size: 1.1rem; margin: 0 0 0.5rem; }
.subtle { color: var(--fg-dim); font-size: 0.9rem; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem;
}

section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

h2 { margin-top: 0; font-size: 1.2rem; color: var(--accent); }

#status-bar { padding: 0.75rem 1.25rem; }
#status { font-family: monospace; margin-bottom: 0.4rem; }

/* Loading progress bar */
#loading-bar-wrap {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
#loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.3s ease-out;
  border-radius: 3px;
  animation: loading-shimmer 1.5s linear infinite;
}
@keyframes loading-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
#loading-bar.indeterminate {
  width: 100%;
  background: linear-gradient(90deg,
    var(--bg-input) 0%, var(--accent) 50%, var(--bg-input) 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: loading-indeterminate 1.5s linear infinite;
}
@keyframes loading-indeterminate {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

.recipe-desc { color: var(--fg-dim); margin: 0.5rem 0 0 0; }

.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.form-row label { min-width: 120px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 0.25rem; }

input, select {
  background: var(--bg-input);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-family: monospace;
  font-size: 0.95rem;
}
input:focus, select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

button {
  background: var(--accent-dim);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover:not(:disabled) { background: var(--accent); }
button:disabled { background: #444; cursor: not-allowed; }

#verdict-box {
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid;
}
.verdict-yes { border-color: var(--success); background: rgba(63, 185, 80, 0.08); }
.verdict-no { border-color: var(--danger); background: rgba(248, 81, 73, 0.08); }
.verdict-degraded { border-color: var(--warning); background: rgba(210, 153, 34, 0.08); }

.chain-step {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.chain-step summary {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.chain-step summary::before { content: "▸ "; color: var(--accent); }
.chain-step[open] summary::before { content: "▾ "; }
.step-section { color: var(--accent); font-family: monospace; font-size: 0.9rem; }
.step-formula { color: var(--fg-dim); font-family: monospace; font-size: 0.85rem; margin: 0.5rem 0; }
.step-result { color: var(--success); font-family: monospace; font-weight: 600; margin-top: 0.25rem; }
.step-interp { color: var(--fg-dim); font-size: 0.9rem; margin-top: 0.25rem; }
.step-result pre { background: var(--bg); padding: 0.5rem; border-radius: 4px; overflow-x: auto; }

.recipe-tag {
  background: var(--bg-input);
  color: var(--accent);
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ─── Info icon + tooltip system ─── */
.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 11px;
  font-style: italic;
  font-family: serif;
  cursor: help;
  margin-left: 0.3rem;
  position: relative;
  user-select: none;
}
.info:hover { border-color: var(--accent); background: var(--accent-dim); color: white; }
.info::before { content: "i"; }

.tooltip {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s, visibility 0.15s;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1f29;
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  width: 280px;
  z-index: 100;
  text-align: left;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  pointer-events: none;
}
.tooltip strong { color: var(--accent); }
.tooltip code {
  background: var(--bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85em;
}
.info:hover .tooltip { visibility: visible; opacity: 1; }
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent) transparent transparent transparent;
}

/* Make verdict box more prominent */
#verdict-box {
  font-size: 1.1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 6px solid;
  margin-bottom: 1rem;
  min-height: 80px;
}
.verdict-yes { background: rgba(63, 185, 80, 0.15); border-color: var(--success); }
.verdict-no { background: rgba(248, 81, 73, 0.15); border-color: var(--danger); }
.verdict-degraded { background: rgba(210, 153, 34, 0.15); border-color: var(--warning); }

/* Help modal */
#help-btn {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 6px;
  padding: 0.3rem 0.7rem; font-size: 0.85rem;
}
#help-btn:hover { background: var(--accent); color: white; }
/* Modals (help / quickstart / inventory) share the same overlay + content frame */
#help-modal,
#quickstart-modal,
#inventory-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 1000;
  padding: 2rem; overflow-y: auto;
}
#help-modal.open,
#quickstart-modal.open,
#inventory-modal.open { display: flex; align-items: flex-start; justify-content: center; }

.hero-buttons {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.hero-buttons button { white-space: nowrap; }
.help-content {
  background: var(--bg-card); color: var(--fg);
  max-width: 800px; width: 100%;
  border: 1px solid var(--accent); border-radius: 12px;
  padding: 2rem; position: relative;
}
.help-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--fg); border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 1.2rem;
}
.help-content h3 { color: var(--accent); margin-top: 1.5rem; }
.help-content code {
  background: var(--bg-input); padding: 0.1rem 0.4rem;
  border-radius: 3px; font-family: monospace;
}
.help-example {
  background: var(--bg-input); border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem; margin: 0.5rem 0; border-radius: 4px;
}

.mode-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.mode-btn {
  background: var(--bg-input); color: var(--fg-dim);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.5rem 1rem; cursor: pointer; font-size: 0.95rem;
}
.mode-btn.active { background: var(--accent-dim); color: white; border-color: var(--accent); }
button.secondary {
  background: var(--bg-input); color: var(--fg);
  border: 1px solid var(--border); padding: 0.4rem 0.8rem;
}
button.secondary:hover:not(:disabled) { border-color: var(--accent); }

textarea {
  width: 100%; min-height: 60px;
  background: var(--bg-input); color: var(--fg);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.5rem; font-family: inherit; font-size: 0.95rem; resize: vertical;
}
textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  main { padding: 0.75rem; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { min-width: auto; }
  .arch-badges { justify-content: flex-start; }
}

/* ─── Architecture coverage badges (hero) ─── */
.arch-badges {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: center; margin-top: 0.75rem;
}
.badge {
  background: var(--bg-input); color: var(--success);
  border: 1px solid var(--border); padding: 0.2rem 0.5rem;
  border-radius: 4px; font-size: 0.85rem; font-family: monospace;
}

/* ─── Profile (TAF Card) ─── */
.taf-card {
  background: var(--bg-input);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.taf-card h3 { color: var(--accent); margin-top: 1rem; margin-bottom: 0.5rem; }
.taf-card-summary {
  background: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
}
.taf-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.taf-recipe-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--fg-dim);
}
.taf-recipe-tile.v-yes { border-left-color: var(--success); }
.taf-recipe-tile.v-no  { border-left-color: var(--danger); }
.taf-recipe-tile.v-deg { border-left-color: var(--warning); }
.taf-recipe-tile .tile-header {
  display:flex; justify-content: space-between; align-items: center;
  font-weight: 600; margin-bottom: 0.25rem;
}
.taf-recipe-tile .tile-name { color: var(--fg-dim); font-size: 0.9rem; }
.taf-recipe-tile .tile-verdict { font-weight: 700; }
.taf-recipe-tile.v-yes .tile-verdict { color: var(--success); }
.taf-recipe-tile.v-no  .tile-verdict { color: var(--danger); }
.taf-recipe-tile.v-deg .tile-verdict { color: var(--warning); }
.taf-recipe-tile .tile-reason { font-size: 0.85rem; color: var(--fg); }
.taf-key-numbers { font-family: monospace; font-size: 0.9rem; }
.taf-key-numbers .num-row {
  display: flex; justify-content: space-between;
  padding: 0.2rem 0; border-bottom: 1px solid var(--border);
}
.taf-key-numbers .num-label { color: var(--fg-dim); }
.taf-key-numbers .num-value { color: var(--success); font-weight: 600; }
.taf-falsification {
  font-size: 0.85rem; padding: 0.5rem 0.75rem;
  background: var(--bg); border-radius: 4px;
  border-left: 3px solid var(--accent);
  margin-top: 0.5rem;
}

/* ─── Compare table ─── */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin-top: 0.5rem; font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}
.compare-table th {
  background: var(--bg-input); color: var(--accent);
  font-family: monospace;
}
.compare-table td.v-yes { background: rgba(63, 185, 80, 0.12); color: var(--success); font-weight: 600; }
.compare-table td.v-no  { background: rgba(248, 81, 73, 0.12); color: var(--danger); font-weight: 600; }
.compare-table td.v-deg { background: rgba(210, 153, 34, 0.12); color: var(--warning); font-weight: 600; }

.compare-slot {
  display: flex; gap: 0.5rem; margin: 0.5rem 0; align-items: center;
}
.compare-slot input { flex: 2; }
.compare-slot select { flex: 1; min-width: 200px; }

/* Share bar (download / share / submit / etc.) */
.share-bar {
  display: flex; gap: 0.5rem; margin: 0.75rem 0;
  flex-wrap: wrap; align-items: center;
}
.share-bar .subtle { margin-left: 0.5rem; }

#import-section {
  background: rgba(88, 166, 255, 0.05);
  border: 1px dashed var(--accent);
}

#community-section {
  background: rgba(63, 185, 80, 0.05);
  border: 1px dashed var(--success);
}

#falsification-section {
  background: rgba(210, 153, 34, 0.04);
  border: 1px dashed var(--warning);
}

.community-item {
  background: var(--bg-input);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.9rem;
}
.community-item a { color: var(--accent); text-decoration: none; }
.community-item a:hover { text-decoration: underline; }
.community-item .verdict-badge {
  font-family: monospace; padding: 0.1rem 0.4rem; border-radius: 3px;
  font-weight: 700; font-size: 0.8rem;
}
.community-item .verdict-badge.yes { background: rgba(63, 185, 80, 0.2); color: var(--success); }
.community-item .verdict-badge.no  { background: rgba(248, 81, 73, 0.2);  color: var(--danger); }
.community-item .verdict-badge.deg { background: rgba(210, 153, 34, 0.2); color: var(--warning); }
.community-item .item-time { color: var(--fg-dim); font-size: 0.8rem; margin-left: auto; }

.falsification-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.falsification-table th, .falsification-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.falsification-table th {
  background: var(--bg-input); color: var(--accent);
  font-family: monospace; font-size: 0.85rem;
}
.fal-status { font-weight: 700; }
.fal-status.confirmed { color: var(--success); }
.fal-status.partial { color: var(--warning); }
.fal-status.refuted { color: var(--danger); }
.fal-status.untested { color: var(--fg-dim); }

/* What-if slider in profile output */
.whatif-box {
  background: var(--bg-input);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.whatif-box h3 { margin-top: 0; color: var(--accent); }
.whatif-slider {
  width: 100%; margin: 0.5rem 0;
  accent-color: var(--accent);
}
.whatif-row {
  display: flex; justify-content: space-between;
  font-family: monospace; font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border);
}
.whatif-row strong { color: var(--accent); }
.whatif-row .verdict-text { font-weight: 700; }
.whatif-row .verdict-text.yes { color: var(--success); }
.whatif-row .verdict-text.no  { color: var(--danger); }
.whatif-row .verdict-text.deg { color: var(--warning); }

/* Inspector textarea */
#inspector-json {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  background: var(--bg-input);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem;
  width: 100%;
  resize: vertical;
}
#inspector-json:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--fg-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Diagnose mode CLI command box */
.diag-cmd-box {
  background: #0a0e14;
  color: #e6f1ff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1em;
  font-family: 'Courier New', monospace;
  font-size: 0.92em;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.6em 0;
  overflow-x: auto;
}

/* ─── TAF Card accordion sections (v0.6 — UX restructuring) ─── */
.taf-section {
  margin: 0.7em 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.018);
  overflow: hidden;
}
.taf-section > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7em 0.95em;
  font-weight: 600;
  font-size: 1.02em;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.12s;
}
.taf-section > summary:hover { background: rgba(255,255,255,0.04); }
.taf-section > summary::-webkit-details-marker { display: none; }
.taf-section > summary::before {
  content: "▶";
  display: inline-block;
  font-size: 0.7em;
  color: var(--fg-dim);
  transition: transform 0.15s ease;
  width: 0.8em;
  text-align: center;
}
.taf-section[open] > summary::before { transform: rotate(90deg); }
.taf-section > summary .section-count {
  margin-left: auto;
  font-size: 0.82em;
  color: var(--fg-dim);
  font-weight: 500;
}
.taf-section-body {
  padding: 0.4em 1em 1em 1em;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
/* Hero strip — always-visible top-line summary */
.taf-hero {
  padding: 0.9em 1em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(110,80,200,0.06), rgba(255,255,255,0.02));
  margin-bottom: 0.4em;
}
.taf-hero .hero-arch { font-size: 1.15rem; font-weight: 700; }
.taf-hero .hero-meta { color: var(--fg-dim); font-size: 0.88em; margin-top: 0.25em; }
.taf-hero .hero-row {
  display: flex; flex-wrap: wrap; gap: 0.5em 1em;
  align-items: center; margin-top: 0.5em;
}
.taf-hero .hero-pill {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.2em 0.6em; border-radius: 999px;
  font-size: 0.85em; font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.taf-hero .hero-pill.v-yes { color: var(--success); border-color: var(--success); }
.taf-hero .hero-pill.v-no  { color: var(--danger);  border-color: var(--danger); }
.taf-hero .hero-pill.v-deg { color: var(--warning); border-color: var(--warning); }

/* ─── Lean+Mathlib provenance (v0.6) ─── */
.lean-badge {
  display: inline-block;
  padding: 0.08em 0.45em;
  margin: 0 0.15em;
  border: 1px solid rgba(110,80,200,0.45);
  background: rgba(110,80,200,0.10);
  border-radius: 4px;
  color: var(--accent, #b48cff);
  text-decoration: none;
  font-size: 0.78em;
  font-family: monospace;
  vertical-align: middle;
  white-space: nowrap;
}
.lean-badge:hover {
  background: rgba(110,80,200,0.22);
  text-decoration: none;
}
.lean-badges-row {
  margin: 0.4em 0 0.6em;
  line-height: 1.9;
}
.lean-meta {
  font-size: 0.88em;
  margin-bottom: 0.6em;
  padding: 0.5em 0.7em;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.lean-meta a { color: var(--accent); }
.lean-findings {
  margin: 0.6em 0 0.8em;
  padding: 0.5em 0.7em;
  border: 1px solid rgba(241,196,15,0.4);
  background: rgba(241,196,15,0.06);
  border-radius: 6px;
}
.lean-findings > summary {
  cursor: pointer;
  font-size: 1em;
}
.lean-finding {
  margin: 0.6em 0;
  padding: 0.6em 0.7em;
  border-left: 3px solid var(--warning);
  background: rgba(255,255,255,0.025);
  border-radius: 0 4px 4px 0;
}
.lean-pill {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.05em 0.45em;
  font-size: 0.75em;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lean-pill.v-deg { color: var(--warning); border-color: var(--warning); }
.lean-groups .lean-group {
  margin: 0.4em 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.lean-group > summary {
  cursor: pointer;
  padding: 0.5em 0.7em;
  user-select: none;
  font-weight: 600;
  list-style: none;
}
.lean-group > summary::-webkit-details-marker { display: none; }
.lean-group > summary::before {
  content: "▶ ";
  font-size: 0.7em;
  color: var(--fg-dim);
  transition: transform 0.15s;
}
.lean-group[open] > summary::before {
  content: "▼ ";
}
.lean-table-wrap {
  max-height: 380px;
  overflow: auto;
  border-top: 1px solid var(--border);
}
.lean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}
.lean-table th, .lean-table td {
  padding: 0.4em 0.6em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.lean-table th {
  position: sticky;
  top: 0;
  background: var(--bg-input);
  color: var(--accent);
  font-family: monospace;
  z-index: 1;
}
.lean-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.lean-table code { font-size: 0.95em; }