Spaces:
Running
Running
| /* ββ Open Telco Leaderboard β Gradio Space Styles ββββββββββββββββββββββββββββ */ | |
| /* Pixel-perfect match to website dark theme */ | |
| /* ββ Global Overrides βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .gradio-container { | |
| background: #000000 ; | |
| font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif ; | |
| color: #f5f5f5 ; | |
| max-width: 100% ; | |
| padding: 0 ; | |
| } | |
| .gradio-container .prose { color: #f5f5f5 ; } | |
| footer { display: none ; } | |
| /* Hide JSβPython bridge controls */ | |
| #hidden-controls { position: absolute ; left: -9999px ; height: 0 ; overflow: hidden ; } | |
| /* ββ Hero Section ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ot-hero-wrap { padding: 0 ; } | |
| .ot-hero { | |
| position: relative; | |
| display: flex; | |
| align-items: stretch; | |
| border-radius: 20px; | |
| background: #1a1714; | |
| overflow: hidden; | |
| margin: 24px 32px; | |
| min-height: 280px; | |
| } | |
| .ot-hero-image { | |
| width: 50%; | |
| max-width: 520px; | |
| object-fit: cover; | |
| display: block; | |
| } | |
| .ot-hero-content { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| padding: 48px 56px; | |
| flex: 1; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .gradio-container .ot-hero-title { | |
| font-size: 48px ; | |
| font-weight: 600 ; | |
| color: #f5f5f5; | |
| margin: 0; | |
| line-height: 1.1; | |
| letter-spacing: -0.02em; | |
| } | |
| /* Hero gradient overlay for text readability */ | |
| .ot-hero::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 40%; | |
| right: 0; | |
| bottom: 0; | |
| background: linear-gradient(to right, transparent, #1a1714 60%); | |
| pointer-events: none; | |
| } | |
| /* ββ Main Layout ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ot-main { | |
| gap: 0 ; | |
| align-items: stretch ; | |
| min-height: calc(100vh - 420px); | |
| flex-wrap: nowrap ; | |
| } | |
| /* ββ Sidebar ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ot-sidebar { | |
| background: #111113 ; | |
| border-right: 1px solid #2a2b2e; | |
| padding: 16px 0 ; | |
| min-width: 200px ; | |
| max-width: 200px ; | |
| flex-shrink: 0 ; | |
| } | |
| .sidebar-heading { | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: #f5f5f5; | |
| padding: 8px 16px 12px; | |
| margin: 0; | |
| } | |
| .sidebar-lb-btn { | |
| display: block; | |
| width: 100%; | |
| padding: 8px 16px 12px ; | |
| margin: 0 ; | |
| border: none ; | |
| background: transparent ; | |
| color: #f5f5f5 ; | |
| font-size: 16px ; | |
| font-weight: 600 ; | |
| cursor: pointer; | |
| text-align: left; | |
| outline: none; | |
| transition: color 150ms ease; | |
| } | |
| .sidebar-lb-btn.active { | |
| color: #3b82f6 ; | |
| } | |
| .sidebar-lb-btn:hover:not(.active) { | |
| color: #9ca3af ; | |
| } | |
| .sidebar-divider { | |
| height: 1px; | |
| background: #2a2b2e; | |
| margin: 8px 16px; | |
| } | |
| .sidebar-item { | |
| display: block; | |
| width: calc(100% - 12px); | |
| margin: 1px 6px ; | |
| padding: 7px 16px 7px 18px ; | |
| border: none ; | |
| border-radius: 8px; | |
| background: transparent ; | |
| color: #9ca3af ; | |
| font-size: 13px ; | |
| font-weight: 400 ; | |
| text-align: left; | |
| cursor: pointer; | |
| border-left: 2px solid transparent ; | |
| outline: none; | |
| transition: all 150ms ease; | |
| } | |
| .sidebar-item:hover { | |
| background: rgba(255, 255, 255, 0.03) ; | |
| color: #f5f5f5 ; | |
| } | |
| .sidebar-item.active { | |
| border-left-color: #3b82f6 ; | |
| color: #f5f5f5 ; | |
| background: rgba(59, 130, 246, 0.15) ; | |
| } | |
| /* ββ Content Area βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ot-content { | |
| padding: 24px 32px ; | |
| background: #000000 ; | |
| overflow-x: auto; | |
| flex: 1 ; | |
| } | |
| .ot-display { padding: 0 ; } | |
| /* ββ Leaderboard Table ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .table-wrapper { | |
| overflow-x: auto; | |
| border-radius: 8px; | |
| border: 1px solid #2a2b2e; | |
| } | |
| .leaderboard-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 14px; | |
| white-space: nowrap; | |
| } | |
| .leaderboard-table thead tr { | |
| background: #0a0a0c; | |
| } | |
| .leaderboard-table th { | |
| padding: 12px 16px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| letter-spacing: 0.05em; | |
| color: #737373; | |
| border-bottom: 1px solid #2a2b2e; | |
| position: sticky; | |
| top: 0; | |
| background: #0a0a0c; | |
| z-index: 1; | |
| cursor: pointer; | |
| user-select: none; | |
| transition: color 150ms ease; | |
| } | |
| .leaderboard-table th:hover { | |
| color: #d1d5db; | |
| } | |
| .leaderboard-table th.col-rank, | |
| .leaderboard-table th.col-model { | |
| cursor: default; | |
| } | |
| .leaderboard-table th.col-active { | |
| color: #3b82f6; | |
| background: rgba(59, 130, 246, 0.04); | |
| } | |
| .leaderboard-table td { | |
| padding: 12px 16px; | |
| border-bottom: 1px solid rgba(42, 43, 46, 0.5); | |
| color: #f5f5f5; | |
| } | |
| .leaderboard-table tbody tr:hover { | |
| background: rgba(255, 255, 255, 0.03); | |
| } | |
| /* Column alignment */ | |
| .col-rank { text-align: center; width: 50px; } | |
| .col-model { text-align: left; min-width: 240px; } | |
| .col-avg { text-align: center; width: 80px; } | |
| .col-score { text-align: right; width: 120px; } | |
| td.col-active { background: rgba(59, 130, 246, 0.04); } | |
| /* ββ Rank Styling (plain numbers, not badges) ββββββββββββββββββββββββββββββ */ | |
| .rank-num { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: #737373; | |
| } | |
| .rank-num.rank-1 { color: #fbbf24; } | |
| .rank-num.rank-2 { color: #d1d5db; } | |
| .rank-num.rank-3 { color: #d97706; } | |
| /* ββ Model Cell ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .model-cell { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .model-logo { | |
| width: 18px; | |
| height: 18px; | |
| border-radius: 8px; | |
| flex-shrink: 0; | |
| object-fit: cover; | |
| } | |
| .model-name { | |
| font-weight: 500; | |
| color: #f5f5f5; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| max-width: 220px; | |
| } | |
| /* ββ Score Cells ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .avg-score { | |
| font-weight: 600; | |
| font-variant-numeric: tabular-nums; | |
| color: #f5f5f5; | |
| } | |
| .score-main { | |
| font-weight: 600; | |
| font-variant-numeric: tabular-nums; | |
| color: #d1d5db; | |
| } | |
| .score-stderr { | |
| color: #737373; | |
| font-size: 12px; | |
| margin-left: 2px; | |
| } | |
| .score-na { | |
| color: #4b5563; | |
| opacity: 0.5; | |
| } | |
| .sort-arrow { | |
| color: #3b82f6; | |
| margin-left: 4px; | |
| font-size: 12px; | |
| } | |
| /* ββ Bar Chart ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .bar-chart { padding: 8px 0; } | |
| .bar-title { | |
| font-size: 22px; | |
| font-weight: 700; | |
| color: #f5f5f5; | |
| margin: 0 0 24px; | |
| } | |
| .bar-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 14px; | |
| } | |
| .bar-entry { | |
| display: flex; | |
| flex-direction: row; | |
| align-items: flex-start; | |
| gap: 12px; | |
| } | |
| .bar-entry-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .bar-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .bar-rank-badge { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 10px; | |
| background: #292524; | |
| font-size: 16px; | |
| font-weight: 700; | |
| color: #737373; | |
| flex-shrink: 0; | |
| } | |
| .bar-rank-badge.rank-1 { color: #fbbf24; } | |
| .bar-rank-badge.rank-2 { color: #d1d5db; } | |
| .bar-rank-badge.rank-3 { color: #d97706; } | |
| .bar-model-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .bar-model-info .model-logo { | |
| width: 18px; | |
| height: 18px; | |
| border-radius: 8px; | |
| } | |
| .bar-model-name { | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: #f5f5f5; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .bar-score-label { | |
| text-align: right; | |
| font-variant-numeric: tabular-nums; | |
| white-space: nowrap; | |
| } | |
| .bar-score-label .score-main { font-size: 14px; } | |
| .bar-score-label .score-stderr { | |
| color: #737373; | |
| font-size: 12px; | |
| margin-left: 2px; | |
| } | |
| .bar-track-wrapper { | |
| position: relative; | |
| height: 14px; | |
| } | |
| .bar-track { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 14px; | |
| background: rgba(255, 255, 255, 0.08); | |
| border-radius: 7px; | |
| overflow: visible; | |
| } | |
| .bar-fill { | |
| height: 100%; | |
| border-radius: 7px; | |
| transform-origin: left; | |
| animation: barGrow 0.8s ease-out forwards; | |
| transform: scaleX(0); | |
| } | |
| @keyframes barGrow { | |
| to { transform: scaleX(1); } | |
| } | |
| /* CI ticks and connector */ | |
| .ci-tick { | |
| position: absolute; | |
| top: 2px; | |
| bottom: 2px; | |
| width: 2px; | |
| height: auto; | |
| background: rgba(255, 255, 255, 0.8); | |
| z-index: 2; | |
| } | |
| .ci-connector { | |
| position: absolute; | |
| top: 50%; | |
| height: 2px; | |
| background: rgba(255, 255, 255, 0.8); | |
| transform: translateY(-50%); | |
| z-index: 2; | |
| } | |
| .bar-empty { | |
| padding: 48px; | |
| text-align: center; | |
| color: #737373; | |
| font-size: 14px; | |
| } | |
| /* ββ Benchmark Detail Layout (Gradio-native two-column) ββββββββββββββββββββ */ | |
| .bm-detail-row { | |
| gap: 0 ; | |
| flex-wrap: nowrap ; | |
| } | |
| /* Hide the detail row initially and when prose/chart are empty (leaderboard view) */ | |
| .bm-detail-row:has(.bm-prose-inner div:empty) { | |
| display: none ; | |
| } | |
| /* Also hide via JS-set inline style β this CSS rule ensures initial state */ | |
| .bm-prose-inner:empty, .bm-chart-inner:empty { | |
| display: none; | |
| } | |
| .bm-prose-wrap { | |
| border-right: 1px solid #2a2b2e; | |
| max-height: calc(100vh - 200px); | |
| overflow-y: auto ; | |
| scrollbar-width: thin; | |
| scrollbar-color: #333 transparent; | |
| padding: 0 24px 0 0 ; | |
| } | |
| .bm-prose-wrap::-webkit-scrollbar { width: 4px; } | |
| .bm-prose-wrap::-webkit-scrollbar-track { background: transparent; } | |
| .bm-prose-wrap::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; } | |
| .bm-chart-wrap { | |
| max-height: calc(100vh - 200px); | |
| overflow-y: auto ; | |
| scrollbar-width: thin; | |
| scrollbar-color: #333 transparent; | |
| } | |
| .bm-chart-wrap::-webkit-scrollbar { width: 4px; } | |
| .bm-chart-wrap::-webkit-scrollbar-track { background: transparent; } | |
| .bm-chart-wrap::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; } | |
| /* ββ Benchmark Methodology Prose Styles ββββββββββββββββββββββββββββββββββββ */ | |
| .gradio-container .bm-title { | |
| font-size: 28px ; | |
| font-weight: 300 ; | |
| letter-spacing: -0.02em ; | |
| color: #f5f5f5; | |
| margin: 0 0 24px ; | |
| line-height: 1.2 ; | |
| } | |
| .gradio-container .bm-metrics { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| margin-bottom: 32px ; | |
| } | |
| .gradio-container .bm-pill { | |
| font-size: 12px ; | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| color: #9ca3af; | |
| background: #1a1b1e; | |
| border: 1px solid #2a2b2e; | |
| border-radius: 100px; | |
| padding: 4px 12px; | |
| white-space: nowrap; | |
| } | |
| .gradio-container .bm-description { | |
| font-size: 15px ; | |
| line-height: 1.7 ; | |
| color: #9ca3af ; | |
| margin: 0 0 40px ; | |
| } | |
| .gradio-container .bm-separator { | |
| border: none; | |
| border-top: 1px solid #2a2b2e; | |
| margin: 0 0 32px ; | |
| } | |
| .gradio-container .bm-section-heading { | |
| font-size: 18px ; | |
| font-weight: 600 ; | |
| color: #f5f5f5 ; | |
| margin: 40px 0 16px ; | |
| letter-spacing: -0.01em; | |
| } | |
| .gradio-container .bm-section-content { | |
| font-size: 15px ; | |
| line-height: 1.7 ; | |
| color: #9ca3af ; | |
| margin: 0 0 40px ; | |
| } | |
| .gradio-container .bm-artifacts { | |
| display: flex; | |
| gap: 16px; | |
| margin-bottom: 40px ; | |
| } | |
| .gradio-container .bm-artifact-link { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 14px ; | |
| font-weight: 500; | |
| color: #3b82f6 ; | |
| text-decoration: none ; | |
| padding: 8px 16px; | |
| background: #1a1b1e; | |
| border: 1px solid #2a2b2e; | |
| border-radius: 8px; | |
| transition: border-color 0.15s ease, background 0.15s ease; | |
| } | |
| .bm-artifact-link:hover { | |
| border-color: #3b82f6; | |
| background: rgba(59, 130, 246, 0.06); | |
| text-decoration: none; | |
| } | |
| .bm-artifact-icon { | |
| width: 16px; | |
| height: 16px; | |
| flex-shrink: 0; | |
| } | |
| /* ββ Footer βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ot-footer-wrap { padding: 0 ; } | |
| .ot-footer { | |
| padding: 24px 40px; | |
| border-top: 1px solid #2a2b2e; | |
| text-align: center; | |
| } | |
| .ot-footer p { | |
| font-size: 13px; | |
| color: #737373; | |
| margin: 0; | |
| } | |
| .ot-footer a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| } | |
| .ot-footer a:hover { color: #f5f5f5; } | |
| /* ββ Scrollbar Styling βββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| height: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #2a2b2e; | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #3a3b3e; | |
| } | |
| /* ββ Mobile Responsive ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| @media (max-width: 768px) { | |
| .ot-hero { | |
| flex-direction: column; | |
| margin: 16px; | |
| min-height: unset; | |
| } | |
| .ot-hero-image { | |
| width: 100%; | |
| max-width: 100%; | |
| height: 180px; | |
| } | |
| .ot-hero-content { | |
| padding: 24px; | |
| } | |
| .gradio-container .ot-hero-title { | |
| font-size: 32px ; | |
| } | |
| .ot-hero::after { | |
| display: none; | |
| } | |
| .ot-main { | |
| flex-direction: column ; | |
| } | |
| .ot-sidebar { | |
| border-right: none ; | |
| border-bottom: 1px solid #2a2b2e; | |
| padding: 8px 0 ; | |
| display: flex ; | |
| flex-direction: row ; | |
| overflow-x: auto; | |
| gap: 0; | |
| min-width: unset ; | |
| max-width: unset ; | |
| } | |
| .sidebar-heading, | |
| .sidebar-divider { display: none; } | |
| .sidebar-item, | |
| .sidebar-lb-btn { | |
| padding: 8px 16px ; | |
| border-left: none ; | |
| border-bottom: 3px solid transparent ; | |
| font-size: 13px ; | |
| white-space: nowrap; | |
| width: auto ; | |
| margin: 0 ; | |
| } | |
| .sidebar-item.active, | |
| .sidebar-lb-btn.active { | |
| border-left-color: transparent ; | |
| border-bottom-color: #3b82f6 ; | |
| } | |
| .ot-content { | |
| padding: 16px ; | |
| } | |
| .leaderboard-table { | |
| font-size: 12px; | |
| } | |
| .leaderboard-table th, | |
| .leaderboard-table td { | |
| padding: 8px 10px; | |
| } | |
| .bar-rank-badge { | |
| width: 32px; | |
| height: 32px; | |
| font-size: 14px; | |
| } | |
| .bm-detail-row { | |
| flex-direction: column ; | |
| } | |
| .bm-prose-wrap { | |
| max-height: none ; | |
| border-right: none ; | |
| border-bottom: 1px solid #2a2b2e; | |
| padding-right: 0 ; | |
| padding-bottom: 24px ; | |
| } | |
| .bm-chart-wrap { | |
| max-height: none ; | |
| } | |
| } | |
| /* Reduce motion */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .bar-fill { | |
| animation: none; | |
| transform: scaleX(1); | |
| } | |
| } | |