.vestibular-motion {
  margin-block: 1.2rem; color: var(--ink, #172e35); overflow-wrap: break-word;
}
.vestibular-motion > h3 { margin: 0 0 .5rem; color: var(--deep, #103d40); font-size: 1.4rem; }
.vestibular-motion .vm-field { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.vm-field legend, .vm-eye h4, .vm-canal h4, .vm-phase-lead h4, .vm-oto-result h4 {
  margin: 0 0 .25rem; font-weight: 750; color: #173f40; font-size: 1.05rem;
}
.vm-field > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.vm-field button {
  min-height: 44px; padding: .5rem .85rem; border: 1px solid #abc2bc;
  color: #1e4b47; background: white; white-space: normal;
}
.vm-field button[aria-pressed="true"] { background: #184d49; color: white; border-color: #184d49; }
.vm-output { border-top: 1px solid #cfddd8; padding-top: .8rem; }
.vm-output p { margin: .35rem 0 .6rem; line-height: 1.7; }
.vm-phase-lead, .vm-oto-result { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: .8rem; align-items: center; }
.vm-head, .vm-otodrawing { margin: 0; min-width: 0; text-align: center; }
.vm-head svg, .vm-otodrawing svg { width: 100%; height: auto; display: block; max-width: 22rem; margin-inline: auto; }
.vm-head figcaption, .vm-otodrawing figcaption, .vm-output .vm-caption {
  font-size: .9rem; color: #475e5b; line-height: 1.55; margin: .3rem 0 .65rem;
}
.vm-canals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.vm-canal { padding: .7rem; border: 1px solid #c5d8d1; border-top-width: 3px; background: #f4f8f6; border-radius: .45rem; }
.vm-canal[data-signal="up"] { background: #fff6ec; border-color: #bf8966; }
.vm-canal[data-signal="down"] { background: #edf6fa; border-color: #78a5b6; }
.vm-canal[data-signal="up"] > strong { color: #84421e; }
.vm-canal[data-signal="down"] > strong { color: #2d6179; }
.vm-canal .vm-receptor { display: block; width: 100%; max-width: 12rem; height: auto; margin: .2rem 0; }
.vm-canal small { display: block; color: #38514c; line-height: 1.5; font-size: .9rem; }
.vm-eye { padding: .7rem .9rem; background: #edf5f2; border-left: .22rem solid #327e72; }
.vm-eye p:last-child { margin-bottom: 0; }
.vm-sources { margin: .8rem 0 0; }
.vm-sources summary { cursor: pointer; }
@media(max-width:660px) {
  .vm-phase-lead, .vm-oto-result { grid-template-columns: minmax(0,1fr); gap: .2rem; }
  .vm-head svg { max-width: 17rem; }
  .vm-canal { padding: .55rem; }
  .vm-canals { gap: .4rem; }
}
@media(max-width:365px) { .vm-canals { grid-template-columns: 1fr; } }
