:root {
    color-scheme: light;
    --background: #f4f7fa;
    --surface: #ffffff;
    --ink: #14253d;
    --muted: #64748b;
    --line: #dce4ec;
    --native: #8494a6;
    --stcp: #159c65;
    --tls: #347bc8;
    --track: #edf1f5;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font: 15px/1.6 system-ui, sans-serif;
}

.performance {
    max-width: 1320px;
    margin: auto;
    padding: 28px 24px;
}

.perf-section {
    margin: 28px 0;
}

.perf-section h2 {
    font-size: 23px;
    margin: 0 0 8px;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 18px;
}

.perf-chart {
    min-width: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.perf-chart h3 {
    margin: 0;
    font-size: 17px;
}

.perf-note {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 18px;
}

.perf-row {
    margin: 14px 0;
}

.perf-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.perf-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.perf-track {
    height: 19px;
    background: var(--track);
    border-radius: 4px;
    position: relative;
}

.perf-bar {
    height: 100%;
    border-radius: 4px;
}

.perf-native { background: var(--native); }
.perf-stcp { background: var(--stcp); }
.perf-tls { background: var(--tls); }

.perf-range {
    position: absolute;
    top: 8px;
    height: 3px;
    border-radius: 2px;
}

.perf-median {
    position: absolute;
    top: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
    box-sizing: border-box;
}

.perf-range-values {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.perf-missing {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 600px) {
    .performance { padding: 16px; }
    .perf-chart { padding: 16px; }
}
