aizip-dev commited on
Commit
6c50a8a
·
verified ·
1 Parent(s): 60f4a2c
Files changed (1) hide show
  1. static/styles.css +837 -801
static/styles.css CHANGED
@@ -1,824 +1,860 @@
1
  /* Base Variables */
2
  :root {
3
- --primary: #FF7D1E;
4
- --primary-light: #FFF8F2;
5
- --primary-selected: #FFE8D5;
6
- --accent: #6B7280;
7
- --text-dark: #333333;
8
- --text-medium: #666666;
9
- --border-light: #E6E6E6;
10
- --background-light: #F9F9F9;
11
- --background-main: #FFFFFF;
12
- --highlight: #FFFBEB;
13
- --model-a-color: #92B4F4;
14
- --model-b-color: #F8ADA7;
15
- --query-background: #F0F7FF;
16
- --query-border: #D1E3F8;
17
- --query-text: #2E5AAC;
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;
92
- margin: 0 5px !important;
93
- border-radius: 6px 6px 0 0 !important;
94
- border: none !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;
183
- border: 1px solid var(--query-border) !important;
184
- margin: 0 !important;
185
- align-items: flex-start !important;
186
- flex: 1 1 70% !important;
187
- max-width: 70% !important;
188
- overflow: visible !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;
198
- border: none !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;
208
- line-height: 1.4 !important;
209
- margin: 0 !important;
210
- padding: 0 !important;
211
- background-color: transparent !important;
212
- border: none !important;
213
- overflow-wrap: break-word !important;
214
- word-wrap: break-word !important;
215
- word-break: normal !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;
348
- border-radius: 6px;
349
- margin-bottom: 8px;
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);
380
- padding: 12px;
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;
439
- box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
440
- margin: 0 !important;
441
- padding: 12px !important;
442
- display: flex !important;
443
- flex-direction: column !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;
494
- font-size: 1.1em !important;
495
- line-height: 1.4 !important;
496
- height: auto !important;
497
- min-height: 150px !important;
498
- padding: 0 !important;
499
- margin: 0 !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;
512
- transition: all 0.2s ease !important;
513
- background-color: var(--background-light) !important;
514
- border: 1px solid var(--border-light) !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;
536
- background-color: var(--primary-light) !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;
546
- background-color: var(--insufficient-alert-bg) !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
- .gradio-container-5-28-0 .prose blockquote {
729
- margin: 12px 0 var(--size-6) 0 !important;
730
- border-left: 5px solid var(--border-color-primary);
731
- padding-left: var(--size-2);
 
732
  }
733
 
734
- @media (prefers-color-scheme: dark) {
735
- .leaderboard-table th {
736
- background-color: #3D3026 !important; /* Use the primary-light variable for dark mode */
737
- color: var(--text-dark) !important;
738
- }
739
- }
740
-
741
- .leaderboard-table td {
742
- padding: 12px 15px !important;
743
- border-bottom: 1px solid var(--border-light) !important;
744
- background-color: var(--background-main) !important;
745
- font-size: 1.05em !important;
746
- }
747
-
748
- .leaderboard-table th.centered,
749
- .leaderboard-table td.centered {
750
- text-align: center;
751
- }
752
-
753
- .leaderboard-table td.elo-col {
754
- font-weight: 600;
755
- color: var(--primary) !important;
756
- }
757
-
758
- .leaderboard-table .confidence-value {
759
- color: var(--text-medium) !important;
760
- font-size: 0.9em;
761
- font-weight: normal;
762
- }
763
-
764
- .html-container.svelte-phx28p.padding {
765
- padding: 0 !important;
766
- }
767
-
768
- span.svelte-7ddecg p {
769
- line-height: 2 !important;
770
- margin-top: 0 !important;
771
- }
772
-
773
- /* Smooth scrolling for the entire page */
774
- html {
775
- scroll-behavior: smooth;
776
- }
777
-
778
- /* For the query section scroll margin */
779
- #query-section {
780
- scroll-margin-top: 20px;
781
- }
782
-
783
- /* Responsive Styles */
784
- @media screen and (max-width: 768px) {
785
- #query-container {
786
- flex-direction: column !important;
787
- }
788
-
789
- .query-box-row {
790
- flex: 1 1 100% !important;
791
- max-width: 100% !important;
792
- margin-bottom: 10px !important;
793
- }
794
-
795
- .query-button {
796
- width: 100% !important;
797
- }
798
-
799
- .vote-button {
800
- font-size: 0.9em !important;
801
- padding: 10px 8px !important;
802
- }
803
-
804
- .summary-card {
805
- margin-bottom: 15px !important;
806
- }
807
-
808
- #main-interface-area > div:nth-child(7) > div {
809
- flex-direction: column !important;
810
- }
811
  }
812
-
813
- @media screen and (max-width: 480px) {
814
- #main-interface-area > div:nth-child(10) > div {
815
- display: grid !important;
816
- grid-template-columns: 1fr 1fr !important;
817
- gap: 8px !important;
818
- }
819
-
820
- .vote-button {
821
- margin: 0 !important;
822
- padding: 8px 5px !important;
823
- }
824
- }
 
1
  /* Base Variables */
2
  :root {
3
+ --primary: #FF7D1E;
4
+ --primary-light: #FFF8F2;
5
+ --primary-selected: #FFE8D5;
6
+ --accent: #6B7280;
7
+ --text-dark: #333333;
8
+ --text-medium: #666666;
9
+ --border-light: #E6E6E6;
10
+ --background-light: #F9F9F9;
11
+ --background-main: #FFFFFF;
12
+ --highlight: #FFFBEB;
13
+ --model-a-color: #92B4F4;
14
+ --model-b-color: #F8ADA7;
15
+ --query-background: #F0F7FF;
16
+ --query-border: #D1E3F8;
17
+ --query-text: #2E5AAC;
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;
92
+ margin: 0 5px !important;
93
+ border-radius: 6px 6px 0 0 !important;
94
+ border: none !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;
183
+ border: 1px solid var(--query-border) !important;
184
+ margin: 0 !important;
185
+ align-items: flex-start !important;
186
+ flex: 1 1 70% !important;
187
+ max-width: 70% !important;
188
+ overflow: visible !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;
198
+ border: none !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;
208
+ line-height: 1.4 !important;
209
+ margin: 0 !important;
210
+ padding: 0 !important;
211
+ background-color: transparent !important;
212
+ border: none !important;
213
+ overflow-wrap: break-word !important;
214
+ word-wrap: break-word !important;
215
+ word-break: normal !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;
348
+ border-radius: 6px;
349
+ margin-bottom: 8px;
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);
380
+ padding: 12px;
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;
439
+ box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
440
+ margin: 0 !important;
441
+ padding: 12px !important;
442
+ display: flex !important;
443
+ flex-direction: column !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;
494
+ font-size: 1.1em !important;
495
+ line-height: 1.4 !important;
496
+ height: auto !important;
497
+ min-height: 150px !important;
498
+ padding: 0 !important;
499
+ margin: 0 !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;
512
+ transition: all 0.2s ease !important;
513
+ background-color: var(--background-light) !important;
514
+ border: 1px solid var(--border-light) !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;
536
+ background-color: var(--primary-light) !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;
546
+ background-color: var(--insufficient-alert-bg) !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
+ /* Override any general prose table styles */
639
+ .gradio-container .prose table,
640
+ .gradio-container-5-28-0 .prose table {
641
+ border-collapse: separate !important;
642
+ border-spacing: 0 !important;
643
+ border: none !important;
644
+ width: 100% !important;
645
+ margin: 16px 0 !important;
646
+ overflow: hidden !important;
647
+ }
648
+
649
+ /* Leaderboard Styles */
650
+ .model-link {
651
+ color: var(--text-dark) !important;
652
+ text-decoration: none !important;
653
+ border-bottom: 1px dotted var(--border-light) !important;
654
+ transition: color 0.2s, border-color 0.2s !important;
655
+ padding: 2px 0 !important;
656
+ display: inline-flex !important;
657
+ align-items: center !important;
658
+ font-weight: 500 !important;
659
+ }
660
+
661
+ .model-link:hover {
662
+ color: #FF5500 !important;
663
+ border-color: #FF5500 !important;
664
+ }
665
+
666
+ .external-icon {
667
+ display: inline-block !important;
668
+ margin-left: 5px !important;
669
+ opacity: 0.6 !important;
670
+ transition: opacity 0.2s !important;
671
+ }
672
+
673
+ .model-link:hover .external-icon {
674
+ opacity: 1 !important;
675
+ }
676
+
677
+ #leaderboard-info {
678
+ margin: 15px 0 !important;
679
+ padding: 0 !important;
680
+ background-color: rgba(255, 236, 224, 0.5) !important;
681
+ border: none !important;
682
+ }
683
+
684
+ #leaderboard-info > div {
685
+ margin: 0 !important;
686
+ padding: 15px !important;
687
+ background-color: var(--background-light) !important;
688
+ border: none !important;
689
+ }
690
+
691
+ #leaderboard-info h3 {
692
+ margin-top: 0 !important;
693
+ margin-bottom: 10px !important;
694
+ color: var(--primary) !important;
695
+ }
696
+
697
+ #leaderboard-info p {
698
+ margin-bottom: 8px !important;
699
+ line-height: 1.5 !important;
700
+ }
701
+
702
+ #leaderboard-info ul {
703
+ margin-bottom: 10px;
704
+ padding-left: 20px;
705
+ }
706
+
707
+ #leaderboard-info li {
708
+ margin-bottom: 4px;
709
+ line-height: 1.4;
710
+ }
711
+
712
+ /* Leaderboard Table Specific Styles - With FIX for HF Spaces */
713
+ .leaderboard-table {
714
+ width: 100% !important;
715
+ border-collapse: separate !important;
716
+ border-spacing: 0 !important;
717
+ font-size: 1.05em !important;
718
+ margin-top: 15px !important;
719
+ overflow: hidden !important;
720
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
721
+ border-radius: 8px !important;
722
+ }
723
+
724
+ /* FIX: Override any table styles from Gradio or HF Spaces */
725
+ .leaderboard-table,
726
+ .leaderboard-table tbody,
727
+ .leaderboard-table thead,
728
+ .leaderboard-table tr {
729
+ border: none !important;
730
+ }
731
+
732
+ /* FIX: Explicitly set cell borders to override Gradio/HF styles */
733
+ .leaderboard-table th,
734
+ .leaderboard-table td {
735
+ border: none !important;
736
+ border-bottom: 1px solid var(--border-light) !important;
737
+ text-align: left !important;
738
+ padding: 12px 15px !important;
739
+ background-color: var(--background-main) !important;
740
+ }
741
+
742
+ /* Header row styling */
743
+ .leaderboard-table th {
744
+ background-color: #FFF1E6 !important;
745
+ color: var(--text-dark) !important;
746
+ font-weight: 600 !important;
747
+ font-size: 1.1em !important;
748
+ padding: 15px !important;
749
+ border: none !important;
750
+ border-bottom: 1px solid var(--border-light) !important;
751
+ }
752
+
753
+ /* First column styling */
754
+ .leaderboard-table td:first-child,
755
+ .leaderboard-table th:first-child {
756
+ background-color: #FFF8F2 !important;
757
+ font-weight: 600 !important;
758
+ }
759
+
760
+ .leaderboard-table th.centered,
761
+ .leaderboard-table td.centered {
762
+ text-align: center !important;
763
+ }
764
+
765
+ .leaderboard-table td.elo-col {
766
+ font-weight: 600 !important;
767
+ color: var(--primary) !important;
768
+ }
769
+
770
+ .leaderboard-table .confidence-value {
771
+ color: var(--text-medium) !important;
772
+ font-size: 0.9em !important;
773
+ font-weight: normal !important;
774
+ }
775
+
776
+ /* Dark mode overrides for leaderboard */
777
+ @media (prefers-color-scheme: dark) {
778
+ .leaderboard-table th {
779
+ background-color: #3D3026 !important;
780
  }
781
 
782
+ .leaderboard-table td:first-child,
783
+ .leaderboard-table th:first-child {
784
+ background-color: #2A2A2A !important;
 
 
 
 
 
 
 
785
  }
786
+ }
787
+
788
+ /* Blockquote styling */
789
+ .gradio-container .prose blockquote,
790
+ .gradio-container-5-28-0 .prose blockquote {
791
+ margin: 3px 0 !important;
792
+ border-left: 8px solid var(--border-color-primary) !important;
793
+ padding-left: var(--size-2) !important;
794
+ font-style: normal !important;
795
+ color: var(--text-dark) !important;
796
+ }
797
+
798
+ /* Spacing for Markdown content */
799
+ span.svelte-7ddecg p {
800
+ line-height: 1.8 !important;
801
+ margin-top: 0 !important;
802
+ margin-bottom: 0.5em !important;
803
+ }
804
+
805
+ .html-container.svelte-phx28p.padding {
806
+ padding: 0 !important;
807
+ }
808
+
809
+ /* Smooth scrolling for the entire page */
810
+ html {
811
+ scroll-behavior: smooth;
812
+ }
813
+
814
+ /* For the query section scroll margin */
815
+ #query-section {
816
+ scroll-margin-top: 20px;
817
+ }
818
+
819
+ /* Responsive Styles */
820
+ @media screen and (max-width: 768px) {
821
  #query-container {
822
+ flex-direction: column !important;
 
 
 
823
  }
824
 
825
  .query-box-row {
826
+ flex: 1 1 100% !important;
827
+ max-width: 100% !important;
828
+ margin-bottom: 10px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  }
830
 
831
  .query-button {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
832
  width: 100% !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
833
  }
834
+
835
+ .vote-button {
836
+ font-size: 0.9em !important;
837
+ padding: 10px 8px !important;
 
 
 
 
 
 
 
 
 
838
  }
839
+
840
  .summary-card {
841
+ margin-bottom: 15px !important;
 
 
 
 
 
 
 
 
 
 
842
  }
843
+
844
+ #main-interface-area > div:nth-child(7) > div {
 
 
 
 
 
 
 
 
 
 
 
 
 
845
  flex-direction: column !important;
846
  }
847
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
848
 
849
+ @media screen and (max-width: 480px) {
850
+ #main-interface-area > div:nth-child(10) > div {
851
+ display: grid !important;
852
+ grid-template-columns: 1fr 1fr !important;
853
+ gap: 8px !important;
854
  }
855
 
856
+ .vote-button {
857
+ margin: 0 !important;
858
+ padding: 8px 5px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
859
  }
860
+ }