/* Workshop navigation: parts, purchase details and robot library have separate space. */
#header #myRobotsBtn {
  display: none !important;
}
.header-queue {
  flex: 0 0 auto;
  color: #c8ff68;
  border: 1px solid #83ae40;
  background: #11251d;
  font-size: 11px;
  padding: 10px;
  white-space: nowrap;
}
#garage {
  grid-template-columns: 300px minmax(200px, 1fr) 300px;
  grid-template-rows: 64px minmax(180px, 1fr) 155px;
}
#garage .parts-shelf {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}
#garage #categories {
  flex-wrap: wrap;
  overflow: visible;
  flex: none;
  gap: 4px;
}
#garage #categories button {
  padding: 7px 9px;
  font-size: 10px;
}
#garage .shelf-heading {
  flex: none;
  margin: 8px 0;
}
#garage #garagePartsHint {
  display: none;
}
#garage #parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  align-content: start;
  min-height: 0;
  scroll-snap-type: none;
}
#garage #parts .part {
  width: 100%;
  height: 122px;
  min-height: 122px;
  min-width: 0;
}
#garage #parts .part img {
  height: 68px;
  object-fit: contain;
}
#garage #parts .part small {
  font-size: 10px;
  white-space: normal;
}
#garage #appearance {
  overflow: auto;
  min-height: 0;
}
#garage .garage-left {
  grid-column: 1/3;
  grid-row: 3;
  padding: 10px;
  overflow: auto;
}
#garageRobots.card-carousel {
  flex-direction: row;
  overflow: auto;
  max-height: 90px;
}
#garageRobots .carousel-card {
  flex: 0 0 190px;
  min-height: 70px;
}
#garage .garage-right {
  grid-column: 3;
  grid-row: 1/4;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 16px;
  gap: 10px;
}
#garage .garage-pilot {
  font-size: 20px;
  padding-bottom: 8px;
}
#garage #partInfo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 14px;
  background: #172b22;
  border: 1px solid #8abd46;
  border-radius: 10px;
  flex-shrink: 0;
  order: -1;
}
#garage #partInfo:empty {
  display: none;
}
#garage #partInfo strong {
  font-size: 20px;
}
#garage #partInfo p {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
#garage #partInfo small {
  color: #bdd1bc;
}
#garage #partInfo button {
  width: 100%;
  min-height: 48px;
  flex: none;
  margin: 0;
  font-size: 13px;
}
#garage .stat {
  padding: 5px 0;
}
#garage .garage-bottom {
  margin-top: auto;
}
.chat-tabs {
  position: fixed;
  top: 78px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 85;
  max-width: calc(100vw - 36px);
  overflow: auto;
  pointer-events: auto;
}
.chat-person-tab {
  display: flex;
  align-items: center;
  background: #13291ff5;
  border: 1px solid #baff57;
  border-radius: 10px;
  flex: 0 0 230px;
  box-shadow: 0 8px 22px #0006;
}
.chat-person-tab > button:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  flex: 1;
  background: none;
  border: 0;
  padding: 10px;
  text-align: left;
}
.chat-person-tab strong,
.chat-person-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.chat-person-tab small {
  color: #ccdbcf;
  font-size: 11px;
  margin-top: 4px;
}
.chat-person-tab > button:last-child {
  padding: 8px;
  border: 0;
  background: none;
}
@media (max-width: 1050px) {
  #garage {
    grid-template-columns: 250px minmax(120px, 1fr) 260px;
    gap: 10px;
    inset-inline: 10px;
  }
  .header-queue {
    font-size: 10px;
    padding: 7px;
  }
}
@media (max-width: 760px) {
  #garage {
    display: flex;
    overflow: auto;
    padding-top: 220px;
    gap: 12px;
  }
  #garage .garage-left {
    order: 1;
    width: 100%;
    min-height: 140px;
  }
  #garage .parts-shelf {
    order: 2;
    width: 100%;
    height: 360px;
    min-height: 360px;
  }
  #garage .garage-right {
    order: 3;
    width: 100%;
    overflow: visible;
  }
  #garage #parts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #garage #partInfo {
    position: sticky;
    bottom: 0;
    z-index: 3;
  }
  .chat-tabs {
    top: 108px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }
  .header-queue {
    max-width: 150px;
  }
}
