Spaces:
Running
on
Zero
Running
on
Zero
File size: 27,064 Bytes
844234c ee2fb63 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a 844234c 6c50a8a 844234c 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a f45441d 6c50a8a 844234c 6c50a8a 844234c 6c50a8a f45441d 844234c 6c50a8a f45441d 844234c 6c50a8a 844234c f45441d 844234c 6c50a8a ee2fb63 844234c 6c50a8a 32ae078 6c50a8a f45441d 60f4a2c 6c50a8a f45441d 844234c 6c50a8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
/* Base Variables */
:root {
--primary: #FF7D1E;
--primary-light: #FFF8F2;
--primary-selected: #FFE8D5;
--accent: #6B7280;
--text-dark: #333333;
--text-medium: #666666;
--border-light: #E6E6E6;
--background-light: #F9F9F9;
--background-main: #FFFFFF;
--highlight: #FFFBEB;
--model-a-color: #92B4F4;
--model-b-color: #F8ADA7;
--query-background: #F0F7FF;
--query-border: #D1E3F8;
--query-text: #2E5AAC;
--insufficient-alert-bg: #fff0f0;
--insufficient-alert-border: #f78989;
--insufficient-alert-text: #b92020;
--text-md: 17px; /* Adjusted from 17px to make everything slightly smaller */
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
:root {
--primary: #FF9542;
--primary-light: #3D3026;
--primary-selected: #4D3927;
--accent: #9CA3AF;
--text-dark: #E6E6E6;
--text-medium: #BBBBBB;
--border-light: #444444;
--background-light: #2A2A2A;
--background-main: #1A1A1A;
--highlight: #3D3825;
--model-a-color: #5A85C7;
--model-b-color: #C47A74;
--query-background: #2A3F5C;
--query-border: #3A5277;
--query-text: #A9C2E8;
--insufficient-alert-bg: #3D2525;
--insufficient-alert-border: #913F3F;
--insufficient-alert-text: #FF8A8A;
}
}
/* Global Styles */
body, .gradio-container {
background-color: var(--background-main);
font-size: 16px; /* Adjusted base font size */
overflow-x: hidden !important;
color: var(--text-dark);
}
/* Common Resets */
.gradio-container {
padding: 0 !important;
}
.gradio-column > *, .gradio-row > *,
.gradio-markdown, .gradio-markdown p {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* Increase markdown text size */
.gradio-markdown p,
.gradio-markdown li,
.gradio-markdown ul,
.gradio-markdown ol {
font-size: var(--text-md) !important; /* Use the variable for markdown text */
line-height: 1.5 !important;
margin-bottom: 0.5em !important;
}
/* Special styles for intro instruction text */
.gradio-markdown p:has(em):has(strong) {
font-size: 1.3em !important; /* Slightly reduced from 1.4em */
line-height: 1.5 !important;
margin-bottom: 8px !important;
}
.gradio-row {
overflow: visible !important;
}
/* Tab Navigation */
.tabs {
margin-top: 0 !important;
}
.tab-nav {
background-color: var(--background-light) !important;
padding: 5px 10px !important;
border-radius: 8px 8px 0 0 !important;
border-bottom: 1px solid var(--border-light) !important;
}
.tab-nav button {
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
padding: 10px 25px !important;
margin: 0 6px !important;
border-radius: 6px 6px 0 0 !important;
border: none !important;
background-color: transparent !important;
color: var(--text-medium) !important;
transition: all 0.3s ease !important;
}
.tab-nav button.selected {
background-color: var(--background-main) !important;
color: var(--primary) !important;
border-bottom: 2px solid var(--primary) !important;
}
.tab-nav button:hover:not(.selected) {
background-color: rgba(255, 255, 255, 0.1) !important;
color: var(--text-dark) !important;
}
.tabitem {
border: none !important;
}
/* Common Typography */
h1 {
font-size: 1.7em !important; /* Reduced from 1.8em */
color: var(--primary) !important;
margin: 10px 0 5px 0 !important;
padding: 0 !important;
}
h3,
.section-heading {
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
margin: 5px 0 2px 0 !important;
padding: 0 !important;
color: var(--text-dark) !important;
}
.orange-title {
color: var(--primary) !important;
font-weight: bold !important;
}
/* Common Dividers */
hr {
margin: 5px 0 !important;
border: none !important;
height: 1px !important;
background-color: var(--border-light) !important;
}
.results-reveal-area hr {
margin: 25px 0 20px 0 !important;
width: 100% !important;
}
/* Query Section */
#query-title-row {
margin: 0 !important;
display: flex !important;
align-items: center !important;
overflow: visible !important;
min-height: 45px !important; /* Reduced from 48px */
white-space: normal !important;
}
#query-title-row h3 {
margin: 0 !important;
padding: 0 !important;
line-height: 1.3 !important;
flex-grow: 0 !important;
flex-shrink: 0 !important;
white-space: normal !important;
overflow: visible !important;
width: auto !important;
display: inline-block !important;
}
#query-container {
display: flex !important;
align-items: stretch !important;
gap: 10px !important; /* Reduced from 12px */
overflow: visible !important;
}
.query-box-row {
background-color: var(--query-background) !important;
padding: 12px 16px !important; /* Reduced from 14px 18px */
border-radius: 6px !important;
border: 1px solid var(--query-border) !important;
margin: 0 !important;
align-items: flex-start !important;
flex: 1 1 70% !important;
max-width: 70% !important;
overflow: visible !important;
display: flex !important;
min-height: 55px !important; /* Reduced from 60px */
height: auto !important;
}
.query-text {
padding: 0 !important;
margin: 0 !important;
background-color: transparent !important;
border: none !important;
overflow: visible !important;
width: 100% !important;
display: block !important;
text-align: left !important; /* Default left alignment for regular questions */
}
.empty-query {
text-align: center !important; /* Center alignment only for the initial question */
}
.query-text p {
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
color: var(--query-text) !important;
line-height: 1.4 !important;
margin: 0 !important;
padding: 0 !important;
background-color: transparent !important;
border: none !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
word-break: normal !important;
hyphens: auto !important;
white-space: normal !important;
overflow: visible !important;
}
/* Buttons */
.query-button,
.context-toggle-button {
background-color: var(--background-light) !important;
color: var(--text-medium) !important;
border: 1px solid var(--border-light) !important;
border-radius: 6px !important;
font-weight: 500 !important;
transition: all 0.2s ease !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.query-button {
padding: 0 20px !important; /* Reduced from 0 24px */
flex: 0 0 auto !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
min-height: 55px !important; /* Reduced from 60px */
white-space: nowrap !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.context-toggle-button {
padding: 5px 10px !important; /* Reduced from 6px 12px */
font-size: 0.95em !important; /* Reduced from 1.0em */
height: 32px !important; /* Reduced from 36px */
line-height: 1 !important;
width: auto !important;
min-width: 0 !important;
max-width: 160px !important; /* Reduced from 180px */
margin: 0 !important;
cursor: pointer !important;
}
.query-button:hover,
.context-toggle-button:hover {
background-color: var(--primary-light) !important;
color: var(--primary) !important;
border-color: var(--primary) !important;
}
/* Action Buttons */
#submit-button,
#try-another-btn {
background-color: var(--primary) !important;
color: white !important;
padding: 12px 30px !important; /* Reduced from 14px 36px */
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 1.2em !important; /* Reduced from 1.25em */
transition: all 0.2s ease !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
border: none !important;
}
#submit-button {
margin-top: 15px !important; /* Reduced from 18px */
}
#try-another-btn {
width: 100% !important;
max-width: 100% !important;
margin: 10px auto !important; /* Reduced from 12px */
display: block !important;
}
#submit-button:hover,
#try-another-btn:hover {
background-color: #E56E0F !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}
.control-buttons button {
margin: 0 10px !important; /* Reduced from 0 12px */
font-size: 1.05em !important; /* Reduced from 1.1em */
border-radius: 6px !important;
padding: 8px 16px !important; /* Reduced from 10px 19px */
transition: all 0.2s ease !important;
}
/* Context Section */
.context-description {
background-color: transparent !important;
font-style: normal !important;
color: var(--text-medium) !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.context-topic {
display: inline-flex !important;
align-items: center !important;
background-color: transparent !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.topic-label {
font-weight: 600 !important;
color: var(--text-medium) !important;
margin-right: 6px !important; /* Reduced from 7px */
}
#context-header-row {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}
.context-title {
margin: 0 !important;
padding: 0 !important;
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
color: var(--text-dark) !important;
}
.context-items-container {
border-radius: 6px;
overflow: hidden;
}
.context-item {
border: 1px solid var(--border-light);
background-color: var(--background-light);
padding: 12px; /* Reduced from 14px */
border-radius: 6px;
margin-bottom: 8px; /* Reduced from 10px */
font-size: 1.05em; /* Reduced from 1.1em */
line-height: 1.5;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.primary-context {
border-left: 3px solid var(--model-a-color) !important;
}
.chunk-header {
font-weight: 600;
color: var(--query-text);
margin-bottom: 8px; /* Reduced from 10px */
padding-bottom: 5px; /* Reduced from 6px */
border-bottom: 1px solid var(--query-border);
}
.highlight {
background-color: #FFECB3 !important;
padding: 0.1em 0.3em !important;
border-radius: 3px !important;
font-weight: 600 !important;
color: #664500 !important;
}
/* Insufficient Alert */
.insufficient-alert {
border: 2px solid var(--insufficient-alert-border);
background-color: var(--insufficient-alert-bg);
color: var(--insufficient-alert-text);
padding: 12px; /* Reduced from 14px */
border-radius: 6px;
margin-bottom: 12px; /* Reduced from 14px */
font-size: 1.05em; /* Reduced from 1.1em */
}
.insufficient-alert strong {
display: inline-flex !important;
align-items: center !important;
margin-bottom: 5px; /* Reduced from 6px */
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
}
.insufficient-alert strong svg {
margin-right: 8px !important; /* Reduced from 10px */
width: 1.1em !important; /* Reduced from 1.2em */
height: 1.1em !important; /* Reduced from 1.2em */
}
.insufficient-alert p {
margin: 0;
font-size: 1.05em; /* Reduced from 1.1em */
}
/* Summary Cards */
.summary-card-wrapper {
height: 100% !important;
overflow-y: auto !important;
}
#summary-containers {
margin-top: 10px !important; /* Reduced from 12px */
}
#main-interface-area > div:nth-child(7) > div {
display: flex !important;
flex-direction: row !important;
align-items: stretch !important;
}
#main-interface-area > div:nth-child(7) > div > div {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
#main-interface-area > p:first-of-type {
font-size: var(--text-md) !important;
margin: 0 0 8px 0 !important; /* Reduced from 0 0 10px 0 */
padding: 0 !important;
line-height: 1.4 !important;
color: var(--text-medium) !important;
}
.summary-card {
border: 1px solid var(--border-light) !important;
border-radius: 6px !important;
background-color: var(--background-light) !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
margin: 0 !important;
padding: 12px !important; /* Reduced from 14px */
display: flex !important;
flex-direction: column !important;
height: auto !important;
min-height: 200px !important; /* Reduced from 220px */
overflow: visible !important;
}
.summary-card-a {
border-left: 3px solid var(--model-a-color) !important;
}
.summary-card-b {
border-left: 3px solid var(--model-b-color) !important;
}
.summary-card .gr-form,
.summary-card .gr-form > div {
margin: 0 !important;
padding: 0 !important;
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.summary-card .gr-input-label,
.feedback-section .gr-input-label {
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
color: var(--text-dark) !important;
}
.summary-card .gr-input-label {
margin: 0 0 5px 0 !important; /* Reduced from 0 0 6px 0 */
padding: 0 !important;
}
.feedback-section .gr-input-label {
margin-bottom: 0.6em !important; /* Reduced from 0.72em */
}
.summary-card .gr-textbox {
border: none !important;
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
flex: 1 !important;
}
.summary-card textarea {
background-color: transparent !important;
border: none !important;
color: var(--text-dark) !important;
font-size: 1.15em !important; /* Reduced from 1.2em */
line-height: 1.4 !important;
height: auto !important;
min-height: 160px !important; /* Reduced from 180px */
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
resize: none !important;
overflow-y: visible !important;
}
/* Voting Section */
.vote-button {
flex-grow: 1;
margin: 0 5px 5px 5px !important; /* Reduced from 0 6px 6px 6px */
font-size: 1.1em !important; /* Reduced from 1.15em */
padding: 12px 16px !important; /* Reduced from 14px 18px */
border-radius: 6px !important;
transition: all 0.2s ease !important;
background-color: var(--background-light) !important;
border: 1px solid var(--border-light) !important;
min-height: 55px !important; /* Reduced from 60px */
font-weight: 500 !important;
color: var(--text-dark) !important;
}
.vote-button:hover:not(.vote-button-neither) {
background-color: var(--primary-light) !important;
border-color: var(--primary) !important;
color: var(--primary) !important;
}
.vote-button-neither:hover {
background-color: var(--insufficient-alert-bg) !important;
border-color: var(--insufficient-alert-border) !important;
color: var(--insufficient-alert-text) !important;
}
.vote-button.selected:not(.vote-button-neither) {
border-width: 2px !important;
border-style: solid !important;
border-color: var(--primary) !important;
background-color: var(--primary-light) !important;
color: var(--primary) !important;
font-weight: 600 !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.vote-button-neither.selected {
border-width: 2px !important;
border-style: solid !important;
border-color: var(--insufficient-alert-border) !important;
background-color: var(--insufficient-alert-bg) !important;
color: var(--insufficient-alert-text) !important;
font-weight: 600 !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
/* Feedback Section */
.feedback-section {
padding: 3px 0 !important; /* Reduced from 4px 0 */
background-color: transparent !important;
margin: 3px 0 !important; /* Reduced from 4px 0 */
font-size: 1.05em; /* Reduced from 1.1em */
border: none !important;
box-shadow: none !important;
}
.feedback-section .gr-check-radio {
font-size: 1.1em !important; /* Reduced from 1.15em */
}
.feedback-section .gr-check-radio span {
font-size: 1.1em !important; /* Reduced from 1.15em */
color: var(--text-dark) !important;
}
.feedback-section input[type="checkbox"] {
width: 18px !important; /* Reduced from 20px */
height: 18px !important; /* Reduced from 20px */
margin-right: 6px !important; /* Reduced from 7px */
}
.feedback-section input[type="checkbox"]:checked {
accent-color: var(--primary) !important;
border-color: var(--primary) !important;
background-color: var(--primary) !important;
}
/* Model Reveal */
.model-reveal {
font-size: 1.15em !important; /* Reduced from 1.2em */
text-align: center !important;
font-weight: 600 !important;
background-color: transparent !important;
padding: 0 !important;
border: none !important;
}
.model-reveal span {
font-size: 1.3em !important; /* Reduced from 1.4em */
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
padding: 25px 16px !important; /* Reduced from 30px 18px */
min-height: 55px !important; /* Reduced from 60px */
}
.model-a-reveal span {
background-color: rgba(146, 180, 244, 0.2) !important;
}
.model-b-reveal span {
background-color: rgba(248, 173, 167, 0.2) !important;
}
/* DataFrames and Tables */
.gr-dataframe table {
font-size: 1.05em !important;
border-collapse: separate !important;
border-spacing: 0 !important;
overflow: hidden !important;
}
.gr-dataframe th,
.gr-dataframe td {
padding: 8px 10px !important;
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
}
.gr-dataframe th {
background-color: var(--background-light) !important;
color: var(--text-dark) !important;
font-weight: 600 !important;
}
.gradio-container .prose {
line-height: 1.4 !important;
margin: 0 !important;
padding: 0 !important;
}
/* Override any general prose table styles */
.gradio-container .prose table,
.gradio-container-5-28-0 .prose table {
border-collapse: separate !important;
border-spacing: 0 !important;
border: none !important;
width: 100% !important;
margin: 16px 0 !important; /* Reduced from 19px 0 */
overflow: hidden !important;
}
/* Leaderboard Styles */
.model-link {
color: var(--text-dark) !important;
text-decoration: none !important;
border-bottom: 1px dotted var(--border-light) !important;
transition: color 0.2s, border-color 0.2s !important;
padding: 2px 0 !important;
display: inline-flex !important;
align-items: center !important;
font-weight: 500 !important;
}
.model-link:hover {
color: #FF5500 !important;
border-color: #FF5500 !important;
}
.external-icon {
display: inline-block !important;
margin-left: 5px !important; /* Reduced from 6px */
opacity: 0.6 !important;
transition: opacity 0.2s !important;
}
.model-link:hover .external-icon {
opacity: 1 !important;
}
/* Special styling for the Elo ratings info box */
#leaderboard-info {
margin: 16px 0 !important; /* Reduced from 18px 0 */
padding: 0 !important;
background-color: rgba(255, 236, 224, 0.5) !important;
border: none !important;
}
#leaderboard-info > div {
margin: 0 !important;
padding: 12px 16px !important; /* REDUCED from 18px - less padding top/bottom for grey box */
background-color: var(--background-light) !important;
border: none !important;
}
#leaderboard-info h3 {
margin-top: 0 !important;
margin-bottom: 10px !important; /* Reduced from 12px */
color: var(--primary) !important;
font-size: 1.3em !important; /* Reduced from 1.35em */
}
#leaderboard-info p {
margin-bottom: 8px !important; /* Reduced from 10px */
line-height: 1.5 !important;
font-size: var(--text-md) !important;
}
#leaderboard-info ul {
margin-bottom: 10px; /* Reduced from 12px */
padding-left: 20px; /* Reduced from 24px */
}
#leaderboard-info li {
margin-bottom: 4px; /* Reduced from 5px */
line-height: 1.4;
font-size: var(--text-md) !important;
}
/* Leaderboard Table Specific Styles - Adjusted size */
.leaderboard-table {
width: 100% !important;
border-collapse: separate !important;
border-spacing: 0 !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
margin-top: 16px !important; /* Reduced from 18px */
overflow: hidden !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
border-radius: 8px !important;
}
/* FIX: Override any table styles from Gradio or HF Spaces */
.leaderboard-table,
.leaderboard-table tbody,
.leaderboard-table thead,
.leaderboard-table tr {
border: none !important;
}
/* FIX: Explicitly set cell borders to override Gradio/HF styles */
.leaderboard-table th,
.leaderboard-table td {
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
text-align: left !important;
padding: 10px 12px !important; /* Reduced from 12px 14px */
background-color: var(--background-main) !important;
font-size: var(--text-md) !important;
}
/* Header row styling */
.leaderboard-table th {
background-color: #FFF1E6 !important;
color: var(--text-dark) !important;
font-weight: 600 !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
padding: 12px !important; /* Reduced from 14px */
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
}
/* First column styling */
.leaderboard-table td:first-child,
.leaderboard-table th:first-child {
background-color: #FFF8F2 !important;
font-weight: 600 !important;
}
.leaderboard-table th.centered,
.leaderboard-table td.centered {
text-align: center !important;
}
.leaderboard-table td.elo-col {
font-weight: 600 !important;
color: var(--primary) !important;
}
.leaderboard-table .confidence-value {
color: var(--text-medium) !important;
font-size: 0.9em !important;
font-weight: normal !important;
}
/* Dark mode overrides for leaderboard */
@media (prefers-color-scheme: dark) {
.leaderboard-table th {
background-color: #3D3026 !important;
}
.leaderboard-table td:first-child,
.leaderboard-table th:first-child {
background-color: #2A2A2A !important;
}
}
/* Blockquote styling */
.gradio-container .prose blockquote,
.gradio-container-5-28-0 .prose blockquote {
margin: 3px 0 !important; /* Reduced from 4px 0 */
border-left: 12px solid var(--border-color-primary) !important; /* Reduced from 14px */
padding-left: calc(var(--size-2) * 1.1) !important; /* Reduced */
font-style: normal !important;
color: var(--text-dark) !important;
}
/* Spacing for Markdown content */
span.svelte-7ddecg p {
line-height: 1.7 !important; /* Reduced from 1.8 */
margin-top: 0 !important;
margin-bottom: 0.5em !important; /* Reduced from 0.6em */
}
.html-container.svelte-phx28p.padding {
padding: 0 !important;
}
/* Smooth scrolling for the entire page */
html {
scroll-behavior: smooth;
}
/* For the query section scroll margin */
#query-section {
scroll-margin-top: 20px; /* Reduced from 24px */
}
/* FAQ Section Styles - Improved left alignment */
#faq-toggle-row {
width: 100% !important;
margin-top: 8px !important; /* Reduced from 10px */
margin-bottom: 8px !important; /* Reduced from 10px */
padding-left: 0 !important;
margin-left: 0 !important;
text-align: left !important;
display: flex !important;
justify-content: flex-start !important;
align-items: center !important;
}
.faq-toggle-button {
color: var(--primary) !important;
background-color: transparent !important;
border: none !important;
padding: 6px 0 !important; /* Reduced from 8px 0 */
font-size: 1.1em !important; /* Reduced from 1.15em */
font-weight: 500 !important;
text-align: left !important;
justify-content: flex-start !important;
cursor: pointer !important;
transition: all 0.2s ease !important;
box-shadow: none !important;
margin: 0 !important;
padding-left: 0 !important;
margin-left: 0 !important;
width: auto !important;
display: inline-flex !important;
align-items: center !important;
}
/* Hover effect for FAQ toggle - just underline */
.faq-toggle-button:hover {
text-decoration: underline !important;
color: var(--primary) !important;
}
#faq-content {
background-color: var(--background-light) !important;
border-radius: 6px !important;
padding: 10px 16px !important; /* REDUCED from 16px 20px - less padding for the FAQ content box */
margin-top: 5px !important; /* Reduced from 6px */
margin-bottom: 15px !important; /* Reduced from 18px */
border: 1px solid var(--border-light) !important;
width: 70% !important;
}
.faq-text {
color: var(--text-medium) !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.faq-text p {
margin-bottom: 12px !important; /* Reduced from 14px */
line-height: 1.5 !important; /* Reduced from 1.6 */
color: var(--text-medium) !important;
font-size: var(--text-md) !important;
}
.faq-text ul {
margin-top: 8px !important; /* Reduced from 10px */
margin-bottom: 10px !important; /* Reduced from 12px */
padding-left: 25px !important; /* Reduced from 30px */
list-style-type: circle !important;
}
.faq-text li {
margin-bottom: 8px !important; /* Reduced from 10px */
color: var(--text-medium) !important;
font-size: var(--text-md) !important;
line-height: 1.5 !important;
}
/* Empty State and Initial State Styles */
.empty-state-message {
color: var(--text-medium) !important;
font-style: italic !important;
text-align: center !important;
padding: 20px !important; /* Reduced from 24px */
font-size: 1.15em !important; /* Reduced from 1.2em */
}
/* Get a Question Button - initially more prominent */
.initial-button {
background-color: var(--primary) !important;
color: white !important;
font-weight: 600 !important;
padding: 10px 20px !important; /* Reduced from 12px 24px */
border-radius: 6px !important;
transition: all 0.2s ease !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
font-size: 1.25em !important; /* Reduced from 1.3em */
}
.initial-button:hover {
background-color: #E56E0F !important;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
transform: translateY(-1px) !important;
}
/* When content is loaded, section visibility */
.content-loaded .context-section,
.content-loaded .model-comparison-section,
.content-loaded .voting-section {
display: block !important;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
#query-container {
flex-direction: column !important;
}
.query-box-row {
flex: 1 1 100% !important;
max-width: 100% !important;
margin-bottom: 10px !important; /* Reduced from 12px */
}
.query-button {
width: 100% !important;
}
.vote-button {
font-size: 1.05em !important; /* Reduced from 1.08em */
padding: 10px 8px !important; /* Reduced from 12px 10px */
}
.summary-card {
margin-bottom: 15px !important; /* Reduced from 18px */
}
#main-interface-area > div:nth-child(7) > div {
flex-direction: column !important;
}
}
@media screen and (max-width: 480px) {
#main-interface-area > div:nth-child(10) > div {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
gap: 8px !important; /* Reduced from 10px */
}
.vote-button {
margin: 0 !important;
padding: 8px 5px !important; /* Reduced from 10px 6px */
}
} |