Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	| /* 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; | |
| --reference-color: #10B981; /* Green-500 */ | |
| --reference-light: #F0FDF4; /* Green-50 */ | |
| --reference-text: #065F46; /* Green-800 */ | |
| --query-background: #F0F7FF; | |
| --query-border: #D1E3F8; | |
| --query-text: #2E5AAC; | |
| --insufficient-alert-bg: #fff0f0; | |
| --insufficient-alert-border: #f78989; | |
| --insufficient-alert-text: #b92020; | |
| /* Unified Typography Scale - Smaller */ | |
| --text-xs: 0.75rem; /* 12px - Small text, captions */ | |
| --text-sm: 0.875rem; /* 14px - Base body text */ | |
| --text-md: 1rem; /* 16px - Emphasized body text */ | |
| --text-lg: 1.125rem; /* 18px - Large text, small headings */ | |
| --text-xl: 1.375rem; /* 22px - Main headings */ | |
| /* Consistent Line Heights */ | |
| --leading-tight: 1.3; | |
| --leading-normal: 1.5; | |
| --leading-relaxed: 1.6; | |
| /* Consistent Spacing - Proportionally Smaller */ | |
| --space-xs: 0.25rem; /* 4px */ | |
| --space-sm: 0.5rem; /* 8px */ | |
| --space-md: 0.625rem; /* 10px */ | |
| --space-lg: 0.875rem; /* 14px */ | |
| --space-xl: 1.25rem; /* 20px */ | |
| } | |
| /* 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; | |
| --reference-color: #10B981; /* Keep green in dark mode */ | |
| --reference-light: #1F2937; /* Dark gray for dark mode */ | |
| --reference-text: #34D399; /* Light green for dark mode text */ | |
| --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: var(--text-sm); /* Now 14px base */ | |
| overflow-x: hidden ; | |
| color: var(--text-dark); | |
| } | |
| /* Common Resets */ | |
| .gradio-container { | |
| padding: 0 ; | |
| } | |
| .gradio-column > *, .gradio-row > *, | |
| .gradio-markdown, .gradio-markdown p { | |
| margin-top: 0 ; | |
| margin-bottom: 0 ; | |
| padding-top: 0 ; | |
| padding-bottom: 0 ; | |
| } | |
| /* Unified Typography */ | |
| .gradio-markdown p, | |
| .gradio-markdown li, | |
| .gradio-markdown ul, | |
| .gradio-markdown ol { | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-normal) ; | |
| margin-bottom: var(--space-sm) ; | |
| } | |
| /* Special styles for intro instruction text */ | |
| .gradio-markdown p:has(em):has(strong) { | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| margin-bottom: var(--space-sm) ; | |
| } | |
| .gradio-row { | |
| overflow: visible ; | |
| } | |
| /* Tab Navigation */ | |
| .tabs { | |
| margin-top: 0 ; | |
| } | |
| .tab-nav { | |
| background-color: var(--background-light) ; | |
| padding: var(--space-sm) var(--space-md) ; | |
| border-radius: 8px 8px 0 0 ; | |
| border-bottom: 1px solid var(--border-light) ; | |
| } | |
| .tab-nav button { | |
| font-size: var(--text-md) ; | |
| font-weight: 600 ; | |
| padding: var(--space-md) var(--space-xl) ; | |
| margin: 0 var(--space-sm) ; | |
| border-radius: 6px 6px 0 0 ; | |
| border: none ; | |
| background-color: transparent ; | |
| color: var(--text-medium) ; | |
| transition: all 0.3s ease ; | |
| } | |
| .tab-nav button.selected { | |
| background-color: var(--background-main) ; | |
| color: var(--primary) ; | |
| border-bottom: 2px solid var(--primary) ; | |
| } | |
| .tab-nav button:hover:not(.selected) { | |
| background-color: rgba(255, 255, 255, 0.1) ; | |
| color: var(--text-dark) ; | |
| } | |
| .tabitem { | |
| border: none ; | |
| } | |
| /* Unified Headings */ | |
| h1 { | |
| font-size: var(--text-xl) ; | |
| color: var(--primary) ; | |
| margin: var(--space-md) 0 var(--space-sm) 0 ; | |
| padding: 0 ; | |
| line-height: var(--leading-tight) ; | |
| font-weight: 700 ; | |
| } | |
| h3, | |
| .section-heading { | |
| font-size: var(--text-lg) ; | |
| font-weight: 600 ; | |
| margin: var(--space-sm) 0 var(--space-xs) 0 ; | |
| padding: 0 ; | |
| color: var(--text-dark) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .orange-title { | |
| color: var(--primary) ; | |
| font-weight: bold ; | |
| } | |
| /* Common Dividers */ | |
| hr { | |
| margin: var(--space-sm) 0 ; | |
| border: none ; | |
| height: 1px ; | |
| background-color: var(--border-light) ; | |
| } | |
| .results-reveal-area hr { | |
| margin: var(--space-xl) 0 var(--space-lg) 0 ; | |
| width: 100% ; | |
| } | |
| /* Query Section */ | |
| #query-title-row { | |
| margin: 0 ; | |
| display: flex ; | |
| align-items: center ; | |
| overflow: visible ; | |
| min-height: 40px ; | |
| white-space: normal ; | |
| } | |
| #query-title-row h3 { | |
| margin: 0 ; | |
| padding: 0 ; | |
| line-height: var(--leading-tight) ; | |
| flex-grow: 0 ; | |
| flex-shrink: 0 ; | |
| white-space: normal ; | |
| overflow: visible ; | |
| width: auto ; | |
| display: inline-block ; | |
| } | |
| #query-container { | |
| display: flex ; | |
| align-items: stretch ; | |
| gap: var(--space-md) ; | |
| overflow: visible ; | |
| } | |
| .query-box-row { | |
| background-color: var(--query-background) ; | |
| padding: var(--space-md) var(--space-lg) ; | |
| border-radius: 6px ; | |
| border: 1px solid var(--query-border) ; | |
| margin: 0 ; | |
| align-items: flex-start ; | |
| flex: 1 1 70% ; | |
| max-width: 70% ; | |
| overflow: visible ; | |
| display: flex ; | |
| min-height: 48px ; | |
| height: auto ; | |
| } | |
| .query-text { | |
| padding: 0 ; | |
| margin: 0 ; | |
| background-color: transparent ; | |
| border: none ; | |
| overflow: visible ; | |
| width: 100% ; | |
| display: block ; | |
| text-align: left ; | |
| } | |
| .empty-query { | |
| text-align: center ; | |
| } | |
| .query-text p { | |
| font-size: var(--text-lg) ; | |
| font-weight: 600 ; | |
| color: var(--query-text) ; | |
| line-height: var(--leading-normal) ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| background-color: transparent ; | |
| border: none ; | |
| overflow-wrap: break-word ; | |
| word-wrap: break-word ; | |
| word-break: normal ; | |
| hyphens: auto ; | |
| white-space: normal ; | |
| overflow: visible ; | |
| } | |
| /* Unified Button Styles */ | |
| .query-button, | |
| .context-toggle-button, | |
| .reference-toggle-button { | |
| background-color: var(--background-light) ; | |
| color: var(--text-medium) ; | |
| border: 1px solid var(--border-light) ; | |
| border-radius: 6px ; | |
| font-weight: 500 ; | |
| transition: all 0.2s ease ; | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .query-button { | |
| padding: 0 var(--space-lg) ; | |
| flex: 0 0 auto ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| min-height: 48px ; | |
| white-space: nowrap ; | |
| box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) ; | |
| } | |
| .context-toggle-button, | |
| .reference-toggle-button { | |
| padding: var(--space-sm) var(--space-md) ; | |
| font-size: var(--text-xs) ; | |
| height: 28px ; | |
| line-height: 1 ; | |
| width: auto ; | |
| min-width: 0 ; | |
| max-width: 140px ; | |
| margin: 0 ; | |
| cursor: pointer ; | |
| } | |
| .query-button:hover, | |
| .context-toggle-button:hover { | |
| background-color: var(--primary-light) ; | |
| color: var(--primary) ; | |
| border-color: var(--primary) ; | |
| } | |
| /* Reference Toggle Button - specific styling */ | |
| .reference-toggle-button:hover { | |
| background-color: var(--reference-light) ; | |
| color: var(--reference-color) ; | |
| border-color: var(--reference-color) ; | |
| } | |
| .reference-toggle-button.showing-reference { | |
| background-color: var(--reference-light) ; | |
| color: var(--reference-color) ; | |
| border-color: var(--reference-color) ; | |
| font-weight: 600 ; | |
| } | |
| /* Action Buttons */ | |
| #submit-button, | |
| #try-another-btn { | |
| background-color: var(--primary) ; | |
| color: white ; | |
| padding: var(--space-md) var(--space-xl) ; | |
| border-radius: 6px ; | |
| font-weight: 600 ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-tight) ; | |
| transition: all 0.2s ease ; | |
| box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) ; | |
| border: none ; | |
| } | |
| #submit-button { | |
| margin-top: var(--space-lg) ; | |
| } | |
| #try-another-btn { | |
| width: 100% ; | |
| max-width: 100% ; | |
| margin: var(--space-md) auto ; | |
| display: block ; | |
| } | |
| #submit-button:hover, | |
| #try-another-btn:hover { | |
| background-color: #E56E0F ; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) ; | |
| } | |
| .control-buttons button { | |
| margin: 0 var(--space-md) ; | |
| font-size: var(--text-sm) ; | |
| border-radius: 6px ; | |
| padding: var(--space-sm) var(--space-lg) ; | |
| transition: all 0.2s ease ; | |
| } | |
| /* Context Section */ | |
| .context-description { | |
| background-color: transparent ; | |
| font-style: normal ; | |
| color: var(--text-medium) ; | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| .context-topic { | |
| display: inline-flex ; | |
| align-items: center ; | |
| background-color: transparent ; | |
| padding: 0 ; | |
| border-radius: 0 ; | |
| box-shadow: none ; | |
| } | |
| .topic-label { | |
| font-weight: 600 ; | |
| color: var(--text-medium) ; | |
| margin-right: var(--space-sm) ; | |
| } | |
| #context-header-row, | |
| #model-comparison-header { | |
| display: flex ; | |
| justify-content: space-between ; | |
| align-items: center ; | |
| } | |
| #model-comparison-header { | |
| margin-bottom: var(--space-lg) ; | |
| } | |
| .context-title { | |
| margin: 0 ; | |
| padding: 0 ; | |
| font-size: var(--text-lg) ; | |
| font-weight: 600 ; | |
| color: var(--text-dark) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .context-items-container { | |
| border-radius: 6px; | |
| overflow: hidden; | |
| } | |
| .context-item { | |
| border: 1px solid var(--border-light); | |
| background-color: var(--background-light); | |
| padding: var(--space-md); | |
| border-radius: 6px; | |
| margin-bottom: var(--space-sm); | |
| font-size: var(--text-md); | |
| line-height: var(--leading-normal); | |
| box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); | |
| } | |
| .primary-context { | |
| border-left: 3px solid var(--model-a-color) ; | |
| } | |
| .chunk-header { | |
| font-weight: 600; | |
| color: var(--query-text); | |
| margin-bottom: var(--space-sm); | |
| padding-bottom: var(--space-sm); | |
| border-bottom: 1px solid var(--query-border); | |
| font-size: var(--text-sm); | |
| } | |
| .highlight { | |
| background-color: #FFECB3 ; | |
| padding: 0.1em 0.3em ; | |
| border-radius: 3px ; | |
| font-weight: 600 ; | |
| color: #664500 ; | |
| } | |
| /* Insufficient Alert */ | |
| .insufficient-alert { | |
| border: 2px solid var(--insufficient-alert-border); | |
| background-color: var(--insufficient-alert-bg); | |
| color: var(--insufficient-alert-text); | |
| padding: var(--space-md); | |
| border-radius: 6px; | |
| margin-bottom: var(--space-md); | |
| font-size: var(--text-sm); | |
| line-height: var(--leading-normal); | |
| } | |
| .insufficient-alert strong { | |
| display: inline-flex ; | |
| align-items: center ; | |
| margin-bottom: var(--space-sm) ; | |
| font-size: var(--text-md) ; | |
| font-weight: 600 ; | |
| } | |
| .insufficient-alert strong svg { | |
| margin-right: var(--space-sm) ; | |
| width: 1.1em ; | |
| height: 1.1em ; | |
| } | |
| .insufficient-alert p { | |
| margin: 0; | |
| font-size: var(--text-sm); | |
| line-height: var(--leading-normal); | |
| } | |
| /* Summary Cards */ | |
| .summary-card-wrapper { | |
| height: 100% ; | |
| overflow-y: auto ; | |
| } | |
| #summary-containers { | |
| margin-top: var(--space-md) ; | |
| } | |
| #main-interface-area > div:nth-child(7) > div { | |
| display: flex ; | |
| flex-direction: row ; | |
| align-items: stretch ; | |
| } | |
| #main-interface-area > div:nth-child(7) > div > div { | |
| flex: 1 ; | |
| display: flex ; | |
| flex-direction: column ; | |
| } | |
| #main-interface-area > p:first-of-type { | |
| font-size: var(--text-sm) ; | |
| margin: 0 0 var(--space-sm) 0 ; | |
| padding: 0 ; | |
| line-height: var(--leading-normal) ; | |
| color: var(--text-medium) ; | |
| } | |
| .summary-card { | |
| border: 1px solid var(--border-light) ; | |
| border-radius: 6px ; | |
| background-color: var(--background-light) ; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.03) ; | |
| margin: 0 ; | |
| padding: var(--space-md) ; | |
| display: flex ; | |
| flex-direction: column ; | |
| height: auto ; | |
| min-height: 180px ; | |
| overflow: visible ; | |
| } | |
| .summary-card-a { | |
| border-left: 3px solid var(--model-a-color) ; | |
| } | |
| .summary-card-b { | |
| border-left: 3px solid var(--model-b-color) ; | |
| } | |
| /* Reference Answer Card */ | |
| .reference-card { | |
| border-left: 3px solid var(--reference-color) ; | |
| background-color: var(--reference-light) ; | |
| margin-top: var(--space-lg) ; | |
| } | |
| .reference-card .gr-input-label { | |
| color: var(--reference-text) ; | |
| font-weight: 600 ; | |
| } | |
| /* Reference Section */ | |
| #reference-section { | |
| margin-top: var(--space-lg) ; | |
| transition: all 0.3s ease ; | |
| } | |
| .summary-card .gr-form, | |
| .summary-card .gr-form > div { | |
| margin: 0 ; | |
| padding: 0 ; | |
| flex: 1 ; | |
| display: flex ; | |
| flex-direction: column ; | |
| } | |
| .summary-card .gr-input-label, | |
| .feedback-section .gr-input-label { | |
| font-size: var(--text-md) ; | |
| font-weight: 600 ; | |
| color: var(--text-dark) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .summary-card .gr-input-label { | |
| margin: 0 0 var(--space-sm) 0 ; | |
| padding: 0 ; | |
| } | |
| .feedback-section .gr-input-label { | |
| margin-bottom: var(--space-md) ; | |
| } | |
| .summary-card .gr-textbox { | |
| border: none ; | |
| background: transparent ; | |
| padding: 0 ; | |
| margin: 0 ; | |
| flex: 1 ; | |
| } | |
| .summary-card textarea { | |
| background-color: transparent ; | |
| border: none ; | |
| color: var(--text-dark) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| height: auto ; | |
| min-height: 140px ; | |
| padding: 0 ; | |
| margin: 0 ; | |
| width: 100% ; | |
| resize: none ; | |
| overflow-y: visible ; | |
| } | |
| /* Unified Voting Section */ | |
| .vote-button { | |
| flex-grow: 1; | |
| margin: 0 var(--space-sm) var(--space-sm) var(--space-sm) ; | |
| font-size: var(--text-sm) ; | |
| padding: var(--space-md) var(--space-lg) ; | |
| border-radius: 6px ; | |
| transition: all 0.2s ease ; | |
| background-color: var(--background-light) ; | |
| border: 1px solid var(--border-light) ; | |
| min-height: 48px ; | |
| font-weight: 500 ; | |
| color: var(--text-dark) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .vote-button:hover:not(.vote-button-neither) { | |
| background-color: var(--primary-light) ; | |
| border-color: var(--primary) ; | |
| color: var(--primary) ; | |
| } | |
| .vote-button-neither:hover { | |
| background-color: var(--insufficient-alert-bg) ; | |
| border-color: var(--insufficient-alert-border) ; | |
| color: var(--insufficient-alert-text) ; | |
| } | |
| .vote-button.selected:not(.vote-button-neither) { | |
| border-width: 2px ; | |
| border-style: solid ; | |
| border-color: var(--primary) ; | |
| background-color: var(--primary-light) ; | |
| color: var(--primary) ; | |
| font-weight: 600 ; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) ; | |
| } | |
| .vote-button-neither.selected { | |
| border-width: 2px ; | |
| border-style: solid ; | |
| border-color: var(--insufficient-alert-border) ; | |
| background-color: var(--insufficient-alert-bg) ; | |
| color: var(--insufficient-alert-text) ; | |
| font-weight: 600 ; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) ; | |
| } | |
| /* Feedback Section */ | |
| .feedback-section { | |
| padding: var(--space-xs) 0 ; | |
| background-color: transparent ; | |
| margin: var(--space-xs) 0 ; | |
| font-size: var(--text-sm); | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| .feedback-section .gr-check-radio { | |
| font-size: var(--text-sm) ; | |
| } | |
| .feedback-section .gr-check-radio span { | |
| font-size: var(--text-sm) ; | |
| color: var(--text-dark) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| .feedback-section input[type="checkbox"] { | |
| width: 16px ; | |
| height: 16px ; | |
| margin-right: var(--space-sm) ; | |
| } | |
| .feedback-section input[type="checkbox"]:checked { | |
| accent-color: var(--primary) ; | |
| border-color: var(--primary) ; | |
| background-color: var(--primary) ; | |
| } | |
| /* Model Reveal */ | |
| .model-reveal { | |
| font-size: var(--text-md) ; | |
| text-align: center ; | |
| font-weight: 600 ; | |
| background-color: transparent ; | |
| padding: 0 ; | |
| border: none ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .model-reveal span { | |
| font-size: var(--text-lg) ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| width: 100% ; | |
| padding: var(--space-xl) var(--space-lg) ; | |
| min-height: 48px ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .model-a-reveal span { | |
| background-color: rgba(146, 180, 244, 0.2) ; | |
| } | |
| .model-b-reveal span { | |
| background-color: rgba(248, 173, 167, 0.2) ; | |
| } | |
| /* DataFrames and Tables */ | |
| .gr-dataframe table { | |
| font-size: var(--text-sm) ; | |
| border-collapse: separate ; | |
| border-spacing: 0 ; | |
| overflow: hidden ; | |
| } | |
| .gr-dataframe th, | |
| .gr-dataframe td { | |
| padding: var(--space-sm) var(--space-md) ; | |
| border: none ; | |
| border-bottom: 1px solid var(--border-light) ; | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| .gr-dataframe th { | |
| background-color: var(--background-light) ; | |
| color: var(--text-dark) ; | |
| font-weight: 600 ; | |
| } | |
| .gradio-container .prose { | |
| line-height: var(--leading-normal) ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| /* Override any general prose table styles */ | |
| .gradio-container .prose table, | |
| .gradio-container-5-28-0 .prose table { | |
| border-collapse: separate ; | |
| border-spacing: 0 ; | |
| border: none ; | |
| width: 100% ; | |
| margin: var(--space-lg) 0 ; | |
| overflow: hidden ; | |
| } | |
| /* Leaderboard Styles */ | |
| .model-link { | |
| color: var(--text-dark) ; | |
| text-decoration: none ; | |
| border-bottom: 1px dotted var(--border-light) ; | |
| transition: color 0.2s, border-color 0.2s ; | |
| padding: 2px 0 ; | |
| display: inline-flex ; | |
| align-items: center ; | |
| font-weight: 500 ; | |
| font-size: var(--text-md) ; | |
| } | |
| .model-link:hover { | |
| color: #FF5500 ; | |
| border-color: #FF5500 ; | |
| } | |
| .external-icon { | |
| display: inline-block ; | |
| margin-left: var(--space-sm) ; | |
| opacity: 0.6 ; | |
| transition: opacity 0.2s ; | |
| } | |
| .model-link:hover .external-icon { | |
| opacity: 1 ; | |
| } | |
| .form-link { | |
| color: var(--text-dark) ; | |
| text-decoration: none ; | |
| border-bottom: 1px dotted var(--border-light) ; | |
| transition: color 0.2s, border-color 0.2s ; | |
| padding: 2px 0 ; | |
| display: inline-flex ; | |
| align-items: center ; | |
| font-weight: 500 ; | |
| } | |
| .form-link:hover { | |
| color: #FF5500 ; | |
| border-color: #FF5500 ; | |
| } | |
| .form-link::after { | |
| content: " ↗"; | |
| display: inline-block ; | |
| margin-left: 5px ; | |
| opacity: 0.6 ; | |
| transition: opacity 0.2s ; | |
| } | |
| .form-link:hover::after { | |
| opacity: 1 ; | |
| } | |
| /* Special styling for the Elo ratings info box */ | |
| #leaderboard-info { | |
| margin: var(--space-lg) 0 ; | |
| padding: 0 ; | |
| background-color: rgba(255, 236, 224, 0.5) ; | |
| border: none ; | |
| } | |
| #leaderboard-info > div { | |
| margin: 0 ; | |
| padding: var(--space-md) var(--space-lg) ; | |
| background-color: var(--background-light) ; | |
| border: none ; | |
| } | |
| #leaderboard-info h3 { | |
| margin-top: 0 ; | |
| margin-bottom: var(--space-md) ; | |
| color: var(--primary) ; | |
| font-size: var(--text-lg) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| #leaderboard-info p { | |
| margin-bottom: var(--space-sm) ; | |
| line-height: var(--leading-normal) ; | |
| font-size: var(--text-md) ; | |
| } | |
| #leaderboard-info ul { | |
| margin-bottom: var(--space-md); | |
| padding-left: var(--space-lg); | |
| } | |
| #leaderboard-info li { | |
| margin-bottom: var(--space-xs); | |
| line-height: var(--leading-normal); | |
| font-size: var(--text-md) ; | |
| } | |
| /* Leaderboard Table Specific Styles */ | |
| .leaderboard-table { | |
| width: 100% ; | |
| border-collapse: separate ; | |
| border-spacing: 0 ; | |
| font-size: var(--text-md) ; | |
| margin-top: var(--space-lg) ; | |
| overflow: hidden ; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) ; | |
| border-radius: 8px ; | |
| } | |
| /* FIX: Override any table styles from Gradio or HF Spaces */ | |
| .leaderboard-table, | |
| .leaderboard-table tbody, | |
| .leaderboard-table thead, | |
| .leaderboard-table tr { | |
| border: none ; | |
| } | |
| /* FIX: Explicitly set cell borders to override Gradio/HF styles */ | |
| .leaderboard-table th, | |
| .leaderboard-table td { | |
| border: none ; | |
| border-bottom: 1px solid var(--border-light) ; | |
| text-align: left ; | |
| padding: var(--space-md) ; | |
| background-color: var(--background-main) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| /* Header row styling */ | |
| .leaderboard-table th { | |
| background-color: #FFF1E6 ; | |
| color: var(--text-dark) ; | |
| font-weight: 600 ; | |
| font-size: var(--text-md) ; | |
| padding: var(--space-md) ; | |
| border: none ; | |
| border-bottom: 1px solid var(--border-light) ; | |
| } | |
| /* First column styling */ | |
| .leaderboard-table td:first-child, | |
| .leaderboard-table th:first-child { | |
| background-color: #FFF8F2 ; | |
| font-weight: 600 ; | |
| } | |
| .leaderboard-table th.centered, | |
| .leaderboard-table td.centered { | |
| text-align: center ; | |
| } | |
| .leaderboard-table td.elo-col { | |
| font-weight: 600 ; | |
| color: var(--primary) ; | |
| } | |
| .leaderboard-table .confidence-value { | |
| color: var(--text-medium) ; | |
| font-size: var(--text-xs) ; | |
| font-weight: normal ; | |
| } | |
| /* Dark mode overrides for leaderboard */ | |
| @media (prefers-color-scheme: dark) { | |
| .leaderboard-table th { | |
| background-color: #3D3026 ; | |
| } | |
| .leaderboard-table td:first-child, | |
| .leaderboard-table th:first-child { | |
| background-color: #2A2A2A ; | |
| } | |
| } | |
| /* Blockquote styling */ | |
| .gradio-container .prose blockquote, | |
| .gradio-container-5-28-0 .prose blockquote { | |
| margin: var(--space-xs) 0 ; | |
| border-left: 12px solid var(--border-color-primary) ; | |
| padding-left: calc(var(--size-2) * 1.1) ; | |
| font-style: normal ; | |
| color: var(--text-dark) ; | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| /* Spacing for Markdown content */ | |
| span.svelte-7ddecg p { | |
| line-height: var(--leading-relaxed) ; | |
| margin-top: 0 ; | |
| margin-bottom: var(--space-sm) ; | |
| } | |
| .html-container.svelte-phx28p.padding { | |
| padding: 0 ; | |
| } | |
| /* Smooth scrolling for the entire page */ | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| /* For the query section scroll margin */ | |
| #query-section { | |
| scroll-margin-top: var(--space-lg); | |
| } | |
| /* FAQ Section Styles */ | |
| #faq-toggle-row { | |
| width: 100% ; | |
| margin-top: var(--space-sm) ; | |
| margin-bottom: var(--space-sm) ; | |
| padding-left: 0 ; | |
| margin-left: 0 ; | |
| text-align: left ; | |
| display: flex ; | |
| justify-content: flex-start ; | |
| align-items: center ; | |
| } | |
| .faq-toggle-button { | |
| color: var(--primary) ; | |
| background-color: transparent ; | |
| border: none ; | |
| padding: var(--space-sm) 0 ; | |
| font-size: var(--text-md) ; | |
| font-weight: 500 ; | |
| text-align: left ; | |
| justify-content: flex-start ; | |
| cursor: pointer ; | |
| transition: all 0.2s ease ; | |
| box-shadow: none ; | |
| margin: 0 ; | |
| padding-left: 0 ; | |
| margin-left: 0 ; | |
| width: auto ; | |
| display: inline-flex ; | |
| align-items: center ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| /* Hover effect for FAQ toggle - just underline */ | |
| .faq-toggle-button:hover { | |
| text-decoration: underline ; | |
| color: var(--primary) ; | |
| } | |
| #faq-content { | |
| background-color: var(--background-light) ; | |
| border-radius: 6px ; | |
| padding: var(--space-md) var(--space-lg) ; | |
| margin-bottom: var(--space-lg) ; | |
| border: 1px solid var(--border-light) ; | |
| width: 70% ; | |
| } | |
| .faq-text { | |
| color: var(--text-medium) ; | |
| font-size: var(--text-sm) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| .faq-text p { | |
| margin-bottom: var(--space-md) ; | |
| line-height: var(--leading-normal) ; | |
| color: var(--text-medium) ; | |
| font-size: var(--text-md) ; | |
| } | |
| .faq-text ul { | |
| margin-top: var(--space-sm) ; | |
| margin-bottom: var(--space-md) ; | |
| padding-left: var(--space-xl) ; | |
| list-style-type: circle ; | |
| } | |
| .faq-text li { | |
| margin-bottom: var(--space-sm) ; | |
| color: var(--text-medium) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| /* Empty State and Initial State Styles */ | |
| .empty-state-message { | |
| color: var(--text-medium) ; | |
| font-style: italic ; | |
| text-align: center ; | |
| padding: var(--space-lg) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| /* Get a Question Button - initially more prominent */ | |
| .initial-button { | |
| background-color: var(--primary) ; | |
| color: white ; | |
| font-weight: 600 ; | |
| padding: var(--space-md) var(--space-lg) ; | |
| border-radius: 6px ; | |
| transition: all 0.2s ease ; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) ; | |
| font-size: var(--text-lg) ; | |
| line-height: var(--leading-tight) ; | |
| } | |
| .initial-button:hover { | |
| background-color: #E56E0F ; | |
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) ; | |
| transform: translateY(-1px) ; | |
| } | |
| /* When content is loaded, section visibility */ | |
| .content-loaded .context-section, | |
| .content-loaded .model-comparison-section, | |
| .content-loaded .voting-section { | |
| display: block ; | |
| } | |
| /* Reference Answer Styles - Direct spacing control */ | |
| #reference-toggle-row { | |
| margin-top: var(--space-md) ; | |
| } | |
| #reference-toggle-row .faq-toggle-button { | |
| font-size: var(--text-md) ; | |
| padding: var(--space-sm) 0 ; | |
| margin: 0 ; | |
| } | |
| #reference-content { | |
| margin-top: calc(-1 * var(--space-md)) ; | |
| margin-bottom: 0px ; | |
| } | |
| /* When reference content is visible, add a tiny bit more space under toggle */ | |
| #reference-content[style="block"] { | |
| margin-top: 0px ; | |
| } | |
| /* Reduce any default spacing on the reference content row */ | |
| div[id="reference-content"] { | |
| padding-top: 0 ; | |
| padding-bottom: 0 ; | |
| } | |
| /* Specific styling for reference answer text */ | |
| #reference-content .faq-text, | |
| #reference-content .faq-text p { | |
| background-color: transparent ; | |
| border: none ; | |
| padding: 0 ; | |
| border-radius: 0 ; | |
| margin: 0 ; | |
| box-shadow: none ; | |
| color: var(--text-dark) ; | |
| font-size: var(--text-md) ; | |
| line-height: var(--leading-normal) ; | |
| } | |
| /* Dark mode support */ | |
| @media (prefers-color-scheme: dark) { | |
| #reference-content .faq-text { | |
| background-color: transparent ; | |
| color: var(--text-dark) ; | |
| } | |
| } | |
| /* Responsive Styles */ | |
| @media screen and (max-width: 768px) { | |
| #query-container { | |
| flex-direction: column ; | |
| } | |
| .query-box-row { | |
| flex: 1 1 100% ; | |
| max-width: 100% ; | |
| margin-bottom: var(--space-md) ; | |
| } | |
| .query-button { | |
| width: 100% ; | |
| } | |
| .vote-button { | |
| font-size: var(--text-md) ; | |
| padding: var(--space-md) var(--space-sm) ; | |
| } | |
| .summary-card { | |
| margin-bottom: var(--space-lg) ; | |
| } | |
| #main-interface-area > div:nth-child(7) > div { | |
| flex-direction: column ; | |
| } | |
| /* Reference card responsiveness */ | |
| .reference-card { | |
| margin-bottom: var(--space-lg) ; | |
| } | |
| #model-comparison-header { | |
| flex-direction: column ; | |
| align-items: flex-start ; | |
| gap: var(--space-md) ; | |
| } | |
| } | |
| @media screen and (max-width: 480px) { | |
| #main-interface-area > div:nth-child(10) > div { | |
| display: grid ; | |
| grid-template-columns: 1fr 1fr ; | |
| gap: var(--space-sm) ; | |
| } | |
| .vote-button { | |
| margin: 0 ; | |
| padding: var(--space-sm) var(--space-xs) ; | |
| } | |
| .reference-toggle-button { | |
| max-width: 100% ; | |
| font-size: var(--text-xs) ; | |
| } | |
| } | 
 
			
