/* server-compute (浏览器 vs 服务端) */

.sc-help {
    max-width: 760px;
    margin: 1rem auto;
    padding: 1rem 1.4rem;
    text-align: left;
    background: #161b22;
    border: 1px solid #f0883e;
    border-radius: 8px;
}
.sc-help h2 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #f0883e; }
.sc-help li { margin: 0.35rem 0; }
.sc-help a { color: #58a6ff; }

.sc-card {
    max-width: 1320px;
    margin: 1.5rem auto;
    padding: 1rem 1.2rem 1.2rem;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
}
.sc-card h2 { font-size: 1.05rem; color: #e6edf3; margin-bottom: 0.8rem; }
.sc-card .controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.2rem; margin: 0.4rem 0; }
.sc-card label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: #8b949e; }
.sc-note { max-width: 880px; margin: 0.8rem auto 0; font-size: 0.8rem; color: #8b949e; text-align: left; line-height: 1.6; }

/* The benchmark table reuses the shared .bench-row grid: js column = browser, wasm column = server */
.sc-card .bench-detail { white-space: pre-wrap; }

.sc-views {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1rem;
    margin-top: 0.8rem;
}
.sc-views figure { margin: 0; min-width: 0; }
.sc-frame { display: flex; align-items: stretch; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; overflow: hidden; }
.sc-frame canvas { display: block; min-width: 0; flex: 1; width: 100%; height: auto; image-rendering: auto; }
/* Which thread rendered each band: a thin colour strip left of the image */
.sc-frame .sc-map { flex: none; width: 6px; height: auto; align-self: stretch; image-rendering: pixelated; }
.sc-views figcaption { margin-top: 0.4rem; font-size: 0.82rem; color: #8b949e; min-height: 1.3em; }
.sc-compare { margin-top: 0.8rem; font-size: 0.88rem; min-height: 1.4em; }
.sc-compare.ok { color: #3fb950; }
.sc-compare.fail { color: #f85149; }

.sc-card select {
    padding: 0.25rem 0.5rem;
    background: #0d1117;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: 6px;
    font: inherit;
    font-size: 0.88rem;
}
.sc-card input[type="range"] { accent-color: #f0883e; }
