
        :root {
            --primary: #2a6fd3;
            --primary-light: #4a8ae6;
            --primary-dark: #1d56b0;
            --bg: #ffffff;
            --card-bg: #fafbff;
            --text: #212529;
            --text-light: #6c757d;
            --border: #e2e8f0;
            --hover: #f1f5ff;
            --success: #198754;
        }
        * { box-sizing: border-box; }
   
        .card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 22px;
            margin-bottom: 28px;
            box-shadow: 0 4px 12px rgba(42, 111, 211, 0.08);
            border: 1px solid var(--border);
        }
        .card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .card-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
        }
        .card-title {
            font-size: 1.35rem;
            font-weight: 700;
            margin: 0;
            color: var(--text);
        }
        
        .leaderboard-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0;
        }
        .leaderboard-table th,
        .leaderboard-table td {
            padding: 12px 14px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }
        .leaderboard-table th {
            background: rgba(42, 111, 211, 0.06);
            font-weight: 600;
            font-size: 0.875rem;
            color: var(--text);
            text-transform: uppercase;
        }
        .leaderboard-table tr:last-child td { border-bottom: none; }
        .leaderboard-table tr:hover { background-color: var(--hover); }
        .rank {
            font-weight: 700;
            min-width: 32px;
            text-align: center;
        }
        .rank-1 { color: #d4af37; }
        .rank-2 { color: #c0c0c0; }
        .rank-3 { color: #cd7f32; }
        a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }
        a:hover { text-decoration: underline; }
        
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 18px;
        }
        .metric-card {
            background: white;
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
            border: 1px solid var(--border);
        }
        .metric-title {
            font-size: 0.95em;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 6px;
        }
        .metric-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
        }
        .metric-bar {
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        .metric-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 4px;
            animation: fill 1.2s ease-out forwards;
        }
        @keyframes fill {
            from { width: 0; }
        }
        .avg-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .avg-item {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .avg-rank {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            flex-shrink: 0;
        }
        .avg-rank-1 { background: #d4af37; color: #212529; }
        .avg-rank-2 { background: #c0c0c0; }
        .avg-rank-3 { background: #cd7f32; }
        .avg-model {
            flex: 1;
            font-weight: 500;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .avg-bar {
            height: 6px;
            background: #e9ecef;
            border-radius: 3px;
            flex: 0 0 180px;
            overflow: hidden;
        }
        .avg-fill {
            height: 100%;
            background: var(--success);
            border-radius: 3px;
        }
        .avg-score {
            width: 52px;
            text-align: right;
            font-weight: 600;
            color: var(--primary);
        }
        .notes {
            background: #f8f9fa;
            padding: 14px;
            border-radius: 8px;
            font-size: 0.95em;
            color: var(--text-light);
            margin-top: 20px;
        }

        .btn-toggle {
            display: inline-block;
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            margin-top: 4px;
            transition: background 0.2s;
        }
        .btn-toggle:hover {
            background: var(--primary-dark);
        }
        .btn-toggle:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        @media (max-width: 768px) {
            .metrics-grid { grid-template-columns: 1fr; }
            .leaderboard-table th:nth-child(n+6),
            .leaderboard-table td:nth-child(n+6) { display: none; }
        }