.lab-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-block: 1.4rem 1rem; }
.lab-controls[hidden], [data-lab-panel][hidden] { display: none; }
.lab-controls button { border: 1px solid #c8c8c8; border-radius: .32rem; color: #343434; background: #fff; padding: .46rem .78rem; font-size: .9rem; font-weight: 600; }
.lab-controls button:hover { border-color: #484848; }
.lab-controls button[aria-pressed="true"] { border-color: #121212; color: #fff; background: #121212; }
.lab-presentation { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid #d7d7d7; border-radius: .7rem; overflow: hidden; background: #fff; }
.lab-preview { min-width: 0; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2.75rem); background-color: #eaeaea; background-image: radial-gradient(#ccc 1px, transparent 1px); background-size: 9px 9px; }
.lab-sheet { width: min(100%, 27rem); padding: clamp(1rem, 2.3vw, 1.8rem); border: 1px solid #c8c8c8; background: #fff; color: #151515; box-shadow: 0 .5rem 1.4rem #0001; }
.lab-sheet small { color: #525252; font: .79rem var(--mono); }
.lab-publication { font-weight: 700; font-size: .91rem; }
.lab-rule { border-top: 2px solid #171717; border-bottom: 1px solid #171717; height: 5px; margin: .62rem 0 .85rem; }
.lab-sheet h3 { max-width: 15ch; font-size: clamp(1.65rem, 2.7vw, 2.55rem); line-height: 1.06; }
.lab-byline { color: #505050; margin-block: .8rem 1rem; font-size: .88rem; }
.lab-editorial-image { height: clamp(3.3rem, 6vw, 5.5rem); background: repeating-linear-gradient(33deg, #181818 0 2px, #eee 2px 8px); position: relative; overflow: hidden; }
.lab-editorial-image::after { content: ""; position: absolute; inset: 0 0 0 28%; background: repeating-linear-gradient(-33deg, #181818 0 2px, #eee 2px 8px); clip-path: polygon(0 0,100% 0,100% 100%,45% 100%); }
.lab-dash-number { font-size: 2.6rem; margin-top: .5rem; font-weight: 650; letter-spacing: -.07em; line-height: 1.1; }
.lab-chart { height: 4.6rem; display: flex; align-items: end; gap: 5%; margin: .7rem 0 .45rem; border-bottom: 1px solid #aaa; }
.lab-chart i { flex: 1; height: var(--bar); background: #aaa; }
.lab-chart i:last-child { background: #151515; }
.lab-product { grid-template-columns: minmax(6.2rem, .85fr) 1fr; align-items: center; }
.lab-lamp { position: relative; min-height: 9rem; overflow: hidden; background: #ededed; }
.lab-lamp::before { content: ""; width: 64%; height: 27%; left: 18%; bottom: 45%; position: absolute; border-radius: 100% 100% 2% 2%; background: #242424; }
.lab-lamp::after { content: ""; position: absolute; width: 42%; height: 28%; left: 29%; bottom: 17%; background: linear-gradient(#242424,#242424) center top / 9% 100% no-repeat; border-bottom: 5px solid #242424; }
.lab-product h3 { margin-block: .5rem .75rem; font-size: clamp(1.45rem, 2.2vw, 2.2rem); }
.lab-product .lab-material { display: block; margin-top: 1.15rem; }
.lab-code { border: 0; border-radius: 0; min-width: 0; align-self: stretch; }
.lab-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-output { margin-top: 1rem; }
.lab-output-top { flex-wrap: wrap; }
.lab-output-top > span:last-of-type { margin-left: auto; }
.lab-output .lab-input { padding: .7rem 1rem; background: #f1f1f1; color: #121212; overflow-wrap: anywhere; }
.lab-output pre { min-height: 4.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 50rem) {
  .lab-presentation { grid-template-columns: 1fr; }
  .lab-preview { padding-block: 1.35rem; }
}
