.motion-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(246px,310px);
  gap:22px;
}
.motion-player { min-width:0; }
.motion-frame {
  position:relative;
  border:1px solid #9aa79a;
  border-radius:7px 7px 0 0;
  background:#aab9ad;
  overflow:hidden;
  height:clamp(360px,59vh,668px);
}
#phase-label {
  position:absolute;
  top:14px;
  left:14px;
  pointer-events:none;
  padding:5px 11px;
  border-radius:3px;
  background:#263f36;
  color:#fff9eb;
  font-weight:650;
}
#phase-label:empty { display:none; }
.transport,.chapters {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #b5bbae;
  border-top:0;
  padding:10px 13px;
  background:#f6f2e8;
}
#play { min-width:74px; font-weight:650; }
#timeline { min-width:30px; flex:1; accent-color:#2f5348; }
#time { min-width:4.9rem; text-align:right; font-variant-numeric:tabular-nums; }
.chapters { flex-wrap:wrap; border-radius:0 0 7px 7px; }
.chapters button { padding:4px 11px; }
.motion-tools {
  align-self:start;
  padding:0 17px;
  background:#f6f2e8;
  border:1px solid #bcc6b7;
  border-radius:6px;
}
.motion-tools section { padding:14px 0; }
.motion-tools section + section { border-top:1px solid #d5dace; }
.motion-tools h2 { margin:0 0 9px; font:22px/1.2 Georgia,serif; }
.check { display:block; margin:7px 0; }
.check input { accent-color:#2f5348; vertical-align:middle; margin-right:6px; }
#legend { list-style:none; margin:10px 0 0; padding:0; font-size:14px; }
#legend li { margin:4px 0; }
#legend li::before {
  content:'';
  display:inline-block;
  background:var(--swatch);
  border:1px solid #6c756d;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:6px;
}
.measurements { margin:0; font-variant-numeric:tabular-nums; }
.measurements div { display:flex; justify-content:space-between; gap:9px; padding:5px 0; }
.measurements dd { margin:0; text-align:right; font-weight:650; }
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
@media(max-width:811px) {
  .motion-layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  .motion-frame { height:clamp(350px,57vh,565px); }
  .motion-tools { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
  .motion-tools section + section { border-top:0; }
  .motion-tools section:last-child { grid-column:1 / -1; border-top:1px solid #d5dace; }
}
@media(max-width:390px) {
  .motion-tools { display:block; }
  .motion-tools section + section { border-top:1px solid #d5dace; }
}
