.rafter-toggle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:13px 0 2px;
  padding:8px 10px;
  background:#f7f8f4;
  border:1px solid #edf0e9;
  border-radius:5px
}

.rafter-toggle-row strong {
  display:block;
  color:#475443;
  font-size:10px
}

.rafter-toggle-row small {
  display:block;
  color:#9aa297;
  font-size:8px;
  margin-top:3px
}

.rafter-toggle-row > div {
  flex: 1;
  min-width: 0;
}
.switch {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.switch::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--switch-track, #c0c8bc);
  transition: background .18s ease;
}
.switch span {
  position: absolute;
  left: 4px;
  top: 12px;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #1b241a2a;
  transition: transform .18s ease;
  pointer-events: none;
}
.switch[aria-checked="true"] {
  --switch-track: #fcc006;
  background: transparent;
}
.switch[aria-checked="true"] span {
  transform: translateX(20px);
}
@media (prefers-reduced-motion: reduce) {
  .switch::before, .switch span { transition: none; }
}

#rafterControls[hidden] {
  display:none
}

#longVersionControl[hidden] {
  display:none
}

@media(max-width:760px) {
  #longVersionControl {
    grid-column:1/-1
  }
}
