.team {
  overflow: visible;
}

.member-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.member-search {
  margin: 0;
}

.member-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  background: #0b0e13;
  border: 1px solid #3a4350;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.member-result {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.member-result:hover,
.member-result:focus {
  background: #202630;
  outline: none;
}

.member-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-result small {
  color: #697586;
  font-size: 10px;
}

.member-result-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.access-list {
  display: grid;
  gap: 8px;
}

.access-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.access-user b,
.access-user small {
  display: block;
}

.access-user small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.access-user .button {
  min-height: 34px;
  padding: 6px 14px;
}

@media (max-width: 600px) {
  .member-results {
    position: static;
    margin-top: 6px;
  }
}
