/* Module 5 stations. Same shape as the other lab boxes; nothing fixed-width so the
   whole thing survives a 360 px phone. */
.cl-box {
  background: #0c202b;
  border: 1px solid var(--ec-rule, #27424a);
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
  min-width: 0;
}
.cl-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.cl-box > p {
  margin: 0 0 1rem;
  max-width: 76ch;
}
.cl-box canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #091a23;
  border-radius: 6px;
}
.cl-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.8rem 1.3rem;
  align-items: end;
  margin: 0 0 1rem;
}
.cl-controls button {
  align-self: end;
  justify-self: start;
}
.cl-slider {
  display: block;
  min-width: 0;
}
.cl-slider > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.cl-slider b {
  font-weight: 600;
  color: #e3f1f0;
}
.cl-slider output {
  font: 500 0.86rem var(--mono, ui-monospace, monospace);
  color: var(--ec-amber, #edc077);
}
.cl-slider input[type='range'] {
  width: 100%;
  margin: 0.3rem 0 0;
}
.cl-readout {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--ec-amber, #edc077);
  background: #1d170e;
  color: #f0e4d2;
  font-size: 0.93rem;
  border-radius: 0 5px 5px 0;
  max-width: 80ch;
}
@media print {
  .cl-box {
    background: white;
    border: 1px solid #999;
  }
  .cl-readout {
    background: white;
    color: black;
  }
}
.cl-foot {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: #9db4bc;
  max-width: 78ch;
}
.cl-box .ec-scroll {
  margin: 1rem 0 0;
}

/* Limit bars. The binding limit is the one with the LOWEST ceiling, so it is
   highlighted rather than the largest bar. */
.cl-rows {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}
.cl-row {
  min-width: 0;
  position: relative;
}
.cl-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cl-row-head b {
  font-weight: 600;
  color: #e3f1f0;
  font-size: 0.93rem;
}
.cl-row-head span {
  font: 500 0.86rem var(--mono, ui-monospace, monospace);
  color: var(--ec-amber, #edc077);
}
.cl-track {
  height: 10px;
  border-radius: 5px;
  background: #15303a;
  overflow: hidden;
  margin: 0.35rem 0 0.3rem;
}
.cl-track i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #4a7f87;
  transition: width 0.25s ease;
}
.cl-track i[data-binding='true'] {
  background: var(--ec-warn, #e59b6b);
}
.cl-note {
  margin: 0;
  font-size: 0.86rem;
  color: #a9c0c8;
  max-width: 74ch;
}
.cl-mark {
  position: absolute;
  /* Clear of the 10px track plus its margins, so the label never sits on the bar. */
  top: 2.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}
.cl-mark span {
  font: 500 0.75rem var(--mono, ui-monospace, monospace);
  color: #9db7c2;
  white-space: nowrap;
}
