.lab-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 20px
}

.lab-intro h2 {
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #20393b;
  margin: 0
}

.lab-intro p {
  color: #66736c;
  font-size: 13px;
  max-width: 500px;
  margin: 0
}

.experiment {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, .74fr);
  gap: 16px;
  align-items: start
}

.instrument {
  background: #182b31;
  color: #f0eee4;
  border: 1px solid #263e43;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 18px 45px #263b3921
}

.instrument-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #ffffff1d;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800
}

.instrument-head .quiet {
  color: #a5b5b0;
  font-weight: 500
}

.scene-wrap {
  height: 460px;
  position: relative;
  background: #13272e
}

.scene-wrap canvas {
  display: block;
  width: 100%;
  height: 100%
}

.scene-caption {
  position: absolute;
  left: 20px;
  bottom: 17px;
  pointer-events: none;
  background: #10242abf;
  color: #e9f0de;
  border: 1px solid #ffffff25;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase
}

.webgl-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 30px;
  text-align: center;
  color: #c7d1c8
}

.control-sheet {
  background: #f9f6ef;
  border: 1px solid #cacbbd;
  border-radius: 5px;
  padding: 23px;
  color: #24383a;
  box-shadow: 0 11px 25px #263b3910
}

.control-sheet h3 {
  font: 400 27px Georgia, serif;
  letter-spacing: -.04em;
  margin: 0 0 4px
}

.control-sheet>p {
  font-size: 12px;
  color: #68746d;
  line-height: 1.5;
  margin: 0 0 18px
}

.control-group {
  margin: 0 0 19px
}

.control-group label,
.control-label {
  display: block;
  color: #4f605b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 8px
}

.control-group select,
.control-group input[type=number] {
  width: 100%;
  background: #fffdf7;
  color: #213b3e;
  border: 1px solid #b8c2ba;
  border-radius: 3px;
  padding: 10px 11px;
  font-size: 13px
}

.control-group input[type=range] {
  background: #c9d3c7
}

.control-group input[type=range]::-webkit-slider-thumb {
  background: #b8644a;
  box-shadow: 0 0 0 2px #b8644a;
  border-color: #fff
}

.control-group output {
  float: right;
  color: #a3523d;
  font: 700 12px 'DM Sans', sans-serif
}

.option-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.option-row button,
.action-btn {
  border: 1px solid #aebcb1;
  background: #fffdf7;
  color: #304a48;
  border-radius: 3px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700
}

.option-row button.active,
.option-row button:hover {
  background: #234344;
  border-color: #234344;
  color: #fff
}

.action-btn {
  background: #b45e46;
  border-color: #b45e46;
  color: white;
  padding: 11px 14px
}

.action-btn:hover {
  background: #994c38
}

.readout {
  padding: 15px;
  background: #e9ebdf;
  border-left: 3px solid #b45e46;
  color: #243b3d;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 18px
}

.readout strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin: 3px 0 6px;
  font-family: Georgia, serif;
  font-weight: 400
}

.under-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px
}

.read-panel {
  background: #fffdf7;
  border: 1px solid #cacbbd;
  border-radius: 5px;
  padding: 22px;
  min-width: 0
}

.read-panel h3 {
  font: 400 25px Georgia, serif;
  color: #243b3e;
  margin: 0 0 10px
}

.read-panel p {
  color: #65736d;
  font-size: 12px;
  line-height: 1.55
}

.read-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px
}

.read-panel th {
  text-align: left;
  color: #6e7b73;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em
}

.read-panel td,
.read-panel th {
  padding: 8px 6px;
  border-bottom: 1px solid #d9ddd1
}

.read-panel tr.highlight td {
  background: #e8edda;
  color: #234143;
  font-weight: 700
}

.statline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px
}

.statline span {
  background: #e9ebdf;
  color: #354e4d;
  padding: 7px 10px;
  font-size: 11px
}

.viz-note {
  color: #9eaca5;
  font-size: 10px;
  padding: 14px 20px;
  border-top: 1px solid #ffffff1d;
  line-height: 1.4
}

.full-stage {
  min-height: 460px
}

.canvas-2d {
  width: 100%;
  height: 100%;
  display: block
}

.tiny {
  font-size: 11px;
  color: #718078
}

.is-hidden {
  display: none !important
}

@media(max-width:1000px) {
  .experiment {
    grid-template-columns: 1fr
  }

  .scene-wrap {
    height: 420px
  }

  .control-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px
  }

  .control-sheet h3,
  .control-sheet>p,
  .control-sheet .readout {
    grid-column: 1/-1
  }
}

@media(max-width:650px) {
  .lab-intro {
    display: block
  }

  .lab-intro p {
    margin-top: 8px
  }

  .under-grid {
    grid-template-columns: 1fr
  }

  .control-sheet {
    display: block;
    padding: 19px
  }

  .scene-wrap {
    height: 340px
  }

  .instrument-head {
    padding: 12px 14px
  }

  .scene-caption {
    left: 10px;
    bottom: 10px;
    font-size: 9px
  }
}

.review-layout {
  display: grid;
  grid-template-columns: 43% 1fr;
  min-height: 470px
}

.case-list {
  border-right: 1px solid #ffffff1c;
  overflow: auto;
  max-height: 470px
}

.case-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px 9px;
  text-align: left;
  background: transparent;
  color: #e8eee7;
  border: 0;
  border-bottom: 1px solid #ffffff18;
  padding: 14px 16px
}

.case-card:hover,
.case-card.selected {
  background: #2a4245
}

.case-index {
  color: #d8e38a;
  font: 700 11px 'DM Sans', sans-serif
}

.case-preview {
  font-size: 12px;
  line-height: 1.35
}

.case-status {
  grid-column: 2;
  color: #9fb1aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em
}

.case-detail {
  padding: 25px 28px
}

.case-meta {
  color: #d9df87;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em
}

.case-detail blockquote {
  font: 400 clamp(24px, 2.6vw, 36px)/1.17 Georgia, serif;
  letter-spacing: -.035em;
  margin: 22px 0 30px
}

.vote-board {
  display: grid;
  gap: 8px
}

.vote-board div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff20;
  padding: 8px 0;
  font-size: 11px;
  color: #aabdb4
}

.vote-board b {
  text-transform: capitalize
}

.vote-board b.billing {
  color: #f0c681
}

.vote-board b.technical {
  color: #8cb9d4
}

.case-explain {
  margin-top: 22px;
  color: #b6c3b7;
  font-size: 12px;
  line-height: 1.5
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.metric-rail>div {
  background: #e8ebdf;
  padding: 14px
}

.metric-rail strong {
  display: block;
  font: 400 27px Georgia, serif;
  color: #234345
}

.metric-rail span {
  font-size: 10px;
  color: #64736c
}

.error-map {
  display: grid;
  gap: 4px
}

.error-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  background: #e8eddf;
  font-size: 10px;
  color: #364d49
}

.error-row.wrong {
  background: #f6ddd3
}

.error-row.excluded {
  opacity: .5
}

.error-row b {
  font-size: 9px;
  text-transform: uppercase
}

.control-sheet .option-row button.active {
  background: #234344;
  color: white
}

@media(max-width:650px) {
  .review-layout {
    grid-template-columns: 1fr
  }

  .case-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #ffffff22
  }

  .case-detail {
    padding: 21px
  }

  .metric-rail {
    grid-template-columns: 1fr 1fr
  }

  .error-row {
    grid-template-columns: 22px 1fr
  }

  .error-row b {
    grid-column: 2
  }
}
