/* Scoped lab additions; shared palette and type come from ../site.css. */
.lab { max-width: 1060px; margin: auto; padding: 0 18px 48px; }
.lab h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.4; }
.lab .eyebrow { color: var(--a); font-size: 14px; letter-spacing: .06em; }
.lab .intro { max-width: 72ch; }
.lab .workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.lab .panel { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; margin: 16px 0; }
.lab .workspace .panel { margin: 0; }
.lab label { display: block; margin: 12px 0; }
.lab input[type=range] { display: block; width: 100%; accent-color: var(--a); min-height: 36px; }
.lab select, .lab input[type=number], .lab button { font: inherit; max-width: 100%; min-height: 44px; background: var(--card); color: var(--fg); border: 1px solid var(--muted); border-radius: 6px; padding: 5px 10px; }
.lab input[type=number] { width: 160px; }
.lab button { cursor: pointer; }
.lab :focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.lab .readout { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lab .formula { font-size: 18px; color: var(--a); overflow-wrap: anywhere; }
.lab .muted { color: var(--muted); }
.lab svg { display: block; width: 100%; height: auto; aspect-ratio: 360 / 320; touch-action: none; user-select: none; }
.lab svg text { fill: var(--fg); font: 15px sans-serif; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.lab svg .axis { stroke: var(--muted); stroke-width: 1; }
.lab svg .curve { fill: none; stroke: var(--a); stroke-width: 3; }
.lab svg .secondary { fill: none; stroke: var(--c); stroke-width: 2.5; }
.lab svg .dashed { stroke-dasharray: 5 4; }
.lab svg .point { fill: var(--a); stroke: var(--card); stroke-width: 2; }
.lab svg .point.alt { fill: var(--c); }
.lab svg .point.warn { fill: var(--b); }
.lab svg .point[data-drag] { cursor: grab; }
.lab svg .tangent { fill: none; stroke: var(--b); stroke-width: 2.5; }
.lab .legend { font-size: 14px; }
.lab .feedback { min-height: 2em; }
.lab .links { display: grid; gap: 16px; padding: 0; list-style: none; }
@media(max-width: 680px) { .lab .workspace { grid-template-columns: 1fr; } .lab .panel { padding: 12px; } }
