/* Crew membership and invitation controls. */
#crew-dialog {
  width: min(560px, calc(100% - 16px));
}
.crew-modal {
  font-size: var(--text-small);
}
.crew-modal h3 {
  margin: 10px 0 4px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--muted);
}
.crew-modal > p {
  margin: 8px 0 10px;
  color: var(--muted);
  line-height: 1.5;
}
.crew-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.crew-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line, #25303a);
}
.crew-invite-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 10px 0;
}
.crew-invite-row label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.crew-invite-row input {
  width: 100%;
}
.crew-invite-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#crew-button.has-invites {
  color: #b4ead6;
  border-color: #69c99a;
  background: #14372c;
}
.crew-rating-average {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .crew-invite-row {
    align-items: stretch;
    flex-direction: column;
  }
  .crew-list li {
    flex-wrap: wrap;
  }
}
#crew-invite-count {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #79d5b0;
  color: #092219;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.crew-invite-row > button,
.crew-invite-row input {
  height: 30px;
  min-height: 30px;
  box-sizing: border-box;
}
.crew-invite-row > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  line-height: 1;
}
@media (max-width: 680px) {
  #crew-invite-count {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding-inline: 3px;
    font-size: 10px;
  }
}
.crew-list strong {
  font-weight: 600;
}
.crew-list .badge {
  font-size: var(--text-caption);
}
