.lab-demo{background:#11283f;color:#f4f8fc;border-radius:16px;padding:clamp(20px,4vw,44px);margin-bottom:3rem}
.lab-demo h2,.lab-demo p{color:inherit}
.lab-demo .lab-kicker{color:#83e9df;margin:0 0 .75rem}
#lab-alert[data-open=true]{color:#ffce7e}
.lab-demo progress{width:100%;accent-color:#36bdad}
.lab-controls{display:flex;align-items:center;gap:1rem;margin-top:1rem;font-variant-numeric:tabular-nums}
.lab-controls button{background:#b5f2e9;color:#11283f;font:inherit;font-weight:700;border:0;border-radius:6px;padding:.65rem 1.1rem;cursor:pointer}
.lab-controls progress{flex:1;min-width:1rem;width:auto}
.lab-controls span,.lab-controls button{white-space:nowrap}
.charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin:1.4rem 0}
.metric,.incident{padding:1rem;background:#0b2033;border:1px solid #38536b;border-radius:.65rem}
.lab-demo h3{margin:0 0 .45rem;font-size:1rem;color:#d4e3eb}
.metric{color:#79e5d5}
.metric:nth-child(2){color:#97bfff}
.metric strong{font-size:2rem;font-variant-numeric:tabular-nums}
.plot{display:flex;gap:.45rem;align-items:stretch;margin-top:.8rem}
.plot svg{width:100%;min-width:0;height:96px;overflow:visible}
.gridline,.trace{fill:none;vector-effect:non-scaling-stroke}
.gridline{stroke:#304858}
.trace{stroke:currentColor;stroke-width:2.6}
.point{fill:currentColor}.point[hidden]{display:none}
.ticks,.axis{font-size:.73rem;color:#c1d1dd}
.ticks{display:flex;flex-direction:column;justify-content:space-between;min-width:1rem}
.axis{display:flex;justify-content:space-between;margin-left:1.45rem}
.incident h3,.incident strong{display:inline-block;margin-right:.8rem}
.incident ol{margin:.4rem 0 0;padding-left:1.3rem;color:#cfdfeb}
.detail-hero .lede { margin-bottom: 0; }
.detail-copy { padding-top: clamp(24px, 4vw, 52px); }
.lab-demo { margin-bottom: 1.5rem; }
.lab-demo h2 { margin: 0 0 .75rem; }
.lab-controls button { min-height: 44px; }
.lab-controls button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.lab-controls span { min-width: 5.25rem; text-align: right; }
.ticks, .axis { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.incident ol { line-height: 1.6; }
.detail-copy details { padding-block: .5rem; border-block: 1px solid #d9e0e8; }
.detail-copy summary { padding-block: .75rem; cursor: pointer; font-weight: 650; }
.detail-copy figcaption { margin-top: .5rem; line-height: 1.5; }
.detail-copy > ol { max-width: 67ch; padding-left: 1.4rem; line-height: 1.65; }
.detail-copy > ol li + li { margin-top: .75rem; }
@media (max-width: 420px) {
  .lab-controls { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
  .lab-controls button { justify-self: start; }
  .lab-controls progress { grid-row: 2; grid-column: 1 / -1; width: 100%; }
}
