/* Sizes are in the game's existing logical coordinate system. */
.lab .top-tools {
  top: 32px;
  right: 40px;
}
.lab .top-tools .tag {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 100px;
  padding: 16px 22px;
  margin-right: 20px;
  font-size: 32px;
  line-height: 1.35;
  white-space: nowrap;
}
.lab .top-tools button {
  box-sizing: border-box;
  min-height: 116px;
  min-width: 168px;
  padding: 18px 22px;
  font-size: 34px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.lab .top-tools .appearance-entry { margin-right: 18px; }
.lab .top-tools .icon-btn {
  width: 116px;
  min-width: 116px;
  margin-left: 18px;
  font-size: 42px;
}
.lab .editor {
  top: 220px;
  width: 520px;
  max-height: calc(100% - 408px);
  padding: 22px;
  -webkit-overflow-scrolling: touch;
}
.lab .editor .field { margin: 16px 0; }
.lab .editor .field-head { min-height: 54px; }
.lab .editor .fine-btn {
  width: 56px;
  min-height: 54px !important;
  border: 1px solid #b3aa91 !important;
  border-radius: 8px;
  background: #f2ecd9;
}
.lab .editor input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 124px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
.lab .editor input[type="range"]::-webkit-slider-runnable-track {
  height: 16px;
  border: 2px solid #646b40;
  border-radius: 8px;
  background: #a9bd65;
}
.lab .editor input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 72px;
  height: 72px;
  margin-top: -30px;
  border: 4px solid #54602c;
  border-radius: 50%;
  background: #d1e58f;
  box-shadow: 0 3px 0 rgba(72, 80, 37, .2);
}
.lab .editor input[type="range"]::-moz-range-track {
  height: 12px;
  border: 2px solid #646b40;
  border-radius: 8px;
  background: #a9bd65;
}
.lab .editor input[type="range"]::-moz-range-thumb {
  width: 64px;
  height: 64px;
  border: 4px solid #54602c;
  border-radius: 50%;
  background: #d1e58f;
}
.lab .editor input[type="range"]:focus {
  outline: 3px solid #99712d;
  outline-offset: 2px;
  border-radius: 12px;
}
.lab .editor input[type="range"].range-dragging::-webkit-slider-thumb {
  background: #bddb66;
  border-color: #38471a;
}
.lab .editor .joint-tabs button { min-height: 58px; }
.lab .editor .random-all { margin-top: 8px; min-height: 60px; }
.lab .appearance-panel {
  width: 1100px;
  top: 176px;
  max-height: calc(100% - 368px);
  padding: 28px;
  -webkit-overflow-scrolling: touch;
}
.lab .appearance-top h2 { font-size: 32px; }
.lab .appearance-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 0;
  background: #faf7ec;
}
.lab .appearance-top button {
  width: 64px;
  min-height: 64px;
  font-size: 32px;
}
.lab .appearance-options {
  grid-column-gap: 18px;
  grid-row-gap: 18px;
  column-gap: 18px;
  row-gap: 18px;
}
.lab .appearance-options button { padding: 14px 10px; font-size: 27px; }
.lab .appearance-options canvas { width: 190px; height: 250px; margin-bottom: 10px; }
.lab .appearance-options em { font-size: 21px; }
.lab .appearance-options small { font-size: 21px; min-height: 28px; }
.lab .appearance-options .skin-locked small { color: #88612a; }
.lab .appearance-options button:focus {
  outline: 3px solid #99712d;
  outline-offset: 2px;
}
.lab .bottom {
  height: 164px;
  padding: 0 32px;
}
.lab .bottom button {
  min-height: 116px;
  min-width: 138px;
  padding: 18px 26px;
  margin-right: 16px;
  font-size: 32px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lab .bottom .primary { min-width: 228px; }
.lab .bottom-right button:last-child { margin-right: 0; }
.lab .bottom .shortcut { white-space: nowrap; }
.lab .progress-track { bottom: 200px; height: 6px; }
.lab .progress-track .fill { height: 6px; }
.lab .progress-label, .lab .progress-end { font-size: 23px; top: -32px; }
@media (pointer: coarse) {
  .lab .bottom .shortcut { display: none; }
}
.lab .ranking-dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 1200px;
  max-height: calc(100% - 200px);
  padding: 24px 28px;
  overflow: hidden;
}
.lab .ranking-dialog h2 { font-size: 36px; flex-shrink: 0; }
.lab .ranking-dialog > p {
  margin: 12px 0;
  font-size: 25px;
  line-height: 1.35;
  flex-shrink: 0;
}
.lab .ranking-periods {
  display: flex;
  flex-shrink: 0;
  margin-top: 8px;
}
.lab .ranking-periods button {
  flex: 1;
  min-height: 104px;
  font-size: 32px;
  margin-right: 14px;
  background: #f4efdc;
}
.lab .ranking-periods button:last-child { margin-right: 0; }
.lab .ranking-periods button[aria-pressed="true"] {
  background: #d2e789;
  border-color: #627e20;
  box-shadow: inset 0 -5px 0 #91ae42;
  font-weight: bold;
}
.lab .ranking-periods button:focus {
  outline: 3px solid #99712d;
  outline-offset: 2px;
}
.lab .ranking-dialog .ranking-period-note { font-size: 23px; color: #75694c; }
.lab .ranking-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 6px 0;
  -webkit-overflow-scrolling: touch;
}
.lab .ranking-actions { flex-shrink: 0; }
.lab .ranking-actions button { min-height: 104px; font-size: 28px; }
.lab .ranking-dialog .ranking-sync-status:empty { display: none; }
