.performance-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.performance-control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.performance-control {
    padding: 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.performance-control label {
    display: block;
    margin-bottom: 0.65rem;
    color: #334155;
    font-weight: 700;
}

.performance-control input[type="range"] {
    width: 100%;
}

.performance-control select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    font-weight: 700;
}

.performance-results-panel {
    display: grid;
    gap: 1rem;
}

.performance-score-card {
    padding: 1.1rem;
    border-radius: 20px;
    background: #0f172a;
    color: white;
}

.performance-score-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
}

#performanceScore {
    display: block;
    margin: 0.35rem 0 0.75rem;
    font-size: 2rem;
}

.performance-meter {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.performance-meter span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #93c5fd;
    transition: width 0.35s ease;
}

.performance-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.performance-fact {
    padding: 1rem;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
}

.performance-fact span {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.performance-fact strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.performance-message {
    padding: 1rem;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .performance-widget {
        padding: 0.9rem;
    }

    #performanceScore {
        font-size: 1.55rem;
    }
}
