.emt-recorded-lead-study {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid #b8c9ce;
  border-radius: 16px;
  background: linear-gradient(150deg, #f5f9f9, #edf4f4);
  color: #173943;
  box-shadow: 0 12px 35px rgba(16, 44, 53, .10);
}
.emt-recorded-lead-study * { box-sizing: border-box; }
.emt-recorded-lead-study :is(h3, p, figure) { margin: 0; }
.emt-recorded-lead-study p { line-height: 1.5; }
.emt-recorded-lead-study :is(button, select, input):focus-visible,
.emt-recorded-lead-study a:focus-visible { outline: 3px solid #b44c36; outline-offset: 3px; }
.emt-recorded-lead-eyebrow {
  color: #9c4836;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.emt-recorded-lead-study h3 { margin-top: .35rem; font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.emt-recorded-lead-intro { max-width: 78ch; margin-top: .5rem !important; }
.emt-recorded-lead-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #cad9d9;
  border-radius: 10px;
  background: #f9fcfb;
}
.emt-recorded-lead-controls label { display: grid; min-width: 0; gap: .35rem; font-size: .85rem; font-weight: 700; }
.emt-recorded-lead-controls select { width: 100%; min-height: 40px; padding: .4rem; border: 1px solid #a9c1c5; border-radius: 7px; background: white; color: #173943; }
.emt-recorded-lead-controls input[type="range"] { width: 100%; min-height: 34px; accent-color: #a34b39; }
.emt-recorded-lead-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.emt-recorded-lead-panel { min-width: 0; border: 1px solid #cfb9ad; border-radius: 8px; overflow: hidden; background: #fffdfa; }
.emt-recorded-lead-panel figcaption { padding: .55rem .7rem; background: #f0e9e2; color: #263b40; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.emt-recorded-lead-paper { width: 100%; min-width: 0; }
.emt-recorded-lead-paper canvas { display: block; width: 100%; height: 188px; }
.emt-recorded-lead-readout { margin: .8rem 0 1rem !important; color: #405a60; font-size: .86rem; }
.emt-recorded-lead-task { display: grid; gap: .75rem; padding: 1rem; border: 1px solid #c5d5d5; border-radius: 10px; background: #fff; }
.emt-recorded-lead-task fieldset { min-width: 0; margin: 0; padding: .7rem .85rem; border: 1px solid #d3e0df; border-radius: 8px; }
.emt-recorded-lead-task legend { padding: 0 .3rem; font-weight: 800; }
.emt-recorded-lead-task fieldset label { display: block; padding: .35rem .1rem; line-height: 1.45; cursor: pointer; }
.emt-recorded-lead-task input[type="radio"] { accent-color: #9c4836; }
.emt-recorded-lead-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.emt-recorded-lead-actions button { min-height: 40px; padding: .55rem .85rem; border: 1px solid #144856; border-radius: 8px; background: #16576a; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.emt-recorded-lead-actions button:last-child { background: #f3f9f9; color: #174757; }
.emt-recorded-lead-actions button[hidden] { display: none; }
.emt-recorded-lead-feedback:not(:empty) { padding: .75rem .85rem; border-left: 4px solid #a34b39; border-radius: 4px; background: #f8f3ed; }
.emt-recorded-lead-boundary { margin-top: 1rem !important; font-size: .82rem; color: #4b6066; }
.emt-recorded-lead-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .65rem !important; font-size: .82rem; }
.emt-recorded-lead-links a { color: #135e75; font-weight: 750; text-decoration: underline; }
.emt-recorded-lead-unavailable { padding: 1rem; border: 1px solid #d2dfe1; border-radius: 8px; }
@media (max-width: 650px) {
  .emt-recorded-lead-controls, .emt-recorded-lead-pair { grid-template-columns: minmax(0, 1fr); }
  .emt-recorded-lead-study { padding: .85rem; }
  .emt-recorded-lead-task { padding: .7rem; }
}
