.market-home-lab {
  border-block-start: 1px solid var(--line);
  container-type: inline-size;
}
.lab-scene {
  display: grid;
  background: radial-gradient(ellipse at 50% 12%, #fff7e5 5%, #eee4cc 77%);
}
.lab-scene canvas {
  width: 100%;
  height: auto;
  display: block;
}
.lab-sample-labels {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  justify-items: center;
  gap: 8px;
  padding: 0 4% .55rem;
  direction: ltr;
  font-size: .88rem;
  font-weight: 800;
}
.lab-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 2px 12px;
  padding: 9px clamp(12px,2.5vw,22px) 7px;
}
.lab-tools :is(button,a) {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lab-tools button {
  justify-self: start;
  padding: 4px 12px;
  border: 1px solid var(--forest);
  border-radius: 9px;
  background: var(--forest);
  color: var(--paper);
}
.lab-tools a {
  justify-self: end;
  text-decoration: none;
}
.lab-tools a:hover {
  text-decoration: underline;
}
.lab-tools label {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}
.lab-slider-label {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.lab-endpoint {
  color: var(--muted);
  font-size: .74rem;
  text-align: end;
}
.lab-tools input {
  width: 100%;
  margin: 0;
  min-height: 32px;
  accent-color: var(--forest);
}
.lab-status {
  margin: 0;
  padding: 0 clamp(12px,2.5vw,22px) 10px;
  color: var(--muted);
  font-size: .82rem;
}
.lab-status:not([data-complete]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.market-home-lab:not([hidden]) ~ :is(.featured-guide,.featured-actions),
.featured-project:has(.market-home-lab:not([hidden])) .featured-heading .project-meta {
  display: none;
}
.featured-project:has(.market-home-lab:not([hidden])) .featured-heading {
  padding-block: 12px;
}
.featured-project:has(.market-home-lab:not([hidden])) .featured-heading h2 {
  margin-block-start: 0;
}
.featured-project#project-demo {
  scroll-margin-block-start: 88px;
}
@container (min-width: 520px) {
  .lab-tools {
    grid-template-columns: minmax(8rem,1fr) fit-content(29%) fit-content(29%);
    gap: 12px;
  }
  .lab-tools label {
    grid-column: auto;
  }
}
