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

/* Clinic layout. */
.cn-cases { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; }
.cn-cases button[aria-pressed='true'] { background: var(--ec-mint, #7fdcc9); color: #06181d; border-color: var(--ec-mint, #7fdcc9); }
.cn-box h4 { margin: 1.3rem 0 0.4rem; font-size: 0.98rem; }
.cn-note { margin: 0 0 0.6rem; max-width: 76ch; }
.cn-traces { margin: 0 0 0.6rem; font-size: 0.9rem; color: #b6cdd4; max-width: 76ch; }
.cn-traces b { color: var(--ec-mint, #7fdcc9); }
.cn-evidence { display: grid; gap: 0.6rem; }
.cn-ev { min-width: 0; }
.cn-ev button { text-align: left; }
.cn-says { margin: 0.3rem 0 0; font-size: 0.89rem; color: var(--ec-amber, #edc077); max-width: 74ch; }
.cn-cost { margin: 0.8rem 0 0; font: 500 0.86rem var(--mono, ui-monospace, monospace); color: #9db7c2; }
.cn-options { display: grid; gap: 0.5rem; }
.cn-options button { text-align: left; }
.cn-options button[aria-pressed='true'] { border-color: var(--ec-amber, #edc077); }
.cn-feedback { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-left: 3px solid #4a7f87; background: #0f2630; border-radius: 0 5px 5px 0; max-width: 78ch; font-size: 0.92rem; }
.cn-feedback[data-correct='true'] { border-left-color: var(--ec-mint, #7fdcc9); }
.cn-feedback[data-correct='false'] { border-left-color: var(--ec-warn, #e59b6b); }
.cn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 0.8rem; margin: 1rem 0 0; }
.cn-tile { background: #0f2630; border: 1px solid var(--ec-rule, #27424a); border-radius: 7px; padding: 0.7rem 0.9rem; min-width: 0; }
.cn-tile b { display: block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: #9db7c2; }
.cn-tile strong { display: block; font: 600 1.5rem var(--mono, ui-monospace, monospace); color: var(--ec-mint, #7fdcc9); }
.cn-tile span { font-size: 0.78rem; color: #8fa8b0; }
