/* Each instrument has its own switch and a place for the reading beneath it. */
.lesson-devices {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(8px, 1.1vw, 21px);
}
.lesson-device {
  display: grid;
  justify-items: center;
  max-width: 9.5em;
  line-height: 1.25;
  text-align: center;
}
.lesson-device button {
  padding: 5px 3px;
  border: 0;
  border-bottom: 1px solid var(--device-rule, var(--rule));
  background: none;
  color: var(--device-ink, var(--ink));
  font: inherit;
  font-size: clamp(12px, .95vw, 18px);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.lesson-device button:hover { border-color: currentColor; }
.lesson-device button[aria-pressed=true] { border-bottom: 3px double currentColor; }
.lesson-device select {
  max-width: 100%;
  margin-top: 2px;
  padding: 2px 1px;
  border: 0;
  border-bottom: 1px dotted var(--device-rule, var(--rule));
  border-radius: 0;
  background: var(--device-paper, var(--paper));
  color: var(--device-ink, var(--ink));
  font: inherit;
  font-size: clamp(11px, .8vw, 15px);
  cursor: pointer;
}
.lesson-device select:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.lesson-device output { display: block; margin-top: 2px; color: var(--device-muted, var(--faint)); font-size: clamp(9px, .68vw, 13px); line-height: 1.25; }
.lesson-device output:empty { display: none; }
.lesson-device meter { width: 45px; height: 5px; margin-top: 3px; appearance: none; border: 0; background: transparent; accent-color: var(--device-ink, var(--ink)); }
.lesson-device meter::-webkit-meter-bar { height: 4px; border: 0; border-bottom: 1px solid var(--device-rule, var(--rule)); border-radius: 0; background: transparent; }
.lesson-device meter::-webkit-meter-optimum-value { background: var(--device-ink, var(--ink)); }
.lesson-device meter::-moz-meter-bar { background: var(--device-ink, var(--ink)); }
@media (max-width: 510px) {
  .lesson-devices { gap: 6px; }
  .lesson-device { max-width: 6em; }
  .lesson-device button { font-size: 11px; }
  .lesson-device output { font-size: 8px; }
}
