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

.mb-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.8rem;
  margin: 1rem 0 0;
}
.mb-tile {
  background: #0f2630;
  border: 1px solid var(--ch-rule, #27424a);
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  min-width: 0;
}
.mb-tile b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9db7c2;
}
.mb-tile strong {
  display: block;
  font: 600 1.45rem var(--mono, ui-monospace, monospace);
  color: var(--ch-mint, #7fdcc9);
}
.mb-tile span {
  font-size: 0.76rem;
  color: #8fa8b0;
}
.mb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.55rem 0 0;
  font-size: 0.87rem;
  color: #c2d6da;
}
.mb-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mb-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.mb-axis {
  margin: 0.9rem 0 0.3rem;
  font: 600 0.8rem var(--mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fe3d2;
}
.mb-foot {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: #9db4bc;
  max-width: 78ch;
}
.mb-box .ch-scroll {
  margin: 1rem 0 0;
}

.mb-picker, .mb-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; }
.mb-choices { margin: 1rem 0 0; }
.mb-choices button { text-align: left; }
.mb-picker button[aria-pressed='true'], .mb-choices button[aria-pressed='true'] {
  background: var(--ch-mint, #7fdcc9); color: #06181d; border-color: var(--ch-mint, #7fdcc9);
}
.mb-blurb { margin: 0 0 0.8rem; color: #b6cdd4; font-size: 0.93rem; }
.mb-readout[data-correct='true'] { border-left-color: var(--ch-mint, #7fdcc9); }
.mb-readout[data-correct='false'] { border-left-color: var(--ch-warn, #e59b6b); }
.mb-split { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: #15303a; margin: 1rem 0 0; }
.mb-split i { display: block; height: 100%; transition: width .25s ease; }
.mb-split i[data-kind='cells'] { background: var(--ch-mint, #7fdcc9); }
.mb-split i[data-kind='lactate'] { background: var(--ch-warn, #e59b6b); }
