/* Responsive laboratory layout using the shared website palette. */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
}
main {
    max-width: 1800px;
    margin: auto;
    padding: 30px;
}
.intro, .telemetry, .panel-title, .field, .scene-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.intro {
    margin-bottom: 24px;
}
h1 {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -2px;
    font-weight: 650;
}
h1 span, output, .panel-title span {
    color: var(--site-accent);
}
p, .hint, .telemetry span {
    color: var(--site-muted);
}
.eyebrow, .scene-footer, .scene-label, .telemetry span, .panel-title span {
    font-size: 10px;
    letter-spacing: 1.6px;
}
.telemetry {
    gap: 35px;
}
.telemetry strong, .telemetry span {
    display: block;
}
.telemetry strong {
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}
.laboratory {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    overflow: hidden;
}
.viewport {
    position: relative;
    min-height: 650px;
    background: var(--site-bg);
}
canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    touch-action: none;
}
.scene-label, .scene-footer {
    position: absolute;
    left: 22px;
    right: 22px;
    pointer-events: none;
    color: var(--site-muted);
}
.scene-label {
    top: 22px;
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--site-accent);
    margin-right: 8px;
}
.scene-footer {
    bottom: 20px;
    font-size: 9px;
}
aside {
    padding: 24px;
    background: var(--site-surface);
    border-left: 1px solid var(--site-border);
}
h2 {
    font-size: 18px;
    margin: 0;
}
.panel-title {
    margin-bottom: 26px;
}
.field {
    margin: 18px 0 9px;
    font-size: 12px;
}
input[type="range"] {
    width: 100%;
    accent-color: var(--site-accent);
}
.hint {
    font-size: 11px;
    line-height: 1.7;
    margin-top: 12px;
}
select, button {
    background: var(--site-raised);
    color: var(--site-text);
    border: 1px solid var(--site-border);
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
}
select {
    width: 100%;
}
.actions {
    display: flex;
    gap: 8px;
    margin: 24px 0 18px;
}
button:hover {
    background: var(--site-hover);
    color: var(--site-accent);
}
@media (max-width: 900px) {
    main {
        padding: 16px;
    }
    .intro {
        align-items: flex-start;
        flex-direction: column;
    }
    .laboratory {
        grid-template-columns: 1fr;
    }
    .viewport {
        min-height: 55vh;
    }
    aside {
        border-left: none;
        border-top: 1px solid var(--site-border);
    }
    .scene-footer span {
        display: none;
    }
}
