.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
  }
}

.chart-wrap {
  border: 1px solid #d7ded1;
  background: #f9f7ef
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto
}

.dropzone {
  display: block;
  position: relative;
  border: 1px dashed #9eaca2;
  background: #ecefe4;
  padding: 15px;
  margin-top: 19px;
  cursor: pointer;
  text-align: center
}

.dropzone.dragging {
  border-color: #a95f48;
  background: #f4e3d7
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer
}

.dropzone strong {
  display: block;
  font-size: 12px;
  color: #2b4c4a
}

.dropzone span {
  display: block;
  font-size: 10px;
  color: #697c72;
  margin-top: 4px
}

.matrix-four {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.matrix-four>div {
  padding: 14px;
  background: #e7eddf;
  border-left: 3px solid #7faba0
}

.matrix-four>div.error {
  background: #f4e4dc;
  border-left-color: #bc6c54
}

.matrix-four small {
  display: block;
  font-size: 10px;
  color: #64756d
}

.matrix-four strong {
  display: block;
  font: 400 31px Georgia, serif;
  color: #274749
}

.matrix-four span {
  font-size: 10px;
  color: #61716b
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px
}

.formula-grid>div {
  padding: 12px;
  background: #e9ecdf
}

.formula-grid small {
  display: block;
  font-size: 10px;
  color: #67776e
}

.formula-grid strong {
  display: block;
  font: 400 28px Georgia, serif;
  color: #244648
}

.formula-grid em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: #61726b
}

.read-panel table {
  font-variant-numeric: tabular-nums
}

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

  .read-panel table {
    font-size: 10px
  }

  .read-panel td,
  .read-panel th {
    padding: 5px 3px
  }
}

.case-select {
  border: 0;
  background: transparent;
  color: #a2563f;
  font-weight: 800;
  cursor: pointer
}

.case-select:hover {
  text-decoration: underline
}

.sample-link {
  display: inline-block;
  color: #965741;
  font-size: 10px;
  text-decoration: underline;
  margin-top: 7px
}

.crossed-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 19px
}

.crossed-list button {
  border: 1px solid #bbc9b7;
  background: #edf0e5;
  color: #315450;
  padding: 5px 7px;
  font-size: 10px;
  cursor: pointer
}

.crossed-list span {
  font-size: 10px;
  color: #697b71
}
