/* Scale unit only: pack existing controls without moving or changing the model. */
body.scale-page.bio-compact-v2 .bio2-bench:not(.is-expanded) .bio2-toolbar {
  align-items: flex-end;
}
body.scale-page.bio-compact-v2 .bio2-bench:not(.is-expanded) .bio2-controls .lab-options {
  display: grid;
  gap: 6px;
}
body.scale-page.bio-compact-v2 .bio2-bench:not(.is-expanded) .lab-control input[type="range"] {
  display: block;
  height: 44px;
}
body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .bio2-control-group:has([data-sample]) {
  flex: 1 1 100%;
}
body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .lab-options:has([data-sample]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .bio2-control-group:has(#reference),
body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .bio2-control-group:has(#zoomRange) {
  flex: 1 1 240px;
}
body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .bio2-control-group:has(#fitTravel) {
  flex: 0 1 150px;
}
body.scale-page.bio-compact-v2 .bio2-bench:not(.is-expanded) .bio2-control-group:has([id$="PhotoReset"]) {
  flex: 0 1 120px;
}
body.scale-page.bio-compact-v2 #unitsLab:not(.is-expanded) .bio2-control-group:has(#unitSample) {
  flex: 1 1 250px;
}
body.scale-page.bio-compact-v2 #unitsLab:not(.is-expanded) .bio2-control-group:has([data-unit]) {
  flex: 3 1 540px;
}
body.scale-page.bio-compact-v2 #unitsLab:not(.is-expanded) .lab-options:has([data-unit]) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) .bio2-control-group:has([data-task]) {
  flex: 2 1 420px;
}
body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) .bio2-control-group:has([data-tool]) {
  flex: 1 1 400px;
}
body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) .lab-options:has([data-task]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) .lab-options:has([data-tool]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .lab-options:has([data-sample]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.scale-page.bio-compact-v2 #unitsLab:not(.is-expanded) .bio2-control-group:has([data-unit]) {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  body.scale-page.bio-compact-v2 #travelLab:not(.is-expanded) .lab-options:has([data-sample]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.scale-page.bio-compact-v2 #unitsLab:not(.is-expanded) .lab-options:has([data-unit]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) .lab-options:has([data-tool]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.scale-page.bio-compact-v2 #toolsLab:not(.is-expanded) [data-tool]:last-child {
    grid-column: 1 / -1;
  }
}
