oliver-aizip kai-aizip commited on
Commit
844234c
·
verified ·
1 Parent(s): 5499f4d

UI fixes (#17)

Browse files

- UI fixes (e58425b546dae60a028a175f72e189c315239f56)


Co-authored-by: Kai <[email protected]>

Files changed (1) hide show
  1. static/styles.css +499 -537
static/styles.css CHANGED
@@ -1,3 +1,4 @@
 
1
  :root {
2
  --primary: #FF7D1E;
3
  --primary-light: #FFF8F2;
@@ -17,50 +18,74 @@
17
  --insufficient-alert-bg: #fff0f0;
18
  --insufficient-alert-border: #f78989;
19
  --insufficient-alert-text: #b92020;
20
- }
21
-
22
- @media (prefers-color-scheme: dark) {
 
23
  :root {
24
- --primary: #FF9542;
25
- --primary-light: #3D3026;
26
- --primary-selected: #4D3927;
27
- --accent: #9CA3AF;
28
- --text-dark: #E6E6E6;
29
- --text-medium: #BBBBBB;
30
- --border-light: #444444;
31
- --background-light: #2A2A2A;
32
- --background-main: #1A1A1A;
33
- --highlight: #3D3825;
34
- --model-a-color: #5A85C7;
35
- --model-b-color: #C47A74;
36
- --query-background: #2A3F5C;
37
- --query-border: #3A5277;
38
- --query-text: #A9C2E8;
39
- --insufficient-alert-bg: #3D2525;
40
- --insufficient-alert-border: #913F3F;
41
- --insufficient-alert-text: #FF8A8A;
42
  }
43
- }
44
-
45
- body, .gradio-container {
 
46
  background-color: var(--background-main);
47
  font-size: 15px;
48
  overflow-x: hidden !important;
49
  color: var(--text-dark);
50
- }
51
-
52
- .tabs {
 
 
 
 
 
 
53
  margin-top: 0 !important;
54
- }
55
-
56
- .tab-nav {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  background-color: var(--background-light) !important;
58
  padding: 5px 10px !important;
59
  border-radius: 8px 8px 0 0 !important;
60
  border-bottom: 1px solid var(--border-light) !important;
61
- }
62
-
63
- .tab-nav button {
64
  font-size: 1.1em !important;
65
  font-weight: 600 !important;
66
  padding: 10px 25px !important;
@@ -70,55 +95,88 @@ body, .gradio-container {
70
  background-color: transparent !important;
71
  color: var(--text-medium) !important;
72
  transition: all 0.3s ease !important;
73
- }
74
-
75
- .tab-nav button.selected {
76
  background-color: var(--background-main) !important;
77
  color: var(--primary) !important;
78
  border-bottom: 2px solid var(--primary) !important;
79
- }
80
-
81
- .tab-nav button:hover:not(.selected) {
82
  background-color: rgba(255, 255, 255, 0.1) !important;
83
  color: var(--text-dark) !important;
84
- }
85
-
86
- .tabitem {
87
  border: none !important;
88
- }
89
-
90
- #query-title-row {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  margin: 0 !important;
92
  display: flex !important;
93
  align-items: center !important;
94
  overflow: visible !important;
95
  min-height: 40px !important;
96
  white-space: normal !important;
97
- }
98
-
99
- #query-title-row h3 {
100
  margin: 0 !important;
101
  padding: 0 !important;
102
- font-size: 1.2em !important;
103
- font-weight: 600 !important;
104
  line-height: 1.3 !important;
105
  flex-grow: 0 !important;
106
  flex-shrink: 0 !important;
107
  white-space: normal !important;
108
  overflow: visible !important;
109
- color: var(--text-dark) !important;
110
  width: auto !important;
111
  display: inline-block !important;
112
- }
113
-
114
- #query-container {
115
  display: flex !important;
116
  align-items: stretch !important;
117
  gap: 10px !important;
118
  overflow: visible !important;
119
- }
120
-
121
- .query-box-row {
122
  background-color: var(--query-background) !important;
123
  padding: 12px 15px !important;
124
  border-radius: 6px !important;
@@ -131,9 +189,9 @@ body, .gradio-container {
131
  display: flex !important;
132
  min-height: 50px !important;
133
  height: auto !important;
134
- }
135
-
136
- .query-text {
137
  padding: 0 !important;
138
  margin: 0 !important;
139
  background-color: transparent !important;
@@ -141,9 +199,9 @@ body, .gradio-container {
141
  overflow: visible !important;
142
  width: 100% !important;
143
  display: block !important;
144
- }
145
-
146
- .query-text p {
147
  font-size: 1.2em !important;
148
  font-weight: 600 !important;
149
  color: var(--query-text) !important;
@@ -158,98 +216,132 @@ body, .gradio-container {
158
  hyphens: auto !important;
159
  white-space: normal !important;
160
  overflow: visible !important;
161
- }
162
-
163
- .context-description {
164
- background-color: transparent !important;
165
- font-style: normal !important;
166
- color: var(--text-medium) !important;
167
- font-size: 1.05em !important;
168
- }
169
-
170
- .context-topic {
171
- display: inline-flex !important;
172
- align-items: center !important;
173
- background-color: transparent !important;
174
- padding: 0 !important;
175
- border-radius: 0 !important;
176
- box-shadow: none !important;
177
- }
178
-
179
- .topic-label {
180
- font-weight: 600 !important;
181
  color: var(--text-medium) !important;
182
- margin-right: 6px !important;
183
- }
184
-
185
- .query-button {
186
- padding: 0 20px !important;
187
  border-radius: 6px !important;
188
  font-weight: 500 !important;
 
 
 
 
 
189
  flex: 0 0 auto !important;
190
  display: flex !important;
191
  align-items: center !important;
192
  justify-content: center !important;
193
- background-color: var(--background-light) !important;
194
- color: var(--text-medium) !important;
195
- border: 1px solid var(--border-light) !important;
196
  font-size: 0.95em !important;
197
  min-height: 50px !important;
198
  white-space: nowrap !important;
199
- transition: all 0.2s ease !important;
200
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
201
- }
202
-
203
- .query-button:hover {
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  background-color: var(--primary-light) !important;
205
  color: var(--primary) !important;
206
  border-color: var(--primary) !important;
207
- }
208
-
209
- #context-header-row {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  display: flex !important;
211
  justify-content: space-between !important;
212
  align-items: center !important;
213
- }
214
-
215
- .context-title {
216
  margin: 0 !important;
217
  padding: 0 !important;
218
  font-size: 1.2em !important;
219
  font-weight: 600 !important;
220
  color: var(--text-dark) !important;
221
- }
222
-
223
- .context-toggle-button {
224
- background-color: var(--background-light) !important;
225
- color: var(--text-medium) !important;
226
- padding: 5px 10px !important;
227
- border-radius: 4px !important;
228
- border: 1px solid var(--border-light) !important;
229
- font-size: 0.85em !important;
230
- font-weight: 500 !important;
231
- cursor: pointer !important;
232
- transition: all 0.2s ease !important;
233
- margin: 0 !important;
234
- height: 30px !important;
235
- line-height: 1 !important;
236
- width: auto !important;
237
- min-width: 0 !important;
238
- max-width: 150px !important;
239
- }
240
-
241
- .context-toggle-button:hover {
242
- background-color: var(--primary-light) !important;
243
- color: var(--primary) !important;
244
- border-color: var(--primary) !important;
245
- }
246
-
247
- .context-items-container {
248
  border-radius: 6px;
249
  overflow: hidden;
250
- }
251
-
252
- .context-item {
253
  border: 1px solid var(--border-light);
254
  background-color: var(--background-light);
255
  padding: 12px;
@@ -258,29 +350,30 @@ body, .gradio-container {
258
  font-size: 1em;
259
  line-height: 1.5;
260
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
261
- }
262
-
263
- .primary-context {
264
  border-left: 3px solid var(--model-a-color) !important;
265
- }
266
-
267
- .chunk-header {
268
  font-weight: 600;
269
  color: var(--query-text);
270
  margin-bottom: 8px;
271
  padding-bottom: 5px;
272
  border-bottom: 1px solid var(--query-border);
273
- }
274
-
275
- .highlight {
276
  background-color: #FFECB3 !important;
277
  padding: 0.1em 0.3em !important;
278
  border-radius: 3px !important;
279
  font-weight: 600 !important;
280
  color: #664500 !important;
281
- }
282
-
283
- .insufficient-alert {
 
284
  border: 2px solid var(--insufficient-alert-border);
285
  background-color: var(--insufficient-alert-bg);
286
  color: var(--insufficient-alert-text);
@@ -288,48 +381,58 @@ body, .gradio-container {
288
  border-radius: 6px;
289
  margin-bottom: 12px;
290
  font-size: 1em;
291
- }
292
-
293
- .insufficient-alert strong {
294
  display: inline-flex !important;
295
  align-items: center !important;
296
  margin-bottom: 5px;
297
  font-size: 1.1em !important;
298
  font-weight: 600 !important;
299
- }
300
-
301
- .insufficient-alert strong svg {
302
  margin-right: 8px !important;
303
  width: 1em !important;
304
  height: 1em !important;
305
- }
306
-
307
- .insufficient-alert p {
308
  margin: 0;
309
  font-size: 1em;
310
- }
311
-
312
- .section-heading {
313
- color: var(--text-dark) !important;
314
- margin: 5px 0 2px 0 !important;
315
- padding: 0 !important;
316
- font-weight: 600 !important;
317
- font-size: 1.2em !important;
318
- }
319
-
320
- #main-interface-area > div:nth-child(7) > div {
 
 
321
  display: flex !important;
322
  flex-direction: row !important;
323
  align-items: stretch !important;
324
- }
325
-
326
- #main-interface-area > div:nth-child(7) > div > div {
327
  flex: 1 !important;
328
  display: flex !important;
329
  flex-direction: column !important;
330
- }
331
-
332
- .summary-card {
 
 
 
 
 
 
 
 
333
  border: 1px solid var(--border-light) !important;
334
  border-radius: 6px !important;
335
  background-color: var(--background-light) !important;
@@ -341,49 +444,50 @@ body, .gradio-container {
341
  height: auto !important;
342
  min-height: 200px !important;
343
  overflow: visible !important;
344
- }
345
-
346
- .summary-card-a {
347
  border-left: 3px solid var(--model-a-color) !important;
348
- }
349
-
350
- .summary-card-b {
351
  border-left: 3px solid var(--model-b-color) !important;
352
- }
353
-
354
- .summary-card .gr-form {
355
- margin: 0 !important;
356
- padding: 0 !important;
357
- flex: 1 !important;
358
- display: flex !important;
359
- flex-direction: column !important;
360
- }
361
-
362
- .summary-card .gr-form > div {
363
  margin: 0 !important;
364
  padding: 0 !important;
365
  flex: 1 !important;
366
  display: flex !important;
367
  flex-direction: column !important;
368
- }
369
-
370
- .summary-card .gr-input-label {
 
371
  font-size: 1.1em !important;
372
  font-weight: 600 !important;
 
 
 
 
373
  margin: 0 0 5px 0 !important;
374
  padding: 0 !important;
375
- color: var(--text-dark) !important;
376
- }
377
-
378
- .summary-card .gr-textbox {
 
 
 
379
  border: none !important;
380
  background: transparent !important;
381
  padding: 0 !important;
382
  margin: 0 !important;
383
  flex: 1 !important;
384
- }
385
-
386
- .summary-card textarea {
387
  background-color: transparent !important;
388
  border: none !important;
389
  color: var(--text-dark) !important;
@@ -396,16 +500,12 @@ body, .gradio-container {
396
  width: 100% !important;
397
  resize: none !important;
398
  overflow-y: visible !important;
399
- }
400
-
401
- .summary-card-wrapper {
402
- height: 100% !important;
403
- overflow-y: auto !important;
404
- }
405
-
406
- .vote-button {
407
  flex-grow: 1;
408
- margin: 0 5px !important;
409
  font-size: 1.05em !important;
410
  padding: 12px 15px !important;
411
  border-radius: 6px !important;
@@ -415,22 +515,21 @@ body, .gradio-container {
415
  min-height: 50px !important;
416
  font-weight: 500 !important;
417
  color: var(--text-dark) !important;
418
- margin-bottom: 5px !important;
419
- }
420
-
421
- .vote-button:hover:not(.vote-button-neither) {
422
  background-color: var(--primary-light) !important;
423
  border-color: var(--primary) !important;
424
  color: var(--primary) !important;
425
- }
426
-
427
- .vote-button-neither:hover {
428
  background-color: var(--insufficient-alert-bg) !important;
429
  border-color: var(--insufficient-alert-border) !important;
430
  color: var(--insufficient-alert-text) !important;
431
- }
432
-
433
- .vote-button.selected:not(.vote-button-neither) {
434
  border-width: 2px !important;
435
  border-style: solid !important;
436
  border-color: var(--primary) !important;
@@ -438,9 +537,9 @@ body, .gradio-container {
438
  color: var(--primary) !important;
439
  font-weight: 600 !important;
440
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
441
- }
442
-
443
- .vote-button-neither.selected {
444
  border-width: 2px !important;
445
  border-style: solid !important;
446
  border-color: var(--insufficient-alert-border) !important;
@@ -448,408 +547,271 @@ body, .gradio-container {
448
  color: var(--insufficient-alert-text) !important;
449
  font-weight: 600 !important;
450
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
451
- }
452
-
453
- .vote-button.selected:hover:not(.vote-button-neither) {
454
- border-color: var(--primary) !important;
455
- background-color: var(--primary-light) !important;
456
- color: var(--primary) !important;
457
- }
458
-
459
- .vote-button-neither.selected:hover {
460
- border-color: var(--insufficient-alert-border) !important;
461
- background-color: var(--insufficient-alert-bg) !important;
462
- color: var(--insufficient-alert-text) !important;
463
- }
464
-
465
- .feedback-section {
466
  padding: 3px 0 !important;
467
  background-color: transparent !important;
468
- margin-top: 3px !important;
469
- margin-bottom: 3px !important;
470
  font-size: 1em;
471
- border: none !important;
472
  box-shadow: none !important;
473
- }
474
-
475
- .feedback-section .gr-check-radio {
476
  font-size: 1.05em !important;
477
- }
478
-
479
- .feedback-section .gr-check-radio span {
480
  font-size: 1.05em !important;
481
  color: var(--text-dark) !important;
482
- }
483
-
484
- .feedback-section input[type="checkbox"] {
485
  width: 18px !important;
486
  height: 18px !important;
487
  margin-right: 6px !important;
488
- }
489
-
490
- .feedback-section input[type="checkbox"]:checked {
491
  accent-color: var(--primary) !important;
492
  border-color: var(--primary) !important;
493
  background-color: var(--primary) !important;
494
- }
495
-
496
- .model-reveal {
 
497
  font-size: 1.1em !important;
498
  text-align: center !important;
499
  font-weight: 600 !important;
500
  background-color: transparent !important;
501
  padding: 0 !important;
502
  border: none !important;
503
- }
504
-
505
- .model-reveal span {
506
  font-size: 1.3em !important;
507
- display: block !important;
508
- width: 100% !important;
509
- padding: 25px 15px !important;
510
- min-height: 50px !important;
511
  display: flex !important;
512
  align-items: center !important;
513
  justify-content: center !important;
514
- }
515
-
516
- .model-a-reveal span {
 
 
 
517
  background-color: rgba(146, 180, 244, 0.2) !important;
518
- }
519
-
520
- .model-b-reveal span {
521
  background-color: rgba(248, 173, 167, 0.2) !important;
522
- }
523
-
524
- .control-buttons button {
525
- margin: 0 10px !important;
526
- font-size: 1em !important;
527
- border-radius: 6px !important;
528
- padding: 8px 16px !important;
529
- transition: all 0.2s ease !important;
530
- }
531
-
532
- h3 {
533
- font-size: 1.2em !important;
534
- font-weight: 600 !important;
535
- margin: 5px 0 2px 0 !important;
536
- padding: 0 !important;
537
- color: var(--text-dark) !important;
538
- }
539
-
540
- h1 {
541
- font-size: 1.6em !important;
542
- color: var(--primary) !important;
543
- margin: 10px 0 5px 0 !important;
544
- padding: 0 !important;
545
- }
546
-
547
- #main-interface-area > p:first-of-type {
548
- font-size: 1em !important;
549
- margin: 0 0 8px 0 !important;
550
- padding: 0 !important;
551
- line-height: 1.4 !important;
552
- color: var(--text-medium) !important;
553
- }
554
-
555
- .feedback-section .gr-input-label {
556
- font-size: 1.1em !important;
557
- font-weight: 600 !important;
558
- margin-bottom: 0.6em !important;
559
- color: var(--text-dark) !important;
560
- }
561
-
562
- .gr-dataframe table {
563
  font-size: 0.95em !important;
564
  border-collapse: separate !important;
565
  border-spacing: 0 !important;
566
- border-radius: 6px !important;
567
  overflow: hidden !important;
568
- }
569
-
570
- .gr-dataframe th, .gr-dataframe td {
 
571
  padding: 8px 10px !important;
572
  border: none !important;
573
  border-bottom: 1px solid var(--border-light) !important;
574
- }
575
-
576
- .gr-dataframe th {
577
  background-color: var(--background-light) !important;
578
  color: var(--text-dark) !important;
579
  font-weight: 600 !important;
580
- }
581
-
582
- .gradio-container .prose {
583
  line-height: 1.4 !important;
584
  margin: 0 !important;
585
  padding: 0 !important;
586
- }
587
-
588
- hr {
589
- margin: 5px 0 !important;
590
- border: none !important;
591
- height: 1px !important;
592
- background-color: var(--border-light) !important;
593
- }
594
-
595
- .gradio-row {
596
- overflow: visible !important;
597
- }
598
-
599
- #submit-button {
600
- background-color: var(--primary) !important;
601
- color: white !important;
602
- padding: 12px 30px !important;
603
- border-radius: 6px !important;
604
- font-weight: 600 !important;
605
- font-size: 1.2em !important;
606
- transition: all 0.2s ease !important;
607
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
608
- border: none !important;
609
- margin-top: 15px !important;
610
- }
611
-
612
- #submit-button:hover {
613
- background-color: #E56E0F !important;
614
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
615
- }
616
-
617
- .results-reveal-area hr {
618
- margin: 25px 0 20px 0 !important;
619
  border: none !important;
620
- height: 1px !important;
621
- background-color: var(--border-light) !important;
622
- width: 100% !important;
623
- }
624
-
625
- /* Make Try Another button match submit button width */
626
- #try-another-btn {
627
- background-color: var(--primary) !important;
628
- color: white !important;
629
- padding: 12px 30px !important;
630
- border-radius: 6px !important;
631
- font-weight: 600 !important;
632
- font-size: 1.2em !important;
633
- transition: all 0.2s ease !important;
634
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
635
- border: none !important;
636
- width: 100% !important; /* Make it full width */
637
- max-width: 100% !important;
638
- margin: 10px auto !important; /* Center it and add spacing */
639
- display: block !important;
640
- }
641
-
642
- #try-another-btn:hover {
643
- background-color: #E56E0F !important;
644
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
645
- }
646
-
647
- .gradio-column > *, .gradio-row > * {
648
- margin-top: 0 !important;
649
- margin-bottom: 0 !important;
650
- padding-top: 0 !important;
651
- padding-bottom: 0 !important;
652
- }
653
-
654
- .gradio-markdown {
655
- margin-top: 0 !important;
656
- margin-bottom: 0 !important;
657
- padding-top: 0 !important;
658
- padding-bottom: 0 !important;
659
- }
660
-
661
- .gradio-markdown p {
662
- margin-bottom: 0.5em !important;
663
- }
664
-
665
- .gradio-container {
666
- padding: 0 !important;
667
- }
668
-
669
- @media screen and (max-width: 768px) {
670
- #query-container {
671
- flex-direction: column !important;
672
- }
673
-
674
- .query-box-row {
675
- flex: 1 1 100% !important;
676
- max-width: 100% !important;
677
- margin-bottom: 10px !important;
678
- }
679
-
680
- .query-button {
681
- width: 100% !important;
682
- }
683
-
684
- .vote-button {
685
- font-size: 0.9em !important;
686
- padding: 10px 8px !important;
687
- }
688
-
689
- .summary-card {
690
- margin-bottom: 15px !important;
691
- }
692
-
693
- #main-interface-area > div:nth-child(7) > div {
694
- flex-direction: column !important;
695
- }
696
-
697
- @media screen and (max-width: 480px) {
698
- #main-interface-area > div:nth-child(10) > div {
699
- display: grid !important;
700
- grid-template-columns: 1fr 1fr !important;
701
- gap: 8px !important;
702
- }
703
-
704
- .vote-button {
705
- margin: 0 !important;
706
- padding: 8px 5px !important;
707
- }
708
- }
709
- }
710
-
711
- .summary-card textarea {
712
- scroll-behavior: smooth !important;
713
- scroll-margin-top: 0 !important;
714
- scroll-snap-align: start !important;
715
- }
716
-
717
- .summary-card textarea::after {
718
- content: "";
719
- display: block;
720
- height: 0;
721
- overflow: hidden;
722
- scroll-snap-align: start;
723
- }
724
-
725
- #main-interface-area > div:nth-child(7) > div {
726
- content: "" !important;
727
- overflow: auto !important;
728
- scroll-behavior: smooth !important;
729
- }
730
-
731
- #main-interface-area > div:nth-child(7)::after {
732
- content: "var textareas = document.querySelectorAll('.summary-card textarea'); textareas.forEach(function(t) { t.scrollTop = 0; });" !important;
733
- display: none !important;
734
- }
735
-
736
- .gr-textbox:not(:empty) {
737
- scroll-behavior: smooth;
738
- scrollbar-width: thin;
739
- }
740
-
741
- .orange-title {
742
- color: var(--primary) !important;
743
- font-weight: bold !important;
744
- }
745
-
746
- .model-link {
747
- color: var(--text-dark, #333333) !important;
748
  text-decoration: none !important;
749
- border-bottom: 1px dotted var(--border-light, #E6E6E6) !important;
750
  transition: color 0.2s, border-color 0.2s !important;
751
  padding: 2px 0 !important;
752
  display: inline-flex !important;
753
  align-items: center !important;
754
  font-weight: 500 !important;
755
- }
756
-
757
- .model-link:hover {
758
  color: #FF5500 !important;
759
  border-color: #FF5500 !important;
760
- }
761
-
762
- .external-icon {
763
  display: inline-block !important;
764
  margin-left: 5px !important;
765
  opacity: 0.6 !important;
766
  transition: opacity 0.2s !important;
767
- }
768
-
769
- .model-link:hover .external-icon {
770
  opacity: 1 !important;
771
- }
772
-
773
- #leaderboard-info {
774
  margin: 15px 0 !important;
775
  padding: 0 !important;
776
  background-color: rgba(255, 236, 224, 0.5) !important;
777
  border: none !important;
778
- }
779
-
780
- #leaderboard-info > div {
781
  margin: 0 !important;
782
  padding: 15px !important;
783
- background-color: var(--background-light, #F9F9F9) !important;
784
  border: none !important;
785
- }
786
-
787
- #leaderboard-info h3 {
788
  margin-top: 0 !important;
789
  margin-bottom: 10px !important;
790
- color: var(--primary, #FF7D1E) !important;
791
- }
792
-
793
- #leaderboard-info p {
794
  margin-bottom: 8px !important;
795
  line-height: 1.5 !important;
796
- }
797
-
798
- #leaderboard-info ul {
799
  margin-bottom: 10px;
800
  padding-left: 20px;
801
- }
802
-
803
- #leaderboard-info li {
804
  margin-bottom: 4px;
805
  line-height: 1.4;
806
- }
807
-
808
- .leaderboard-table {
809
  width: 100%;
810
  border-collapse: collapse;
811
  border-spacing: 0;
812
  font-size: 1.05em !important;
813
  margin-top: 15px;
814
- }
815
-
816
- .leaderboard-table th {
817
  background-color: #FFF1E6 !important;
818
- color: var(--text-dark, #333333);
819
  font-weight: 600;
820
  text-align: left;
821
  padding: 14px 15px !important;
822
- border-bottom: 1px solid var(--border-light, #E6E6E6);
823
  font-size: 1.1em !important;
824
- }
825
 
826
- .leaderboard-table td {
 
 
 
 
 
 
 
827
  padding: 12px 15px !important;
828
- border-bottom: 1px solid var(--border-light, #E6E6E6);
829
- background-color: var(--background-main, #FFFFFF);
830
  font-size: 1.05em !important;
831
- }
832
-
833
- .leaderboard-table th.centered,
834
- .leaderboard-table td.centered {
835
  text-align: center;
836
- }
837
-
838
- .leaderboard-table td.elo-col {
839
  font-weight: 600;
840
- color: var(--primary, #FF7D1E);
841
- }
842
-
843
- .leaderboard-table .confidence-value {
844
- color: var(--text-medium, #666666);
845
  font-size: 0.9em;
846
  font-weight: normal;
847
- }
848
-
849
- .html-container.svelte-phx28p.padding {
850
- padding: 0 !important; /* Remove the padding completely */
851
- }
852
-
853
- span.svelte-7ddecg p:not(:first-child) {
854
  margin-top: 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
855
  }
 
1
+ /* Base Variables */
2
  :root {
3
  --primary: #FF7D1E;
4
  --primary-light: #FFF8F2;
 
18
  --insufficient-alert-bg: #fff0f0;
19
  --insufficient-alert-border: #f78989;
20
  --insufficient-alert-text: #b92020;
21
+ }
22
+
23
+ /* Dark Mode */
24
+ @media (prefers-color-scheme: dark) {
25
  :root {
26
+ --primary: #FF9542;
27
+ --primary-light: #3D3026;
28
+ --primary-selected: #4D3927;
29
+ --accent: #9CA3AF;
30
+ --text-dark: #E6E6E6;
31
+ --text-medium: #BBBBBB;
32
+ --border-light: #444444;
33
+ --background-light: #2A2A2A;
34
+ --background-main: #1A1A1A;
35
+ --highlight: #3D3825;
36
+ --model-a-color: #5A85C7;
37
+ --model-b-color: #C47A74;
38
+ --query-background: #2A3F5C;
39
+ --query-border: #3A5277;
40
+ --query-text: #A9C2E8;
41
+ --insufficient-alert-bg: #3D2525;
42
+ --insufficient-alert-border: #913F3F;
43
+ --insufficient-alert-text: #FF8A8A;
44
  }
45
+ }
46
+
47
+ /* Global Styles */
48
+ body, .gradio-container {
49
  background-color: var(--background-main);
50
  font-size: 15px;
51
  overflow-x: hidden !important;
52
  color: var(--text-dark);
53
+ }
54
+
55
+ /* Common Resets */
56
+ .gradio-container {
57
+ padding: 0 !important;
58
+ }
59
+
60
+ .gradio-column > *, .gradio-row > *,
61
+ .gradio-markdown, .gradio-markdown p {
62
  margin-top: 0 !important;
63
+ margin-bottom: 0 !important;
64
+ padding-top: 0 !important;
65
+ padding-bottom: 0 !important;
66
+ }
67
+
68
+ .gradio-markdown p {
69
+ margin-bottom: 0.5em !important;
70
+ }
71
+
72
+ .gradio-row {
73
+ overflow: visible !important;
74
+ }
75
+
76
+ /* Tab Navigation */
77
+ .tabs {
78
+ margin-top: 0 !important;
79
+ }
80
+
81
+ .tab-nav {
82
  background-color: var(--background-light) !important;
83
  padding: 5px 10px !important;
84
  border-radius: 8px 8px 0 0 !important;
85
  border-bottom: 1px solid var(--border-light) !important;
86
+ }
87
+
88
+ .tab-nav button {
89
  font-size: 1.1em !important;
90
  font-weight: 600 !important;
91
  padding: 10px 25px !important;
 
95
  background-color: transparent !important;
96
  color: var(--text-medium) !important;
97
  transition: all 0.3s ease !important;
98
+ }
99
+
100
+ .tab-nav button.selected {
101
  background-color: var(--background-main) !important;
102
  color: var(--primary) !important;
103
  border-bottom: 2px solid var(--primary) !important;
104
+ }
105
+
106
+ .tab-nav button:hover:not(.selected) {
107
  background-color: rgba(255, 255, 255, 0.1) !important;
108
  color: var(--text-dark) !important;
109
+ }
110
+
111
+ .tabitem {
112
  border: none !important;
113
+ }
114
+
115
+ /* Common Typography */
116
+ h1 {
117
+ font-size: 1.6em !important;
118
+ color: var(--primary) !important;
119
+ margin: 10px 0 5px 0 !important;
120
+ padding: 0 !important;
121
+ }
122
+
123
+ h3,
124
+ .section-heading {
125
+ font-size: 1.2em !important;
126
+ font-weight: 600 !important;
127
+ margin: 5px 0 2px 0 !important;
128
+ padding: 0 !important;
129
+ color: var(--text-dark) !important;
130
+ }
131
+
132
+ .orange-title {
133
+ color: var(--primary) !important;
134
+ font-weight: bold !important;
135
+ }
136
+
137
+ /* Common Dividers */
138
+ hr {
139
+ margin: 5px 0 !important;
140
+ border: none !important;
141
+ height: 1px !important;
142
+ background-color: var(--border-light) !important;
143
+ }
144
+
145
+ .results-reveal-area hr {
146
+ margin: 25px 0 20px 0 !important;
147
+ width: 100% !important;
148
+ }
149
+
150
+ /* Query Section */
151
+ #query-title-row {
152
  margin: 0 !important;
153
  display: flex !important;
154
  align-items: center !important;
155
  overflow: visible !important;
156
  min-height: 40px !important;
157
  white-space: normal !important;
158
+ }
159
+
160
+ #query-title-row h3 {
161
  margin: 0 !important;
162
  padding: 0 !important;
 
 
163
  line-height: 1.3 !important;
164
  flex-grow: 0 !important;
165
  flex-shrink: 0 !important;
166
  white-space: normal !important;
167
  overflow: visible !important;
 
168
  width: auto !important;
169
  display: inline-block !important;
170
+ }
171
+
172
+ #query-container {
173
  display: flex !important;
174
  align-items: stretch !important;
175
  gap: 10px !important;
176
  overflow: visible !important;
177
+ }
178
+
179
+ .query-box-row {
180
  background-color: var(--query-background) !important;
181
  padding: 12px 15px !important;
182
  border-radius: 6px !important;
 
189
  display: flex !important;
190
  min-height: 50px !important;
191
  height: auto !important;
192
+ }
193
+
194
+ .query-text {
195
  padding: 0 !important;
196
  margin: 0 !important;
197
  background-color: transparent !important;
 
199
  overflow: visible !important;
200
  width: 100% !important;
201
  display: block !important;
202
+ }
203
+
204
+ .query-text p {
205
  font-size: 1.2em !important;
206
  font-weight: 600 !important;
207
  color: var(--query-text) !important;
 
216
  hyphens: auto !important;
217
  white-space: normal !important;
218
  overflow: visible !important;
219
+ }
220
+
221
+ /* Buttons */
222
+ .query-button,
223
+ .context-toggle-button {
224
+ background-color: var(--background-light) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  color: var(--text-medium) !important;
226
+ border: 1px solid var(--border-light) !important;
 
 
 
 
227
  border-radius: 6px !important;
228
  font-weight: 500 !important;
229
+ transition: all 0.2s ease !important;
230
+ }
231
+
232
+ .query-button {
233
+ padding: 0 20px !important;
234
  flex: 0 0 auto !important;
235
  display: flex !important;
236
  align-items: center !important;
237
  justify-content: center !important;
 
 
 
238
  font-size: 0.95em !important;
239
  min-height: 50px !important;
240
  white-space: nowrap !important;
 
241
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
242
+ }
243
+
244
+ .context-toggle-button {
245
+ padding: 5px 10px !important;
246
+ font-size: 0.85em !important;
247
+ height: 30px !important;
248
+ line-height: 1 !important;
249
+ width: auto !important;
250
+ min-width: 0 !important;
251
+ max-width: 150px !important;
252
+ margin: 0 !important;
253
+ cursor: pointer !important;
254
+ }
255
+
256
+ .query-button:hover,
257
+ .context-toggle-button:hover {
258
  background-color: var(--primary-light) !important;
259
  color: var(--primary) !important;
260
  border-color: var(--primary) !important;
261
+ }
262
+
263
+ /* Action Buttons */
264
+ #submit-button,
265
+ #try-another-btn {
266
+ background-color: var(--primary) !important;
267
+ color: white !important;
268
+ padding: 12px 30px !important;
269
+ border-radius: 6px !important;
270
+ font-weight: 600 !important;
271
+ font-size: 1.2em !important;
272
+ transition: all 0.2s ease !important;
273
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
274
+ border: none !important;
275
+ }
276
+
277
+ #submit-button {
278
+ margin-top: 15px !important;
279
+ }
280
+
281
+ #try-another-btn {
282
+ width: 100% !important;
283
+ max-width: 100% !important;
284
+ margin: 10px auto !important;
285
+ display: block !important;
286
+ }
287
+
288
+ #submit-button:hover,
289
+ #try-another-btn:hover {
290
+ background-color: #E56E0F !important;
291
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
292
+ }
293
+
294
+ .control-buttons button {
295
+ margin: 0 10px !important;
296
+ font-size: 1em !important;
297
+ border-radius: 6px !important;
298
+ padding: 8px 16px !important;
299
+ transition: all 0.2s ease !important;
300
+ }
301
+
302
+ /* Context Section */
303
+ .context-description {
304
+ background-color: transparent !important;
305
+ font-style: normal !important;
306
+ color: var(--text-medium) !important;
307
+ font-size: 1.05em !important;
308
+ }
309
+
310
+ .context-topic {
311
+ display: inline-flex !important;
312
+ align-items: center !important;
313
+ background-color: transparent !important;
314
+ padding: 0 !important;
315
+ border-radius: 0 !important;
316
+ box-shadow: none !important;
317
+ }
318
+
319
+ .topic-label {
320
+ font-weight: 600 !important;
321
+ color: var(--text-medium) !important;
322
+ margin-right: 6px !important;
323
+ }
324
+
325
+ #context-header-row {
326
  display: flex !important;
327
  justify-content: space-between !important;
328
  align-items: center !important;
329
+ }
330
+
331
+ .context-title {
332
  margin: 0 !important;
333
  padding: 0 !important;
334
  font-size: 1.2em !important;
335
  font-weight: 600 !important;
336
  color: var(--text-dark) !important;
337
+ }
338
+
339
+ .context-items-container {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  border-radius: 6px;
341
  overflow: hidden;
342
+ }
343
+
344
+ .context-item {
345
  border: 1px solid var(--border-light);
346
  background-color: var(--background-light);
347
  padding: 12px;
 
350
  font-size: 1em;
351
  line-height: 1.5;
352
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
353
+ }
354
+
355
+ .primary-context {
356
  border-left: 3px solid var(--model-a-color) !important;
357
+ }
358
+
359
+ .chunk-header {
360
  font-weight: 600;
361
  color: var(--query-text);
362
  margin-bottom: 8px;
363
  padding-bottom: 5px;
364
  border-bottom: 1px solid var(--query-border);
365
+ }
366
+
367
+ .highlight {
368
  background-color: #FFECB3 !important;
369
  padding: 0.1em 0.3em !important;
370
  border-radius: 3px !important;
371
  font-weight: 600 !important;
372
  color: #664500 !important;
373
+ }
374
+
375
+ /* Insufficient Alert */
376
+ .insufficient-alert {
377
  border: 2px solid var(--insufficient-alert-border);
378
  background-color: var(--insufficient-alert-bg);
379
  color: var(--insufficient-alert-text);
 
381
  border-radius: 6px;
382
  margin-bottom: 12px;
383
  font-size: 1em;
384
+ }
385
+
386
+ .insufficient-alert strong {
387
  display: inline-flex !important;
388
  align-items: center !important;
389
  margin-bottom: 5px;
390
  font-size: 1.1em !important;
391
  font-weight: 600 !important;
392
+ }
393
+
394
+ .insufficient-alert strong svg {
395
  margin-right: 8px !important;
396
  width: 1em !important;
397
  height: 1em !important;
398
+ }
399
+
400
+ .insufficient-alert p {
401
  margin: 0;
402
  font-size: 1em;
403
+ }
404
+
405
+ /* Summary Cards */
406
+ .summary-card-wrapper {
407
+ height: 100% !important;
408
+ overflow-y: auto !important;
409
+ }
410
+
411
+ #summary-containers {
412
+ margin-top: 10px !important;
413
+ }
414
+
415
+ #main-interface-area > div:nth-child(7) > div {
416
  display: flex !important;
417
  flex-direction: row !important;
418
  align-items: stretch !important;
419
+ }
420
+
421
+ #main-interface-area > div:nth-child(7) > div > div {
422
  flex: 1 !important;
423
  display: flex !important;
424
  flex-direction: column !important;
425
+ }
426
+
427
+ #main-interface-area > p:first-of-type {
428
+ font-size: 1em !important;
429
+ margin: 0 0 8px 0 !important;
430
+ padding: 0 !important;
431
+ line-height: 1.4 !important;
432
+ color: var(--text-medium) !important;
433
+ }
434
+
435
+ .summary-card {
436
  border: 1px solid var(--border-light) !important;
437
  border-radius: 6px !important;
438
  background-color: var(--background-light) !important;
 
444
  height: auto !important;
445
  min-height: 200px !important;
446
  overflow: visible !important;
447
+ }
448
+
449
+ .summary-card-a {
450
  border-left: 3px solid var(--model-a-color) !important;
451
+ }
452
+
453
+ .summary-card-b {
454
  border-left: 3px solid var(--model-b-color) !important;
455
+ }
456
+
457
+ .summary-card .gr-form,
458
+ .summary-card .gr-form > div {
 
 
 
 
 
 
 
459
  margin: 0 !important;
460
  padding: 0 !important;
461
  flex: 1 !important;
462
  display: flex !important;
463
  flex-direction: column !important;
464
+ }
465
+
466
+ .summary-card .gr-input-label,
467
+ .feedback-section .gr-input-label {
468
  font-size: 1.1em !important;
469
  font-weight: 600 !important;
470
+ color: var(--text-dark) !important;
471
+ }
472
+
473
+ .summary-card .gr-input-label {
474
  margin: 0 0 5px 0 !important;
475
  padding: 0 !important;
476
+ }
477
+
478
+ .feedback-section .gr-input-label {
479
+ margin-bottom: 0.6em !important;
480
+ }
481
+
482
+ .summary-card .gr-textbox {
483
  border: none !important;
484
  background: transparent !important;
485
  padding: 0 !important;
486
  margin: 0 !important;
487
  flex: 1 !important;
488
+ }
489
+
490
+ .summary-card textarea {
491
  background-color: transparent !important;
492
  border: none !important;
493
  color: var(--text-dark) !important;
 
500
  width: 100% !important;
501
  resize: none !important;
502
  overflow-y: visible !important;
503
+ }
504
+
505
+ /* Voting Section */
506
+ .vote-button {
 
 
 
 
507
  flex-grow: 1;
508
+ margin: 0 5px 5px 5px !important;
509
  font-size: 1.05em !important;
510
  padding: 12px 15px !important;
511
  border-radius: 6px !important;
 
515
  min-height: 50px !important;
516
  font-weight: 500 !important;
517
  color: var(--text-dark) !important;
518
+ }
519
+
520
+ .vote-button:hover:not(.vote-button-neither) {
 
521
  background-color: var(--primary-light) !important;
522
  border-color: var(--primary) !important;
523
  color: var(--primary) !important;
524
+ }
525
+
526
+ .vote-button-neither:hover {
527
  background-color: var(--insufficient-alert-bg) !important;
528
  border-color: var(--insufficient-alert-border) !important;
529
  color: var(--insufficient-alert-text) !important;
530
+ }
531
+
532
+ .vote-button.selected:not(.vote-button-neither) {
533
  border-width: 2px !important;
534
  border-style: solid !important;
535
  border-color: var(--primary) !important;
 
537
  color: var(--primary) !important;
538
  font-weight: 600 !important;
539
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
540
+ }
541
+
542
+ .vote-button-neither.selected {
543
  border-width: 2px !important;
544
  border-style: solid !important;
545
  border-color: var(--insufficient-alert-border) !important;
 
547
  color: var(--insufficient-alert-text) !important;
548
  font-weight: 600 !important;
549
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
550
+ }
551
+
552
+ /* Feedback Section */
553
+ .feedback-section {
 
 
 
 
 
 
 
 
 
 
 
554
  padding: 3px 0 !important;
555
  background-color: transparent !important;
556
+ margin: 3px 0 !important;
 
557
  font-size: 1em;
558
+ border: none !important;
559
  box-shadow: none !important;
560
+ }
561
+
562
+ .feedback-section .gr-check-radio {
563
  font-size: 1.05em !important;
564
+ }
565
+
566
+ .feedback-section .gr-check-radio span {
567
  font-size: 1.05em !important;
568
  color: var(--text-dark) !important;
569
+ }
570
+
571
+ .feedback-section input[type="checkbox"] {
572
  width: 18px !important;
573
  height: 18px !important;
574
  margin-right: 6px !important;
575
+ }
576
+
577
+ .feedback-section input[type="checkbox"]:checked {
578
  accent-color: var(--primary) !important;
579
  border-color: var(--primary) !important;
580
  background-color: var(--primary) !important;
581
+ }
582
+
583
+ /* Model Reveal */
584
+ .model-reveal {
585
  font-size: 1.1em !important;
586
  text-align: center !important;
587
  font-weight: 600 !important;
588
  background-color: transparent !important;
589
  padding: 0 !important;
590
  border: none !important;
591
+ }
592
+
593
+ .model-reveal span {
594
  font-size: 1.3em !important;
 
 
 
 
595
  display: flex !important;
596
  align-items: center !important;
597
  justify-content: center !important;
598
+ width: 100% !important;
599
+ padding: 25px 15px !important;
600
+ min-height: 50px !important;
601
+ }
602
+
603
+ .model-a-reveal span {
604
  background-color: rgba(146, 180, 244, 0.2) !important;
605
+ }
606
+
607
+ .model-b-reveal span {
608
  background-color: rgba(248, 173, 167, 0.2) !important;
609
+ }
610
+
611
+ /* DataFrames and Tables */
612
+ .gr-dataframe table {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  font-size: 0.95em !important;
614
  border-collapse: separate !important;
615
  border-spacing: 0 !important;
 
616
  overflow: hidden !important;
617
+ }
618
+
619
+ .gr-dataframe th,
620
+ .gr-dataframe td {
621
  padding: 8px 10px !important;
622
  border: none !important;
623
  border-bottom: 1px solid var(--border-light) !important;
624
+ }
625
+
626
+ .gr-dataframe th {
627
  background-color: var(--background-light) !important;
628
  color: var(--text-dark) !important;
629
  font-weight: 600 !important;
630
+ }
631
+
632
+ .gradio-container .prose {
633
  line-height: 1.4 !important;
634
  margin: 0 !important;
635
  padding: 0 !important;
636
+ }
637
+
638
+ .gradio-container-5-28-0 .prose table {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639
  border: none !important;
640
+ }
641
+
642
+ .gradio-container-5-28-0 .prose th,
643
+ .gradio-container-5-28-0 .prose td {
644
+ border: 1px solid var(--border-light) !important;
645
+ }
646
+
647
+ /* Leaderboard Styles */
648
+ .model-link {
649
+ color: var(--text-dark) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  text-decoration: none !important;
651
+ border-bottom: 1px dotted var(--border-light) !important;
652
  transition: color 0.2s, border-color 0.2s !important;
653
  padding: 2px 0 !important;
654
  display: inline-flex !important;
655
  align-items: center !important;
656
  font-weight: 500 !important;
657
+ }
658
+
659
+ .model-link:hover {
660
  color: #FF5500 !important;
661
  border-color: #FF5500 !important;
662
+ }
663
+
664
+ .external-icon {
665
  display: inline-block !important;
666
  margin-left: 5px !important;
667
  opacity: 0.6 !important;
668
  transition: opacity 0.2s !important;
669
+ }
670
+
671
+ .model-link:hover .external-icon {
672
  opacity: 1 !important;
673
+ }
674
+
675
+ #leaderboard-info {
676
  margin: 15px 0 !important;
677
  padding: 0 !important;
678
  background-color: rgba(255, 236, 224, 0.5) !important;
679
  border: none !important;
680
+ }
681
+
682
+ #leaderboard-info > div {
683
  margin: 0 !important;
684
  padding: 15px !important;
685
+ background-color: var(--background-light) !important;
686
  border: none !important;
687
+ }
688
+
689
+ #leaderboard-info h3 {
690
  margin-top: 0 !important;
691
  margin-bottom: 10px !important;
692
+ color: var(--primary) !important;
693
+ }
694
+
695
+ #leaderboard-info p {
696
  margin-bottom: 8px !important;
697
  line-height: 1.5 !important;
698
+ }
699
+
700
+ #leaderboard-info ul {
701
  margin-bottom: 10px;
702
  padding-left: 20px;
703
+ }
704
+
705
+ #leaderboard-info li {
706
  margin-bottom: 4px;
707
  line-height: 1.4;
708
+ }
709
+
710
+ .leaderboard-table {
711
  width: 100%;
712
  border-collapse: collapse;
713
  border-spacing: 0;
714
  font-size: 1.05em !important;
715
  margin-top: 15px;
716
+ }
717
+
718
+ .leaderboard-table th {
719
  background-color: #FFF1E6 !important;
720
+ color: var(--text-dark) !important;
721
  font-weight: 600;
722
  text-align: left;
723
  padding: 14px 15px !important;
724
+ border-bottom: 1px solid var(--border-light) !important;
725
  font-size: 1.1em !important;
726
+ }
727
 
728
+ @media (prefers-color-scheme: dark) {
729
+ .leaderboard-table th {
730
+ background-color: #3D3026 !important; /* Use the primary-light variable for dark mode */
731
+ color: var(--text-dark) !important;
732
+ }
733
+ }
734
+
735
+ .leaderboard-table td {
736
  padding: 12px 15px !important;
737
+ border-bottom: 1px solid var(--border-light) !important;
738
+ background-color: var(--background-main) !important;
739
  font-size: 1.05em !important;
740
+ }
741
+
742
+ .leaderboard-table th.centered,
743
+ .leaderboard-table td.centered {
744
  text-align: center;
745
+ }
746
+
747
+ .leaderboard-table td.elo-col {
748
  font-weight: 600;
749
+ color: var(--primary) !important;
750
+ }
751
+
752
+ .leaderboard-table .confidence-value {
753
+ color: var(--text-medium) !important;
754
  font-size: 0.9em;
755
  font-weight: normal;
756
+ }
757
+
758
+ .html-container.svelte-phx28p.padding {
759
+ padding: 0 !important;
760
+ }
761
+
762
+ span.svelte-7ddecg p:not(:first-child) {
763
  margin-top: 0 !important;
764
+ }
765
+
766
+ /* Smooth scrolling for the entire page */
767
+ html {
768
+ scroll-behavior: smooth;
769
+ }
770
+
771
+ /* For the query section scroll margin */
772
+ #query-section {
773
+ scroll-margin-top: 20px;
774
+ }
775
+
776
+ /* Responsive Styles */
777
+ @media screen and (max-width: 768px) {
778
+ #query-container {
779
+ flex-direction: column !important;
780
+ }
781
+
782
+ .query-box-row {
783
+ flex: 1 1 100% !important;
784
+ max-width: 100% !important;
785
+ margin-bottom: 10px !important;
786
+ }
787
+
788
+ .query-button {
789
+ width: 100% !important;
790
+ }
791
+
792
+ .vote-button {
793
+ font-size: 0.9em !important;
794
+ padding: 10px 8px !important;
795
+ }
796
+
797
+ .summary-card {
798
+ margin-bottom: 15px !important;
799
+ }
800
+
801
+ #main-interface-area > div:nth-child(7) > div {
802
+ flex-direction: column !important;
803
+ }
804
+ }
805
+
806
+ @media screen and (max-width: 480px) {
807
+ #main-interface-area > div:nth-child(10) > div {
808
+ display: grid !important;
809
+ grid-template-columns: 1fr 1fr !important;
810
+ gap: 8px !important;
811
+ }
812
+
813
+ .vote-button {
814
+ margin: 0 !important;
815
+ padding: 8px 5px !important;
816
+ }
817
  }