/* Preserve the original image aspect ratio, width, padding and zoom region. */
#rhythm-library #movingTracingStage{position:relative;width:100%;flex:none}
#rhythm-library #movingTracingStage #exampleImage{width:100%;visibility:hidden;pointer-events:none}
#rhythm-library #movingRhythmCanvas{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:0;background:#061713}
#rhythm-library .moving-monitor-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
#rhythm-library #rhythmTimer{font-variant-numeric:tabular-nums;color:#244b43}
.moving-monitor-dialog{width:min(1200px,96vw);max-width:96vw;border:1px solid #91a697;border-radius:12px;padding:16px;background:#f6f7f0;color:#193e3a}
.moving-monitor-dialog::backdrop{background:rgba(0,20,15,.7)}
.moving-monitor-dialog form{display:flex;justify-content:flex-end;margin:0 0 12px}
.moving-monitor-dialog canvas{display:block;width:100%;height:clamp(240px,48vh,480px);background:#061713}
#rhythm-library .tracing-next-row{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
#rhythm-library #prevExampleTop{justify-self:start}
#rhythm-library .tracing-next-row #showClues{justify-self:center}
#rhythm-library #nextExampleTop{justify-self:end}
#rhythm-library .heart-rate-calculators{margin-top:14px}
#rhythm-library .rate-method-note{margin:0 0 12px}
#rhythm-library .rate-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#rhythm-library .rate-method{min-width:0;padding:14px;border:1px solid #cddbd3;border-radius:9px;background:#fff}
#rhythm-library .rate-method h5{font-size:15px;margin:0 0 12px;color:#244b43}
#rhythm-library .rate-method label{display:block;margin:0 0 8px;font-size:14px}
#rhythm-library .rate-method input{box-sizing:border-box;display:block;width:100%;padding:10px;border:1px solid #9bb1a5;border-radius:7px;font:inherit;font-size:16px;background:#fff;color:#183e38}
#rhythm-library .rate-method output{display:block;margin-top:10px;font-weight:600;font-size:14px;overflow-wrap:anywhere;color:#244b43}
#rhythm-library .rate-method input[aria-invalid=true]{border-color:#b32d35}
@media(max-width:600px){#rhythm-library .tracing-next-row{grid-template-columns:1fr 1fr}#rhythm-library .tracing-next-row #showClues{grid-column:1/-1;grid-row:2}#rhythm-library #nextExampleTop{grid-column:2;grid-row:1}#rhythm-library .rate-methods{grid-template-columns:1fr}}

#rhythm-library .rhythm-sound-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 14px}
#rhythm-library .rhythm-sound-controls p{flex-basis:100%;margin:0}
#rhythm-library #rhythmSound[aria-pressed="true"]{background:#193e3a;color:#fff}
#rhythm-library #rhythmSoundStatus{font-size:14px;color:#244b43}

#rhythm-library .rhythm-sound-controls label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}
#rhythm-library #rhythmSoundVolume{width:130px;min-height:32px;accent-color:#244b43}
#rhythm-library #rhythmSoundStatus{flex-basis:100%}
