aizip-dev commited on
Commit
f45441d
·
verified ·
1 Parent(s): c963ac8

style for onboarding

Browse files
Files changed (1) hide show
  1. static/styles.css +230 -97
static/styles.css CHANGED
@@ -18,6 +18,7 @@
18
  --insufficient-alert-bg: #fff0f0;
19
  --insufficient-alert-border: #f78989;
20
  --insufficient-alert-text: #b92020;
 
21
  }
22
 
23
  /* Dark Mode */
@@ -47,7 +48,7 @@
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
  }
@@ -65,10 +66,23 @@ body, .gradio-container {
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
  }
@@ -86,10 +100,10 @@ body, .gradio-container {
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;
@@ -114,7 +128,7 @@ body, .gradio-container {
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;
@@ -122,7 +136,7 @@ h1 {
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;
@@ -153,7 +167,7 @@ hr {
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
 
@@ -172,13 +186,13 @@ hr {
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;
@@ -187,7 +201,7 @@ hr {
187
  max-width: 70% !important;
188
  overflow: visible !important;
189
  display: flex !important;
190
- min-height: 50px !important;
191
  height: auto !important;
192
  }
193
 
@@ -199,10 +213,15 @@ hr {
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;
@@ -227,28 +246,28 @@ hr {
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
  }
@@ -265,23 +284,23 @@ hr {
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
 
@@ -292,10 +311,10 @@ hr {
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
 
@@ -304,7 +323,7 @@ hr {
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 {
@@ -319,7 +338,7 @@ hr {
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 {
@@ -331,7 +350,7 @@ hr {
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
  }
@@ -344,10 +363,10 @@ hr {
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
  }
@@ -359,8 +378,8 @@ hr {
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
 
@@ -377,29 +396,29 @@ hr {
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 */
@@ -409,7 +428,7 @@ hr {
409
  }
410
 
411
  #summary-containers {
412
- margin-top: 10px !important;
413
  }
414
 
415
  #main-interface-area > div:nth-child(7) > div {
@@ -425,8 +444,8 @@ hr {
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;
@@ -438,11 +457,11 @@ hr {
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
 
@@ -465,18 +484,18 @@ hr {
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 {
@@ -491,10 +510,10 @@ hr {
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;
@@ -505,14 +524,14 @@ hr {
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
  }
@@ -551,27 +570,27 @@ hr {
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 {
@@ -582,7 +601,7 @@ hr {
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;
@@ -591,13 +610,13 @@ hr {
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 {
@@ -610,7 +629,7 @@ hr {
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;
@@ -618,7 +637,7 @@ hr {
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
  }
@@ -642,7 +661,7 @@ hr {
642
  border-spacing: 0 !important;
643
  border: none !important;
644
  width: 100% !important;
645
- margin: 16px 0 !important;
646
  overflow: hidden !important;
647
  }
648
 
@@ -665,7 +684,7 @@ hr {
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
  }
@@ -674,8 +693,9 @@ hr {
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;
@@ -683,39 +703,42 @@ hr {
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;
@@ -735,8 +758,9 @@ hr {
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 */
@@ -744,8 +768,8 @@ hr {
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
  }
@@ -788,18 +812,18 @@ hr {
788
  /* Blockquote styling */
789
  .gradio-container .prose blockquote,
790
  .gradio-container-5-28-0 .prose blockquote {
791
- margin: 3px 0 !important;
792
- border-left: 12px 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 {
@@ -813,7 +837,116 @@ html {
813
 
814
  /* For the query section scroll margin */
815
  #query-section {
816
- scroll-margin-top: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
817
  }
818
 
819
  /* Responsive Styles */
@@ -825,7 +958,7 @@ html {
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 {
@@ -833,12 +966,12 @@ html {
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 {
@@ -850,11 +983,11 @@ html {
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
  }
 
18
  --insufficient-alert-bg: #fff0f0;
19
  --insufficient-alert-border: #f78989;
20
  --insufficient-alert-text: #b92020;
21
+ --text-md: 17px; /* Adjusted from 17px to make everything slightly smaller */
22
  }
23
 
24
  /* Dark Mode */
 
48
  /* Global Styles */
49
  body, .gradio-container {
50
  background-color: var(--background-main);
51
+ font-size: 16px; /* Adjusted base font size */
52
  overflow-x: hidden !important;
53
  color: var(--text-dark);
54
  }
 
66
  padding-bottom: 0 !important;
67
  }
68
 
69
+ /* Increase markdown text size */
70
+ .gradio-markdown p,
71
+ .gradio-markdown li,
72
+ .gradio-markdown ul,
73
+ .gradio-markdown ol {
74
+ font-size: var(--text-md) !important; /* Use the variable for markdown text */
75
+ line-height: 1.5 !important;
76
  margin-bottom: 0.5em !important;
77
  }
78
 
79
+ /* Special styles for intro instruction text */
80
+ .gradio-markdown p:has(em):has(strong) {
81
+ font-size: 1.3em !important; /* Slightly reduced from 1.4em */
82
+ line-height: 1.5 !important;
83
+ margin-bottom: 8px !important;
84
+ }
85
+
86
  .gradio-row {
87
  overflow: visible !important;
88
  }
 
100
  }
101
 
102
  .tab-nav button {
103
+ font-size: 1.15em !important; /* Reduced from 1.2em */
104
  font-weight: 600 !important;
105
  padding: 10px 25px !important;
106
+ margin: 0 6px !important;
107
  border-radius: 6px 6px 0 0 !important;
108
  border: none !important;
109
  background-color: transparent !important;
 
128
 
129
  /* Common Typography */
130
  h1 {
131
+ font-size: 1.7em !important; /* Reduced from 1.8em */
132
  color: var(--primary) !important;
133
  margin: 10px 0 5px 0 !important;
134
  padding: 0 !important;
 
136
 
137
  h3,
138
  .section-heading {
139
+ font-size: 1.25em !important; /* Reduced from 1.3em */
140
  font-weight: 600 !important;
141
  margin: 5px 0 2px 0 !important;
142
  padding: 0 !important;
 
167
  display: flex !important;
168
  align-items: center !important;
169
  overflow: visible !important;
170
+ min-height: 45px !important; /* Reduced from 48px */
171
  white-space: normal !important;
172
  }
173
 
 
186
  #query-container {
187
  display: flex !important;
188
  align-items: stretch !important;
189
+ gap: 10px !important; /* Reduced from 12px */
190
  overflow: visible !important;
191
  }
192
 
193
  .query-box-row {
194
  background-color: var(--query-background) !important;
195
+ padding: 12px 16px !important; /* Reduced from 14px 18px */
196
  border-radius: 6px !important;
197
  border: 1px solid var(--query-border) !important;
198
  margin: 0 !important;
 
201
  max-width: 70% !important;
202
  overflow: visible !important;
203
  display: flex !important;
204
+ min-height: 55px !important; /* Reduced from 60px */
205
  height: auto !important;
206
  }
207
 
 
213
  overflow: visible !important;
214
  width: 100% !important;
215
  display: block !important;
216
+ text-align: left !important; /* Default left alignment for regular questions */
217
+ }
218
+
219
+ .empty-query {
220
+ text-align: center !important; /* Center alignment only for the initial question */
221
  }
222
 
223
  .query-text p {
224
+ font-size: 1.25em !important; /* Reduced from 1.3em */
225
  font-weight: 600 !important;
226
  color: var(--query-text) !important;
227
  line-height: 1.4 !important;
 
246
  border-radius: 6px !important;
247
  font-weight: 500 !important;
248
  transition: all 0.2s ease !important;
249
+ font-size: 1.05em !important; /* Reduced from 1.1em */
250
  }
251
 
252
  .query-button {
253
+ padding: 0 20px !important; /* Reduced from 0 24px */
254
  flex: 0 0 auto !important;
255
  display: flex !important;
256
  align-items: center !important;
257
  justify-content: center !important;
258
+ min-height: 55px !important; /* Reduced from 60px */
 
259
  white-space: nowrap !important;
260
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
261
  }
262
 
263
  .context-toggle-button {
264
+ padding: 5px 10px !important; /* Reduced from 6px 12px */
265
+ font-size: 0.95em !important; /* Reduced from 1.0em */
266
+ height: 32px !important; /* Reduced from 36px */
267
  line-height: 1 !important;
268
  width: auto !important;
269
  min-width: 0 !important;
270
+ max-width: 160px !important; /* Reduced from 180px */
271
  margin: 0 !important;
272
  cursor: pointer !important;
273
  }
 
284
  #try-another-btn {
285
  background-color: var(--primary) !important;
286
  color: white !important;
287
+ padding: 12px 30px !important; /* Reduced from 14px 36px */
288
  border-radius: 6px !important;
289
  font-weight: 600 !important;
290
+ font-size: 1.2em !important; /* Reduced from 1.25em */
291
  transition: all 0.2s ease !important;
292
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
293
  border: none !important;
294
  }
295
 
296
  #submit-button {
297
+ margin-top: 15px !important; /* Reduced from 18px */
298
  }
299
 
300
  #try-another-btn {
301
  width: 100% !important;
302
  max-width: 100% !important;
303
+ margin: 10px auto !important; /* Reduced from 12px */
304
  display: block !important;
305
  }
306
 
 
311
  }
312
 
313
  .control-buttons button {
314
+ margin: 0 10px !important; /* Reduced from 0 12px */
315
+ font-size: 1.05em !important; /* Reduced from 1.1em */
316
  border-radius: 6px !important;
317
+ padding: 8px 16px !important; /* Reduced from 10px 19px */
318
  transition: all 0.2s ease !important;
319
  }
320
 
 
323
  background-color: transparent !important;
324
  font-style: normal !important;
325
  color: var(--text-medium) !important;
326
+ font-size: 1.05em !important; /* Reduced from 1.1em */
327
  }
328
 
329
  .context-topic {
 
338
  .topic-label {
339
  font-weight: 600 !important;
340
  color: var(--text-medium) !important;
341
+ margin-right: 6px !important; /* Reduced from 7px */
342
  }
343
 
344
  #context-header-row {
 
350
  .context-title {
351
  margin: 0 !important;
352
  padding: 0 !important;
353
+ font-size: 1.25em !important; /* Reduced from 1.3em */
354
  font-weight: 600 !important;
355
  color: var(--text-dark) !important;
356
  }
 
363
  .context-item {
364
  border: 1px solid var(--border-light);
365
  background-color: var(--background-light);
366
+ padding: 12px; /* Reduced from 14px */
367
  border-radius: 6px;
368
+ margin-bottom: 8px; /* Reduced from 10px */
369
+ font-size: 1.05em; /* Reduced from 1.1em */
370
  line-height: 1.5;
371
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
372
  }
 
378
  .chunk-header {
379
  font-weight: 600;
380
  color: var(--query-text);
381
+ margin-bottom: 8px; /* Reduced from 10px */
382
+ padding-bottom: 5px; /* Reduced from 6px */
383
  border-bottom: 1px solid var(--query-border);
384
  }
385
 
 
396
  border: 2px solid var(--insufficient-alert-border);
397
  background-color: var(--insufficient-alert-bg);
398
  color: var(--insufficient-alert-text);
399
+ padding: 12px; /* Reduced from 14px */
400
  border-radius: 6px;
401
+ margin-bottom: 12px; /* Reduced from 14px */
402
+ font-size: 1.05em; /* Reduced from 1.1em */
403
  }
404
 
405
  .insufficient-alert strong {
406
  display: inline-flex !important;
407
  align-items: center !important;
408
+ margin-bottom: 5px; /* Reduced from 6px */
409
+ font-size: 1.15em !important; /* Reduced from 1.2em */
410
  font-weight: 600 !important;
411
  }
412
 
413
  .insufficient-alert strong svg {
414
+ margin-right: 8px !important; /* Reduced from 10px */
415
+ width: 1.1em !important; /* Reduced from 1.2em */
416
+ height: 1.1em !important; /* Reduced from 1.2em */
417
  }
418
 
419
  .insufficient-alert p {
420
  margin: 0;
421
+ font-size: 1.05em; /* Reduced from 1.1em */
422
  }
423
 
424
  /* Summary Cards */
 
428
  }
429
 
430
  #summary-containers {
431
+ margin-top: 10px !important; /* Reduced from 12px */
432
  }
433
 
434
  #main-interface-area > div:nth-child(7) > div {
 
444
  }
445
 
446
  #main-interface-area > p:first-of-type {
447
+ font-size: var(--text-md) !important;
448
+ margin: 0 0 8px 0 !important; /* Reduced from 0 0 10px 0 */
449
  padding: 0 !important;
450
  line-height: 1.4 !important;
451
  color: var(--text-medium) !important;
 
457
  background-color: var(--background-light) !important;
458
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
459
  margin: 0 !important;
460
+ padding: 12px !important; /* Reduced from 14px */
461
  display: flex !important;
462
  flex-direction: column !important;
463
  height: auto !important;
464
+ min-height: 200px !important; /* Reduced from 220px */
465
  overflow: visible !important;
466
  }
467
 
 
484
 
485
  .summary-card .gr-input-label,
486
  .feedback-section .gr-input-label {
487
+ font-size: 1.15em !important; /* Reduced from 1.2em */
488
  font-weight: 600 !important;
489
  color: var(--text-dark) !important;
490
  }
491
 
492
  .summary-card .gr-input-label {
493
+ margin: 0 0 5px 0 !important; /* Reduced from 0 0 6px 0 */
494
  padding: 0 !important;
495
  }
496
 
497
  .feedback-section .gr-input-label {
498
+ margin-bottom: 0.6em !important; /* Reduced from 0.72em */
499
  }
500
 
501
  .summary-card .gr-textbox {
 
510
  background-color: transparent !important;
511
  border: none !important;
512
  color: var(--text-dark) !important;
513
+ font-size: 1.15em !important; /* Reduced from 1.2em */
514
  line-height: 1.4 !important;
515
  height: auto !important;
516
+ min-height: 160px !important; /* Reduced from 180px */
517
  padding: 0 !important;
518
  margin: 0 !important;
519
  width: 100% !important;
 
524
  /* Voting Section */
525
  .vote-button {
526
  flex-grow: 1;
527
+ margin: 0 5px 5px 5px !important; /* Reduced from 0 6px 6px 6px */
528
+ font-size: 1.1em !important; /* Reduced from 1.15em */
529
+ padding: 12px 16px !important; /* Reduced from 14px 18px */
530
  border-radius: 6px !important;
531
  transition: all 0.2s ease !important;
532
  background-color: var(--background-light) !important;
533
  border: 1px solid var(--border-light) !important;
534
+ min-height: 55px !important; /* Reduced from 60px */
535
  font-weight: 500 !important;
536
  color: var(--text-dark) !important;
537
  }
 
570
 
571
  /* Feedback Section */
572
  .feedback-section {
573
+ padding: 3px 0 !important; /* Reduced from 4px 0 */
574
  background-color: transparent !important;
575
+ margin: 3px 0 !important; /* Reduced from 4px 0 */
576
+ font-size: 1.05em; /* Reduced from 1.1em */
577
  border: none !important;
578
  box-shadow: none !important;
579
  }
580
 
581
  .feedback-section .gr-check-radio {
582
+ font-size: 1.1em !important; /* Reduced from 1.15em */
583
  }
584
 
585
  .feedback-section .gr-check-radio span {
586
+ font-size: 1.1em !important; /* Reduced from 1.15em */
587
  color: var(--text-dark) !important;
588
  }
589
 
590
  .feedback-section input[type="checkbox"] {
591
+ width: 18px !important; /* Reduced from 20px */
592
+ height: 18px !important; /* Reduced from 20px */
593
+ margin-right: 6px !important; /* Reduced from 7px */
594
  }
595
 
596
  .feedback-section input[type="checkbox"]:checked {
 
601
 
602
  /* Model Reveal */
603
  .model-reveal {
604
+ font-size: 1.15em !important; /* Reduced from 1.2em */
605
  text-align: center !important;
606
  font-weight: 600 !important;
607
  background-color: transparent !important;
 
610
  }
611
 
612
  .model-reveal span {
613
+ font-size: 1.3em !important; /* Reduced from 1.4em */
614
  display: flex !important;
615
  align-items: center !important;
616
  justify-content: center !important;
617
  width: 100% !important;
618
+ padding: 25px 16px !important; /* Reduced from 30px 18px */
619
+ min-height: 55px !important; /* Reduced from 60px */
620
  }
621
 
622
  .model-a-reveal span {
 
629
 
630
  /* DataFrames and Tables */
631
  .gr-dataframe table {
632
+ font-size: 1.05em !important;
633
  border-collapse: separate !important;
634
  border-spacing: 0 !important;
635
  overflow: hidden !important;
 
637
 
638
  .gr-dataframe th,
639
  .gr-dataframe td {
640
+ padding: 8px 10px !important;
641
  border: none !important;
642
  border-bottom: 1px solid var(--border-light) !important;
643
  }
 
661
  border-spacing: 0 !important;
662
  border: none !important;
663
  width: 100% !important;
664
+ margin: 16px 0 !important; /* Reduced from 19px 0 */
665
  overflow: hidden !important;
666
  }
667
 
 
684
 
685
  .external-icon {
686
  display: inline-block !important;
687
+ margin-left: 5px !important; /* Reduced from 6px */
688
  opacity: 0.6 !important;
689
  transition: opacity 0.2s !important;
690
  }
 
693
  opacity: 1 !important;
694
  }
695
 
696
+ /* Special styling for the Elo ratings info box */
697
  #leaderboard-info {
698
+ margin: 16px 0 !important; /* Reduced from 18px 0 */
699
  padding: 0 !important;
700
  background-color: rgba(255, 236, 224, 0.5) !important;
701
  border: none !important;
 
703
 
704
  #leaderboard-info > div {
705
  margin: 0 !important;
706
+ padding: 12px 16px !important; /* REDUCED from 18px - less padding top/bottom for grey box */
707
  background-color: var(--background-light) !important;
708
  border: none !important;
709
  }
710
 
711
  #leaderboard-info h3 {
712
  margin-top: 0 !important;
713
+ margin-bottom: 10px !important; /* Reduced from 12px */
714
  color: var(--primary) !important;
715
+ font-size: 1.3em !important; /* Reduced from 1.35em */
716
  }
717
 
718
  #leaderboard-info p {
719
+ margin-bottom: 8px !important; /* Reduced from 10px */
720
  line-height: 1.5 !important;
721
+ font-size: var(--text-md) !important;
722
  }
723
 
724
  #leaderboard-info ul {
725
+ margin-bottom: 10px; /* Reduced from 12px */
726
+ padding-left: 20px; /* Reduced from 24px */
727
  }
728
 
729
  #leaderboard-info li {
730
+ margin-bottom: 4px; /* Reduced from 5px */
731
  line-height: 1.4;
732
+ font-size: var(--text-md) !important;
733
  }
734
 
735
+ /* Leaderboard Table Specific Styles - Adjusted size */
736
  .leaderboard-table {
737
  width: 100% !important;
738
  border-collapse: separate !important;
739
  border-spacing: 0 !important;
740
+ font-size: 1.05em !important; /* Reduced from 1.1em */
741
+ margin-top: 16px !important; /* Reduced from 18px */
742
  overflow: hidden !important;
743
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
744
  border-radius: 8px !important;
 
758
  border: none !important;
759
  border-bottom: 1px solid var(--border-light) !important;
760
  text-align: left !important;
761
+ padding: 10px 12px !important; /* Reduced from 12px 14px */
762
  background-color: var(--background-main) !important;
763
+ font-size: var(--text-md) !important;
764
  }
765
 
766
  /* Header row styling */
 
768
  background-color: #FFF1E6 !important;
769
  color: var(--text-dark) !important;
770
  font-weight: 600 !important;
771
+ font-size: 1.05em !important; /* Reduced from 1.1em */
772
+ padding: 12px !important; /* Reduced from 14px */
773
  border: none !important;
774
  border-bottom: 1px solid var(--border-light) !important;
775
  }
 
812
  /* Blockquote styling */
813
  .gradio-container .prose blockquote,
814
  .gradio-container-5-28-0 .prose blockquote {
815
+ margin: 3px 0 !important; /* Reduced from 4px 0 */
816
+ border-left: 12px solid var(--border-color-primary) !important; /* Reduced from 14px */
817
+ padding-left: calc(var(--size-2) * 1.1) !important; /* Reduced */
818
  font-style: normal !important;
819
  color: var(--text-dark) !important;
820
  }
821
 
822
  /* Spacing for Markdown content */
823
  span.svelte-7ddecg p {
824
+ line-height: 1.7 !important; /* Reduced from 1.8 */
825
  margin-top: 0 !important;
826
+ margin-bottom: 0.5em !important; /* Reduced from 0.6em */
827
  }
828
 
829
  .html-container.svelte-phx28p.padding {
 
837
 
838
  /* For the query section scroll margin */
839
  #query-section {
840
+ scroll-margin-top: 20px; /* Reduced from 24px */
841
+ }
842
+
843
+ /* FAQ Section Styles - Improved left alignment */
844
+ #faq-toggle-row {
845
+ width: 100% !important;
846
+ margin-top: 8px !important; /* Reduced from 10px */
847
+ margin-bottom: 8px !important; /* Reduced from 10px */
848
+ padding-left: 0 !important;
849
+ margin-left: 0 !important;
850
+ text-align: left !important;
851
+ display: flex !important;
852
+ justify-content: flex-start !important;
853
+ align-items: center !important;
854
+ }
855
+
856
+ .faq-toggle-button {
857
+ color: var(--primary) !important;
858
+ background-color: transparent !important;
859
+ border: none !important;
860
+ padding: 6px 0 !important; /* Reduced from 8px 0 */
861
+ font-size: 1.1em !important; /* Reduced from 1.15em */
862
+ font-weight: 500 !important;
863
+ text-align: left !important;
864
+ justify-content: flex-start !important;
865
+ cursor: pointer !important;
866
+ transition: all 0.2s ease !important;
867
+ box-shadow: none !important;
868
+ margin: 0 !important;
869
+ padding-left: 0 !important;
870
+ margin-left: 0 !important;
871
+ width: auto !important;
872
+ display: inline-flex !important;
873
+ align-items: center !important;
874
+ }
875
+
876
+ /* Hover effect for FAQ toggle - just underline */
877
+ .faq-toggle-button:hover {
878
+ text-decoration: underline !important;
879
+ color: var(--primary) !important;
880
+ }
881
+
882
+ #faq-content {
883
+ background-color: var(--background-light) !important;
884
+ border-radius: 6px !important;
885
+ padding: 10px 16px !important; /* REDUCED from 16px 20px - less padding for the FAQ content box */
886
+ margin-top: 5px !important; /* Reduced from 6px */
887
+ margin-bottom: 15px !important; /* Reduced from 18px */
888
+ border: 1px solid var(--border-light) !important;
889
+ width: 70% !important;
890
+ }
891
+
892
+ .faq-text {
893
+ color: var(--text-medium) !important;
894
+ font-size: 1.05em !important; /* Reduced from 1.1em */
895
+ }
896
+
897
+ .faq-text p {
898
+ margin-bottom: 12px !important; /* Reduced from 14px */
899
+ line-height: 1.5 !important; /* Reduced from 1.6 */
900
+ color: var(--text-medium) !important;
901
+ font-size: var(--text-md) !important;
902
+ }
903
+
904
+ .faq-text ul {
905
+ margin-top: 8px !important; /* Reduced from 10px */
906
+ margin-bottom: 10px !important; /* Reduced from 12px */
907
+ padding-left: 25px !important; /* Reduced from 30px */
908
+ list-style-type: circle !important;
909
+ }
910
+
911
+ .faq-text li {
912
+ margin-bottom: 8px !important; /* Reduced from 10px */
913
+ color: var(--text-medium) !important;
914
+ font-size: var(--text-md) !important;
915
+ line-height: 1.5 !important;
916
+ }
917
+
918
+ /* Empty State and Initial State Styles */
919
+ .empty-state-message {
920
+ color: var(--text-medium) !important;
921
+ font-style: italic !important;
922
+ text-align: center !important;
923
+ padding: 20px !important; /* Reduced from 24px */
924
+ font-size: 1.15em !important; /* Reduced from 1.2em */
925
+ }
926
+
927
+ /* Get a Question Button - initially more prominent */
928
+ .initial-button {
929
+ background-color: var(--primary) !important;
930
+ color: white !important;
931
+ font-weight: 600 !important;
932
+ padding: 10px 20px !important; /* Reduced from 12px 24px */
933
+ border-radius: 6px !important;
934
+ transition: all 0.2s ease !important;
935
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
936
+ font-size: 1.25em !important; /* Reduced from 1.3em */
937
+ }
938
+
939
+ .initial-button:hover {
940
+ background-color: #E56E0F !important;
941
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
942
+ transform: translateY(-1px) !important;
943
+ }
944
+
945
+ /* When content is loaded, section visibility */
946
+ .content-loaded .context-section,
947
+ .content-loaded .model-comparison-section,
948
+ .content-loaded .voting-section {
949
+ display: block !important;
950
  }
951
 
952
  /* Responsive Styles */
 
958
  .query-box-row {
959
  flex: 1 1 100% !important;
960
  max-width: 100% !important;
961
+ margin-bottom: 10px !important; /* Reduced from 12px */
962
  }
963
 
964
  .query-button {
 
966
  }
967
 
968
  .vote-button {
969
+ font-size: 1.05em !important; /* Reduced from 1.08em */
970
+ padding: 10px 8px !important; /* Reduced from 12px 10px */
971
  }
972
 
973
  .summary-card {
974
+ margin-bottom: 15px !important; /* Reduced from 18px */
975
  }
976
 
977
  #main-interface-area > div:nth-child(7) > div {
 
983
  #main-interface-area > div:nth-child(10) > div {
984
  display: grid !important;
985
  grid-template-columns: 1fr 1fr !important;
986
+ gap: 8px !important; /* Reduced from 10px */
987
  }
988
 
989
  .vote-button {
990
  margin: 0 !important;
991
+ padding: 8px 5px !important; /* Reduced from 10px 6px */
992
  }
993
  }